diff options
| author | Jun-ichiro itojun Hagino <itojun@FreeBSD.org> | 2000-07-09 11:17:17 +0000 |
|---|---|---|
| committer | Jun-ichiro itojun Hagino <itojun@FreeBSD.org> | 2000-07-09 11:17:17 +0000 |
| commit | 595b8a1cdd1ed8c624910682cb4a5807ec162849 (patch) | |
| tree | a6e9525b63f3070a164c9b0152becd88f6ebf132 /sys/net/if_ethersubr.c | |
| parent | ec850e74c03d85b0550e8486e90a08ca4ffec1c0 (diff) | |
Notes
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index b2296127f71e..7ae976e0f65c 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -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, |
