Name

compare_ether_addr — Compare two Ethernet addresses

Synopsis

unsigned fsfunccompare_ether_addr (const u8 * addr1,
 const u8 * addr2);
 

Arguments

addr1

Pointer to a six-byte array containing the Ethernet address

addr2

Pointer other six-byte array containing the Ethernet address

Description

Compare two Ethernet addresses, returns 0 if equal, non-zero otherwise. Unlike memcmp, it doesn't return a value suitable for sorting.