@ -5988,7 +6000,7 @@ int SigTestContentAndIsdataatKeywords01Real (int mpm_type) {
de_ctx->flags|=DE_QUIET;
de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTestContentAndIsdataatKeywords01 \"; content:\"HTTP\"; isdataat:404, relative; sid:101;)");
de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest36ContentAndIsdataatKeywords01 \"; content:\"HTTP\"; isdataat:404, relative; sid:101;)");
@ -6100,7 +6112,7 @@ int SigTestContentAndIsdataatKeywords02Real (int mpm_type) {
de_ctx->flags|=DE_QUIET;
de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTestContentAndIsdataatKeywords01 \"; content:\"HTTP\"; isdataat:500, relative; sid:101;)");
de_ctx->sig_list=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest36ContentAndIsdataatKeywords01 \"; content:\"HTTP\"; isdataat:500, relative; sid:101;)");
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pcre and content) \"; content:\"php\"; pcre:\"/require(_once)?/i\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (content)\n");
result=0;
}
SigFree(s);
/* content */
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (content) \"; content:\"match something\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (content)\n");
result=0;
}
SigFree(s);
/* uricontent */
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (uricontent) \"; uricontent:\"match something\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (uricontent)\n");
result=0;
}
SigFree(s);
/* pcre */
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pcre) \"; pcre:\"/e?idps rule[sz]/i\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (pcre)\n");
result=0;
}
SigFree(s);
/* flow */
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flow) \"; flow:to_server; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (flow)\n");
result=0;
}
SigFree(s);
/* dsize */
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (dsize) \"; dsize:100; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (dsize)\n");
result=0;
}
SigFree(s);
/* flowbits */
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flowbits) \"; flowbits:unset; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (flowbits)\n");
result=0;
}
SigFree(s);
/* flowvar
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flowvar) \"; flowvar:XXXXXX; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (flowvar)\n");
result=0;
}
SigFree(s);
*/
/* pktvar
s=SigInit(&de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pktvar) \"; pktvar:XXXX; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(&de_ctx,s))
{
printf("SigTest40IPOnly03: Failed: Got a IPOnly signature (pktvar)\n");