diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-09-23 19:06:08 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-09-23 20:21:07 +0200 |
commit | ee7472a7df014028ffcac3e0da05d979380aec4a (patch) | |
tree | 3bfd31f2dbdb7fd74a4e19c90944443013a49314 /src/router.c | |
parent | 881f66b0c2526bff6a2a51b30d314c512df813b4 (diff) |
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 <dedeckeh@gmail.com>
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |