diff options
author | Steven Barth <steven@midlink.org> | 2015-07-13 22:14:07 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-07-13 22:16:54 +0200 |
commit | 02e731140a4f5f285e80ed129ab2654aeb427a10 (patch) | |
tree | 1abd919b9c7a29c80a611e4506fcfb5c51f10e17 /src/router.c | |
parent | 1d4dad921b99fa2df026053513bbc6cb2eab7173 (diff) |
router: only send RAs to neighbors if unsolicited
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/router.c b/src/router.c index 91ea809..a66f65f 100644 --- a/src/router.c +++ b/src/router.c @@ -468,11 +468,12 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add if (from && !IN6_IS_ADDR_UNSPECIFIED(from)) dest.sin6_addr = *from; + else + odhcpd_iterate_interface_neighbors(iface, send_neigh_ra, iov); odhcpd_send(router_event.uloop.fd, &dest, iov, ARRAY_SIZE(iov), iface); - odhcpd_iterate_interface_neighbors(iface, send_neigh_ra, iov); return msecs; } |