vlan_remove_tag(9)
π vlan_remove_tag β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual page for vlan_remove_tag. It's giving βremove the outer VLAN tag from the payloadβ energy, and honestly? iconic. π
β¨ NAME β¨
vlan_remove_tag β remove outer VLAN tag from payload. that's the whole name vibe, periodt. π
πΈ SYNOPSIS πΈ
void vlan_remove_tag (struct sk_buff *skb , u16 *vlan_tci );
π¦ ARGUMENTS π¦
skbβ theskbuffto remove the tag from. this is the main character payload container, lowkey. πvlan_tciβ the buffer to store the value. yes bestie, it's where the value goes. π«Ά
π₯ DESCRIPTION π₯
okay so here's the setup: this function expects the skb to contain a VLAN tag in the payload, and it also expects skb->data to be pointing at the MAC header. no cap, that's the contract. π
β¨
bestie, this isn't a βguess what I'm holdingβ situation β the function expects the VLAN tag to be in the payload and expects skb->data to point at the MAC header. that's the energy it needs. π
π SEE ALSO π
the whole guest list from the kernel file ./include/linux/if_vlan.h, plus all the structs and functions you might wanna stalk next:
- Kernel file
./include/linux/if_vlan.h struct vlan_ethhdr(9)struct vlan_pcpu_stats(9)struct vlan_priority_tci_mapping(9)struct vlan_dev_priv(9)eth_type_vlan(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)skb_vlan_tagged(9)skb_vlan_tagged_multi(9)vlan_features_check(9)compare_vlan_header(9)
π«Ά this lil page's source is ./include/linux, its version is vlan_remove_tag(9), and it's dated October 2026 β mwah, bye bestie, go remove that outer tag with main character energy πβ¨
π¦ 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