batman-adv: process broadcast packets in BLA earlier
The logic in the BLA mechanism may decide to drop broadcast packets
because the node may still be in the setup phase. For this reason,
further broadcast processing like the early client detection mechanism
must be done only after the BLA check.
This patches moves the invocation to BLA before any other broadcast
processing.
This was introduced 30cfd02b60
("batman-adv: detect not yet announced clients")
Reported-by: Glen Page <glen.page@thet.net>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
This commit is contained in:
parent
1f36aebcc5
commit
74490f9691
|
@ -325,6 +325,12 @@ void batadv_interface_rx(struct net_device *soft_iface,
|
||||||
|
|
||||||
soft_iface->last_rx = jiffies;
|
soft_iface->last_rx = jiffies;
|
||||||
|
|
||||||
|
/* Let the bridge loop avoidance check the packet. If will
|
||||||
|
* not handle it, we can safely push it up.
|
||||||
|
*/
|
||||||
|
if (batadv_bla_rx(bat_priv, skb, vid, is_bcast))
|
||||||
|
goto out;
|
||||||
|
|
||||||
if (orig_node)
|
if (orig_node)
|
||||||
batadv_tt_add_temporary_global_entry(bat_priv, orig_node,
|
batadv_tt_add_temporary_global_entry(bat_priv, orig_node,
|
||||||
ethhdr->h_source);
|
ethhdr->h_source);
|
||||||
|
@ -332,12 +338,6 @@ void batadv_interface_rx(struct net_device *soft_iface,
|
||||||
if (batadv_is_ap_isolated(bat_priv, ethhdr->h_source, ethhdr->h_dest))
|
if (batadv_is_ap_isolated(bat_priv, ethhdr->h_source, ethhdr->h_dest))
|
||||||
goto dropped;
|
goto dropped;
|
||||||
|
|
||||||
/* Let the bridge loop avoidance check the packet. If will
|
|
||||||
* not handle it, we can safely push it up.
|
|
||||||
*/
|
|
||||||
if (batadv_bla_rx(bat_priv, skb, vid, is_bcast))
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
netif_rx(skb);
|
netif_rx(skb);
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue