ether_addr_equal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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: addr1 and addr2 must both be aligned to u16. 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:

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