is_valid_ether_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ is_valid_ether_addr πŸ’…πŸ¦‹

okay bestie, welcome to the Kernel API Manual corner of the group chat. today’s main character is is_valid_ether_addr, and she is literally here to do a vibe check on your Ethernet address πŸ‘‘


πŸ’– NAME πŸ’–

is_valid_ether_addr β€” Determine if the given Ethernet address is valid.


🌸 SYNOPSIS 🌸

bool is_valid_ether_addr (const u8 *addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” Pointer to a six-byte array containing the Ethernet address. it’s the address being checked, bestie πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually check? She checks that the Ethernet address (MAC) is not 00:00:00:00:00:00, is not a multicast address, and is not FF:FF:FF:FF:FF:FF. that’s the whole vibe check, no cap 🧚

🚨 please note: addr must be aligned to u16. not optional, not cute to ignore, fr fr.

⭐ RETURN ⭐

Returns true if the address is valid. slay βœ…


🌈 SEE ALSO 🌈

over in the kernel file ./include/linux/etherdevice.h, you’ll find these related besties:


that’s the whole page, bb πŸ’œ β€” source/version is ./include/linux, dated October 2026, and this is the is_valid_ether_addr(9) manual page. mwah πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from