]> 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>
Wed, 12 Feb 2020 09:56:25 +0000 (10:56 +0100)
src/stream-tcp.c
src/stream-tcp.h

index df392376ba752522ad4e2d467be62f5795da4977..a99ce68b65b29d8330aa1b1e71718fac5f7d32ab 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 e243eebb5ef7b0cd084ce7347dcfa1102cfe7e8b..d5d1866417a2a77da4dfc3dc55970ccdb4bda985 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);