New function eth_addr_is_zero().

This commit is contained in:
Ben Pfaff committed 2008-07-18 13:23:23 -07:00
1 parent a92ae5b340
commit f81c152daf
1 file changed
+4
+4
View File
@@ -52,6 +52,10 @@ static inline bool eth_addr_is_local(const uint8_t ea[6])
{
return ea[0] & 2;
}
static inline bool eth_addr_is_zero(const uint8_t ea[6])
{
return !(ea[0] | ea[1] | ea[2] | ea[3] | ea[4] | ea[5]);
}
static inline bool eth_addr_equals(const uint8_t a[ETH_ADDR_LEN],
const uint8_t b[ETH_ADDR_LEN])
{