This global will be set to TRUE if detect is disabled. The reason for
adding a global is that there currently is no clean way to pass
configuration options to management threads.
/** Maximum packets to simultaneously process. */
intmax_t max_pending_packets;
+/** global indicating if detection is enabled */
+int g_detect_disabled = 0;
+
/** set caps or not */
int sc_set_caps;
suri->pid_filename = optarg;
}
else if(strcmp((long_opts[option_index]).name, "disable-detection") == 0) {
- suri->disabled_detect = 1;
+ g_detect_disabled = suri->disabled_detect = 1;
SCLogInfo("detection engine disabled");
}
else if(strcmp((long_opts[option_index]).name, "fatal-unittests") == 0) {