@ -718,7 +718,10 @@ void FlowForceReassembly(void)
return ;
return ;
}
}
void FlowForceReassemblySetup ( void )
/**
* \ param detect_disabled bool , indicating if we use a detection engine ( true )
*/
void FlowForceReassemblySetup ( int detect_disabled )
{
{
/* get StreamTCP TM's slot and TV containing this slot */
/* get StreamTCP TM's slot and TV containing this slot */
stream_pseudo_pkt_stream_tm_slot = TmSlotGetSlotForTM ( TMM_STREAMTCP ) ;
stream_pseudo_pkt_stream_tm_slot = TmSlotGetSlotForTM ( TMM_STREAMTCP ) ;
@ -737,6 +740,7 @@ void FlowForceReassemblySetup(void)
exit ( EXIT_FAILURE ) ;
exit ( EXIT_FAILURE ) ;
}
}
if ( ! detect_disabled ) {
/* get detect TM's slot and TV containing this slot */
/* get detect TM's slot and TV containing this slot */
stream_pseudo_pkt_detect_tm_slot = TmSlotGetSlotForTM ( TMM_DETECT ) ;
stream_pseudo_pkt_detect_tm_slot = TmSlotGetSlotForTM ( TMM_DETECT ) ;
if ( stream_pseudo_pkt_detect_tm_slot = = NULL ) {
if ( stream_pseudo_pkt_detect_tm_slot = = NULL ) {
@ -759,6 +763,7 @@ void FlowForceReassemblySetup(void)
if ( strcasecmp ( stream_pseudo_pkt_detect_TV - > outqh_name , " packetpool " ) = = 0 ) {
if ( strcasecmp ( stream_pseudo_pkt_detect_TV - > outqh_name , " packetpool " ) = = 0 ) {
stream_pseudo_pkt_detect_TV = NULL ;
stream_pseudo_pkt_detect_TV = NULL ;
}
}
}
SCMutexLock ( & tv_root_lock ) ;
SCMutexLock ( & tv_root_lock ) ;
ThreadVars * tv = tv_root [ TVT_PPT ] ;
ThreadVars * tv = tv_root [ TVT_PPT ] ;