@ -1467,6 +1467,7 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
{ " pcap-file-delete " , 0 , 0 , 0 } ,
{ " pcap-file-delete " , 0 , 0 , 0 } ,
{ " simulate-ips " , 0 , 0 , 0 } ,
{ " simulate-ips " , 0 , 0 , 0 } ,
{ " no-random " , 0 , & g_disable_randomness , 1 } ,
{ " no-random " , 0 , & g_disable_randomness , 1 } ,
{ " strict-rule-keywords " , optional_argument , 0 , 0 } ,
/* AFL app-layer options. */
/* AFL app-layer options. */
{ " afl-http-request " , required_argument , 0 , 0 } ,
{ " afl-http-request " , required_argument , 0 , 0 } ,
@ -1887,6 +1888,15 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
return TM_ECODE_FAILED ;
return TM_ECODE_FAILED ;
}
}
suri - > set_datadir = true ;
suri - > set_datadir = true ;
} else if ( strcmp ( ( long_opts [ option_index ] ) . name , " strict-rule-keywords " ) = = 0 ) {
if ( optarg = = NULL ) {
suri - > strict_rule_parsing_string = SCStrdup ( " all " ) ;
} else {
suri - > strict_rule_parsing_string = SCStrdup ( optarg ) ;
}
if ( suri - > strict_rule_parsing_string = = NULL ) {
FatalError ( SC_ERR_MEM_ALLOC , " failed to duplicate 'strict' string " ) ;
}
}
}
break ;
break ;
case ' c ' :
case ' c ' :
@ -2799,6 +2809,7 @@ static int PostConfLoadedSetup(SCInstance *suri)
/* hardcoded initialization code */
/* hardcoded initialization code */
SigTableSetup ( ) ; /* load the rule keywords */
SigTableSetup ( ) ; /* load the rule keywords */
SigTableApplyStrictCommandlineOption ( suri - > strict_rule_parsing_string ) ;
TmqhSetup ( ) ;
TmqhSetup ( ) ;
CIDRInit ( ) ;
CIDRInit ( ) ;