ovpn_nexthop_from_rt6(9)
ovpn_nexthop_from_rt6(9) π β¨
okay so this is the ovpn_nexthop_from_rt6(9) page from the Kernel API Manual, and bestie, it's giving "small function, very important vibe." Let's get into it π¦
π NAME π
ovpn_nexthop_from_rt6 β look up the IPv6 nexthop for the given destination β¨
π SYNOPSIS π
struct in6_addr ovpn_nexthop_from_rt6 (struct ovpn_priv *ovpn , struct in6_addr dest );
πΈ ARGUMENTS πΈ
ovpnβ the private data representing the current VPN session πdestβ the destination to be looked up π
π¦ DESCRIPTION π¦
Okay so picture this: it looks up the IP of the nexthop to be used to reach the dest you passed as an argument, inside the IPv6 system routing table. That's the main character task, no cap.
If no nexthop can be found, it returns dest itself, because it probably has to be used as the nexthop. Like, it's not lost β it's just volunteering as tribute π«Ά
β RETURN β
the IP of the next hop if found or dest itself otherwise π
π SEE ALSO π
the whole squad is here, bestie β go check them out:
- Kernel file
./drivers/net/ovpn/peer.c ovpn_peer_keepalive_set(9)ovpn_peer_keepalive_send(9)ovpn_peer_new(9)ovpn_peer_reset_sockaddr(9)ovpn_peer_endpoints_update(9)ovpn_peer_release_rcu(9)ovpn_peer_release(9)ovpn_peer_release_kref(9)ovpn_peer_skb_to_sockaddr(9)ovpn_nexthop_from_skb4(9)ovpn_nexthop_from_skb6(9)ovpn_peer_get_by_vpn_addr4(9)ovpn_peer_get_by_vpn_addr6(9)ovpn_peer_vpn_addr_conflict4(9)ovpn_peer_vpn_addr_conflict6(9)ovpn_peer_transp_match(9)ovpn_peer_get_by_transp_addr_p2p(9)ovpn_peer_get_by_transp_addr(9)ovpn_peer_get_by_id_p2p(9)ovpn_peer_get_by_id(9)ovpn_peer_get_by_dst(9)ovpn_nexthop_from_rt4(9)ovpn_peer_check_by_src(9)ovpn_peer_add_mp(9)ovpn_peer_add_p2p(9)ovpn_peer_add(9)ovpn_peer_del_mp(9)ovpn_peer_del_p2p(9)ovpn_peer_del(9)ovpn_peer_release_p2p(9)ovpn_peers_free(9)ovpn_peer_keepalive_work(9)
catch you later, bestie π this one comes from the ./drivers/net/ovpn source, dated October 2026, and the page is literally ovpn_nexthop_from_rt6(9) ππ¦π
π¦ 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