def.h

various utility macros

Defines

PERF_START
PERF_STOP(x)
LWIP_MAX(x, y)
LWIP_MIN(x, y)
LWIP_ARRAYSIZE(x)
LWIP_MAKEU32(a, b, c, d)

Create u32_t value from bytes.

NULL
lwip_ntohs(x)
lwip_ntohl(x)
PP_HTONS(x)
PP_NTOHS(x)
PP_HTONL(x)
PP_NTOHL(x)
htons(x)
ntohs(x)
htonl(x)
ntohl(x)

Functions

u16_t lwip_htons(u16_t x)
u32_t lwip_htonl(u32_t x)
void lwip_itoa(char *result, size_t bufsize, int number)
int lwip_strnicmp(const char *str1, const char *str2, size_t len)
int lwip_stricmp(const char *str1, const char *str2)
char *lwip_strnstr(const char *buffer, const char *token, size_t n)
char *lwip_strnistr(const char *buffer, const char *token, size_t n)
int lwip_memcmp_consttime(const void *s1, const void *s2, size_t len)