ovpn_peer_add_p2p(9)
π ovpn_peer_add_p2p(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to ovpn_peer_add_p2p(9), a page from the Kernel API Manual, and it's literally about one (1) little job: adding a peer to the related tables in a P2P instance. that's it. that's the whole gig. short page, main character energy, let's go π«Ά
β¨ NAME β¨
ovpn_peer_add_p2p β add peer to related tables in a P2P instance
like, you have a peer, you have a P2P instance, and this function is the matchmaker that gets the peer into the right tables. no cap π
π¦ SYNOPSIS π¦
int ovpn_peer_add_p2p (struct ovpn_priv *ovpn , struct ovpn_peer *peer
);
that's the whole signature, bestie β int coming back atcha, and two pointers going in. slay.
π ARGUMENTS π
ovpnβ the instance to add the peer to. this is the P2P party, and you're the one doing the inviting β¨peerβ the peer to add. the guest of honor, the icon, the moment πΈ
π RETURN π
0 on success, or a negative error code otherwise. so like, if you get 0 we're celebrating π and if it's negative... well. it's giving "something went sideways," and the negative error code will tell you what. read it. respect it. π
π SEE ALSO π
the source vibe lives in the kernel file ./drivers/net/ovpn/peer.c β and honestly the whole peer friend group is listed below, so go be nosy:
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_nexthop_from_rt6(9)ovpn_peer_check_by_src(9)ovpn_peer_add_mp(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!! this iconic lil doc comes from ./drivers/net/ovpn, dated October 2026, and it's the ovpn_peer_add_p2p(9) manual page β literally signed, sealed, delivered πβ¨
π¦ 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