udp_bind_netif() function
Bind an UDP PCB to a specific netif. After calling this function, all packets received via this PCB are guaranteed to have come in via the specified netif, and all outgoing packets will go out via the specified netif. @see udp_disconnect()
Arguments
netif
netif to bind udp pcb to. Can be NULL.