batman-adv: send announcement when backbone gw is registered
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Sat, 8 Sep 2012 16:02:53 +0000 (18:02 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 14 Nov 2012 20:00:33 +0000 (21:00 +0100)
commit52aebd6a9fe4ad0245a00ef4457425ad83661c90
tree36192da73fdf0e93cf6a032d1ceb7f2d2ad3594d
parentb7eddd0b3950ea9dc863f1cbfa30d172dbf772f4
batman-adv: send announcement when backbone gw is registered

To avoid loops in the startup phase until the first announcement is
sent, send an announcement immediately as soon as a backbone gw is
added.

This may happen due to various reasons, e.g. a packet passes the rx
or tx path.

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