udp_sendto_if() function
Send data to a specified address using UDP. The netif used for sending can be specified. This function exists mainly for DHCP, to be able to send UDP packets on a netif that is still down. dst_ip & dst_port are expected to be in the same byte order as in the pcb. @see udp_disconnect() udp_send()
Arguments
pcb
UDP PCB used to send the data.
p
chain of pbuf's to be sent.
dst_ip
Destination IP address.
dst_port
Destination UDP port.
netif
the netif used for sending.
Return value
lwIP error code (@see udp_send for possible error codes)