projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
866c49a
)
router: only send direct RAs to link-local addresses
author
Steven Barth
<steven@midlink.org>
Mon, 13 Jul 2015 20:08:17 +0000
(22:08 +0200)
committer
Steven Barth
<steven@midlink.org>
Mon, 13 Jul 2015 20:08:17 +0000
(22:08 +0200)
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index 718f1708dfbd1b0ecacdaba576c3ba8e765335d3..91ea809da40f43cb1644a6ac4b77f510ca924076 100644
(file)
--- 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);
}