eth_header_parse_protocol(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual page for eth_header_parse_protocol(9) β this function is literally here to extract protocol from L2 header. That's the whole assignment, and it ate. π
π SYNOPSIS π
__be16 eth_header_parse_protocol (const struct sk_buff *skb );
πΈ ARGUMENTS πΈ
skbβ the packet to extract the protocol from, periodt. It's aconst struct sk_buff *, and that's the entire argument list β no extra params, no surprises, just vibes. π«Ά
π¦ SEE ALSO π¦
The kernel file is ./net/ethernet/eth.c, and if you're going down the rabbit hole, these are the other pages in the squad:
eth_header(9)eth_get_headlen(9)eth_type_trans(9)eth_header_cache(9)eth_header_cache_update(9)eth_prepare_mac_addr_change(9)eth_commit_mac_addr_change(9)eth_mac_addr(9)ether_setup(9)alloc_etherdev_mqs(9)platform_get_ethdev_address(9)nvmem_get_mac_address(9)fwnode_get_mac_address(9)device_get_mac_address(9)device_get_ethdev_address(9)
okay that's the whole page bestie β brought to you by ./net/ethernet, dated October 2026, for eth_header_parse_protocol(9). slay β¨π
π¦ 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