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-5.0.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d53f91397b60b096c3f428796239c120efbadb;p=thirdparty%2Fsuricata.git stream: fix global declaration of the config --- diff --git a/src/stream-tcp.c b/src/stream-tcp.c index df392376ba..a99ce68b65 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 e243eebb5e..d5d1866417 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);