mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
repair IPV6_JOIN_GROUP to IPv6 all multi.
From: ume
This commit is contained in:
parent
ec850e74c0
commit
595b8a1cdd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62838
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user