Really fix netmask address family this time.

MFC with:	r250813
This commit is contained in:
Alexander V. Chernikov 2013-05-19 19:42:46 +00:00
parent 346e9c9de8
commit 6bdfdb2c5e

View File

@ -1140,7 +1140,6 @@ 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) {
/*
@ -1187,6 +1186,7 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra,
goto unlink;
}
ia->ia_prefixmask = ifra->ifra_prefixmask;
ia->ia_prefixmask.sin6_family = AF_INET6;
}
/*