/home/aaron/olsrd-current/olsrd/src/core/defs.h File Reference

Go to the source code of this file.

Defines

#define EXPORT(x)   x
#define MAXMESSAGESIZE   1500
#define UDP_IPV4_HDRSIZE   28
#define UDP_IPV6_HDRSIZE   62
#define ARRAYSIZE(x)   (sizeof(x)/sizeof(*(x)))
#define MAX(x, y)   ((x) > (y) ? (x) : (y))
#define MIN(x, y)   ((x) < (y) ? (x) : (y))
#define INLINE   inline
#define ARM_NOWARN_ALIGN(x)   ((void *)(x))
#define ARM_CONST_NOWARN_ALIGN   const void *
#define ROUND_UP_TO_POWER_OF_2(val, pow2)   (((val) + (pow2) - 1) & ~((pow2) - 1))

Enumerations

enum  app_state { STATE_INIT, STATE_RUNNING, STATE_SHUTDOWN, STATE_RECONFIGURE }

Variables

enum app_state app_state

Define Documentation

#define ARM_CONST_NOWARN_ALIGN   const void *
#define ARM_NOWARN_ALIGN (  )     ((void *)(x))
#define ARRAYSIZE (  )     (sizeof(x)/sizeof(*(x)))
#define EXPORT (  )     x

Definition at line 51 of file defs.h.

#define INLINE   inline

Definition at line 73 of file defs.h.

#define MAX ( x,
 )     ((x) > (y) ? (x) : (y))

Definition at line 60 of file defs.h.

#define MAXMESSAGESIZE   1500
#define MIN ( x,
 )     ((x) < (y) ? (x) : (y))

Definition at line 63 of file defs.h.

Referenced by prefix_to_netmask(), and sockaddr_to_string().

#define ROUND_UP_TO_POWER_OF_2 ( val,
pow2   )     (((val) + (pow2) - 1) & ~((pow2) - 1))

Definition at line 87 of file defs.h.

Referenced by _autobuf_enlarge(), abuf_init(), and abuf_pull().

#define UDP_IPV4_HDRSIZE   28

Definition at line 55 of file defs.h.

Referenced by chk_if_changed(), GetIntInfo(), and os_init_interface().

#define UDP_IPV6_HDRSIZE   62

Definition at line 56 of file defs.h.

Referenced by chk_if_changed(), GetIntInfo(), and os_init_interface().


Enumeration Type Documentation

enum app_state
Enumerator:
STATE_INIT 
STATE_RUNNING 
STATE_SHUTDOWN 
STATE_RECONFIGURE 

Definition at line 89 of file defs.h.


Variable Documentation

Definition at line 100 of file main.c.

Generated on Thu May 23 06:00:06 2013 for olsrd by  doxygen 1.6.3