73#define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y))
74#define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y))
77#define LWIP_ARRAYSIZE(x) (sizeof(x)/sizeof((x)[0]))
80#define LWIP_MAKEU32(a,b,c,d) (((u32_t)((a) & 0xff) << 24) | \
81 ((u32_t)((b) & 0xff) << 16) | \
82 ((u32_t)((c) & 0xff) << 8) | \
89#define NULL ((void *)0)
93#if BYTE_ORDER == BIG_ENDIAN
94#define lwip_htons(x) (x)
95#define lwip_ntohs(x) (x)
96#define lwip_htonl(x) (x)
97#define lwip_ntohl(x) (x)
98#define PP_HTONS(x) (x)
99#define PP_NTOHS(x) (x)
100#define PP_HTONL(x) (x)
101#define PP_NTOHL(x) (x)
104u16_t lwip_htons(u16_t x);
106#define lwip_ntohs(x) lwip_htons(x)
109u32_t lwip_htonl(u32_t x);
111#define lwip_ntohl(x) lwip_htonl(x)
114#ifndef LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
115#define htons(x) lwip_htons(x)
116#define ntohs(x) lwip_ntohs(x)
117#define htonl(x) lwip_htonl(x)
118#define ntohl(x) lwip_ntohl(x)
124#define PP_HTONS(x) ((((x) & 0x00ffUL) << 8) | (((x) & 0xff00UL) >> 8))
125#define PP_NTOHS(x) PP_HTONS(x)
126#define PP_HTONL(x) ((((x) & 0x000000ffUL) << 24) | \
127 (((x) & 0x0000ff00UL) << 8) | \
128 (((x) & 0x00ff0000UL) >> 8) | \
129 (((x) & 0xff000000UL) >> 24))
130#define PP_NTOHL(x) PP_HTONL(x)
142void lwip_itoa(
char* result,
size_t bufsize,
int number);
146int lwip_strnicmp(
const char* str1,
const char* str2,
size_t len);
154char*
lwip_strnstr(
const char* buffer,
const char* token,
size_t n);
int lwip_stricmp(const char *str1, const char *str2)
int lwip_strnicmp(const char *str1, const char *str2, size_t len)
char * lwip_strnstr(const char *buffer, const char *token, size_t n)
void lwip_itoa(char *result, size_t bufsize, int number)