Browse Source

[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>
tags/v1.20.1
Michael Brown 6 years ago
parent
commit
e901e6b73b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/ipxe/tcp.h

+ 1
- 1
src/include/ipxe/tcp.h View File

@@ -26,7 +26,7 @@ struct tcp_header {
26 26
 	uint16_t win;		/* Advertised window */
27 27
 	uint16_t csum;		/* Checksum */
28 28
 	uint16_t urg;		/* Urgent pointer */
29
-};
29
+} __attribute__ (( packed ));
30 30
 
31 31
 /** @defgroup tcpopts TCP options
32 32
  * @{

Loading…
Cancel
Save