batman-adv: Avoid storing non-TT-sync flags on singular entries too
authorLinus Lüssing <linus.luessing@c0d3.blue>
Wed, 6 Jun 2018 22:46:23 +0000 (00:46 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 23 Jun 2018 08:29:33 +0000 (10:29 +0200)
commit4a519b83da16927fb98fd32b0f598e639d1f1859
treec880094a4630bf653c4b1e2d88c9081439e58aba
parent6da7be7d24b2921f8215473ba7552796dff05fe1
batman-adv: Avoid storing non-TT-sync flags on singular entries too

Since commit 54e22f265e87 ("batman-adv: fix TT sync flag inconsistencies")
TT sync flags and TT non-sync'd flags are supposed to be stored
separately.

The previous patch missed to apply this separation on a TT entry with
only a single TT orig entry.

This is a minor fix because with only a single TT orig entry the DDoS
issue the former patch solves does not apply.

Fixes: 54e22f265e87 ("batman-adv: fix TT sync flag inconsistencies")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/translation-table.c