udp_input() is only used within LwIP.
 
Symbols
loading...
Files
loading...

udp_input() function

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.

Syntax

void udp_input (struct pbuf *p,     struct netif *inp);
Implemented in udp.c:193

Arguments

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.

References

LocationReferrerText
udp.c:194
udp_input(struct pbuf *p, struct netif *inp)
udp.h:163
void udp_input (struct pbuf *p, struct netif *inp);
ip4.c:703ip4_input()
udp_input(p, inp);

Call Tree

Functions calling udp_input()
Functions called by udp_input()
all items filtered out
udp_input()
Data read by udp_input()
Data written by udp_input()
udp_input()
udp_input()::udphdr
udp_input()::pcb
udp_input()::prev
udp_input()::uncon_pcb
udp_input()::src
udp_input()::dest
udp_input()::broadcast
udp_input()::for_us
all items filtered out
Type of udp_input()
udp_input()
all items filtered out