]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: clear ADD+DEL (and viceversa) events in the same orig-interval
authorAntonio Quartulli <ordex@autistici.org>
Thu, 24 May 2012 22:00:42 +0000 (00:00 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 28 Jun 2012 06:44:50 +0000 (08:44 +0200)
commit67841ddae4f2056cddb6fe5a61aafe77c778bb7a
tree2474303023ed04b2eb17532525339463955e69cc
parent1bef2f092e565e96193334e877dfbb7a452a3a56
batman-adv: clear ADD+DEL (and viceversa) events in the same orig-interval

During an OGM-interval (time between two different OGM sendings) the same client
could roam away and then roam back to us. In this case the node would add two
events to the events list (that is going to be sent appended to the next OGM). A
DEL one and an ADD one. Obviously they will only increase the overhead (either in
the air and on the receiver side) and eventually trigger wrong states/events
without producing any real effect.

For this reason we can safely delete any ADD event with its related DEL one.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/translation-table.c