Skip to content

Commit 7fe8f03

Browse files
felixdoerredpgeorge
authored andcommitted
rp2/lwip_inc: Enable IPv6 per default on rp2 port.
Having IPv6 support is important, especially for IoT-Devices which might be many, requiring individual IP-addresses. In particular direct access via link-local addresses and having deterministic SLAAC-addresses can be quite convenient. Also in IPv6-only networks or for connecting to IPv6-only services, this is very useful. For the Pico W, there is enough flash and RAM that enabling IPv6 by default is the right choice. Should IPv6 support in a network exist (i.e. there are Router Advertisements), but not provide connectivity, connecting by domain name should not be a problem as DNS will default to return the IPv4-address (if that exists), unless reconfigured at runtime to prefer IPv6. In any case a user can disable obtaining SLAAC-addresses with: <nic>.ipconfig(autoconf6=False) Signed-off-by: Felix Dörre <[email protected]>
1 parent ba98533 commit 7fe8f03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/rp2/lwip_inc/lwipopts.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
#define LWIP_NETIF_EXT_STATUS_CALLBACK 1
2727
#define LWIP_NETIF_STATUS_CALLBACK 1
2828

29-
#define LWIP_IPV6 0
29+
#define LWIP_IPV4 1
30+
#define LWIP_IPV6 1
31+
#define LWIP_ND6_NUM_DESTINATIONS 4
32+
#define LWIP_ND6_QUEUEING 0
3033
#define LWIP_DHCP 1
3134
#define LWIP_DHCP_CHECK_LINK_UP 1
3235
#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up

0 commit comments

Comments
 (0)