| lwIP
    2.1.2
    Lightweight IP stack | 
#include "lwip/opt.h"#include "lwip/udp.h"#include "lwip/def.h"#include "lwip/memp.h"#include "lwip/inet_chksum.h"#include "lwip/ip_addr.h"#include "lwip/ip6.h"#include "lwip/ip6_addr.h"#include "lwip/netif.h"#include "lwip/icmp.h"#include "lwip/icmp6.h"#include "lwip/stats.h"#include "lwip/snmp.h"#include "lwip/dhcp.h"#include <string.h>| Functions | |
| void | udp_init (void) | 
| void | udp_input (struct pbuf *p, struct netif *inp) | 
| err_t | udp_send (struct udp_pcb *pcb, struct pbuf *p) | 
| err_t | udp_sendto (struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port) | 
| err_t | udp_sendto_if (struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) | 
| err_t | udp_sendto_if_src (struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip) | 
| err_t | udp_bind (struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) | 
| void | udp_bind_netif (struct udp_pcb *pcb, const struct netif *netif) | 
| err_t | udp_connect (struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) | 
| void | udp_disconnect (struct udp_pcb *pcb) | 
| void | udp_recv (struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg) | 
| void | udp_remove (struct udp_pcb *pcb) | 
| struct udp_pcb * | udp_new (void) | 
| struct udp_pcb * | udp_new_ip_type (u8_t type) | 
| void | udp_netif_ip_addr_changed (const ip_addr_t *old_addr, const ip_addr_t *new_addr) | 
User Datagram Protocol module
The code for the User Datagram Protocol UDP & UDPLite (RFC 3828).
See also UDP 
| void udp_init | ( | void | ) | 
Initialize this module.
Process an incoming UDP datagram.
Given an incoming UDP datagram (as a chain of pbufs) this function finds a corresponding UDP PCB and hands over the pbuf to the pcbs recv function. If no pcb is found or the datagram is incorrect, the pbuf is freed.
| p | pbuf to be demultiplexed to a UDP PCB (p->payload pointing to the UDP header) | 
| inp | network interface on which the datagram was received. |