Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 2fb072a9111aa9320f7a459c22ed00778eec7e6a Author: Antonio Quartulli ordex@autistici.org Date: Fri May 24 15:04:44 2013 +0200
batman-adv: 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
2fb072a9111aa9320f7a459c22ed00778eec7e6a packet.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/packet.h b/packet.h index 5b52c82..8b8b03f 100644 --- a/packet.h +++ b/packet.h @@ -409,11 +409,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; };