summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2018-04-19 18:32:07 +0200
committerMichael Brown2018-04-19 20:05:37 +0200
commite901e6b73b6b0f0c6ec251963da412eaa2121db9 (patch)
treefa9f45db79081ed3e13519dcb3b6166c2fe32c80 /src
parent[mii] Separate concepts of MII interface and MII device (diff)
downloadipxe-e901e6b73b6b0f0c6ec251963da412eaa2121db9.tar.gz
ipxe-e901e6b73b6b0f0c6ec251963da412eaa2121db9.tar.xz
ipxe-e901e6b73b6b0f0c6ec251963da412eaa2121db9.zip
[tcp] Add missing packed attribute on struct tcp_header
Debugged-by: Mark Rutland <mark.rutland@arm.com> Debugged-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/ipxe/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/tcp.h b/src/include/ipxe/tcp.h
index 21be3ca8..f5508fe2 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
* @{