Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 7beba2affd8d7d235e7b9a6b8aa8911434291f13 Author: Antonio Quartulli ordex@autistici.org Date: Fri May 24 15:04:44 2013 +0200
batctl: correctly align the tt_tvlv_data struct
4bytes long members must start at an address multiple of 4 in order to avoid unaligned memory access.
Add 2 padding bytes to satisfy this requirement.
Introduced by c5e7a06a29612056006e4dc01910c0b44e858583 "batman-adv: use CRC32C instead of CRC16 in TT code"
Signed-off-by: Antonio Quartulli ordex@autistici.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de
7beba2affd8d7d235e7b9a6b8aa8911434291f13 packet.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/packet.h b/packet.h index 21254a4..57d2002 100644 --- a/packet.h +++ b/packet.h @@ -391,11 +391,13 @@ struct batadv_tvlv_gateway_data { * struct batadv_tvlv_tt_data - tt data propagated through the tt tvlv container * @flags: translation table flags (see batadv_tt_data_flags) * @ttvn: translation table version number + * @reserved: field reserved for future use * @crc: crc32 checksum of the local translation table */ struct batadv_tvlv_tt_data { uint8_t flags; uint8_t ttvn; + uint16_t reserved; __be32 crc; };