October 28, 2021, 12:05:27 pm

Packet sniffing?

Started by DaveShep, February 13, 2019, 09:06:06 pm

Previous topic - Next topic

DaveShep

February 13, 2019, 09:06:06 pm Last Edit: February 13, 2019, 09:41:23 pm by DaveShep
I have several ESP32 devices on a lan of unspecified configuration. They only listen to broadcast packets (255.255.255.255) and do not send out any traffic.

Rather than attempting IP lease by DHCP, or randomly assign a link local address, I would like to consider not assigning an IP at all and just sniff for broadcast packets. This would ensure the devices would work on any lan without configuration.

So, is this possible with the LAN8710A?

And can you point me in the right direction for code, libraries to use or an example. I've not worked at layer 2 before.