summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basic/ether-addr-util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/basic/ether-addr-util.h b/src/basic/ether-addr-util.h
index bee1fc9c7a..32f45fe813 100644
--- a/src/basic/ether-addr-util.h
+++ b/src/basic/ether-addr-util.h
@@ -102,7 +102,11 @@ static inline bool ether_addr_is_unicast(const struct ether_addr *addr) {
static inline bool ether_addr_is_local(const struct ether_addr *addr) {
/* Determine if the Ethernet address is locally-assigned one (IEEE 802) */
assert(addr);
- return !FLAGS_SET(addr->ether_addr_octet[0], 0x02);
+ return FLAGS_SET(addr->ether_addr_octet[0], 0x02);
+}
+
+static inline bool ether_addr_is_global(const struct ether_addr *addr) {
+ return !ether_addr_is_local(addr);
}
extern const struct hash_ops ether_addr_hash_ops;