diff options
author | melifaro <melifaro@FreeBSD.org> | 2013-05-19 19:19:01 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2013-05-19 19:19:01 +0000 |
commit | 9f42266f8dbf5c8d3237c5ada516071f0efb1645 (patch) | |
tree | 56ed7c9d83ac8cacb33eaf698194583acf0e677b /sys/netinet6 | |
parent | 9e08262228664ec82db5b2827324c4bd41571af3 (diff) | |
download | FreeBSD-src-9f42266f8dbf5c8d3237c5ada516071f0efb1645.zip FreeBSD-src-9f42266f8dbf5c8d3237c5ada516071f0efb1645.tar.gz |
Finish r85740 : Make IPv6 netmask has address family set.
This pleases routing daemons like bird.
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 5a90111..dc0f3f7 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1140,6 +1140,7 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra, ia->ia_ifa.ifa_addr = (struct sockaddr *)&ia->ia_addr; ia->ia_addr.sin6_family = AF_INET6; ia->ia_addr.sin6_len = sizeof(ia->ia_addr); + ia->ia_prefixmask.sin6_family = AF_INET6; ia->ia6_createtime = time_second; if ((ifp->if_flags & (IFF_POINTOPOINT | IFF_LOOPBACK)) != 0) { /* |