提交 46b76e0b 编写于 作者: S Simon Wunderlich 提交者: Antonio Quartulli

batman-adv: fix alignment for batadv_coded_packet

The compiler may decide to pad the structure, and then it does not
have the expected size of 46 byte. Fix this by moving it in the
pragma pack(2) part of the code.
Signed-off-by: NSimon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
上级 6a9eadcc
......@@ -315,8 +315,6 @@ struct batadv_bcast_packet {
*/
};
#pragma pack()
/**
* struct batadv_coded_packet - network coded packet
* @header: common batman packet header and ttl of first included packet
......@@ -349,6 +347,8 @@ struct batadv_coded_packet {
__be16 coded_len;
};
#pragma pack()
/**
* struct batadv_unicast_tvlv - generic unicast packet with tvlv payload
* @header: common batman packet header
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部