mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Pending fix for bug #37993: IPv6 Does Not Subscribe to Link-Local
All-Nodes Multicast Group By Default
This commit is contained in:
parent
f139b14a3c
commit
5812b22662
@ -101,6 +101,19 @@ low_level_init(struct netif *netif)
|
|||||||
/* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
|
/* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
|
||||||
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
|
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP;
|
||||||
|
|
||||||
|
#if LWIP_IPV6 && LWIP_IPV6_MLD
|
||||||
|
/*
|
||||||
|
* For hardware/netifs that implement MAC filtering.
|
||||||
|
* All-nodes link-local is handled by default, so we must let the hardware know
|
||||||
|
* to allow multicast packets in.
|
||||||
|
* Should set mld_mac_filter previously. */
|
||||||
|
if (netif->mld_mac_filter != NULL) {
|
||||||
|
ip6_addr_t ip6_allnodes_ll;
|
||||||
|
ip6_addr_set_allnodes_linklocal(&ip6_allnodes_ll);
|
||||||
|
netif->mld_mac_filter(netif, &ip6_allnodes_ll, MLD6_ADD_MAC_FILTER);
|
||||||
|
}
|
||||||
|
#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */
|
||||||
|
|
||||||
/* Do whatever else is needed to initialize interface. */
|
/* Do whatever else is needed to initialize interface. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user