@ -381,6 +383,8 @@ static int DetectDetectionFilterTestSig1(void) {
p.ip4h=&ip4h;
p.ip4h->ip_src.s_addr=0x01010101;
p.ip4h->ip_dst.s_addr=0x02020202;
p.sp=1024;
p.dp=80;
DetectEngineCtx*de_ctx=DetectEngineCtxInit();
if(de_ctx==NULL){
@ -389,7 +393,7 @@ static int DetectDetectionFilterTestSig1(void) {
de_ctx->flags|=DE_QUIET;
s=de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"detection_filter Test\"; detection_filter: track by_dst, count 4, seconds 60; sid:1;)");
s=de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any 80 (msg:\"detection_filter Test\"; detection_filter: track by_dst, count 4, seconds 60; sid:1;)");
if(s==NULL){
gotoend;
}
@ -454,6 +458,8 @@ static int DetectDetectionFilterTestSig2(void) {
p.ip4h=&ip4h;
p.ip4h->ip_src.s_addr=0x01010101;
p.ip4h->ip_dst.s_addr=0x02020202;
p.sp=1024;
p.dp=80;
DetectEngineCtx*de_ctx=DetectEngineCtxInit();
if(de_ctx==NULL){
@ -462,7 +468,7 @@ static int DetectDetectionFilterTestSig2(void) {
de_ctx->flags|=DE_QUIET;
s=de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"detection_filter Test 2\"; detection_filter: track by_dst, count 4, seconds 60; sid:10;)");
s=de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any 80 (msg:\"detection_filter Test 2\"; detection_filter: track by_dst, count 4, seconds 60; sid:10;)");