summaryrefslogtreecommitdiffhomepage
path: root/src/router.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-03-27 22:01:13 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-03-29 11:35:14 +0200
commiteea7d037b93020dd5d5d2e5a698e88650a0f0912 (patch)
treee5e26a996e136f8b29d1ae083b1174e78523f003 /src/router.c
parent24d21c7c26d07e93fb329ac62da5e974cf44213b (diff)
rework IPv6 address dump logic
Make the code more logical by moving the IPv6 address dump logic into the different protocol interface enable handlers so it's clear which protocols require interface IPv6 address tracking. At the same time restructure the IPv6 address dump logic so less IPv6 address netlink dumps are created. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/router.c')
-rw-r--r--src/router.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/router.c b/src/router.c
index e8a9aa9..6e5111a 100644
--- a/src/router.c
+++ b/src/router.c
@@ -120,6 +120,7 @@ int setup_router_interface(struct interface *iface, bool enable)
} else if (iface->ra == RELAYD_SERVER && !iface->master) {
iface->timer_rs.cb = trigger_router_advert;
uloop_timeout_set(&iface->timer_rs, 1000);
+ ndp_rqs_addr6_dump();
}
if (iface->ra == RELAYD_RELAY || (iface->ra == RELAYD_SERVER && !iface->master))