diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-05-21 01:33:07 +0200 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-05-30 07:39:36 +0200 |
commit | 44e92bc8d6366ebe477cab23199b9f50328d326a (patch) | |
tree | 7488776fd7af5f7c1f3e2a3431d0c4829605b5c4 /net/batman-adv | |
parent | 0bb857511b6a1572ad15dfd7f23d79587d7e2781 (diff) | |
download | linux-stable-44e92bc8d6366ebe477cab23199b9f50328d326a.tar.gz linux-stable-44e92bc8d6366ebe477cab23199b9f50328d326a.tar.bz2 linux-stable-44e92bc8d6366ebe477cab23199b9f50328d326a.zip |
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')
-rw-r--r-- | net/batman-adv/routing.c | 2 |
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, 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(); |