Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 1c7c38ecd496be841fca19c7e4b63053cdc8a950 Author: Marek Lindner lindner_marek@yahoo.de Date: Sun May 26 06:15:21 2013 +0800
batctl: properly align roaming tvlv container
4bytes long members must start at an address multiple of 4 in order to avoid unaligned memory access.
Introduced by 3de4e64df0f1326db7cc0ef25f5af8522850252d "batman-adv: tvlv - convert roaming adv packet to use tvlv unicast packets"
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
1c7c38ecd496be841fca19c7e4b63053cdc8a950 packet.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packet.h b/packet.h index 2bc60fb..e3ae41a 100644 --- a/packet.h +++ b/packet.h @@ -409,9 +409,11 @@ struct batadv_tvlv_tt_change { /** * struct batadv_tvlv_roam_adv - roaming advertisement * @client: mac address of roaming client + * @reserved: field reserved for future use */ struct batadv_tvlv_roam_adv { - uint8_t client[ETH_ALEN]; + uint8_t client[ETH_ALEN]; + uint16_t reserved; };
#endif /* _NET_BATMAN_ADV_PACKET_H_ */