eth_type_vlan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… eth_type_vlan(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so bestie, welcome to eth_type_vlan(9) β€” this one lives in the Kernel API Manual and it's honestly such a tiny little icon. like it does one (1) thing and it does it flawlessly, we love a low-maintenance queen πŸ‘‘


✨ NAME ✨

eth_type_vlan β€” check for valid vlan ether type.

that's it. that's the whole job. she checks, she returns a bool, she leaves. main character energy but make it minimal 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

bool eth_type_vlan (__be16 ethertype );

literally one argument, one return value, no drama. the __be16 is right there in the signature so keep it exactly like that, no cap πŸ’…


πŸ“ ARGUMENTS πŸ“

  • ethertype β€” the ether type you're checking, bestie. that's the vibe. you hand it over and she does her little check 🫢

⭐ RETURN ⭐

returns true if the ether type is a vlan ether type πŸ’–

that's the whole contract. true = vlan ether type, and if it's not, well… it's not true, iykyk πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where the friend group shows up, and ngl it's a large friend group. every single one of these, no skips, no cuts πŸ‘‘

the whole vlan cinematic universe fr fr 🌈

and don't forget the kernel file she lives in:

./include/linux
heads up bestie: all of the above are documented in ./include/linux/if_vlan.h β€” that's the source of truth, go read it if you want the full lore πŸ“–βœ¨

mwah πŸ’œ that's the page! this icon dropped in October 2026, ships out of ./include/linux, and answers to the name eth_type_vlan(9) β€” go forth and check those ether types, bestie, you're gonna slay πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from