From 29f54a34ae608ed0fda2d8f10e753ccabf7cee02 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 29 Jan 2020 11:55:27 +0100 Subject: [PATCH] stream: fix global declaration of the config --- src/stream-tcp.c | 1 + src/stream-tcp.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);