ip6_tnl_lookup(9)
β¨ ip6_tnl_lookup(9) β¨
okay so bestie, welcome to the kernel API manual for ip6_tnl_lookup β it's giving "find my tunnel" energy and honestly? iconic. π
π NAME π
ip6_tnl_lookup β fetch the tunnel that matches the end-point addresses π¦
πΈ SYNOPSIS πΈ
struct ip6_tnl * ip6_tnl_lookup (struct net *net , int link , const
struct in6_addr *remote , const struct in6_addr *local );
β¨ ARGUMENTS β¨
netβ the network namespace, iykyk πlinkβ the ifindex of the underlying interfaceremoteβ the address of the tunnel exit-pointlocalβ the address of the tunnel entry-point
π RETURN π
the tunnel matching the given end-points if it's found π; otherwise it falls back to the fallback tunnel if its device is up; otherwise NULL. no cap, that's the whole deal.
π«Ά SEE ALSO π«Ά
Kernel file ./net/ipv6/ip6_tunnel.c
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_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)
that's the whole page bestie, slay π
sign-off: this one lives in ./net/ipv6 and it's dated October 2026 β shoutout to that source/version and date combo, periodt π₯π
π¦ 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