瀏覽代碼

[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 年之前
父節點
當前提交
e901e6b73b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/include/ipxe/tcp.h

+ 1
- 1
src/include/ipxe/tcp.h 查看文件

@@ -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…
取消
儲存