]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: remove unused tcp reuse flow flag
authorVictor Julien <vjulien@oisf.net>
Mon, 27 Feb 2023 14:41:36 +0000 (15:41 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 27 Feb 2023 14:41:36 +0000 (15:41 +0100)
src/flow-hash.c
src/flow.h

index 89180d7ad807643f9a949f6fb52ccc6b90fb3498..d90c32889c93b22c71139b47cacac530235315e0 100644 (file)
@@ -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 */
index de8d21f97ea730759f86fe5ad1bf8a090543d5da..c0a91e5f11a66e4707e35b2fcdfaa4b63463d29a 100644 (file)
@@ -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)