ovpn_peer_get_by_dst(9)
π
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β theskbto 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 π₯
- Kernel file
./drivers/net/ovpn/peer.c 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_id(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 β footer says source/version ./drivers/net/ovpn, dated October 2026. go off, kernel docs. π
β¨
π¦ 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