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:
1d4dad9
)
router: only send RAs to neighbors if unsolicited
author
Steven Barth
<steven@midlink.org>
Mon, 13 Jul 2015 20:14:07 +0000
(22:14 +0200)
committer
Steven Barth
<steven@midlink.org>
Mon, 13 Jul 2015 20:16:54 +0000
(22:16 +0200)
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index 91ea809da40f43cb1644a6ac4b77f510ca924076..a66f65f3d4a7931fa8d709cd47e62f9fd5190e10 100644
(file)
--- 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;
}