ovpn_peer_ge...nsp_addr_p2p(9)
πΈ NAME πΈ
okay so bestie, welcome to the Kernel API Manual page for ovpn_peer_get_by_transp_addr_p2p β the function that gets you a peer by its transport address when you're chilling inside a P2P instance. yes, that's the whole vibe. π
β¨ SYNOPSIS β¨
struct ovpn_peer * ovpn_peer_get_by_transp_addr_p2p (struct ovpn_priv
*ovpn , struct sockaddr_storage *ss );
like, it hands you back a struct ovpn_peer * and takes exactly two things. no more, no less. π
π ARGUMENTS π
ovpnβ the openvpn instance you wanna search through. this is the main character you're digging around in πssβ the transport socket address. like, the address-address,struct sockaddr_storageflavored π§
π RETURN π
you get the peer back if it's found β and if it's not? NULL. that's it, that's the deal. no cap. π«Ά
π¦ SEE ALSO π¦
so this whole thing lives in the kernel file ./drivers/net/ovpn/peer.c, and there is so much more to read if you're obsessed like me:
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(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)
β¨ and that's the page, bestie!! source situation is ./drivers/net/ovpn, dated October 2026, and the header title was literally ovpn_peer_ge...nsp_addr_p2p(9) β yeah the name got truncated, she's mysterious like that π. go forth and peer-search, ily, mwah ππ
π¦ 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