eth_type_vlan(9)
π 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 π
struct vlan_ethhdr(9)struct vlan_pcpu_stats(9)struct vlan_priority_tci_mapping(9)struct vlan_dev_priv(9)__vlan_insert_inner_tag(9)__vlan_insert_tag(9)vlan_insert_inner_tag(9)vlan_insert_tag(9)vlan_insert_tag_set_proto(9)__vlan_hwaccel_clear_tag(9)__vlan_hwaccel_copy_tag(9)__vlan_hwaccel_put_tag(9)__vlan_get_tag(9)__vlan_hwaccel_get_tag(9)vlan_get_tag(9)vlan_get_protocol_offset_inline(9)vlan_get_protocol(9)vlan_remove_tag(9)skb_vlan_tagged(9)skb_vlan_tagged_multi(9)vlan_features_check(9)compare_vlan_header(9)
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
- 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