42 #define WORDS_LITTLEENDIAN 1
46 #define ERRLIST_PREDEFINED 1
49 #define HAVE_SNPRINTF 1
52 #define HAVE_STRERROR 1
55 #define HAVE_STDLIB_H 1
58 #define HAVE_STDINT_H 1
61 #define HAVE_STRING_H 1
64 #define HAVE_UNISTD_H 1
67 #define HAVE_LIBPCAP 1
70 #define HAVE_VSWPRINTF 1
73 #define HAVE_WPRINTF 1
76 #define HAVE_WCHAR_H 1
81 #ifndef SIZEOF_LONG_INT
82 #define SIZEOF_LONG_INT 4
85 #ifdef ENABLE_RESPONSE
86 #define VERSION_ENABLE_RESPONSE "-FlexRESP"
88 #define VERSION_ENABLE_RESPONSE
92 #define VERSION_DEBUG " [DEBUG] "
97 #define LIBPCAP_ACCUMULATES
104 #define VERSION "2.9.17.1"VERSION_ENABLE_RESPONSE"-WIN32"VERSION_DEBUG
105 #define PACKAGE "snort"
116 #define _WIN32_WINNT 0x0502
118 #define NTDDI_VERSION 0x05020000
124 #include <winsock2.h>
127 #pragma warning( disable : 4028 )
132 #pragma warning( default : 4028 )
134 #include <sys/timeb.h>
143 #include <ws2tcpip.h>
160 #ifndef INET6_ADDRSTRLEN
161 #define INET6_ADDRSTRLEN 46
164 #if defined(WIN32) && !defined(inline)
165 #define inline __inline
174 #define O_SYNC 0x0080
179 #define CDECL __cdecl
185 #define SIGNAL_SNORT_RELOAD 1
186 #define SIGNAL_SNORT_DUMP_STATS 30
187 #define SIGNAL_SNORT_ROTATE_STATS 31
196 #define S_ISDIR(x) (((x) & 0170000) == 0040000)
197 #define S_IRWXU 0000700
198 #define S_IRWXG 0000070
199 #define S_IROTH 0000004
200 #define S_IXOTH 0000001
202 #define bcopy(src, dst, count) memcpy((void *)dst, (const void *)src, (size_t) count)
203 #define bzero(addr, count) memset((addr), 0, (count))
205 #define mkdir(x, y) _mkdir(x)
206 #define snprintf _snprintf
207 #define strncasecmp strnicmp
208 #define strcasecmp stricmp
209 #define ftruncate _chsize
211 #define vsnprintf _vsnprintf
212 #define strdup _strdup
214 #define IXDR_GET_LONG(buf) ((long)ntohl((u_long)*(buf)++))
215 #define IXDR_GET_ENUM(buf, t) ((t)IXDR_GET_LONG(buf))
216 #define RPC_MSG_VERSION ((u_long) 2)
218 char *
strtok_r(
char *s1,
const char *s2,
char **lasts);
220 int inet_pton(
int af,
const char *src,
void *dst);
250 #define ifr_addr ifr_ifru.ifru_addr
251 #define ifr_dstaddr ifr_ifru.ifru_dstaddr
252 #define ifr_broadaddr ifr_ifru.ifru_broadaddr
253 #define ifr_flags ifr_ifru.ifru_flags
254 #define ifr_metric ifr_ifru.ifru_metric
255 #define ifr_mtu ifr_ifru.ifru_metric
256 #define ifr_media ifr_ifru.ifru_metric
257 #define ifr_data ifr_ifru.ifru_data
261 #define RUSAGE_SELF 0
262 #define RUSAGE_CHILDREN -1
292 if (c ==
' ' || c ==
'\t' || c ==
'\v')
298 #if defined(ENABLE_WIN32_SERVICE)
299 #define SERVICE_CMDLINE_PARAM "/SERVICE"
300 #define SERVICE_INSTALL_CMDLINE_PARAM "/INSTALL"
301 #define SERVICE_UNINSTALL_CMDLINE_PARAM "/UNINSTALL"
302 #define SERVICE_SHOW_CMDLINE_PARAM "/SHOW"
303 int SnortServiceMain(
int argc,
char* argv[]);
307 #define S_IFIFO _S_IFIFO
312 #define __FUNCTION__ "dont know"
314 #define __FUNCTION__ __func__
__inline int isblank(int c)
int gettimeofday(struct timeval *, struct timezone *)
void PrintDeviceList(const char *)
char * print_interface(const char *)
int inet_aton(const char *cp, struct in_addr *addr)
void * GetAdapterFromList(void *, int)
int inet_pton(int af, const char *src, void *dst)
char * strtok_r(char *s1, const char *s2, char **lasts)
struct sockaddr ifru_broadaddr
union ifreq::@102 ifr_ifru
struct sockaddr ifru_dstaddr
struct sockaddr ifru_addr