From: Victor Julien Date: Thu, 25 Apr 2019 14:52:41 +0000 (+0200) Subject: suricata: expose system as global X-Git-Tag: suricata-5.0.0-rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b120bbe341d7344879df0b746a4fad74c0ff11f;p=thirdparty%2Fsuricata.git suricata: expose system as global --- diff --git a/src/suricata.c b/src/suricata.c index 33aeb51e94..8f07df9013 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -223,6 +223,8 @@ int sc_set_caps = FALSE; /** highest mtu of the interfaces we monitor */ int g_default_mtu = 0; +bool g_system = false; + /** disable randomness to get reproducible results accross runs */ #ifndef AFLFUZZ_NO_RANDOM int g_disable_randomness = 0; @@ -2125,7 +2127,7 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri) suri->run_mode = RUNMODE_ENGINE_ANALYSIS; suri->offline = IsRunModeOffline(suri->run_mode); - suri->system = IsRunModeSystem(suri->run_mode); + g_system = suri->system = IsRunModeSystem(suri->run_mode); ret = SetBpfString(optind, argv); if (ret != TM_ECODE_OK)