napatech: reduce size of Packet structure

Put napatech packet vars in the union that is meant for this type of
data.
pull/8042/head
Victor Julien 2 years ago
parent e4b46e0763
commit a7333a3ea5

@ -505,7 +505,9 @@ typedef struct Packet_
#ifdef HAVE_DPDK #ifdef HAVE_DPDK
DPDKPacketVars dpdk_v; DPDKPacketVars dpdk_v;
#endif #endif
#ifdef HAVE_NAPATECH
NapatechPacketVars ntpv;
#endif
/* A chunk of memory that a plugin can use for its packet vars. */ /* A chunk of memory that a plugin can use for its packet vars. */
uint8_t plugin_v[PLUGIN_VAR_SIZE]; uint8_t plugin_v[PLUGIN_VAR_SIZE];
@ -644,9 +646,6 @@ typedef struct Packet_
#ifdef PROFILING #ifdef PROFILING
PktProfiling *profile; PktProfiling *profile;
#endif #endif
#ifdef HAVE_NAPATECH
NapatechPacketVars ntpv;
#endif
} Packet; } Packet;
/** highest mtu of the interfaces we monitor */ /** highest mtu of the interfaces we monitor */

Loading…
Cancel
Save