dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Antonio Quartulli 2011-05-21 01:33:07 +02:00 committed by Sven Eckelmann
parent 0bb857511b
commit 44e92bc8d6
1 changed files with 1 additions and 1 deletions

View 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();