#include "net/arch.h"#include "net/pbuf.h"#include "net/ipv4/inet.h"#include "net/ipv4/ip.h"#include "net/err.h"Go to the source code of this file.
Data Structures | |
| struct | udp_hdr |
| struct | udp_pcb |
Defines | |
| #define | udp_flags(pcb) ((pcb)->flags) |
| #define | UDP_FLAGS_NOCHKSUM 0x01 |
| #define | UDP_FLAGS_UDPLITE 0x02 |
| #define | UDP_HLEN 8 |
| #define | udp_setflags(pcb, f) ((pcb)->flags = (f)) |
Functions | |
| err_t | udp_bind (struct udp_pcb *pcb, struct ip_addr *ipaddr, uInt16 port) |
| err_t | udp_connect (struct udp_pcb *pcb, struct ip_addr *ipaddr, uInt16 port) |
| void | udp_init (void) |
| void | udp_input (struct pbuf *p, struct netif *inp) |
| uInt8 | udp_lookup (struct ip_hdr *iphdr, struct netif *inp) |
| udp_pcb * | udp_new (void) |
| void | udp_recv (struct udp_pcb *pcb, void(*recv)(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, uInt16 port), void *recv_arg) |
| void | udp_remove (struct udp_pcb *pcb) |
| err_t | udp_send (struct udp_pcb *pcb, struct pbuf *p) |
Variables | |
| udp_hdr | PACK_STRUCT_STRUCT |
| #define UDP_FLAGS_NOCHKSUM 0x01 |
| #define UDP_FLAGS_UDPLITE 0x02 |
| #define udp_setflags | ( | pcb, | |||
| f | ) | ((pcb)->flags = (f)) |
Referenced by do_bind().
Referenced by do_connect().
| void udp_init | ( | void | ) |
Referenced by tcpip_thread().
| struct udp_pcb* udp_new | ( | void | ) |
Referenced by do_bind(), and do_connect().
| void udp_recv | ( | struct udp_pcb * | pcb, | |
| void(*)(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, uInt16 port) | recv, | |||
| void * | recv_arg | |||
| ) |
Referenced by do_bind(), and do_connect().
| void udp_remove | ( | struct udp_pcb * | pcb | ) |
Referenced by do_delconn().
| struct udp_hdr PACK_STRUCT_STRUCT |
1.4.7