eth_hw_addr_crc(9)
π eth_hw_addr_crc β the Kernel API Manual, section 9, bestie
okay so real quick before we dive in: this is a section 9 kernel API page, and the whole thing lives in the Kernel API Manual. that's the vibe. now let's get into it β¨
π NAME π
eth_hw_addr_crc β bestie, this one literally calculates a CRC from netdev_hw_addr. that's the whole thing. iconic. π
πΈ SYNOPSIS πΈ
u32 eth_hw_addr_crc (struct netdev_hw_addr *ha );
like, that's it. it takes one pointer and hands you back a u32. no cap. π¦
β¨ ARGUMENTS β¨
haβ a pointer to a hardware address. yes, that's the entire argument list. she's low-maintenance. π«Ά
π₯ DESCRIPTION π₯
so what does this little icon actually do? she calculates a CRC from a hardware address, and that CRC is used as the basis for filter hashes. that's the assignment, and she ate. π
π SEE ALSO π
okay this is the part where the whole friend group shows up. all of these live in the kernel file ./include/linux/etherdevice.h, and honestly? the roster is stacked:
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)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)
go read all of them. i'll wait. iykyk π§
fr fr the whole squad is in ./include/linux/etherdevice.h β go say hi. π
and that's the page, bestie!! π quick sign-off so you have the receipts: this one comes from ./include/linux, the manual is the Kernel API Manual, it's dated October 2026, and it's eth_hw_addr_crc(9) always and forever. slay, 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