diff options
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 6e2530b02043..a0ec0e4ada4c 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -256,7 +256,11 @@ void interface_rx(struct net_device *soft_iface, | |||
256 | struct bat_priv *bat_priv = netdev_priv(soft_iface); | 256 | struct bat_priv *bat_priv = netdev_priv(soft_iface); |
257 | struct ethhdr *ethhdr; | 257 | struct ethhdr *ethhdr; |
258 | struct vlan_ethhdr *vhdr; | 258 | struct vlan_ethhdr *vhdr; |
259 | struct batman_header *batadv_header = (struct batman_header *)skb->data; | ||
259 | short vid __maybe_unused = -1; | 260 | short vid __maybe_unused = -1; |
261 | bool is_bcast; | ||
262 | |||
263 | is_bcast = (batadv_header->packet_type == BAT_BCAST); | ||
260 | 264 | ||
261 | /* check if enough space is available for pulling, and pull */ | 265 | /* check if enough space is available for pulling, and pull */ |
262 | if (!pskb_may_pull(skb, hdr_size)) | 266 | if (!pskb_may_pull(skb, hdr_size)) |
@@ -302,7 +306,7 @@ void interface_rx(struct net_device *soft_iface, | |||
302 | /* Let the bridge loop avoidance check the packet. If will | 306 | /* Let the bridge loop avoidance check the packet. If will |
303 | * not handle it, we can safely push it up. | 307 | * not handle it, we can safely push it up. |
304 | */ | 308 | */ |
305 | if (bla_rx(bat_priv, skb, vid)) | 309 | if (bla_rx(bat_priv, skb, vid, is_bcast)) |
306 | goto out; | 310 | goto out; |
307 | 311 | ||
308 | netif_rx(skb); | 312 | netif_rx(skb); |