summaryrefslogtreecommitdiffstats
path: root/include/linux/etherdevice.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-06-28 01:46:35 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-06-28 01:46:35 -0400
commit9bd481f85940726bf66aae5cd03c5b912ad0ae4c (patch)
tree3ccd9be1df9cff30863e47d32f631b9c43da5783 /include/linux/etherdevice.h
parent2179a59db18ddf8eb3fd0133a3bee57f1c2b5b06 (diff)
downloadop-kernel-dev-9bd481f85940726bf66aae5cd03c5b912ad0ae4c.zip
op-kernel-dev-9bd481f85940726bf66aae5cd03c5b912ad0ae4c.tar.gz
wireless: fix ipw warning; add is_broadcast_ether_addr() to linux/etherdevice.h
Diffstat (limited to 'include/linux/etherdevice.h')
-rw-r--r--include/linux/etherdevice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index 8a2df4d..ae588aa 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -68,6 +68,12 @@ static inline int is_multicast_ether_addr(const u8 *addr)
return ((addr[0] != 0xff) && (0x01 & addr[0]));
}
+static inline int is_broadcast_ether_addr(const u8 *addr)
+{
+ return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) &&
+ (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
+}
+
/**
* is_valid_ether_addr - Determine if the given Ethernet address is valid
* @addr: Pointer to a six-byte array containing the Ethernet address
OpenPOWER on IntegriCloud