From ee7472a7df014028ffcac3e0da05d979380aec4a Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sun, 23 Sep 2018 19:06:08 +0200 Subject: [PATCH] router: don't leak RA message in relay mode (FS#1853) In relay mode don't send RA message with router lifetime equal to 0 when interface gets disabled as router Signed-off-by: Hans Dedecker --- src/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.c b/src/router.c index 8e3013c..70f9462 100644 --- a/src/router.c +++ b/src/router.c @@ -172,7 +172,7 @@ int router_setup_interface(struct interface *iface, bool enable) &mreq, sizeof(mreq)); if (!enable) { - if (iface->ra) + if (iface->ra == MODE_SERVER || (iface->ra == MODE_RELAY && !iface->master)) trigger_router_advert(&iface->timer_rs); } else { if (iface->ra == MODE_RELAY && iface->master) { -- 2.25.1