From 0b120bbe341d7344879df0b746a4fad74c0ff11f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 25 Apr 2019 16:52:41 +0200 Subject: [PATCH] suricata: expose system as global --- src/suricata.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.47.2