]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed build issue with exta/; bump build to 149
authorRuss Combs <rucombs@cisco.com>
Tue, 28 Apr 2015 19:07:25 +0000 (15:07 -0400)
committerRuss Combs <rucombs@cisco.com>
Tue, 28 Apr 2015 19:07:25 +0000 (15:07 -0400)
ChangeLog
src/detection/detect.cc
src/filters/sfrf.h
src/main/CMakeLists.txt
src/main/Makefile.am
src/main/build.h
src/main/snort_config.h
src/utils/CMakeLists.txt
src/utils/Makefile.am

index b5d7f2c08aa6c73078aa4700cf8ffa4eba31255e..5bcb6b78c9fc8e749463831dd85c87a6df657f73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+15/04/28 - build 149
+
+-- fixed build issue with extras
+
 15/04/28 - build 148
 
 -- fixed default validation issue reported by Sancho Panza
index bec4ae60c91cddd39d6f807be50e483a24c41161..387bbbb3bb779022ac14ecd90acc16b6447e360e 100644 (file)
@@ -121,7 +121,8 @@ void snort_inspect(Packet* p)
             "Packet errors = 0x%x, ignoring traffic!\n",
             (p->ptrs.decode_flags & DECODE_ERR_FLAGS)); );
 
-        if ( SnortConfig::inline_mode() && SnortConfig::checksum_drop(p->ptrs.decode_flags & DECODE_ERR_CKSUM_ALL) )
+        if ( SnortConfig::inline_mode() and
+            SnortConfig::checksum_drop(p->ptrs.decode_flags & DECODE_ERR_CKSUM_ALL) )
         {
             DEBUG_WRAP(DebugMessage(DEBUG_DECODE,
                 "Dropping bad packet\n"); );
index 72fa5e30e29ab9e3c6a1883dde4c805b51694551..9e456fc79afa3993135c5cf6d403091a0c505ab5 100644 (file)
@@ -168,20 +168,19 @@ int SFRF_TestThreshold(
 void SFRF_ShowObjects(RateFilterConfig*);
 
 static inline void EnableInternalEvent(RateFilterConfig* config, uint32_t sid)
-{   
+{
     if (config == NULL)
         return;
 
     config->internal_event_mask |= (1 << sid);
 }
 
-static inline int InternalEventIsEnabled(RateFilterConfig* config, uint32_t sid)
+static inline bool InternalEventIsEnabled(RateFilterConfig* config, uint32_t sid)
 {
     if (config == NULL)
         return 0;
 
     return (config->internal_event_mask & (1 << sid));
 }
-
 #endif
 
index 454c09cabf21856a0e1cb1373db9be4200495691..d4381612557e51c90804332ed7ed2bdeebf4c3bc 100644 (file)
@@ -1,8 +1,10 @@
 
 set (INCLUDES
-    thread.h
+    policy.h
+    snort_config.h
     snort_debug.h
     snort_types.h
+    thread.h
 )
 
 add_library (main STATIC
@@ -14,12 +16,10 @@ add_library (main STATIC
     modules.cc
     modules.h
     policy.cc
-    policy.h
     shell.h
     shell.cc
     snort.cc
     snort.h
-    snort_config.h
     snort_debug.cc
     snort_config.cc
     snort_module.h
index 1e53e510c92e0ff532a8bdec07a008b02cfe48ae..747f0cb0995ffdc97f4a45530fb8ec49a496e6d3 100644 (file)
@@ -5,6 +5,8 @@ x_includedir = $(pkgincludedir)/main
 noinst_LIBRARIES = libmain.a
 
 x_include_HEADERS = \
+policy.h \
+snort_config.h \
 snort_debug.h \
 snort_types.h \
 thread.h
@@ -18,14 +20,12 @@ help.h \
 modules.cc \
 modules.h \
 policy.cc \
-policy.h \
 shell.cc \
 shell.h \
 snort.cc \
 snort.h \
 snort_config.cc \
 snort_config.h \
-snort_config.h \
 snort_debug.cc \
 snort_module.cc \
 snort_module.h \
index 84f13dd263cd24e1a2cf64b875214c30f9543173..31a46f41a2faa6e344059b08358fec25247c5149 100644 (file)
@@ -7,5 +7,5 @@
 //                                               //
 //-----------------------------------------------//
 
-#define BUILD "148"
+#define BUILD "149"
 
index 2e5143a535f2a44857492dfffd2662bf35f8d897..6cb5b9cd48f6e153322125d3a52e6b739cec08f3 100644 (file)
@@ -256,7 +256,7 @@ public:
 
     bool stdin_rules;
 
-    char pid_filename[STD_BUF];
+    char pid_filename[1024];
     char* orig_log_dir;      /* set in case of chroot */
 
     int thiszone;
index 9fc2eb1fa6ca5e92ef9bb0f52fb65ae24be5a454..e55b544f74e07847c68a3e296992642a5d824a0f 100644 (file)
@@ -23,6 +23,7 @@ set( UTIL_INCLUDES
     sfportobject.h
     snort_bounds.h
     stats.h
+    util.h
 )
 
 ADD_LIBRARY( utils STATIC
@@ -48,7 +49,6 @@ ADD_LIBRARY( utils STATIC
     strvec.h
     stats.cc
     util.cc
-    util.h
     util_jsnorm.cc 
     util_jsnorm.h
     util_math.cc 
index e376f85bcd45606b8a7e3a45682bac96b0ebabbb..38956bfe386a83aa4c05a7c149e3f59c106bfd7e 100644 (file)
@@ -13,7 +13,8 @@ sflsq.h \
 sfmemcap.h \
 sfportobject.h \
 snort_bounds.h \
-stats.h
+stats.h \
+util.h
 
 libutils_a_SOURCES = \
 boyer_moore.cc boyer_moore.h \
@@ -29,7 +30,7 @@ sfsnprintfappend.cc sfsnprintfappend.h \
 snort_bounds.h \
 stats.cc \
 strvec.cc strvec.h \
-util.cc util.h \
+util.cc \
 util_jsnorm.cc util_jsnorm.h \
 util_math.cc util_math.h \
 util_net.cc util_net.h \