ovpn_peer_ge..._transp_addr(9)
π
ovpn_peer_ge..._transp_addr(9) π
okay so bestie, welcome to the kernel API manual for ovpn_peer_get_by_transp_addr β that's section 9, the kernel API manual, and yes the header is literally abbreviated like that, don't come for me, that's just how the page is titled πΈ
β¨ NAME β¨
ovpn_peer_get_by_transp_addr β retrieve peer by transport address π«Ά
Like, you have a transport address and you want the peer that goes with it? That's the whole gig. Iconic, honestly.
π¦ SYNOPSIS π¦
struct ovpn_peer * ovpn_peer_get_by_transp_addr (struct ovpn_priv *ovpn
, struct sk_buff *skb );
Note the struct ovpn_peer * return type up front, and yeah the params are split across two lines exactly like that β copy it verbatim, no cap π
πΈ ARGUMENTS πΈ
ovpnβ the openvpn instance to search π like, which instance are we even digging throughskbβ the skb to retrieve the source transport address from π¦ so we're fishing the source transport address out of this bad boy
β RETURN β
a pointer to the peer if found, or NULL otherwise π β that's it, that's the deal. Found = pointer, not found = NULL, no in-between periodt π
π SEE ALSO π
Kernel file ./drivers/net/ovpn/peer.c β and here's the whole friend group, everyone's invited π:
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_id_p2p(9)ovpn_peer_get_by_id(9)ovpn_peer_get_by_dst(9)ovpn_nexthop_from_rt4(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)
okay that's the whole page, you ate that π
β¨ this came from ./drivers/net/ovpn, dated October 2026 β mwah, go read some kernel source bestie π§π
π¦ 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