DHCP server (external) information for dhcp snooping prevention

bobo1974
Posts: 26
Joined: Fri Feb 08, 2019 2:14 pm

DHCP server (external) information for dhcp snooping prevention

Postby bobo1974 » Wed Apr 01, 2020 3:55 pm

For DHCP snooping prevention - that is: to prevent rogues DHCP servers to serve IP addresses to clients - I need to get the source mac or IP of the serving DHCP server that gave my esp32 its IP address.
I will then store it to compare it later at the next connection (my usecase makes that my devices are always in the same network environment).

Is there a way to get that information? Ip or Mac of the DHCP protocol packets?

bobo1974
Posts: 26
Joined: Fri Feb 08, 2019 2:14 pm

Re: DHCP server (external) information for dhcp snooping prevention

Postby bobo1974 » Thu Apr 02, 2020 8:25 pm

I have searched again in the esp-idf documentation with no luck.

Usually this info is taken quite easily from the dhcp protocol messages.

Is this implemented or planned to be?

Who is online

Users browsing this forum: No registered users and 115 guests