ip6_tnl_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 interface
  • remote β€” the address of the tunnel exit-point
  • local β€” 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


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