From: Guy Harris Date: Wed, 15 Jan 2014 22:32:39 +0000 (-0800) Subject: Mark the TCP header structure as unaligned. X-Git-Tag: tcpdump-4.6.0~283 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/25d016f61a3b38e9c048090980c6921b30d047f3 Mark the TCP header structure as unaligned. --- diff --git a/tcp.h b/tcp.h index 1ed67bcb..fbd2f452 100644 --- 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)