ether_addr_equal(9)
π ether_addr_equal π
ok so real talk, bestie β this is a page from the Kernel API Manual (that's the manual name, iykyk) and it's about the tiniest little function with main character energy. let's get into it β¨
π NAME π
ether_addr_equal β compares two Ethernet addresses, that's the whole vibe π
πΈ SYNOPSIS πΈ
bool ether_addr_equal (const u8 *addr1 , const u8 *addr2 );
π¦ ARGUMENTS π¦
addr1β a pointer to a six-byte array that's holding your Ethernet address π«Άaddr2β a pointer to another six-byte array that's also holding an Ethernet address, the one you're comparing against β¨
β DESCRIPTION β
okay so basically: you compare two Ethernet addresses, and it returns true if they're equal. that's it. that's the function. iconic behavior honestly π
β οΈ no cap, read this part:addr1andaddr2must both be aligned tou16. like, both of them. this is not a suggestion, bestie π please respect the alignment or the vibe check is gonna fail. π
π SEE ALSO π
the kernel file ./include/linux/etherdevice.h is where all the lore lives, and here's the whole friend group β go say hi to every single one of them:
is_link_local_ether_addr(9)is_zero_ether_addr(9)is_multicast_ether_addr(9)is_local_ether_addr(9)is_broadcast_ether_addr(9)is_unicast_ether_addr(9)is_valid_ether_addr(9)eth_proto_is_802_3(9)eth_random_addr(9)eth_broadcast_addr(9)eth_zero_addr(9)eth_hw_addr_random(9)eth_hw_addr_crc(9)ether_addr_copy(9)eth_hw_addr_set(9)eth_hw_addr_inherit(9)ether_addr_equal_64bits(9)ether_addr_equal_unaligned(9)ether_addr_equal_masked(9)ether_addr_to_u64(9)u64_to_ether_addr(9)eth_addr_dec(9)eth_addr_inc(9)eth_addr_add(9)is_etherdev_addr(9)compare_ether_header(9)eth_hw_addr_gen(9)eth_skb_pkt_type(9)eth_skb_pad(9)
that's twenty-nine little icons, count 'em π and yes ether_addr_equal_64bits and ether_addr_equal_unaligned are right there living their own lives β different functions, don't get it twisted π
andddd that's the page!! π this whole thing lives in ./include/linux, dated October 2026, under the Kernel API Manual β mwah, sending you a kiss, go compare some addresses safely, love u π«Άπβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms