Skip to content

ports/esp32: Add initial support for IPV6. #11111

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Carglglz
Copy link
Contributor

If anyone is interested here are the reference esp-idf files:

  • esp-idf/components/esp_event/include/esp_event_legacy.h
  • esp-idf/components/esp_wifi/include/esp_wifi_types.h
  • esp-idf/components/esp_netif/include/esp_netif_types.h
  • esp-idf/examples/common_components/protocol_examples_common/connect.c

Tools to check that the device got a ipv6:

$ avahi-resolve-host-name esp32.local -6
esp32.local fe80::7e9e:bdff:fe3d:9df4

$ ping6 esp32.local
PING6(56=40+8+8 bytes) fe80::8c0:7ee3:70f3:e87e%en0 --> fe80::7e9e:bdff:fe3d:9df4%en0
16 bytes from fe80::7e9e:bdff:fe3d:9df4%en0, icmp_seq=0 hlim=255 time=131.644 ms
16 bytes from fe80::7e9e:bdff:fe3d:9df4%en0, icmp_seq=1 hlim=255 time=131.828 ms
16 bytes from fe80::7e9e:bdff:fe3d:9df4%en0, icmp_seq=2 hlim=255 time=62.806 ms
^C
--- esp32.local ping6 statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 62.806/108.759/131.828/32.494 ms

Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
@Carglglz Carglglz marked this pull request as ready for review June 30, 2023 01:13
@darconeous darconeous mentioned this pull request Oct 5, 2023
@dpgeorge
Copy link
Member

dpgeorge commented Aug 6, 2024

Since this PR was opened there has been a new .ipconfig() API added to the network module and the network interfaces, to provide support for IPv6. And the rp2 port has IPv6 enabled.

Can you please explain how this PR works with the new .ipconfig() methods? What exactly does this PR do? If we want to enable full IPv6 support on esp32, including configuration support via .ipconfig(), what needs to be done?

@Carglglz
Copy link
Contributor Author

Can you please explain how this PR works with the new .ipconfig() methods? What exactly does this PR do?

I haven't checked the new .ipconfig() methods so I have no idea, this just automatically gets an IPv6 address on a GOT_IP event.

If we want to enable full IPv6 support on esp32, including configuration support via .ipconfig(), what needs to be done?

No idea and not sure if it is even supported? see https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/lwip.html#ipv6-support

@nullr0ute
Copy link

No idea and not sure if it is even supported?

It states there that is is supported, but it's only supported by auto configuration (IE DHCPv6 or SLAAC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy