udp.h File Reference

#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_pcbudp_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 Documentation

#define udp_flags ( pcb   )     ((pcb)->flags)

Definition at line 90 of file udp.h.

#define UDP_FLAGS_NOCHKSUM   0x01

Definition at line 57 of file udp.h.

Referenced by do_bind(), and do_connect().

#define UDP_FLAGS_UDPLITE   0x02

Definition at line 58 of file udp.h.

Referenced by do_bind(), and do_connect().

#define UDP_HLEN   8

Definition at line 48 of file udp.h.

#define udp_setflags ( pcb,
 )     ((pcb)->flags = (f))

Definition at line 91 of file udp.h.

Referenced by do_bind(), and do_connect().


Function Documentation

err_t udp_bind ( struct udp_pcb pcb,
struct ip_addr ipaddr,
uInt16  port 
)

Referenced by do_bind().

err_t udp_connect ( struct udp_pcb pcb,
struct ip_addr ipaddr,
uInt16  port 
)

Referenced by do_connect().

void udp_init ( void   ) 

Referenced by tcpip_thread().

void udp_input ( struct pbuf p,
struct netif inp 
)

uInt8 udp_lookup ( struct ip_hdr iphdr,
struct netif inp 
)

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().

err_t udp_send ( struct udp_pcb pcb,
struct pbuf p 
)

Referenced by do_send().


Variable Documentation

struct udp_hdr PACK_STRUCT_STRUCT


Generated on Tue Dec 12 08:52:11 2006 for UbixOS V2 by  doxygen 1.4.7