is_link_local_ether_addr(9)
β¨ is_link_local_ether_addr(9) β¨
okay so this is a page from the Kernel API Manual, and honestly? it's a little cutie. we're checking whether an Ethernet address is link-local. that's the whole vibe. let's get into it π
πΈ NAME πΈ
is_link_local_ether_addr β figure out if the Ethernet address someone handed you is link-local or not π¦
β¨ SYNOPSIS β¨
bool is_link_local_ether_addr (const u8 *addr );
like, you give it a pointer, you get a bool back. that's it. that's the whole function. iconic behavior honestly π
π ARGUMENTS π
addrβ a pointer to a six-byte array holding the Ethernet address π six bytes. count 'em. not five, not seven.
π RETURN π
it hands back true if the address is a link local reserved addr (01:80:c2:00:00:0X) per IEEE 802.1Q 8.6.3 Frame filtering π
not me memorizing that hex patternβ¦ 01:80:c2:00:00:0X bestie, write it down βοΈ
π¦ DESCRIPTION π¦
β οΈ please note:addrmust be aligned tou16. this is not a suggestion, this is a rule, do not come for me π
that's genuinely the whole description. short and sweet. main character energy, minimal words π
π₯ SEE ALSO π₯
the kernel file is ./include/linux/etherdevice.h and it's got a whole friend group, fr fr. go say hi to all of them π«Ά
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(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)
and that's the page!! π this one lives in ./include/linux, dated October 2026, and it's part of the Kernel API Manual β slay, go read your ethernet headers bestie, ily, bye πβ¨
π¦ 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