Implemented new function udp_sendto_if which takes the netif to send as an argument (to be able to send on netifs that are down).

This commit is contained in:
goldsimon
2007-11-27 20:13:16 +00:00
parent 3874f5f5e8
commit b4741332e0
4 changed files with 93 additions and 81 deletions

View File

@@ -123,6 +123,7 @@ void udp_recv (struct udp_pcb *pcb,
struct ip_addr *addr,
u16_t port),
void *recv_arg);
err_t udp_sendto_if (struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *dst_ip, u16_t dst_port, struct netif *netif);
err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *dst_ip, u16_t dst_port);
err_t udp_send (struct udp_pcb *pcb, struct pbuf *p);