aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2011-05-20 19:33:07 -0400
committerSven Eckelmann <sven@narfation.org>2011-05-30 01:39:36 -0400
commit44e92bc8d6366ebe477cab23199b9f50328d326a (patch)
tree7488776fd7af5f7c1f3e2a3431d0c4829605b5c4 /net/batman-adv/routing.c
parent0bb857511b6a1572ad15dfd7f23d79587d7e2781 (diff)
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: Antonio Quartulli <ordex@autistici.org> Acked-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r--net/batman-adv/routing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 07f23ba31ad4..90ae6f0c30f3 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -661,7 +661,7 @@ void receive_bat_packet(const struct ethhdr *ethhdr,
661 hard_iface->net_dev->dev_addr)) 661 hard_iface->net_dev->dev_addr))
662 is_my_oldorig = 1; 662 is_my_oldorig = 1;
663 663
664 if (compare_eth(ethhdr->h_source, broadcast_addr)) 664 if (is_broadcast_ether_addr(ethhdr->h_source))
665 is_broadcast = 1; 665 is_broadcast = 1;
666 } 666 }
667 rcu_read_unlock(); 667 rcu_read_unlock();