repair IPV6_JOIN_GROUP to IPv6 all multi.

From: ume
This commit is contained in:
Jun-ichiro itojun Hagino 2000-07-09 11:17:17 +00:00
parent ec850e74c0
commit 595b8a1cdd

View File

@ -824,6 +824,16 @@ ether_resolvemulti(ifp, llsa, sa)
#ifdef INET6
case AF_INET6:
sin6 = (struct sockaddr_in6 *)sa;
if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
/*
* An IP6 address of 0 means listen to all
* of the Ethernet multicast address used for IP6.
* (This is used for multicast routers.)
*/
ifp->if_flags |= IFF_ALLMULTI;
*llsa = 0;
return 0;
}
if (!IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
return EADDRNOTAVAIL;
MALLOC(sdl, struct sockaddr_dl *, sizeof *sdl, M_IFMADDR,