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:
ac448de
)
ra: don't send MSR for /64 prefix if DP is /64 as well
author
Steven Barth
<steven@midlink.org>
Thu, 7 Aug 2014 05:51:29 +0000
(07:51 +0200)
committer
Steven Barth
<steven@midlink.org>
Thu, 7 Aug 2014 05:51:29 +0000
(07:51 +0200)
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index f8ba5d7aac0332daa0c8776e12183c4c06e48edd..a45a8cbbe2d176ed4ed71a587f9107cdebfb8154 100644
(file)
--- a/
src/router.c
+++ b/
src/router.c
@@
-410,7
+410,8
@@
static void send_router_advert(struct uloop_timeout *event)
for (ssize_t i = 0; i < ipcnt; ++i) {
struct odhcpd_ipaddr *addr = &addrs[i];
- if (addr->dprefix > 64 || addr->dprefix == 0) {
+ if (addr->dprefix > 64 || addr->dprefix == 0 ||
+ (addr->dprefix == 64 && addr->prefix == 64)) {
continue; // Address not suitable
} else if (addr->dprefix > 32) {
addr->addr.s6_addr32[1] &= htonl(~((1U << (64 - addr->dprefix)) - 1));