stream: flag TCP streams with gap

pull/7959/head
Eric Leblond 4 years ago committed by Victor Julien
parent a9519778de
commit e6768118da

@ -206,7 +206,8 @@ enum TcpState {
* Per STREAM flags
*/
// bit 0 vacant
/** Flag to indicate that we have seen gap on the stream */
#define STREAMTCP_STREAM_FLAG_HAS_GAP BIT_U16(0)
/** Flag to avoid stream reassembly/app layer inspection for the stream */
#define STREAMTCP_STREAM_FLAG_NOREASSEMBLY BIT_U16(1)
/** we received a keep alive */

@ -1213,6 +1213,7 @@ static int ReassembleUpdateAppLayer (ThreadVars *tv,
AppLayerProfilingStore(ra_ctx->app_tctx, p);
StreamTcpSetEvent(p, STREAM_REASSEMBLY_SEQ_GAP);
(*stream)->flags |= STREAMTCP_STREAM_FLAG_HAS_GAP;
StatsIncr(tv, ra_ctx->counter_tcp_reass_gap);
ssn->lossy_be_liberal = true;

Loading…
Cancel
Save