From: rcombs Date: Thu, 30 Oct 2014 17:39:40 +0000 (-0400) Subject: tcp options logging for reg test disabled X-Git-Tag: 3.0.0-233~1298^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cadbe8daf11c5f56ecdae511ebeb1d710976942;p=thirdparty%2Fsnort3.git tcp options logging for reg test disabled --- diff --git a/ChangeLog b/ChangeLog index 7e4ccc4c1..2e68c7a2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +127 +-- REG_TEST out logging tcp options for rebuilt packets to match snort bug + 126 -- pulled latest from tom -- added paramaters to doc reference section diff --git a/src/log/log_text.cc b/src/log/log_text.cc index 6ea2285c6..bd5384c10 100644 --- a/src/log/log_text.cc +++ b/src/log/log_text.cc @@ -906,6 +906,10 @@ void LogTCPHeader(TextLog* log, Packet * p) } /* dump the TCP options */ +#ifdef REG_TEST + // emulate snort bug + if ( !PacketWasCooked(p) ) +#endif if(tcph->has_options()) { LogTcpOptions(log, p);