ip6_tnl_parse_tlv_enc_lim(9)
π 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:
ip6_tnl_lookup(9)ip6_tnl_bucket(9)ip6_tnl_link(9)ip6_tnl_unlink(9)ip6_tnl_create(9)ip6_tnl_locate(9)ip6_tnl_dev_uninit(9)ip6_tnl_addr_conflict(9)ip6_tnl_xmit(9)ip6_tnl_change(9)ip6_tnl_siocdevprivate(9)ip6_tnl_change_mtu(9)ip6_tnl_dev_setup(9)ip6_tnl_dev_init_gen(9)ip6_tnl_dev_init(9)ip6_fb_tnl_dev_init(9)ip6_tunnel_init(9)ip6_tunnel_cleanup(9)
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
- 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