def.c File Reference

#include "lwip/opt.h"
#include "lwip/def.h"

Functions

u16_t lwip_htons (u16_t n)
u16_t lwip_ntohs (u16_t n)
u32_t lwip_htonl (u32_t n)
u32_t lwip_ntohl (u32_t n)

Detailed Description

Common functions used throughout the stack.

Function Documentation

u32_t lwip_htonl u32_t  n  ) 
 

Convert an u32_t from host- to network byte order.

Parameters:
n u32_t in host byte order
Returns:
n in network byte order

u16_t lwip_htons u16_t  n  ) 
 

Convert an u16_t from host- to network byte order.

Parameters:
n u16_t in host byte order
Returns:
n in network byte order

u32_t lwip_ntohl u32_t  n  ) 
 

Convert an u32_t from network- to host byte order.

Parameters:
n u32_t in network byte order
Returns:
n in host byte order

u16_t lwip_ntohs u16_t  n  ) 
 

Convert an u16_t from network- to host byte order.

Parameters:
n u16_t in network byte order
Returns:
n in host byte order


Generated on Fri Feb 14 12:33:21 2014 for 2014.1_doc by  doxygen 1.4.5