parse_vlan_tag(9)
π¦ parse_vlan_tag(9) π¦
okay so bestie, welcome to the Kernel API Manual page for parse_vlan_tag β it's literally the function that parses a vlan tag from a vlan header, and we're gonna get into it together π
β¨.
πΈ NAME πΈ
parse_vlan_tag β it's giving "parse vlan tag from vlan header" energy, fr fr. That's the whole name-and-purpose situation π.
β¨ SYNOPSIS β¨
int parse_vlan_tag (struct sk_buff *skb , struct vlan_head *key_vh ,
bool untag_vlan );
That's the signature, character for character β don't come for me about the spaces, they're part of the look π.
π ARGUMENTS π
skbβ theskbcontaining the frame to parse. Yes bestie, that's the input frame vibe.key_vhβ pointer to parsed vlan tag. It's where the parsed tag goes.untag_vlanβ should the vlan header be removed from the frame? This bool is literally answering that question.
π RETURN π
ERRORon memory error β memory said no π.0if it encounters a non-vlan or incomplete packet β so not every packet is gonna slay.1after successfully parsing vlan tag β success era, periodt.
π₯ SEE ALSO π₯
The SEE ALSO vibes point you at the kernel file ./net/openvswitch/flow.c, plus get_ipv6_ext_hdrs(9), key_extract_l3l4(9), and key_extract(9) β go read those when you're done here, iykyk π.
mwah π source/version-and-date sign-off: this page comes from ./net/openvswitch, dated October 2026, and it's the parse_vlan_tag(9) page β periodt, that's the footer folded in with love π«Άπ
π¦ 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