skb_vlan_tagged(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_vlan_tagged(9)

okay so bestie, welcome to the kernel API manual page for skb_vlan_tagged β€” yes it's a real page, yes it's a (9) section situation (kernel internals, we love that for us), and yes I'm gonna walk you through it like we're texting at 2am 🫢


✨ NAME ✨

skb_vlan_tagged β€” check if skb is vlan tagged.

That's it. That's the whole gig. It's a little yes/no girlie and honestly? Iconic. πŸŽ€


🌸 SYNOPSIS 🌸

bool skb_vlan_tagged (const struct sk_buff *skb );

literally just hand it an skb and it tells you a yes-or-no answer. no drama, no side effects, no cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the skbuff to query πŸ’– this is the thing you're asking the question about. it's a const struct sk_buff *, so we're not out here mutating anything, we're just looking. respectful. we stan. πŸ‘‘

⭐ RETURN ⭐

returns true if the skb is tagged β€” regardless of whether it is hardware accelerated or not.

like, read that again bestie because it matters: it does not care how the tag got there. hardware accelerated? cool. not hardware accelerated? also cool. tagged is tagged, periodt. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

the whole vlan friend group, fr fr β€” the kernel file ./include/linux/if_vlan.h plus:

that's 22 whole pages of vlan lore. go read them. or don't. but they're there for you πŸ§šπŸ’«


ngl if you only remember one thing: this function answers "is it tagged?" and nothing else. don't ask it to tell you what the tag is. that's somebody else's job. πŸ™ˆ

okay that's the page!! this gem lives in ./include/linux and the version/date on the tin is October 2026 β€” mwah, bye, slay, go tag something πŸ’…πŸ’–πŸŒˆ

πŸ“¦ where this page comes from