From a7333a3ea5c60cf4e67cfe7da6c9653d8da60983 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 14 Oct 2022 09:39:11 +0200 Subject: [PATCH] napatech: reduce size of Packet structure Put napatech packet vars in the union that is meant for this type of data. --- src/decode.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 */