ovpn_peer_get_by_id(9)
β¨ ovpn_peer_get_by_id(9) β¨
okay so bestie, welcome to the ovpn_peer_get_by_id page from the Kernel API Manual π
this one is short and sweet and honestly kind of iconic for it β it's the little lookup function that goes "hey, do I have a peer with this ID or not" π
πΈ NAME πΈ
ovpn_peer_get_by_id β retrieve peer by ID π¦
β¨ SYNOPSIS β¨
struct ovpn_peer * ovpn_peer_get_by_id (struct ovpn_priv *ovpn , u32 peer_id );
like, you hand it an ovpn and a peer_id and it hands you back a struct ovpn_peer * β that's the whole vibe π«Ά
π ARGUMENTS π
ovpnβ the openvpn instance to search π this is the place we're digging around inpeer_idβ the unique peer identifier to match π― literally the one ID we're looking for
π RETURN π
a pointer to the peer if found or NULL otherwise π so either you get your peer, or you get nothing at all β no in-between, no drama, no cap π
π SEE ALSO π
Kernel file ./drivers/net/ovpn/peer.c β and bestie, the whole peer squad is here, buckle up:
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_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 β no bugs to warn you about, no weird caveats, just a clean little lookup π§ see you in ./drivers/net/ovpn, October 2026 edition, from the Kernel API Manual, 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