The Pedigree Project  0.1
Macros | Functions
def.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"
+ Include dependency graph for def.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PERF_START   /* null definition */
 
#define PERF_STOP(x)   /* null definition */
 
#define LWIP_MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define LWIP_MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define LWIP_ARRAYSIZE(x)   (sizeof(x)/sizeof((x)[0]))
 
#define LWIP_MAKEU32(a, b, c, d)
 
#define NULL   ((void *)0)
 
#define lwip_htons(x)   (x)
 
#define lwip_ntohs(x)   (x)
 
#define lwip_htonl(x)   (x)
 
#define lwip_ntohl(x)   (x)
 
#define PP_HTONS(x)   (x)
 
#define PP_NTOHS(x)   (x)
 
#define PP_HTONL(x)   (x)
 
#define PP_NTOHL(x)   (x)
 

Functions

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)
 

Detailed Description

various utility macros

Definition in file def.h.

Macro Definition Documentation

#define LWIP_MAKEU32 (   a,
  b,
  c,
 
)
Value:
(((u32_t)((a) & 0xff) << 24) | \
((u32_t)((b) & 0xff) << 16) | \
((u32_t)((c) & 0xff) << 8) | \
(u32_t)((d) & 0xff))

Create u32_t value from bytes

Definition at line 80 of file def.h.