]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ether/rte_ether.h
ether: fix local address check
[dpdk.git] / lib / librte_ether / rte_ether.h
index cd0c7c413dfff765563358d39336689e4c198832..2e08f233eda48a685236b6cca84e49eb89ed0d98 100644 (file)
@@ -205,7 +205,7 @@ static inline int is_universal_ether_addr(const struct ether_addr *ea)
  */
 static inline int is_local_admin_ether_addr(const struct ether_addr *ea)
 {
-       return ((ea->addr_bytes[0] & ETHER_LOCAL_ADMIN_ADDR) == 1);
+       return ((ea->addr_bytes[0] & ETHER_LOCAL_ADMIN_ADDR) != 0);
 }
 
 /**