summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-08-28 22:41:07 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-08-28 22:43:04 +0400
commit27f33ddc2a653879f202cc3e3a85af73a3e5ea1f (patch)
tree798c08f64cb0552f15703fc74f7aabc394c831d3
parent498319e3f7885984a8a28d459eff55f65e557298 (diff)
downloadaccel-ppp-27f33ddc2a653879f202cc3e3a85af73a3e5ea1f.tar.gz
accel-ppp-27f33ddc2a653879f202cc3e3a85af73a3e5ea1f.zip
ipv6_nd: don't advertise prefixes with length more then 64
-rw-r--r--accel-pppd/ipv6/nd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c
index 67ba102e..af6f3536 100644
--- a/accel-pppd/ipv6/nd.c
+++ b/accel-pppd/ipv6/nd.c
@@ -109,7 +109,7 @@ static void ipv6_nd_send_ra(struct ipv6_nd_handler_t *h, struct sockaddr_in6 *ad
pinfo = (struct nd_opt_prefix_info *)(adv + 1);
list_for_each_entry(a, &h->ppp->ipv6->addr_list, entry) {
- if (a->prefix_len == 128)
+ if (a->prefix_len > 64)
continue;
memset(pinfo, 0, sizeof(*pinfo));