]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #499 in SNORT/snort3 from build_199 to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Fri, 3 Jun 2016 18:35:31 +0000 (14:35 -0400)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Fri, 3 Jun 2016 18:35:31 +0000 (14:35 -0400)
Squashed commit of the following:

commit a68639da5f58501b492c5e6f3c0f74cd6298b85b
Author: snorty <snorty@localhost.localdomain>
Date:   Fri Jun 3 13:51:57 2016 -0400

    build 199, fix warnings

ChangeLog
src/detection/detect.cc
src/detection/treenodes.cc
src/main/build.h
src/stream/tcp/tcp_session.cc

index 262f9f7167cf3ec9ceda35239533bfd7d9de871a..d3f4727e37b68d4b0cd7558336478a2ba196a23e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+16/06/03 - build 199
+
+-- add new http_inspect alerts abusive content-length and transfer-encodings
+-- add \b matching to sensitive data
+-- add obfuscation for sensitive data
+-- add support for unprivileged operation
+-- fix link with dynamic DAQ
+-- convert legacy allocations to memory manager for better memory profiling
+
 16/05/27 - build 198
 
 -- add double-decoding to new_http_inspect
index 0393053a8ec07b584bd4d3e665b7446c6ef1f46b..1ba081b0999ff2069f26a4d86cee179b0ad7b9cd 100644 (file)
@@ -337,7 +337,7 @@ static int CheckAddrPort(
         }
     }
 
-    DebugFormat(DEBUG_DETECT, "addr %lx, port %d ", pkt_addr, pkt_port);
+    DebugFormat(DEBUG_DETECT, "addr %s, port %d ", sfip_to_str(pkt_addr), pkt_port);
 
     if (!rule_addr)
         goto bail;
index b08a79eb29a5ed0e481609d93b07d27b385ef7e3..d1e7ddbfb9873ab5ca4c34f0a11414cea42d7f84 100644 (file)
@@ -61,7 +61,7 @@ OptFpList* AddOptFuncToList(RuleOptEvalFunc ro_eval_func, OptTreeNode* otn)
         tmp->next = ofp;
     }
 
-    DebugFormat(DEBUG_CONFIGRULES,"Set OptTestFunc to %p\n", (void*) ro_eval_func);
+    DebugFormat(DEBUG_CONFIGRULES,"Set OptTestFunc to %p\n", (void*)ro_eval_func);
 
     ofp->OptTestFunc = ro_eval_func;
 
index cb8f96dd92e5bf7135e2e13e591c874ef6d52258..40fd6712faa0c6356ff38bd9071d7dcd30c3e1f4 100644 (file)
@@ -10,7 +10,7 @@
 //                                               //
 //-----------------------------------------------//
 
-#define BUILD "198"
+#define BUILD "199"
 
 #endif
 
index 6d4ac7fc47e6d14531230fc8fc9dcdd2d8d44b74..e7a50f384cae584585751c673f8c5e4d6331d131 100644 (file)
@@ -1099,10 +1099,17 @@ int TcpSession::process(Packet* p)
     (
         char flagbuf[9];
         CreateTCPFlagString(p->ptrs.tcph, flagbuf);
+
+        char src_addr[INET6_ADDRSTRLEN];
+        char dst_addr[INET6_ADDRSTRLEN];
+
+        sfip_ntop(p->ptrs.ip_api.get_src(), src_addr, sizeof(src_addr));
+        sfip_ntop(p->ptrs.ip_api.get_dst(), dst_addr, sizeof(dst_addr));
+
         DebugFormat((DEBUG_STREAM|DEBUG_STREAM_STATE),
-        "Got TCP Packet 0x%X:%d ->  0x%X:%d %s\nseq: 0x%X   ack:0x%X  dsize: %u\n",
-        p->ptrs.ip_api.get_src(), p->ptrs.sp, p->ptrs.ip_api.get_dst(), p->ptrs.dp, flagbuf,
-        p->ptrs.tcph->seq(), p->ptrs.tcph->ack(), p->dsize);
+            "Got TCP Packet %s:%d ->  %s:%d %s\nseq: 0x%X   ack:0x%X  dsize: %u\n",
+            src_addr, p->ptrs.sp, dst_addr, p->ptrs.dp, flagbuf,
+            p->ptrs.tcph->seq(), p->ptrs.tcph->ack(), p->dsize);
     );
 
     assert(flow->ssn_server);