* - maybe by accessing it just and hoping threading doesn't hurt
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "detect.h"
* - Print [drop] as well if appropriate
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "detect.h"
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "detect.h"
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "detect.h"
* \author Breno Silva <breno.silva@gmail.com>
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "detect.h"
* YAML configuration loader.
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
+#include "eidps-common.h"
#include <yaml.h>
* \todo Consider using HashListTable to allow easy dumping of all data.
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <limits.h>
-#include <string.h>
-#include <errno.h>
-
#include "eidps-common.h"
#include "conf.h"
#include "util-hash.h"
#ifndef __CONF_H__
#define __CONF_H__
-#include <inttypes.h>
-
/**
* The default log directory.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pthread.h>
-#include <sys/time.h>
-#include <limits.h>
+#include "eidps-common.h"
+
#include "time.h"
#include "eidps.h"
/* Copyright (c) 2009 Victor Julien <victor@inliniac.net> */
+#include "eidps-common.h"
#include "decode.h"
#include "decode-ethernet.h"
#include "decode-events.h"
* \author Breno Silva <breno.silva@gmail.com>
*/
-
+#include "eidps-common.h"
#include "eidps.h"
#include "decode.h"
#include "decode-events.h"
#ifndef __DECODE_IPV4_H__
#define __DECODE_IPV4_H__
-#include <sys/types.h>
-#include <pcap.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <net/if.h>
-
#define IPV4_HEADER_LEN 20 /**< Header length */
#define IPV4_OPTMAX 40 /**< Max options length */
#define IPV4_MAXPACKET_LEN 65535 /**< Maximum packet size */
#ifndef __DECODE_IPV6_H__
#define __DECODE_IPV6_H__
-#include <sys/types.h>
-#include <pcap.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <net/if.h>
-
#define IPV6_HEADER_LEN 40
#define IPV6_MAXPACKET 65535 /* maximum packet size */
#define IPV6_MAX_OPT 40
* \author Breno Silva Pinto <breno.silva@gmail.com> */
#include "eidps-common.h"
-
#include "decode.h"
#include "decode-ppp.h"
#include "decode-events.h"
#ifndef __DECODE_PPPOE_H__
#define __DECODE_PPPOE_H__
-#include <sys/types.h>
-#include <pcap.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <net/if.h>
-
#include "decode.h"
#include "threadvars.h"
/* Copyright (c) 2009 Victor Julien <victor@inliniac.net> */
+#include "eidps-common.h"
#include "decode.h"
#include "decode-sll.h"
#include "decode-events.h"
#ifndef __DECODE_TCP_H__
#define __DECODE_TCP_H__
-#include <sys/types.h>
-#include <pcap.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <net/if.h>
-
#define TCP_HEADER_LEN 20
#define TCP_OPTLENMAX 40
#define TCP_OPTMAX 20 /* every opt is at least 2 bytes
//#define DBG_THREADS
#define COUNTERS
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "threadvars.h"
#include "source-nfq.h"
#define IPPROTO_DCCP 33
#endif
+/* pcap provides this, but we don't want to depend on libpcap */
+#ifndef DLT_EN10MB
+#define DLT_EN10MB 1
+#endif
+
#endif /* __DECODE_H__ */
* \author Brian Rectanus <brectanu@gmail.com>
*/
-#include <pcre.h>
-#include <stdlib.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
* \author Brian Rectanus <brectanu@gmail.com>
*/
-#include <pcre.h>
-#include <stdlib.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
/* CLASSTYPE part of the detection engine. */
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
*
*/
-#include <ctype.h>
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-content.h"
#include "detect-uricontent.h"
-
-#include "eidps-common.h"
#include "detect-engine-mpm.h"
#include "util-mpm.h"
-
#include "flow.h"
#include "flow-var.h"
#include "detect-flow.h"
-
#include "util-unittest.h"
#include "util-print.h"
-
#include "threads.h"
int DetectContentMatch (ThreadVars *, DetectEngineThreadCtx *, Packet *, Signature *, SigMatch *);
* Checksum keyword for the the detection engine.
*/
-#include <pcre.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
* \author Breno Silva <breno.silva@gmail.com>
*/
+#include "eidps-common.h"
+#include "eidps.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-
-#include "eidps.h"
-
#include "decode-events.h"
/* Need to get the DEvents[] array */
#define DETECT_EVENTS
#include "detect-decode-event.h"
-
#include "util-unittest.h"
-#include <pcre.h>
-#include <ctype.h>
-
#define PARSE_REGEX "\\S[0-9A-z_]+[.][A-z+]+$"
static pcre *parse_regex;
/* DEPTH part of the detection engine. */
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-
-#include <pcre.h>
#include "detect-content.h"
#include "detect-pcre.h"
/* DISTANCE part of the detection engine. */
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-
-#include <pcre.h>
#include "detect-content.h"
#include "detect-uricontent.h"
#include "detect-pcre.h"
#include "util-unittest.h"
-#include <pcre.h>
-
#define PARSE_REGEX "^(?:\\\")?(<|>)?([0-9]+)(?:(<>)([0-9]+))?(?:\\\")?$"
static pcre *parse_regex;
static pcre_extra *parse_regex_study;
* XXX we need to unit test the hell out of this code
*/
+#include "eidps-common.h"
+
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
* XXX unit test the join code
*/
+#include "eidps-common.h"
+
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
/* Multi pattern matcher */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
*
* TODO move this out of the detection plugin structure */
+#include "eidps-common.h"
+
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
* FLOW part of the detection engine.
*/
-#include <pcre.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
*
*/
-#include <ctype.h>
-#include <pcre.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
*
* Copyright (C) 2008 by Victor Julien <victor@inliniac.net> */
-#include <ctype.h>
-#include <pcre.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
* ISDATAAT part of the detection engine.
*/
-#include <pcre.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
/* METADATA part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectMetadataSetup (DetectEngineCtx *, Signature *s, SigMatch *m, char *str);
/* MSG part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectMsgSetup (DetectEngineCtx *de_ctx, Signature *s, SigMatch *m, char *msgstr);
/* NOALERT part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
-
-#include <pcre.h>
int DetectNoalertSetup (DetectEngineCtx *, Signature *, SigMatch *, char *);
#include "detect.h"
#include "flow-var.h"
-#include <pcre.h>
#include "detect-content.h"
#include "detect-uricontent.h"
#include "detect-pcre.h"
/* OFFSET part of the detection engine. */
+#include "eidps-common.h"
+
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-#include <pcre.h>
#include "detect-content.h"
#include "detect-pcre.h"
/* signature parser */
-#include <pcre.h>
-
#include "eidps-common.h"
#include "debug.h"
/* PCRE part of the detection engine. */
-#include <pcre.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
*
* Copyright (C) 2008 by Victor Julien <victor@inliniac.net> */
-#include <ctype.h>
-#include <pcre.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
/* PRIORITY part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectPrioritySetup (DetectEngineCtx *, Signature *s, SigMatch *m, char *sidstr);
/* RAWBYTES part of the detection engine. */
+#include "eidps-common.h"
+
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-#include <pcre.h>
#include "detect-content.h"
#include "detect-pcre.h"
*
* Note: non Snort compatible. */
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-#include <pcre.h>
-
int DetectRecursiveSetup (DetectEngineCtx *, Signature *, SigMatch *, char *);
void DetectRecursiveRegister (void) {
/* REFERENCE part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectReferenceSetup (DetectEngineCtx *, Signature *s, SigMatch *m, char *str);
/* REV part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectRevSetup (DetectEngineCtx *, Signature *s, SigMatch *m, char *str);
/* SID part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectSidSetup (DetectEngineCtx *, Signature *s, SigMatch *m, char *sidstr);
* Stream size for the engine.
*/
-#include <pcre.h>
-#include <string.h>
-
-#include "eidps.h"
+#include "eidps-common.h"
#include "stream-tcp.h"
#include "util-unittest.h"
#include "detect.h"
/* THRESHOLD part of the detection engine. */
-#include "decode.h"
+#include "eidps-common.h"
#include "detect.h"
-#include "flow-var.h"
int DetectThresholdSetup (DetectEngineCtx *, Signature *s, SigMatch *m, char *str);
*
* Copyright (C) 2008 by Victor Julien <victor@inliniac.net> */
-#include <ctype.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
* WINDOW tcp window option, part of the detection engine.
*/
-#include <pcre.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "decode.h"
* \author Victor Julien <victor@inliniac.net>
* \todo within logic is not Snort compat atm: it is applied to pcre and uricontent as well */
+#include "eidps-common.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
-
-#include <pcre.h>
#include "detect-content.h"
#include "detect-uricontent.h"
#include "detect-pcre.h"
/* Basic detection engine */
-#include <pcre.h>
-
+#include "eidps-common.h"
#include "eidps.h"
#include "debug.h"
#include "detect.h"
#define TRUE 1
#define FALSE 0
+#include <sys/types.h> /* for gettid(2) */
+#define _GNU_SOURCE
+#define __USE_GNU
+#include <sys/syscall.h>
+#include <sched.h> /* for sched_setaffinity(2) */
+
+#include <stdio.h>
#include <stdint.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <unistd.h>
#include <inttypes.h>
+#include <limits.h>
+#include <ctype.h>
+#include <string.h>
+
+#include <pcre.h>
+#include <pthread.h>
+
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <sys/time.h>
+#include <sys/signal.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <net/if.h>
#include <assert.h>
#define BUG_ON(x) assert(!(x))
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "eidps-common.h"
-#include <errno.h>
-#include <stdio.h>
-#include <sys/signal.h>
#include <getopt.h>
-/** \todo These are covered by HAVE_* macros */
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <netinet/in.h>
-
#include "eidps.h"
#include "decode.h"
#include "detect.h"
* multiple times, we can operate on all of them.
*/
-#include <ctype.h>
+#include "eidps-common.h"
#include "threads.h"
#include "flow-bit.h"
#include "flow.h"
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
+#include "eidps-common.h"
#include "threads.h"
#include "decode.h"
#include "debug.h"
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
+#include "eidps-common.h"
#include "threads.h"
#include "debug.h"
-
#include "flow-queue.h"
#include "flow-util.h"
* multiple times, we can operate on all of them.
*/
-#include <ctype.h>
-
#include "eidps-common.h"
#include "threads.h"
#include "flow-var.h"
+#include "eidps-common.h"
#include "host.h"
Host *HostAlloc(void) {
#define __HOST_H__
#include "decode.h"
-
#include "util-hash.h"
#include "util-bloomfilter-counting.h"
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "debug.h"
#include "detect.h"
* multiple times, we can operate on all of them.
*/
-#include <ctype.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "pkt-var.h"
* to be the default in flexresp and iptables
*/
-#include <pthread.h>
-#include <sys/signal.h>
-#include <libnet.h>
#include "eidps-common.h"
+
+#include <libnet.h>
+
#include "decode.h"
#include "decode-ipv4.h"
#include "decode-tcp.h"
* just return 0 always, error handling is a TODO in the threading model (VJ)
*/
-#include <pthread.h>
-#include <sys/signal.h>
-#include <libnet.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "packet-queue.h"
*
*/
-#include <pthread.h>
-#include <sys/signal.h>
-
#include "eidps-common.h"
#include "eidps.h"
#include "decode.h"
*
*/
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <sys/signal.h>
-
-/** \todo These are covered by HAVE_* macros */
-#include <pthread.h>
-
#if LIBPCAP_VERSION_MAJOR == 1
#include <pcap/pcap.h>
#else
#include <pcap.h>
#endif
+#include "eidps-common.h"
#include "eidps.h"
#include "decode.h"
#include "packet-queue.h"
/* Copyright (c) 2009 Victor Julien <victor@inliniac.net> */
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <sys/signal.h>
-
-/** \todo These are covered by HAVE_* macros */
-#include <pthread.h>
-
#if LIBPCAP_VERSION_MAJOR == 1
#include <pcap/pcap.h>
#else
#include <pcap.h>
#endif
+#include "eidps-common.h"
#include "eidps.h"
#include "decode.h"
#include "packet-queue.h"
* \todo segment insert fasttrack: most pkts are in order
*/
-#include "eidps.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
+#include "eidps.h"
#include "debug.h"
#include "detect.h"
#include "flow.h"
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
/* 2009 Gurvinder Singh <gurvindersinghdahiya@gmail.com>*/
-
-#include <malloc.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
#include "eidps-common.h"
#include "decode.h"
#include "debug.h"
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
+#include "eidps-common.h"
#include "decode.h"
#ifdef DBG_THREADS
-#include <pthread.h>
int mutex_lock_dbg (pthread_mutex_t *m) {
int ret;
- printf("%16s: (%p) locking mutex %p\n", __FUNCTION__, pthread_self(), m);
+ printf("%16s: (%"PRIuMAX") locking mutex %p\n", __FUNCTION__, (uintmax_t)pthread_self(), m);
ret = pthread_mutex_lock(m);
- printf("%16s: (%p) locked mutex %p ret %" PRId32 "\n", __FUNCTION__, pthread_self(), m, ret);
+ printf("%16s: (%"PRIuMAX") locked mutex %p ret %" PRId32 "\n", __FUNCTION__, (uintmax_t)pthread_self(), m, ret);
return(ret);
}
int mutex_trylock_dbg (pthread_mutex_t *m) {
int ret;
- printf("%16s: (%p) trylocking mutex %p\n", __FUNCTION__, pthread_self(), m);
+ printf("%16s: (%"PRIuMAX") trylocking mutex %p\n", __FUNCTION__, (uintmax_t)pthread_self(), m);
ret = pthread_mutex_trylock(m);
- printf("%16s: (%p) trylocked mutex %p ret %" PRId32 "\n", __FUNCTION__, pthread_self(), m, ret);
+ printf("%16s: (%"PRIuMAX") trylocked mutex %p ret %" PRId32 "\n", __FUNCTION__, (uintmax_t)pthread_self(), m, ret);
return(ret);
}
int mutex_unlock_dbg (pthread_mutex_t *m) {
int ret;
- printf("%16s: (%p) unlocking mutex %p\n", __FUNCTION__, pthread_self(), m);
+ printf("%16s: (%"PRIuMAX") unlocking mutex %p\n", __FUNCTION__, (uintmax_t)pthread_self(), m);
ret = pthread_mutex_unlock(m);
- printf("%16s: (%p) unlocked mutex %p ret %" PRId32 "\n", __FUNCTION__, pthread_self(), m, ret);
+ printf("%16s: (%"PRIuMAX") unlocked mutex %p ret %" PRId32 "\n", __FUNCTION__, (uintmax_t)pthread_self(), m, ret);
return(ret);
}
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
-#include <stdio.h>
-#include <string.h>
-
#include "eidps-common.h"
#include "packet-queue.h"
#include "tm-modules.h"
* \author Anoop Saldanha <poonaatsoc@gmail.com>
*/
-#include <sys/types.h> /* for gettid(2) */
-#define _GNU_SOURCE
-#define __USE_GNU
-#include <sys/syscall.h>
-#include <sched.h> /* for sched_setaffinity(2) */
-
+#include "eidps-common.h"
#include "eidps.h"
#include "stream.h"
#include "threadvars.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdint.h>
-#include <ctype.h>
-#include <inttypes.h>
+#include "eidps-common.h"
-/* XXX replace this by a better algo */
+/** \todo replace this by a better algo */
uint8_t nocasetable[256];
#define _nc(c) nocasetable[(c)]
* counters.
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-
#include "eidps-common.h"
-
#include "util-bloomfilter-counting.h"
-
#include "util-unittest.h"
/* type: 1, 2 or 4 for 8, 16, or 32 bit counters
/* Bitwise bloom filter implementation. */
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-
#include "eidps-common.h"
-
#include "util-bloomfilter.h"
-
#include "util-unittest.h"
BloomFilter *BloomFilterInit(uint32_t size, uint8_t iter, uint32_t (*Hash)(void *, uint16_t, uint8_t, uint32_t)) {
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <string.h>
-#include <inttypes.h>
-
+#include "eidps-common.h"
#include "util-byte.h"
#include "util-unittest.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <arpa/inet.h>
+#include "eidps-common.h"
static uint32_t cidrs[33];
* The 'Free' pointer can be used to have the API free your
* hashed data. If it's NULL it's the callers responsebility */
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-#include <stdint.h>
-#include <inttypes.h>
-
+#include "eidps-common.h"
#include "util-hash.h"
-
#include "util-unittest.h"
HashTable* HashTableInit(uint32_t size, uint32_t (*Hash)(struct HashTable_ *, void *, uint16_t), char (*Compare)(void *, uint16_t, void *, uint16_t), void (*Free)(void *)) {
* The 'Free' pointer can be used to have the API free your
* hashed data. If it's NULL it's the callers responsebility */
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-#include <stdint.h>
-#include <inttypes.h>
-
+#include "eidps-common.h"
#include "util-hashlist.h"
-
#include "util-unittest.h"
HashListTable* HashListTableInit(uint32_t size, uint32_t (*Hash)(struct HashListTable_ *, void *, uint16_t), char (*Compare)(void *, uint16_t, void *, uint16_t), void (*Free)(void *)) {
//#define PRINTMATCH
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <errno.h>
-#include <stdint.h>
-#include <inttypes.h>
-
+#include "eidps-common.h"
#include "eidps.h"
#include "detect.h"
#include "util-bloomfilter.h"
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <errno.h>
-
+#include "eidps-common.h"
#include "eidps.h"
#include "util-bloomfilter.h"
#include "util-mpm-b3g.h"
* - make sure runtime counters can be disabled (at compile time)
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <errno.h>
-
#include "eidps-common.h"
+#include "eidps.h"
#include "util-mpm.h"
#include "util-mpm-wumanber.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <errno.h>
-
#include "eidps-common.h"
#include "util-mpm.h"
/* Copyright (c) 2008 by Victor Julien <victor@inliniac.net> */
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-
#include "eidps-common.h"
-
#include "util-pool.h"
-
#include "util-unittest.h"
Pool *PoolInit(uint32_t size, uint32_t prealloc_size, void *(*Alloc)(void *), void *AllocData, void (*Free)(void *))
/* Copyright (c) 2008 by Victor Julien <victor@inliniac.net> */
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-
#include "eidps-common.h"
void PrintRawUriFp(FILE *fp, uint8_t *buf, uint32_t buflen) {
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
#include "eidps-common.h"
#include "util-unittest.h"