@ -959,17 +959,17 @@ static int DetectThresholdTestSig7(void) {
TimeGet ( & p - > ts ) ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
TimeSetIncrementTime ( 200 ) ;
@ -977,17 +977,17 @@ static int DetectThresholdTestSig7(void) {
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
if ( alerts = = 1 & & drops = = 6 )
@ -1052,17 +1052,17 @@ static int DetectThresholdTestSig8(void) {
TimeGet ( & p - > ts ) ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
TimeSetIncrementTime ( 200 ) ;
@ -1070,17 +1070,17 @@ static int DetectThresholdTestSig8(void) {
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
if ( alerts = = 2 & & drops = = 6 )
@ -1145,17 +1145,17 @@ static int DetectThresholdTestSig9(void) {
TimeGet ( & p - > ts ) ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
TimeSetIncrementTime ( 200 ) ;
@ -1163,17 +1163,17 @@ static int DetectThresholdTestSig9(void) {
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
if ( alerts = = 2 & & drops = = 2 )
@ -1238,17 +1238,17 @@ static int DetectThresholdTestSig10(void) {
TimeGet ( & p - > ts ) ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
TimeSetIncrementTime ( 200 ) ;
@ -1256,17 +1256,17 @@ static int DetectThresholdTestSig10(void) {
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
if ( alerts = = 1 & & drops = = 1 )
@ -1331,17 +1331,17 @@ static int DetectThresholdTestSig11(void) {
TimeGet ( & p - > ts ) ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
TimeSetIncrementTime ( 200 ) ;
@ -1349,17 +1349,17 @@ static int DetectThresholdTestSig11(void) {
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
if ( alerts = = 1 & & drops = = 4 )
@ -1424,17 +1424,17 @@ static int DetectThresholdTestSig12(void) {
TimeGet ( & p - > ts ) ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
TimeSetIncrementTime ( 200 ) ;
@ -1442,17 +1442,17 @@ static int DetectThresholdTestSig12(void) {
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
SigMatchSignatures ( & th_v , de_ctx , det_ctx , p ) ;
alerts + = PacketAlertCheck ( p , 10 ) ;
drops + = ( ( p - > action & ACTION_DROP ) ? 1 : 0 ) ;
drops + = ( ( TEST_PACKET_ACTION ( p , ACTION_DROP ) ) ? 1 : 0 ) ;
p - > action = 0 ;
if ( alerts = = 1 & & drops = = 2 )