ovpn_peer_get_by_id_p2p(9)
π ovpn_peer_get_by_id_p2p β the kernel API manual, bestie edition π
okay so this is ovpn_peer_get_by_id_p2p(9), from the Kernel API Manual, and it's lowkey one of the most straightforward little functions ever β like it does exactly what the name says and nothing else. no cap. π«Ά
β¨ NAME β¨
ovpn_peer_get_by_id_p2p β grab a peer by its ID, but specifically inside a P2P instance. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
struct ovpn_peer * ovpn_peer_get_by_id_p2p (struct ovpn_priv *ovpn , u32
peer_id );
π ARGUMENTS π
ovpnβ the openvpn instance you wanna search through. like, the whole party. πpeer_idβ the ID of the peer you're trying to find. the specific guest at the party, iykyk. π
β RETURN β
the peer, if it gets found β or NULL otherwise. so fr fr, check that return value, bestie, NULL is a real possibility. π
π¦ SEE ALSO π¦
the kernel file ./drivers/net/ovpn/peer.c, plus literally this whole squad of related calls:
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(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)
ngl the P2P variant is the lookup twin of the general ovpn_peer_get_by_id(9) β same energy, different scope. go read the friends above when you're done here π
that's the whole page, bestie!! this little icon comes from the ./drivers/net/ovpn corner of the kernel, dated October 2026 β mwah, slay, periodt. π
β¨π
π¦ 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