|
|
|
@ -1580,6 +1580,11 @@ int main(int argc, char **argv)
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the global run mode */
|
|
|
|
/* Set the global run mode */
|
|
|
|
run_mode = suri.run_mode;
|
|
|
|
run_mode = suri.run_mode;
|
|
|
|
|
|
|
|
/* run_mode should be set here */
|
|
|
|
|
|
|
|
if (suri.run_mode == RUNMODE_UNKNOWN) {
|
|
|
|
|
|
|
|
usage(argv[0]);
|
|
|
|
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (suri.run_mode == RUNMODE_UNITTEST)
|
|
|
|
if (suri.run_mode == RUNMODE_UNITTEST)
|
|
|
|
return SuriRunUnittests(0, suri.regex_arg);
|
|
|
|
return SuriRunUnittests(0, suri.regex_arg);
|
|
|
|
@ -1702,11 +1707,6 @@ int main(int argc, char **argv)
|
|
|
|
DefragInit();
|
|
|
|
DefragInit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (suri.run_mode == RUNMODE_UNKNOWN) {
|
|
|
|
|
|
|
|
usage(argv[0]);
|
|
|
|
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (suri.run_mode == RUNMODE_ENGINE_ANALYSIS) {
|
|
|
|
if (suri.run_mode == RUNMODE_ENGINE_ANALYSIS) {
|
|
|
|
SCLogInfo("== Carrying out Engine Analysis ==");
|
|
|
|
SCLogInfo("== Carrying out Engine Analysis ==");
|
|
|
|
char *temp = NULL;
|
|
|
|
char *temp = NULL;
|
|
|
|
|