Skip to content

Commit 1151220

Browse files
rosahay-silabspull[bot]
authored andcommitted
[EFR32] Adds lwip ipv6 MLD support for neighborhood discovery protocol (#23105)
* Adds LWIP_IPV6_MLD support for Neighborhood discovery * Adds temporary fix for NS loopback issue
1 parent a831bce commit 1151220

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/lwip/efr32/lwipopts-rs911x.h

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
#define LWIP_IPV6_REASS (0)
100100
#define LWIP_IPV6_DHCP6 0
101101
#define LWIP_IPV6_AUTOCONFIG (1)
102+
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 0 // TODO: Enable this after a fix for NS loopback
102103
#define LWIP_IPV6_ROUTER_SUPPORT 1
103104
#define LWIP_ND6_LISTEN_RA 1
104105

src/lwip/efr32/lwipopts-wf200.h

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
#define LWIP_IPV6_REASS (0)
100100
#define LWIP_IPV6_DHCP6 0
101101
#define LWIP_IPV6_AUTOCONFIG (1)
102+
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 0 // TODO: Enable this after a fix for NS loopback
102103
#define LWIP_IPV6_ROUTER_SUPPORT 1
103104
#define LWIP_ND6_LISTEN_RA 1
104105

src/platform/EFR32/wifi/ethernetif.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ static void low_level_init(struct netif * netif)
9797

9898
/* Accept broadcast address and ARP traffic */
9999
netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP;
100+
101+
#if LWIP_IPV6_MLD
102+
netif->flags |= NETIF_FLAG_MLD6;
103+
#endif /* LWIP_IPV6_MLD */
100104
}
101105

102106
/********************************************************************************

src/platform/EFR32/wifi/lwip_netif.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ void wfx_lwip_set_sta_link_up(void)
9191
/*
9292
* Enable IPV6
9393
*/
94+
95+
#if LWIP_IPV6_AUTOCONFIG
96+
sta_netif.ip6_autoconfig_enabled = 1;
97+
#endif /* LWIP_IPV6_AUTOCONFIG */
9498
netif_create_ip6_linklocal_address(&sta_netif, MAC_48_BIT_SET);
9599
}
96100

0 commit comments

Comments
 (0)