cancel
Showing results for 
Search instead for 
Did you mean: 

UDP routing not working as expected with 2 netif interfaces

RPC
Associate III

Hello everyone,

I'm using Netconn snmp over freertos on my project and I found an issue when using 2 netif interfaces. The problem is that when I receive udp messages, the response is always routed to the default netif despite having the LWIP_HOOK_IP4_ROUTE_SRC defined. Seems like in udp, the ip destination of the message received is not saved so we always answer on the default interface, that doesn't happen in tcp communication, where the message received destination ip is saved so in the LWIP_HOOK_IP4_ROUTE_SRC we can check that ip and select the correct the netif interface.

Does anybody know if there is any option that can be activated using a DEFINE or defining a function for that scope?

0 REPLIES 0