ip6_tnl_change_mtu(9)
π ip6_tnl_change_mtu(9) β the kernel API manual, bestie edition π
okay so you're in the Kernel API Manual (section 9, the kernel-API girlies β¨) and you found ip6_tnl_change_mtu β literally the glow-up artist for your tunnel device's MTU. no cap, this is the whole vibe:
πΈ NAME πΈ
ip6_tnl_change_mtu β change mtu manually for tunnel device
like, you're hand-setting the MTU yourself. main character energy only π
β¨ SYNOPSIS β¨
int ip6_tnl_change_mtu (struct net_device *dev , int new_mtu );
that's it. that's the whole signature. she's short and she knows it π«Ά
π¦ ARGUMENTS π¦
devβ the virtual device associated with the tunnel. your tunnel's lil home address, basically πnew_mtuβ the new mtu. yes queen, pick a number π
π RETURN π
0on success β slay, we ate, the mtu is changed β-EINVALif mtu too small β nope, that's a no from the kernel, too tiny π
π SEE ALSO π
Kernel file ./net/ipv6/ip6_tunnel.c β the sacred text, iykyk πβ¨
and the whole friend group: 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_parse_tlv_enc_lim(9), ip6_tnl_addr_conflict(9), ip6_tnl_xmit(9), ip6_tnl_change(9), ip6_tnl_siocdevprivate(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)
like, the entire tunnel squad, all in one place ππ₯
ngl bestie, if your mtu's too small you're getting -EINVAL and that's on periodt. size matters to this function, no cap π
and that's the page! π§ source path ./net/ipv6, dated October 2026 β mwah, love u, go forth and set your MTUs responsibly ππ
π¦ 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