summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-04-05 10:10:33 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-04-05 10:10:33 +0000
commitb706c03da04f075acd307bea96313bbabceddf04 (patch)
tree881426a70213cbce4dd9d3535ae4b3b332d5f435 /usr.sbin/ppp
parent3987f181d5e961b3d2b383a988c12923849335ff (diff)
downloadsrc-test2-b706c03da04f075acd307bea96313bbabceddf04.tar.gz
src-test2-b706c03da04f075acd307bea96313bbabceddf04.zip
Notes
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ncpaddr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ncpaddr.c b/usr.sbin/ppp/ncpaddr.c
index 1f84f922fdff..ea491f16f878 100644
--- a/usr.sbin/ppp/ncpaddr.c
+++ b/usr.sbin/ppp/ncpaddr.c
@@ -725,7 +725,10 @@ ncprange_setsa(struct ncprange *range, const struct sockaddr *host,
case AF_INET6:
range->ncprange_family = AF_INET6;
range->ncprange_ip6addr = host6->sin6_addr;
- range->ncprange_ip6width = mask6 ? mask62bits(&mask6->sin6_addr) : 128;
+ if (IN6_IS_ADDR_UNSPECIFIED(&host6->sin6_addr))
+ range->ncprange_ip6width = 0;
+ else
+ range->ncprange_ip6width = mask6 ? mask62bits(&mask6->sin6_addr) : 128;
break;
#endif