]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
napatech: reduce size of Packet structure
authorVictor Julien <vjulien@oisf.net>
Fri, 14 Oct 2022 07:39:11 +0000 (09:39 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 19 Oct 2022 21:03:24 +0000 (23:03 +0200)
Put napatech packet vars in the union that is meant for this type of
data.

src/decode.h

index e98725d327f909f1d6210055912ff45cdf0197eb..f4324717e81d1300ea49358deb5c2863e11654e8 100644 (file)
@@ -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 */