]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: fix global declaration of the config
authorVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2020 10:55:27 +0000 (11:55 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 11 Feb 2020 19:38:50 +0000 (20:38 +0100)
src/stream-tcp.c
src/stream-tcp.h

index 1ce7ffe6bd639ba7fca7f908a9d4098c8346bb3d..20bac5e94ed21c72ffe4a92ec74864ba27198b7c 100644 (file)
@@ -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);
 
index c1566bf4073106ccbbf30cc6ef27c1720b6febf8..b7acaafcffca6eb7d32546996853dc8c1527f8a8 100644 (file)
@@ -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);