diff options
Diffstat (limited to 'usr.sbin/ppp/ncpaddr.c')
-rw-r--r-- | usr.sbin/ppp/ncpaddr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ncpaddr.c b/usr.sbin/ppp/ncpaddr.c index 5b19d2589cf1..1f84f922fdff 100644 --- a/usr.sbin/ppp/ncpaddr.c +++ b/usr.sbin/ppp/ncpaddr.c @@ -917,7 +917,9 @@ ncprange_aton(struct ncprange *range, struct ncp *ncp, const char *data) return 1; #ifndef NOINET6 } else if (ncp && strncasecmp(data, "HISADDR6", len) == 0) { - ncprange_sethost(range, &ncp->ipv6cp.hisaddr); + range->ncprange_family = AF_INET6; + range->ncprange_ip6addr = ncp->ipv6cp.hisaddr.ncpaddr_ip6addr; + range->ncprange_ip6width = 128; return 1; #endif } else if (ncp && strncasecmp(data, "MYADDR", len) == 0) { @@ -928,7 +930,9 @@ ncprange_aton(struct ncprange *range, struct ncp *ncp, const char *data) return 1; #ifndef NOINET6 } else if (ncp && strncasecmp(data, "MYADDR6", len) == 0) { - ncprange_sethost(range, &ncp->ipv6cp.myaddr); + range->ncprange_family = AF_INET6; + range->ncprange_ip6addr = ncp->ipv6cp.myaddr.ncpaddr_ip6addr; + range->ncprange_ip6width = 128; return 1; #endif } else if (ncp && strncasecmp(data, "DNS0", len) == 0) { |