Commit 44e92bc8 authored by Antonio Quartulli's avatar Antonio Quartulli Committed by Sven Eckelmann

batman-adv: use is_broadcast_ether_addr() instead of compare_eth(.., brd_addr)

Instead of comparing mac addresses with the broadcast address by means
of compare_eth(), the is_broadcast_ether_addr() kernel function has to be
used.
Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
Acked-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
parent 0bb85751
...@@ -661,7 +661,7 @@ void receive_bat_packet(const struct ethhdr *ethhdr, ...@@ -661,7 +661,7 @@ void receive_bat_packet(const struct ethhdr *ethhdr,
hard_iface->net_dev->dev_addr)) hard_iface->net_dev->dev_addr))
is_my_oldorig = 1; is_my_oldorig = 1;
if (compare_eth(ethhdr->h_source, broadcast_addr)) if (is_broadcast_ether_addr(ethhdr->h_source))
is_broadcast = 1; is_broadcast = 1;
} }
rcu_read_unlock(); rcu_read_unlock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment