Unable to get incoming ARPs with esp_wifi_internal_reg_rxcb in WIFI STA
Posted: Wed Jan 24, 2024 7:37 pm
Hi
for a project I'm working, I'm intercepting incoming WIFI traffic with esp_wifi_internal_reg_rxcb.
I have noticed in WIFI STA mode, only the packets for the DST-MAC = ESP32 wifi sta mac are forwarded to the callback.
The problem I have is that ARP packets entering the ESP32 WIFI are not being sent to the callback function.
I'm working on a PROXY-ARP function so I need to catch the incoming ARP packets which don't reach the my callback function. In WIFI AP mode it works but I need it to work in WIFI STA mode.
Is there any low level callback function to intercept ARP packets? I have digging into lwip etharp and it seems low level wifi functions connects to etharp then it forward packets but ARP.
Thanks
Antonio
for a project I'm working, I'm intercepting incoming WIFI traffic with esp_wifi_internal_reg_rxcb.
I have noticed in WIFI STA mode, only the packets for the DST-MAC = ESP32 wifi sta mac are forwarded to the callback.
The problem I have is that ARP packets entering the ESP32 WIFI are not being sent to the callback function.
I'm working on a PROXY-ARP function so I need to catch the incoming ARP packets which don't reach the my callback function. In WIFI AP mode it works but I need it to work in WIFI STA mode.
Is there any low level callback function to intercept ARP packets? I have digging into lwip etharp and it seems low level wifi functions connects to etharp then it forward packets but ARP.
Thanks
Antonio