ovpn_peer_get_by_vpn_addr4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–
  • NULL otherwise πŸ™ˆ

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 🧚:


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