Sven Eckelmann 951c44e0db Staging: batman-adv: Use kernel functions to identify broadcasts
linux/etherdevice.h already provides functions to classify different
ethernet addresses. These inlineable functions should be used instead of
custom functions.

The check for multicast together with multicast can also be replaced
with a single test for multicast because for every ethernet address x
following is always true:

is_broadcast_ether_addr(x) => is_multicast_ether_addr(x)

or when looking more at the implementation:

(FF:FF:FF:FF:FF:FF == x) => [(01:00:00:00:00:00 & x) != 00:00:00:00:00:00]

Reported-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-29 11:09:14 -08:00
..
2010-10-29 00:29:51 +02:00
2010-10-29 04:16:28 -04:00
2010-11-10 14:40:53 +01:00
2010-10-30 08:31:35 -07:00
2010-11-12 07:55:30 -08:00
2010-11-10 14:54:09 +01:00
2010-11-11 11:06:09 -08:00