Functions

alexb/lib/lwip/contrib/src/include/ipv6/lwip/inet.h File Reference

#include "lwip/opt.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"

Functions

u16_t inet_chksum (void *data, u16_t len)
u16_t inet_chksum_pbuf (struct pbuf *p)
 Calculate a checksum over a chain of pbufs (without pseudo-header, much like inet_chksum only pbufs are used).
u16_t inet_chksum_pseudo (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t proto, u32_t proto_len)
u32_t inet_addr (const char *cp)
s8_t inet_aton (const char *cp, struct in_addr *addr)
u16_t htons (u16_t n)
u16_t ntohs (u16_t n)
u32_t htonl (u32_t n)
u32_t ntohl (u32_t n)

Function Documentation

u32_t htonl ( u32_t  n  ) 
u16_t htons ( u16_t  n  ) 
u32_t inet_addr ( const char *  cp  ) 
s8_t inet_aton ( const char *  cp,
struct in_addr addr 
)
u16_t inet_chksum ( void *  data,
u16_t  len 
)
u16_t inet_chksum_pbuf ( struct pbuf p  ) 

Calculate a checksum over a chain of pbufs (without pseudo-header, much like inet_chksum only pbufs are used).

Parameters:
p pbuf chain over that the checksum should be calculated
Returns:
checksum (as u16_t) to be saved directly in the protocol header
u16_t inet_chksum_pseudo ( struct pbuf p,
struct ip_addr src,
struct ip_addr dest,
u8_t  proto,
u32_t  proto_len 
)
u32_t ntohl ( u32_t  n  ) 
u16_t ntohs ( u16_t  n  ) 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines