skb_vlan_tagged(9)
π 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 aconst 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:
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)vlan_remove_tag(9)skb_vlan_tagged_multi(9)vlan_features_check(9)compare_vlan_header(9)
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
- 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