OpenVPN
Macros
basic.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOOL_CAST(x)   ((x) ? (true) : (false))
 
#define SIZE(x)   (sizeof(x)/sizeof(x[0]))
 
#define CLEAR(x)   memset(&(x), 0, sizeof(x))
 
#define IPV4_NETMASK_HOST   0xffffffffU
 

Macro Definition Documentation

◆ BOOL_CAST

#define BOOL_CAST (   x)    ((x) ? (true) : (false))

Definition at line 27 of file basic.h.

◆ CLEAR

#define CLEAR (   x)    memset(&(x), 0, sizeof(x))

Definition at line 33 of file basic.h.

◆ IPV4_NETMASK_HOST

#define IPV4_NETMASK_HOST   0xffffffffU

Definition at line 35 of file basic.h.

◆ SIZE

#define SIZE (   x)    (sizeof(x)/sizeof(x[0]))

Definition at line 30 of file basic.h.