ovpn_nexthop_from_rt4(9)
π NAME π
okay bestie, this is the manual page for ovpn_nexthop_from_rt4(9) from the Kernel API Manual π
and it's literally the IPv4 nexthop-lookup helper you call when you need to know the nexthop for a given destination. lowkey iconic helper behavior, no cap β¨
β¨ SYNOPSIS β¨
__be32 ovpn_nexthop_from_rt4 (struct ovpn_priv *ovpn , __be32 dest );
that's the whole signature, bestie β copy-paste exact and don't touch the spacing π«Ά
π ARGUMENTS π
ovpnβ the private data representing the current VPN session, like the session's main-character data structure πdestβ the destination to be looked up, aka the address we're trying to reach π
πΈ DESCRIPTION πΈ
so here's the tea β: this function looks up the IP of the nexthop in the IPv4 system routing table β the nexthop that should be used to reach the dest argument you passed in. it's giving "routing table, do your thing" energy β¨
and if no nexthop can be found? bestie, it just returns dest itself, because it probably has to be used as the nexthop. that's the whole fallback vibe, fr fr ππ
π₯ RETURN π₯
the IP of the next hop if found π₯ or dest itself otherwise π
π SEE ALSO π
if you're going on a cross-reference side quest, here's the full squad π:
- 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_rt6(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)
and that's the whole page, babe π«Ά this one comes from source/version ./drivers/net/ovpn, dated October 2026, for the ovpn_nexthop_from_rt4(9) manual. go forth and route slayfully π
β¨π
π¦ 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