From: Hans Dedecker Date: Sun, 23 Sep 2018 17:06:08 +0000 (+0200) Subject: router: don't leak RA message in relay mode (FS#1853) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee7472a7df014028ffcac3e0da05d979380aec4a;p=oweals%2Fodhcpd.git 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 --- 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) {