ovpn_peer_get_by_vpn_addr4(9)
π ovpn_peer_get_by_vpn_addr4(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to ovpn_peer_get_by_vpn_addr4(9), like the actual manual page, except now it's fun to read π«Ά. it lives in the Kernel API Manual and it's genuinely so useful, i promise. let's get into it πΈ
π NAME π
ovpn_peer_get_by_vpn_addr4 β retrieve a peer by its VPN IPv4 address. that's it. that's the whole vibe. iconic behavior honestly π
β¨ SYNOPSIS β¨
struct ovpn_peer * ovpn_peer_get_by_vpn_addr4 (struct ovpn_priv *ovpn ,
__be32 addr );
look at that signature. so clean. so cunty. no cap π
π¦ ARGUMENTS π¦
ovpnβ the openvpn instance you wanna search, like your search party headquarters πaddrβ the VPN IPv4 address you're using as a search key, i.e. the thing you're looking for π
π DESCRIPTION π
okay so this is the part where i need you to pay attention, bestie, because it's important π
the refcounter is not increased for the returned peer. like, not even a little. it stays exactly where it is. so don't go assuming you've got a nice safe reference to hold onto, because you don't. it's giving "borrowed, not owned" energy π
that's literally the whole description. short and iconic, periodt β¨
π RETURN π
- the peer, if it's found π
NULLotherwise π
slay. simple. no drama.
π SEE ALSO π
so many friends in the kernel file ./drivers/net/ovpn/peer.c, and here they all are, no gatekeeping, iykyk π§:
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_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_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 whole page, bestie!! π this came out of ./drivers/net/ovpn with an October 2026 date on it, so like, shoutout to the source and the version for making this little moment possible π go forth and find your peers, main character π
π¦ 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