]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow-time: disable remainder of the old timeout code
authorVictor Julien <victor@inliniac.net>
Mon, 1 Dec 2014 18:18:45 +0000 (19:18 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 17 Dec 2014 14:52:11 +0000 (15:52 +0100)
Disable registration code that was looking for threadvars
and slots as timeout handling is now done in a live engine.

src/flow-timeout.c

index 4f146ab83f81af38e2bbe508d16cf3a5ed59c6a7..c14493fcc073719e625200334597284250cb1df8 100644 (file)
@@ -61,7 +61,7 @@
 #include "app-layer.h"
 
 #include "util-profiling.h"
-
+#if 0
 static TmSlot *stream_pseudo_pkt_stream_tm_slot = NULL;
 static ThreadVars *stream_pseudo_pkt_stream_TV = NULL;
 
@@ -71,13 +71,14 @@ static ThreadVars *stream_pseudo_pkt_detect_prev_TV = NULL;
 
 static TmSlot *stream_pseudo_pkt_decode_tm_slot = NULL;
 static ThreadVars *stream_pseudo_pkt_decode_TV = NULL;
-
+#endif
 /**
  * \internal
  * \brief Flush out if we have any unattended packets.
  */
 static inline void FlowForceReassemblyFlushPendingPseudoPackets(void)
 {
+#if 0
     /* we don't lock the queue, since flow manager is dead */
     if (stream_pseudo_pkt_decode_tm_slot->slot_post_pq.len == 0)
         return;
@@ -91,7 +92,7 @@ static inline void FlowForceReassemblyFlushPendingPseudoPackets(void)
         SCLogError(SC_ERR_TM_THREADS_ERROR, "Received error from FFR on "
                    "flushing packets through decode->.. TMs");
     }
-
+#endif
     return;
 }
 
@@ -734,6 +735,7 @@ void FlowForceReassembly(void)
  */
 void FlowForceReassemblySetup(int detect_disabled)
 {
+#if 0
     /* get StreamTCP TM's slot and TV containing this slot */
     stream_pseudo_pkt_stream_tm_slot = TmSlotGetSlotForTM(TMM_STREAMTCP);
     if (stream_pseudo_pkt_stream_tm_slot == NULL) {
@@ -812,4 +814,5 @@ void FlowForceReassemblySetup(int detect_disabled)
     }
 
     return;
+#endif
 }