From: Victor Julien Date: Wed, 29 Jan 2020 07:10:59 +0000 (+0100) Subject: decode: fix default-packet-size global variable X-Git-Tag: suricata-5.0.2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72858acf082476f7f5e9df61ef86231f4f62c988;p=thirdparty%2Fsuricata.git decode: fix default-packet-size global variable --- diff --git a/src/decode.c b/src/decode.c index 9d8aace0a7..2f2a822cf4 100644 --- a/src/decode.c +++ b/src/decode.c @@ -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; diff --git a/src/decode.h b/src/decode.h index c31b83792a..62080ab07a 100644 --- a/src/decode.h +++ b/src/decode.h @@ -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)) typedef struct PacketQueue_ {