mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 10:43:32 +00:00
When session is over, IPv6 default route to tun should be
removed, too. MFC after: 1 week
This commit is contained in:
parent
3987f181d5
commit
b706c03da0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113110
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user