]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Mark the TCP header structure as unaligned.
authorGuy Harris <[email protected]>
Wed, 15 Jan 2014 22:32:39 +0000 (14:32 -0800)
committerGuy Harris <[email protected]>
Wed, 15 Jan 2014 22:32:39 +0000 (14:32 -0800)
tcp.h

diff --git a/tcp.h b/tcp.h
index 1ed67bcb262a2ef2d9113d4266d061a1bf41cd67..fbd2f452dc0c53590fc6e995122c331c2e96c482 100644 (file)
--- a/tcp.h
+++ b/tcp.h
@@ -48,7 +48,7 @@ struct tcphdr {
        u_int16_t       th_win;                 /* window */
        u_int16_t       th_sum;                 /* checksum */
        u_int16_t       th_urp;                 /* urgent pointer */
-};
+} UNALIGNED;
 
 #define TH_OFF(th)     (((th)->th_offx2 & 0xf0) >> 4)