Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

common_defs.h

Go to the documentation of this file.
00001 /**
00002  * @file   common_defs.h
00003  * @author Chris Green <cmg@sourcefire.com>
00004  * @date   Fri Jun 20 15:47:49 2003
00005  * 
00006  * @brief  common include stuff I use all the time
00007  * 
00008  * 
00009  */
00010 
00011 #ifndef _COMMON_DEFS_H
00012 #define _COMMON_DEFS_H
00013 
00014 #ifndef DEBUG
00015     #ifndef INLINE
00016         #define INLINE inline
00017     #endif
00018 
00019     #define FLOWASSERT(a)  
00020 #else
00021     #ifdef INLINE
00022         #undef INLINE
00023     #endif
00024     #define INLINE
00025     #include <assert.h>
00026     #define FLOWASSERT(a) assert(a)
00027 #endif /* DEBUG */
00028 
00029 #define ONE_MBYTE (1024 * 1024)
00030 #define ONE_HOUR  3600
00031 
00032 #define FULLBITS 0xFFFFFFFF
00033 
00034 #ifndef IP_MAXPACKET
00035 #define IP_MAXPACKET 65535
00036 #endif
00037 
00038 #ifndef WIN32
00039 /* for inet_ntoa */
00040 #include <sys/types.h>
00041 #include <sys/socket.h>
00042 #include <netinet/in.h>
00043 #include <arpa/inet.h>
00044 #endif /* WIN32 */
00045 
00046 #endif /* _COMMON_DEFS_H */

Generated on Sun May 14 14:51:15 2006 by  doxygen 1.4.2