batman-adv: add broadcast duplicate check
commitfe2da6ff27c73c1d102ec2189f94e8bc729d1a9b
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Sun, 22 Jan 2012 19:00:24 +0000 (22 20:00 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 11 Apr 2012 12:28:59 +0000 (11 14:28 +0200)
tree143055e9de797c3b645d453a5d0c62d5c3d8af19
parent20ff9d593f8ff20c2ef24498f77a8bc30b3a059a
batman-adv: add broadcast duplicate check

When multiple backbone gateways relay the same broadcast from the
backbone into the mesh, other nodes in the mesh may receive this
broadcast multiple times. To avoid this, the crc checksums of
received broadcasts are recorded and new broadcast packets with
the same content may be dropped if received by another gateway.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/bridge_loop_avoidance.h
net/batman-adv/main.h
net/batman-adv/routing.c
net/batman-adv/types.h