batman-adv: send each broadcast only once on non-wireless interfaces
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 9 Mar 2013 22:14:23 +0000 (23:14 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 29 May 2013 00:44:53 +0000 (02:44 +0200)
commitcaf65bfcc5dbabd7222fa45fdcd42ce0783d7a42
treebb338fcf3987a38680336278c43bb6c1ccdb7b39
parentde68d1003d9eb0a5f7d4714315614e4bc956f68e
batman-adv: send each broadcast only once on non-wireless interfaces

While it makes sense to send each broadcast thrice on 802.11 (WLAN) interfaces
as broadcasts are often unreliable on these, there is no reason to do so on
other interface types.

The increased the overhead can be harmful on low-bandwidth links like VPN
connections over slow internet lines, therefore it is better to reduce the
number of broadcast packets sent on non-wireless links to one.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/hard-interface.c
net/batman-adv/main.h
net/batman-adv/send.c
net/batman-adv/types.h