batman-adv: don't let backbone gateways exchange tt entries
As the backbone gateways are connected to the same backbone, they should announce the same clients on the backbone non-exclusively. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
This commit is contained in:

committed by
Antonio Quartulli

parent
db08e6e557
commit
20ff9d593f
@@ -673,6 +673,13 @@ int recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if)
|
||||
if (!is_my_mac(roam_adv_packet->dst))
|
||||
return route_unicast_packet(skb, recv_if);
|
||||
|
||||
/* check if it is a backbone gateway. we don't accept
|
||||
* roaming advertisement from it, as it has the same
|
||||
* entries as we have.
|
||||
*/
|
||||
if (bla_is_backbone_gw_orig(bat_priv, roam_adv_packet->src))
|
||||
goto out;
|
||||
|
||||
orig_node = orig_hash_find(bat_priv, roam_adv_packet->src);
|
||||
if (!orig_node)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user