]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/etherdevice.h
firewire: Install firewire-constants.h and firewire-cdev.h for userspace.
[linux-2.6-omap-h63xx.git] / include / linux / etherdevice.h
index 745c988359c0bb29628609062c7d7a59c424ba45..071c67abed86163d37d82b149ee5c52588de3a0b 100644 (file)
@@ -70,6 +70,18 @@ static inline int is_multicast_ether_addr(const u8 *addr)
        return (0x01 & addr[0]);
 }
 
+/**
+ * is_local_ether_addr - Determine if the Ethernet address is locally-assigned
+ * one (IEEE 802).
+ * @addr: Pointer to a six-byte array containing the Ethernet address
+ *
+ * Return true if the address is a local address.
+ */
+static inline int is_local_ether_addr(const u8 *addr)
+{
+       return (0x02 & addr[0]);
+}
+
 /**
  * is_broadcast_ether_addr - Determine if the Ethernet address is broadcast
  * @addr: Pointer to a six-byte array containing the Ethernet address