diff options
author | Steven Barth <steven@midlink.org> | 2015-07-13 22:08:17 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-07-13 22:08:17 +0200 |
commit | 1d4dad921b99fa2df026053513bbc6cb2eab7173 (patch) | |
tree | 9c574a669ca0ade0a64f781e3bcfb7ac25ca420c /src | |
parent | 866c49ac4436e9cdddea10284902354793b8fe7e (diff) |
router: only send direct RAs to link-local addresses
Diffstat (limited to 'src')
-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 718f170..91ea809 100644 --- a/src/router.c +++ b/src/router.c @@ -215,7 +215,8 @@ static void send_neigh_ra(const struct in6_addr *addr, .sin6_addr = *addr, .sin6_scope_id = iface->ifindex, }; - odhcpd_send(router_event.uloop.fd, &dest, data, RA_IOV_LEN, iface); + if (IN6_IS_ADDR_LINKLOCAL(addr)) + odhcpd_send(router_event.uloop.fd, &dest, data, RA_IOV_LEN, iface); } |