@ -166,7 +166,7 @@ static int DetectDnsQueryTest01(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google \" ; nocase; sid:1;) " ) ;
if ( s = = NULL ) {
@ -287,13 +287,13 @@ static int DetectDnsQueryTest02(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google.com \" ; nocase; sid:1;) " ) ;
if ( s = = NULL ) {
goto end ;
}
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google.net \" ; nocase; sid:2;) " ) ;
if ( s = = NULL ) {
@ -432,7 +432,7 @@ static int DetectDnsQueryTest03(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns tcp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" content: \" google \" ; nocase; dns_query; sid:1;) " ) ;
if ( s = = NULL ) {
@ -529,7 +529,7 @@ static int DetectDnsQueryTest04(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns tcp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google \" ; nocase; sid:1;) " ) ;
if ( s = = NULL ) {
@ -680,13 +680,13 @@ static int DetectDnsQueryTest05(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns tcp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google.com \" ; nocase; sid:1;) " ) ;
if ( s = = NULL ) {
goto end ;
}
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns tcp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google.net \" ; nocase; sid:2;) " ) ;
if ( s = = NULL ) {
@ -842,14 +842,14 @@ static int DetectDnsQueryTest06(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google \" ; nocase; "
" pcre: \" /google \\ .com$/i \" ; sid:1;) " ) ;
if ( s = = NULL ) {
goto end ;
}
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google \" ; nocase; "
" pcre: \" /^ \\ .[a-z]{2,3}$/iR \" ; sid:2;) " ) ;
@ -977,19 +977,19 @@ static int DetectDnsQueryTest07(void) {
de_ctx - > mpm_matcher = DEFAULT_MPM ;
de_ctx - > flags | = DE_QUIET ;
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google.com \" ; nocase; sid:1;) " ) ;
if ( s = = NULL ) {
goto end ;
}
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test dns_query option \" ; "
" dns_query; content: \" google.net \" ; nocase; sid:2;) " ) ;
if ( s = = NULL ) {
goto end ;
}
s = DetectEngineAppendSig ( de_ctx , " alert dns any any -> any any "
s = DetectEngineAppendSig ( de_ctx , " alert dns udp any any -> any any "
" (msg: \" Test Z flag event \" ; "
" app-layer-event:dns.z_flag_set; sid:3;) " ) ;
if ( s = = NULL ) {