sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
def.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"

Go to the source code of this file.

Macros

#define PERF_START
#define PERF_STOP(x)
#define LWIP_MAX(x, y)
#define LWIP_MIN(x, y)
#define LWIP_ARRAYSIZE(x)
#define LWIP_MAKEU32(a, b, c, d)
#define NULL   ((void *)0)
#define lwip_htons(x)
#define lwip_ntohs(x)
#define lwip_htonl(x)
#define lwip_ntohl(x)
#define PP_HTONS(x)
#define PP_NTOHS(x)
#define PP_HTONL(x)
#define PP_NTOHL(x)
#define htons(x)
#define ntohs(x)
#define htonl(x)
#define ntohl(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)
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)

Detailed Description

various utility macros

Definition in file def.h.

Macro Definition Documentation

◆ htonl

#define htonl ( x)
Value:
lwip_htonl(x)

Definition at line 121 of file def.h.

◆ htons

#define htons ( x)
Value:
lwip_htons(x)

Definition at line 119 of file def.h.

◆ LWIP_ARRAYSIZE

#define LWIP_ARRAYSIZE ( x)
Value:
(sizeof(x)/sizeof((x)[0]))

Definition at line 69 of file def.h.

◆ lwip_htonl

#define lwip_htonl ( x)
Value:
((u32_t)(x))

Definition at line 88 of file def.h.

◆ lwip_htons

#define lwip_htons ( x)
Value:
((u16_t)(x))

Definition at line 86 of file def.h.

◆ LWIP_MAKEU32

#define LWIP_MAKEU32 ( a,
b,
c,
d )
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 72 of file def.h.

◆ LWIP_MAX

#define LWIP_MAX ( x,
y )
Value:
(((x) > (y)) ? (x) : (y))

Definition at line 65 of file def.h.

◆ LWIP_MIN

#define LWIP_MIN ( x,
y )
Value:
(((x) < (y)) ? (x) : (y))

Definition at line 66 of file def.h.

◆ lwip_ntohl

#define lwip_ntohl ( x)
Value:
((u32_t)(x))

Definition at line 89 of file def.h.

◆ lwip_ntohs

#define lwip_ntohs ( x)
Value:
((u16_t)(x))

Definition at line 87 of file def.h.

◆ ntohl

#define ntohl ( x)
Value:
lwip_ntohl(x)

Definition at line 122 of file def.h.

◆ ntohs

#define ntohs ( x)
Value:
lwip_ntohs(x)

Definition at line 120 of file def.h.

◆ NULL

#define NULL   ((void *)0)

Definition at line 81 of file def.h.

◆ PERF_START

#define PERF_START

Definition at line 57 of file def.h.

◆ PERF_STOP

#define PERF_STOP ( x)

Definition at line 58 of file def.h.

◆ PP_HTONL

#define PP_HTONL ( x)
Value:
((u32_t)(x))

Definition at line 92 of file def.h.

◆ PP_HTONS

#define PP_HTONS ( x)
Value:
((u16_t)(x))

Definition at line 90 of file def.h.

◆ PP_NTOHL

#define PP_NTOHL ( x)
Value:
((u32_t)(x))

Definition at line 93 of file def.h.

◆ PP_NTOHS

#define PP_NTOHS ( x)
Value:
((u16_t)(x))

Definition at line 91 of file def.h.