diff options
| author | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:37:51 -0400 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:37:51 -0400 |
| commit | 02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1 (patch) | |
| tree | 04ef573cd4de095c500c9fc3477f4278c0b36300 /include/linux/etherdevice.h | |
| parent | 7487a2245b8841c77ba9db406cf99a483b9334e9 (diff) | |
| parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) | |
Merge branch '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 | * |
