ip6_tnl_change_mtu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸŽ€

  • 0 on success β€” slay, we ate, the mtu is changed βœ…
  • -EINVAL if 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