Skip to content

Commit

Permalink
[EFR32] Adds lwip ipv6 MLD support for neighborhood discovery protocol (
Browse files Browse the repository at this point in the history
#23105)

* Adds LWIP_IPV6_MLD support for Neighborhood discovery

* Adds temporary fix for NS loopback issue
  • Loading branch information
rosahay-silabs authored and pull[bot] committed Apr 13, 2023
1 parent 3884b65 commit 5161523
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
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

0 comments on commit 5161523

Please sign in to comment.