From 2f9bfc60f62c5c841ffe1262deef246c0588e0d3 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 12 Jan 2011 22:14:56 +0000 Subject: [PATCH] --- yaml --- r: 231222 b: refs/heads/master c: 51e7eed79c41180919ff94942895ba38467d9ad4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/etherdevice.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 53b2e83d619e..40809f52acc1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5cd8a77df3e9916069787365a32918caa371fc16 +refs/heads/master: 51e7eed79c41180919ff94942895ba38467d9ad4 diff --git a/trunk/include/linux/etherdevice.h b/trunk/include/linux/etherdevice.h index bec8b82889bf..ab68f785fd19 100644 --- a/trunk/include/linux/etherdevice.h +++ b/trunk/include/linux/etherdevice.h @@ -98,6 +98,17 @@ static inline int is_broadcast_ether_addr(const u8 *addr) return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff; } +/** + * is_unicast_ether_addr - Determine if the Ethernet address is unicast + * @addr: Pointer to a six-byte array containing the Ethernet address + * + * Return true if the address is a unicast address. + */ +static inline int is_unicast_ether_addr(const u8 *addr) +{ + return !is_multicast_ether_addr(addr); +} + /** * is_valid_ether_addr - Determine if the given Ethernet address is valid * @addr: Pointer to a six-byte array containing the Ethernet address