]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packet src: move pkt_src field up in the structure to fix in an existing hole (found...
authorVictor Julien <victor@inliniac.net>
Thu, 4 Oct 2012 11:20:27 +0000 (13:20 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 4 Oct 2012 11:20:27 +0000 (13:20 +0200)
src/decode.h

index a514e7fa4e04d69ce49011e91c64f2534376a17f..50036192ba87a3f4fba236f2e60021dcceff7d49 100644 (file)
@@ -371,6 +371,9 @@ typedef struct Packet_
     uint16_t flags;
     /* flow */
     uint8_t flowflags;
+
+    uint8_t pkt_src;
+
     struct Flow_ *flow;
 
     struct timeval ts;
@@ -501,8 +504,6 @@ typedef struct Packet_
     uint16_t mpm_offsets[CUDA_MAX_PAYLOAD_SIZE + 1];
 #endif
 
-    uint8_t pkt_src;
-
 #ifdef PROFILING
     PktProfiling profile;
 #endif
@@ -639,6 +640,7 @@ typedef struct DecodeThreadVars_
         (p)->recursion_level = 0;               \
         (p)->flags = 0;                         \
         (p)->flowflags = 0;                     \
+        (p)->pkt_src = 0;                       \
         (p)->flow = NULL;                       \
         (p)->ts.tv_sec = 0;                     \
         (p)->ts.tv_usec = 0;                    \
@@ -690,7 +692,6 @@ typedef struct DecodeThreadVars_
         (p)->root = NULL;                       \
         (p)->livedev = NULL;                    \
         (p)->ReleaseData = NULL;                \
-        (p)->pkt_src = 0;                       \
         PACKET_RESET_CHECKSUMS((p));            \
         PACKET_PROFILING_RESET((p));            \
     } while (0)