From: Victor Julien Date: Fri, 14 Oct 2022 07:39:11 +0000 (+0200) Subject: napatech: reduce size of Packet structure X-Git-Tag: suricata-7.0.0-beta1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7333a3ea5c60cf4e67cfe7da6c9653d8da60983;p=thirdparty%2Fsuricata.git napatech: reduce size of Packet structure Put napatech packet vars in the union that is meant for this type of data. --- diff --git a/src/decode.h b/src/decode.h index e98725d327..f4324717e8 100644 --- a/src/decode.h +++ b/src/decode.h @@ -505,7 +505,9 @@ typedef struct Packet_ #ifdef HAVE_DPDK DPDKPacketVars dpdk_v; #endif - +#ifdef HAVE_NAPATECH + NapatechPacketVars ntpv; +#endif /* A chunk of memory that a plugin can use for its packet vars. */ uint8_t plugin_v[PLUGIN_VAR_SIZE]; @@ -644,9 +646,6 @@ typedef struct Packet_ #ifdef PROFILING PktProfiling *profile; #endif -#ifdef HAVE_NAPATECH - NapatechPacketVars ntpv; -#endif } Packet; /** highest mtu of the interfaces we monitor */