Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit ec13901705ce0ecc156632b5c711d179d59e5b4c Author: Antonio Quartulli ordex@autistici.org Date: Wed Apr 24 16:37:51 2013 +0200
batctl: use CRC32C instead of CRC16 in TT code
CRC32C has to be preferred to CRC16 because of its possible HW native support and because of the reduced collision probability. With this change the Translation Table component now uses CRC32C to compute the local and global table checksum.
Signed-off-by: Antonio Quartulli ordex@autistici.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de
ec13901705ce0ecc156632b5c711d179d59e5b4c packet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packet.h b/packet.h index f4e02a2..aee6b96 100644 --- a/packet.h +++ b/packet.h @@ -371,12 +371,12 @@ struct batadv_tvlv_gateway_data { * struct 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 - * @crc: crc16 checksum of the local translation table + * @crc: crc32 checksum of the local translation table */ struct batadv_tvlv_tt_data { uint8_t flags; uint8_t ttvn; - __be16 crc; + __be32 crc; };
/**