ovpn_peer_ge..._transp_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ovpn_peer_ge..._transp_addr(9) πŸŽ€

okay so bestie, welcome to the kernel API manual for ovpn_peer_get_by_transp_addr β€” that's section 9, the kernel API manual, and yes the header is literally abbreviated like that, don't come for me, that's just how the page is titled 🌸


✨ NAME ✨

ovpn_peer_get_by_transp_addr β€” retrieve peer by transport address 🫢

Like, you have a transport address and you want the peer that goes with it? That's the whole gig. Iconic, honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ovpn_peer * ovpn_peer_get_by_transp_addr (struct ovpn_priv *ovpn
, struct sk_buff *skb );

Note the struct ovpn_peer * return type up front, and yeah the params are split across two lines exactly like that β€” copy it verbatim, no cap πŸ’œ


🌸 ARGUMENTS 🌸

  • ovpn β€” the openvpn instance to search πŸ” like, which instance are we even digging through
  • skb β€” the skb to retrieve the source transport address from πŸ“¦ so we're fishing the source transport address out of this bad boy

⭐ RETURN ⭐

a pointer to the peer if found, or NULL otherwise πŸ’€ β€” that's it, that's the deal. Found = pointer, not found = NULL, no in-between periodt 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ovpn/peer.c β€” and here's the whole friend group, everyone's invited πŸŽ€:


okay that's the whole page, you ate that πŸ’…βœ¨ this came from ./drivers/net/ovpn, dated October 2026 β€” mwah, go read some kernel source bestie πŸ§šπŸ’–

πŸ“¦ where this page comes from