diff options
| author | Joel Cunningham <joel.cunningham@me.com> | 2017-10-18 11:59:24 -0500 |
|---|---|---|
| committer | Joel Cunningham <joel.cunningham@me.com> | 2017-10-18 11:59:24 -0500 |
| commit | 2de26f1b92fcfccade7123e54f22f04902e08551 (patch) | |
| tree | 0286566f3d6dc2a783bf36169226cdcad6d9cee5 | |
| parent | 0f96523fa4b4593bf89c3f73da57fef93eee390c (diff) | |
| download | lwip-contrib-2de26f1b92fcfccade7123e54f22f04902e08551.tar.gz | |
win32: fix MLD for IPV6
The pcapif didn't set NETIF_FLAG_MLD6 which resulted in the solicit node
multicast group not being joined and thus no external host was able to
solicit our hardware address
This can be tested by pinging the win32 port from another host via IPv6
| -rw-r--r-- | ports/win32/pcapif.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/win32/pcapif.c b/ports/win32/pcapif.c index 26e58ba..514ed9b 100644 --- a/ports/win32/pcapif.c +++ b/ports/win32/pcapif.c @@ -1048,6 +1048,9 @@ pcapif_init(struct netif *netif) netif->mtu = 1500; netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_IGMP; +#if LWIP_IPV6 && LWIP_IPV6_MLD + netif->flags |= NETIF_FLAG_MLD6; +#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ netif->hwaddr_len = ETH_HWADDR_LEN; NETIF_INIT_SNMP(netif, snmp_ifType_ethernet_csmacd, 100000000); |
