]> asedeno.scripts.mit.edu Git - linux.git/commit
batman-adv: prevent TT request storms by not sending inconsistent TT TLVLs
authorMarek Lindner <mareklindner@neomailbox.ch>
Fri, 11 May 2018 16:23:07 +0000 (00:23 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 12 May 2018 16:53:08 +0000 (18:53 +0200)
commit16116dac23396e73c01eeee97b102e4833a4b205
tree36b2d037ecd8946c346fc2944013a02fd0bc1b3f
parent7072337e52b3e9d5460500d8dc9cbc1ba2db084c
batman-adv: prevent TT request storms by not sending inconsistent TT TLVLs

A translation table TVLV changset sent with an OGM consists
of a number of headers (one per VLAN) plus the changeset
itself (addition and/or deletion of entries).

The per-VLAN headers are used by OGM recipients for consistency
checks. Said consistency check might determine that a full
translation table request is needed to restore consistency. If
the TT sender adds per-VLAN headers of empty VLANs into the OGM,
recipients are led to believe to have reached an inconsistent
state and thus request a full table update. The full table does
not contain empty VLANs (due to missing entries) the cycle
restarts when the next OGM is issued.

Consequently, when the translation table TVLV headers are
composed, empty VLANs are to be excluded.

Fixes: 21a57f6e7a3b ("batman-adv: make the TT CRC logic VLAN specific")
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/translation-table.c