]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode: fix default-packet-size global variable
authorVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2020 07:10:59 +0000 (08:10 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 11 Feb 2020 19:38:50 +0000 (20:38 +0100)
src/decode.c
src/decode.h

index 6d7439f516001308447d7ca2cfbceab060aab7cf..41165517e38aaa993d889e8a29ec8388a70d8d94 100644 (file)
@@ -68,6 +68,7 @@
 #include "output-flow.h"
 #include "flow-storage.h"
 
+uint32_t default_packet_size = 0;
 extern bool stats_decoder_events;
 const char *stats_decoder_events_prefix;
 extern bool stats_stream_events;
index 338173df23d40e77bf7bdd0da388d48735c90261..7c9b72586b85fcba12e0257e5e621c0d7086f837 100644 (file)
@@ -615,7 +615,7 @@ extern int g_default_mtu;
 #define DEFAULT_PACKET_SIZE (DEFAULT_MTU + ETHERNET_HEADER_LEN)
 /* storage: maximum ip packet size + link header */
 #define MAX_PAYLOAD_SIZE (IPV6_HEADER_LEN + 65536 + 28)
-uint32_t default_packet_size;
+extern uint32_t default_packet_size;
 #define SIZE_OF_PACKET (default_packet_size + sizeof(Packet))
 
 /** \brief Structure to hold thread specific data for all decode modules */