From: Victor Julien Date: Wed, 29 Jan 2020 10:55:27 +0000 (+0100) Subject: stream: fix global declaration of the config X-Git-Tag: suricata-6.0.0-beta1~760 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29f54a34ae608ed0fda2d8f10e753ccabf7cee02;p=thirdparty%2Fsuricata.git stream: fix global declaration of the config --- diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 1ce7ffe6bd..20bac5e94e 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -116,6 +116,7 @@ static SCMutex ssn_pool_mutex = SCMUTEX_INITIALIZER; /**< init only, protect ini static uint64_t ssn_pool_cnt = 0; /** counts ssns, protected by ssn_pool_mutex */ #endif +TcpStreamCnf stream_config; uint64_t StreamTcpReassembleMemuseGlobalCounter(void); SC_ATOMIC_DECLARE(uint64_t, st_memuse); diff --git a/src/stream-tcp.h b/src/stream-tcp.h index c1566bf407..b7acaafcff 100644 --- a/src/stream-tcp.h +++ b/src/stream-tcp.h @@ -103,7 +103,7 @@ typedef struct StreamTcpThread_ { TcpReassemblyThreadCtx *ra_ctx; } StreamTcpThread; -TcpStreamCnf stream_config; +extern TcpStreamCnf stream_config; void StreamTcpInitConfig (char); void StreamTcpFreeConfig(char); void StreamTcpRegisterTests (void);