__vlan_get_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


Signed with πŸ’– from ./include/linux, dated October 2026, all about __vlan_get_tag(9) β€” bye bestie! πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from