From: Simon Wunderlich Date: Mon, 2 Dec 2013 19:38:33 +0000 (+0100) Subject: batman-adv: fix size of batadv_bla_claim_dst X-Git-Tag: submit/tizen/20160422.055611~1^2~99^2~18^2~2463^2~6^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f7a318219186485c175339758ac42a03644200b;p=sdk%2Femulator%2Femulator-kernel.git batman-adv: fix size of batadv_bla_claim_dst Since this is a mac address and always 48 bit, and we can assume that it is always aligned to 2-byte boundaries, add a pack(2) pragma. Signed-off-by: Simon Wunderlich Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index 2a857ed006fd..04cf27ca5dee 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h @@ -155,6 +155,7 @@ enum batadv_tvlv_type { BATADV_TVLV_ROAM = 0x05, }; +#pragma pack(2) /* the destination hardware field in the ARP frame is used to * transport the claim type and the group id */ @@ -163,6 +164,7 @@ struct batadv_bla_claim_dst { uint8_t type; /* bla_claimframe */ __be16 group; /* group id */ }; +#pragma pack() /** * struct batadv_ogm_packet - ogm (routing protocol) packet