diff options
| author | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-02 11:48:33 +0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-02 11:48:33 +0400 |
| commit | 5d8c397f304e1363f8ff9749b08172eb59e6534a (patch) | |
| tree | 57ff502553918aa7309b7375e983f27f719e7b28 /include/linux | |
| parent | 44757223cd77f6e332dfa0b043c67df7b665bc19 (diff) | |
| parent | ceeec3dc375e3b0618f16b34efc56fe093918f8b (diff) | |
| download | linux-5d8c397f304e1363f8ff9749b08172eb59e6534a.tar.xz | |
Merge refs/heads/ieee80211-wifi from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/etherdevice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index ce8518e658b6..4522c7186bf3 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -69,6 +69,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 |
