X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=src%2Frouter.c;h=a45a8cbbe2d176ed4ed71a587f9107cdebfb8154;hb=98b41e5b07b28b438fb0be45ba294a932f4c849b;hp=f8ba5d7aac0332daa0c8776e12183c4c06e48edd;hpb=837da652ea37cd2f8bbfb6a353057eb53e9b75e0;p=project%2Fodhcpd.git diff --git a/src/router.c b/src/router.c index f8ba5d7..a45a8cb 100644 --- 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));