summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2022-08-25 17:26:37 +0000
committerDamien George <damien@micropython.org>2024-07-24 14:59:01 +1000
commit7fe8f030eea0015962e729eae1f1c309dc83a469 (patch)
tree102b2080a914ee6cd35358b010ee3f7960e86798
parentba98533454eef5ab5783039f9929351c8f54d005 (diff)
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 <felix@dogcraft.de>
-rw-r--r--ports/rp2/lwip_inc/lwipopts.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/rp2/lwip_inc/lwipopts.h b/ports/rp2/lwip_inc/lwipopts.h
index 691b228db..5f37ecdac 100644
--- a/ports/rp2/lwip_inc/lwipopts.h
+++ b/ports/rp2/lwip_inc/lwipopts.h
@@ -26,7 +26,10 @@
#define LWIP_NETIF_EXT_STATUS_CALLBACK 1
#define LWIP_NETIF_STATUS_CALLBACK 1
-#define LWIP_IPV6 0
+#define LWIP_IPV4 1
+#define LWIP_IPV6 1
+#define LWIP_ND6_NUM_DESTINATIONS 4
+#define LWIP_ND6_QUEUEING 0
#define LWIP_DHCP 1
#define LWIP_DHCP_CHECK_LINK_UP 1
#define DHCP_DOES_ARP_CHECK 0 // to speed DHCP up