__vlan_get_tag(9)
π NAME π
Okay so this is __vlan_get_tag(9), straight out of the Kernel API Manual (section 9, periodt). Its whole iconic job is to get the VLAN ID that is part of the payload β that's the vibe, that's the function, no cap.
β¨ SYNOPSIS β¨
int __vlan_get_tag (const struct sk_buff *skb , u16 *vlan_tci );
π ARGUMENTS π
skbβ the skbuff to query, bestie. This is the packet situation you're asking about.vlan_tciβ the buffer to store value. It's literally where the answer goes, periodt.
π RETURN π
It returns an error if the skb is not of VLAN type. No VLAN type, no tag reveal β that's the rule, iykyk.
π SEE ALSO π
Kernel file: ./include/linux/if_vlan.h β the home base for this whole VLAN situation. Go read these next, bestie:
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_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)
Signed with π from ./include/linux, dated October 2026, all about __vlan_get_tag(9) β bye bestie! π¦π
π¦ 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