vti6_locate(9)
π vti6_locate(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual page for vti6_locate(9). itβs giving βfind-or-make a tunnelβ energy, and honestly? iconic. letβs get into it π«Ά
πΈ NAME πΈ
vti6_locate β find or create a tunnel matching the parameters you give it. literally the whole point π
β¨ SYNOPSIS β¨
struct ip6_tnl * vti6_locate (struct net *net , struct __ip6_tnl_parm *p
, int create );
π ARGUMENTS π
netβ the network namespace. yes, the whole namespace vibe.pβ tunnel parameters. this is the info itβs matching against.createβ!= 0if youβre allowed to create a new tunnel when no match is found.
π¦ DESCRIPTION π¦
So vti6_locate first tries to locate an existing tunnel based on parms. If thatβs unsuccessful, but create is set, a new tunnel device is created and registered for use. thatβs it, thatβs the plot β¨
π₯ RETURN π₯
The matching tunnel, or NULL. no cap.
π SEE ALSO π
Kernel file ./net/ipv6/ip6_vti.c plus all these function besties: vti6_tnl_lookup(9), vti6_tnl_bucket(9), vti6_dev_uninit(9), vti6_addr_conflict(9), vti6_xmit(9), vti6_tnl_change(9), vti6_siocdevprivate(9), vti6_dev_setup(9), vti6_dev_init_gen(9), vti6_dev_init(9), vti6_fb_tnl_dev_init(9), vti6_tunnel_init(9), vti6_tunnel_cleanup(9).
mwah π cute little sign-off from vti6_locate(9): source/version is ./net/ipv6, dated October 2026. go be iconic with your tunnels π«Άπ
π¦ 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