ovpn_peer_get_by_dst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ovpn_peer_get_by_dst πŸ’…

okay bestie, welcome to the ovpn_peer_get_by_dst(9) page from the Kernel API Manual. this is the peer lookup by destination situation, and yes it's giving main character energy. πŸ’–


πŸŽ€ NAME πŸŽ€

ovpn_peer_get_by_dst β€” lookup peer to send skb to. slay. ✨

🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ovpn β€” the private data representing the current VPN session. that's the session vibe holder. πŸ’œ
  • skb β€” the skb to extract the destination address from. yes bestie, the whole point. πŸ‘‘

✨ DESCRIPTION ✨

so this function takes a tunnel packet and looks up the peer to send it to after encapsulation. no cap. πŸ”₯

the skb is expected to be the in-tunnel packet, without any OpenVPN related header. literally keep that in mind. πŸ’…

assume that the IP header is accessible in the skb data. that's the assumption, periodt. 🫢

🌈 RETURN 🌈

the peer if found, or NULL otherwise. cute and simple. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie β€” footer says source/version ./drivers/net/ovpn, dated October 2026. go off, kernel docs. πŸ’…βœ¨

πŸ“¦ where this page comes from