From: Michael Brown Date: Thu, 19 Apr 2018 16:32:07 +0000 (+0100) Subject: [tcp] Add missing packed attribute on struct tcp_header X-Git-Tag: v1.20.1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e901e6b73b6b0f0c6ec251963da412eaa2121db9;p=thirdparty%2Fipxe.git [tcp] Add missing packed attribute on struct tcp_header Debugged-by: Mark Rutland Debugged-by: Heinrich Schuchardt Signed-off-by: Michael Brown --- diff --git a/src/include/ipxe/tcp.h b/src/include/ipxe/tcp.h index 21be3ca8a..f5508fe2b 100644 --- a/src/include/ipxe/tcp.h +++ b/src/include/ipxe/tcp.h @@ -26,7 +26,7 @@ struct tcp_header { uint16_t win; /* Advertised window */ uint16_t csum; /* Checksum */ uint16_t urg; /* Urgent pointer */ -}; +} __attribute__ (( packed )); /** @defgroup tcpopts TCP options * @{