table of contents
other versions
ETHER_ADDR_EQUAL_MAS(9) | Network device support | ETHER_ADDR_EQUAL_MAS(9) |
NAME¶
ether_addr_equal_masked - Compare two Ethernet addresses with a mask
SYNOPSIS¶
bool ether_addr_equal_masked(const u8 * addr1, const u8 * addr2, const u8 * mask);
ARGUMENTS¶
const u8 * addr1
Pointer to a six-byte array containing the 1st Ethernet
address
const u8 * addr2
Pointer to a six-byte array containing the 2nd Ethernet
address
const u8 * mask
Pointer to a six-byte array containing the Ethernet
address bitmask
DESCRIPTION¶
Compare two Ethernet addresses with a mask, returns true if for every bit set in the bitmask the equivalent bits in the ethernet addresses are equal. Using a mask with all bits set is a slower ether_addr_equal.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |