ip6_tnl_parse_tlv_enc_lim(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ip6_tnl_parse_tlv_enc_lim(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” this one's a kernel function page, lowercase-name-core, and it's literally all about handling the encapsulation limit option. no cap. let's get into it 🫢


🌸 NAME 🌸

ip6_tnl_parse_tlv_enc_lim β€” handle encapsulation limit option πŸŽ€

like, that's the whole gig. it handles the encapsulation limit option. iconic behavior honestly.


✨ SYNOPSIS ✨

__u16 ip6_tnl_parse_tlv_enc_lim (struct sk_buff *skb , __u8 *raw );

that's the exact signature, don't @ me πŸ’… β€” __u16 in, __u16 out, it's giving tidy.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” received socket buffer. yes bestie, the skb, the main character of every networking function ever πŸ‘‘
  • raw β€” the ICMPv6 error message data. this is where the data lives πŸ“

⭐ RETURN ⭐

returns 0 if none was found πŸ‘€ β€” otherwise it returns the index to encapsulation limit. so like, zero means "nope, nothing here", and anything else is the actual answer. periodt πŸ’€


πŸ’œ SEE ALSO πŸ’œ

this function is not doing this alone, she's got a whole friend group fr fr. all of these live in the kernel file ./net/ipv6/ip6_tunnel.c:

go read all of them, i'll wait πŸ’– (jk, but like, they're all in ./net/ipv6 so at least you know where to look 🧚)


also this page lives under ./net/ipv6 and it's dated October 2026 β€” yes, future girl autumn 🌈 β€” and it came out of the Kernel API Manual source, so that's the vibe check on provenance πŸ’…</p>

mwah, that's the whole page, slay, go parse those TLVs, and remember: 0 means none found πŸ˜­πŸ’œ

πŸ“¦ where this page comes from