diff options
| author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
| commit | 334d0dd8b660557608142f0f77abc6812b48f08b (patch) | |
| tree | 9393a9aa099d7d42deda5f9f5054796c0c769be7 /include/linux/etherdevice.h | |
| parent | 3f07d8796262f6aee135c8dd9a91210da9f888e4 (diff) | |
| parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/etherdevice.h')
| -rw-r--r-- | include/linux/etherdevice.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 745c988359c0..071c67abed86 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h | |||
| @@ -71,6 +71,18 @@ static inline int is_multicast_ether_addr(const u8 *addr) | |||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | /** | 73 | /** |
| 74 | * is_local_ether_addr - Determine if the Ethernet address is locally-assigned | ||
| 75 | * one (IEEE 802). | ||
| 76 | * @addr: Pointer to a six-byte array containing the Ethernet address | ||
| 77 | * | ||
| 78 | * Return true if the address is a local address. | ||
| 79 | */ | ||
| 80 | static inline int is_local_ether_addr(const u8 *addr) | ||
| 81 | { | ||
| 82 | return (0x02 & addr[0]); | ||
| 83 | } | ||
| 84 | |||
| 85 | /** | ||
| 74 | * is_broadcast_ether_addr - Determine if the Ethernet address is broadcast | 86 | * is_broadcast_ether_addr - Determine if the Ethernet address is broadcast |
| 75 | * @addr: Pointer to a six-byte array containing the Ethernet address | 87 | * @addr: Pointer to a six-byte array containing the Ethernet address |
| 76 | * | 88 | * |
