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

Link local addresses and ARP messages #263

Open
henkelis opened this issue May 20, 2024 · 0 comments
Open

Link local addresses and ARP messages #263

henkelis opened this issue May 20, 2024 · 0 comments

Comments

@henkelis
Copy link

Hi,

I'm using the Ethernet library on an ESP32S3 with an attached W5500. For my use case I want to be able to connect to another host either via a router and DHCP, or via a switch or direct cable-to-cable. I don't want to use static IP addresses if there is no DHCP (as I may be connecting multiple boards to the host), so I've been looking at adding link local/AUTOIP support to Ethernet.

I've "ported" the AUTOIP code from lwIP and made appropriate changes so it works with Ethernet (I can try to acquire a DHCP address, then switch to acquiring a link local address if DHCP fails). It successfully negotiates a link local address, which I then use for a web socket connection.

To send the ARP probe/response and announcement messages, I've resorted to using port 0 on the W5500 in MACRAW mode - if I open in UDP mode, the messages have the IP header attached rather than being plain ARP. I can see that the W5500 is capable of sending plain ARP messages (it does so after I've configured link local) - does anyone know if there's a way to make it do that without having to resort to MACRAW?

Obviously if anyone wants to test out/use my link local code I can upload it.

Mark.

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

No branches or pull requests

1 participant