inet.h File Reference

#include "net/arch.h"
#include "net/opt.h"
#include "net/pbuf.h"
#include "net/ipv4/ip_addr.h"

Go to the source code of this file.

Defines

#define htonl(n)   HTONL(n)
#define HTONL(n)   (n)
#define htons(n)   HTONS(n)
#define HTONS(n)   (n)
#define ntohl   htonl
#define NTOHL   HTONL
#define ntohs   htons
#define NTOHS   HTONS

Functions

uInt32 htonl (uInt32 n)
uInt16 htons (uInt16 n)
uInt16 inet_chksum (void *dataptr, uInt16 len)
uInt16 inet_chksum_pbuf (struct pbuf *p)
uInt16 inet_chksum_pseudo (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, uInt8 proto, uInt16 proto_len)


Define Documentation

#define htonl (  )     HTONL(n)

Definition at line 87 of file inet.h.

Referenced by inet_aton().

#define HTONL (  )     (n)

Definition at line 86 of file inet.h.

#define htons (  )     HTONS(n)

Definition at line 66 of file inet.h.

Referenced by arp_arp_input(), arp_query(), ethernetif_input(), ethernetif_output(), and lwip_recvfrom().

#define HTONS (  )     (n)

Definition at line 65 of file inet.h.

#define ntohl   htonl

Definition at line 105 of file inet.h.

#define NTOHL   HTONL

Definition at line 104 of file inet.h.

#define ntohs   htons

Definition at line 81 of file inet.h.

Referenced by lwip_bind(), and lwip_connect().

#define NTOHS   HTONS

Definition at line 80 of file inet.h.


Function Documentation

uInt32 htonl ( uInt32  n  ) 

Definition at line 88 of file net.c.

uInt16 htons ( uInt16  n  ) 

uInt16 inet_chksum ( void *  dataptr,
uInt16  len 
)

uInt16 inet_chksum_pbuf ( struct pbuf p  ) 

uInt16 inet_chksum_pseudo ( struct pbuf p,
struct ip_addr src,
struct ip_addr dest,
uInt8  proto,
uInt16  proto_len 
)


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