]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
batman-adv: use is_broadcast_ether_addr() instead of compare_eth(.., brd_addr)
authorAntonio Quartulli <ordex@autistici.org>
Fri, 20 May 2011 23:33:07 +0000 (01:33 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 30 May 2011 05:39:36 +0000 (07:39 +0200)
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>
net/batman-adv/routing.c

index 07f23ba31ad43df4630690b6ab1ae3df4e2b0b01..90ae6f0c30f325fbf849971df9869ea6b0dc02e1 100644 (file)
@@ -661,7 +661,7 @@ void receive_bat_packet(const struct ethhdr *ethhdr,
                                hard_iface->net_dev->dev_addr))
                        is_my_oldorig = 1;
 
-               if (compare_eth(ethhdr->h_source, broadcast_addr))
+               if (is_broadcast_ether_addr(ethhdr->h_source))
                        is_broadcast = 1;
        }
        rcu_read_unlock();