diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-08-28 22:41:07 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-08-28 22:43:04 +0400 |
commit | 27f33ddc2a653879f202cc3e3a85af73a3e5ea1f (patch) | |
tree | 798c08f64cb0552f15703fc74f7aabc394c831d3 /accel-pppd/ipv6 | |
parent | 498319e3f7885984a8a28d459eff55f65e557298 (diff) | |
download | accel-ppp-27f33ddc2a653879f202cc3e3a85af73a3e5ea1f.tar.gz accel-ppp-27f33ddc2a653879f202cc3e3a85af73a3e5ea1f.zip |
ipv6_nd: don't advertise prefixes with length more then 64
Diffstat (limited to 'accel-pppd/ipv6')
-rw-r--r-- | accel-pppd/ipv6/nd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c index 67ba102..af6f353 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)); |