From 2bb1e5a38ab1ec6fe431fb0dfca99b343104bdd9 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 27 Feb 2023 15:41:36 +0100 Subject: [PATCH] flow: remove unused tcp reuse flow flag --- src/flow-hash.c | 2 -- src/flow.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/flow-hash.c b/src/flow-hash.c index 89180d7ad8..d90c32889c 100644 --- a/src/flow-hash.c +++ b/src/flow-hash.c @@ -695,8 +695,6 @@ static Flow *TcpReuseReplace(ThreadVars *tv, FlowLookupStruct *fls, FlowBucket * #ifdef UNITTESTS } #endif - /* tag flow as reused so future lookups won't find it */ - old_f->flags |= FLOW_TCP_REUSED; /* time out immediately */ old_f->timeout_at = 0; /* get some settings that we move over to the new flow */ diff --git a/src/flow.h b/src/flow.h index de8d21f97e..c0a91e5f11 100644 --- a/src/flow.h +++ b/src/flow.h @@ -50,8 +50,8 @@ typedef struct AppLayerParserState_ AppLayerParserState; #define FLOW_TO_SRC_SEEN BIT_U32(0) /** At least one packet from the destination address was seen */ #define FLOW_TO_DST_SEEN BIT_U32(1) -/** Don't return this from the flow hash. It has been replaced. */ -#define FLOW_TCP_REUSED BIT_U32(2) + +// vacancy /** Flow was inspected against IP-Only sigs in the toserver direction */ #define FLOW_TOSERVER_IPONLY_SET BIT_U32(3) -- 2.47.2