From 45f83f7636c7af04c1c490ffaec91239d77acf04 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 2 Sep 2008 11:35:37 +0200 Subject: [PATCH] branching test --- config.h.in | 10 ++++++++++ libtool | 4 ++-- src/detect.c | 9 +-------- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/config.h.in b/config.h.in index 5a1898acfb..9c0c9f0ca1 100644 --- a/config.h.in +++ b/config.h.in @@ -6,6 +6,16 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the `net' library (-lnet). */ +#undef HAVE_LIBNET + +/* Define to 1 if you have the `netfilter_queue' library (-lnetfilter_queue). + */ +#undef HAVE_LIBNETFILTER_QUEUE + +/* Define to 1 if you have the `nfnetlink' library (-lnfnetlink). */ +#undef HAVE_LIBNFNETLINK + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H diff --git a/libtool b/libtool index dee25f0a43..6f40de12e8 100755 --- a/libtool +++ b/libtool @@ -85,7 +85,7 @@ AR_FLAGS="cru" LTCC="gcc" # LTCC compiler flags. -LTCFLAGS="-g -O2" +LTCFLAGS="-O0 -g" # A language-specific compiler. CC="gcc" @@ -6740,7 +6740,7 @@ AR_FLAGS="cru" LTCC="gcc" # LTCC compiler flags. -LTCFLAGS="-g -O2" +LTCFLAGS="-O0 -g" # A language-specific compiler. CC="g++" diff --git a/src/detect.c b/src/detect.c index 627af946b4..4434dbf88a 100644 --- a/src/detect.c +++ b/src/detect.c @@ -209,19 +209,12 @@ void SigLoadSignatures (void) fclose(fp); printf("SigLoadSignatures: %d successfully loaded from file. %d sigs failed to load\n", good, bad); - /* http_ua -- for the log-httplog module */ - sig = SigInit("alert tcp any any -> any any (msg:\"HTTP UA cap\"; flow:to_server; content:\"User-Agent:\"; depth:400; pcre:\"/^User-Agent: (?P.*)\\r\\n/m\"; noalert; sid:4;)"); - if (sig == NULL) - return; - prevsig->next = sig; - prevsig = sig; - //#endif /* Setup the signature group lookup structure and * pattern matchers */ SigGroupBuild(sig_list); -abort(); +//abort(); } /* check if a certain sid alerted, this is used in the test functions */