Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EFR32] Adds lwip ipv6 MLD support for neighborhood discovery protocol #23105

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lwip/efr32/lwipopts-rs911x.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
#define LWIP_IPV6_REASS (0)
#define LWIP_IPV6_DHCP6 0
#define LWIP_IPV6_AUTOCONFIG (1)
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 0 // TODO: Enable this after a fix for NS loopback
#define LWIP_IPV6_ROUTER_SUPPORT 1
#define LWIP_ND6_LISTEN_RA 1

Expand Down
1 change: 1 addition & 0 deletions src/lwip/efr32/lwipopts-wf200.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
#define LWIP_IPV6_REASS (0)
#define LWIP_IPV6_DHCP6 0
#define LWIP_IPV6_AUTOCONFIG (1)
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 0 // TODO: Enable this after a fix for NS loopback
#define LWIP_IPV6_ROUTER_SUPPORT 1
#define LWIP_ND6_LISTEN_RA 1

Expand Down
4 changes: 4 additions & 0 deletions src/platform/EFR32/wifi/ethernetif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ static void low_level_init(struct netif * netif)

/* Accept broadcast address and ARP traffic */
netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP;

#if LWIP_IPV6_MLD
netif->flags |= NETIF_FLAG_MLD6;
#endif /* LWIP_IPV6_MLD */
}

/********************************************************************************
Expand Down
4 changes: 4 additions & 0 deletions src/platform/EFR32/wifi/lwip_netif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ void wfx_lwip_set_sta_link_up(void)
/*
* Enable IPV6
*/

#if LWIP_IPV6_AUTOCONFIG
sta_netif.ip6_autoconfig_enabled = 1;
#endif /* LWIP_IPV6_AUTOCONFIG */
netif_create_ip6_linklocal_address(&sta_netif, MAC_48_BIT_SET);
}

Expand Down