ovpn_udp4_output(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ovpn_udp4_output(9) 🌸

okay so bestie, welcome to the Kernel API Manual page for ovpn_udp4_output β€” literally the function that sends an IPv4 packet over a udp socket. yes that's the whole vibe. it's giving "one job, does it well" πŸ’…


✨ NAME ✨

ovpn_udp4_output β€” send IPv4 packet over udp socket πŸ¦‹

✨ SYNOPSIS ✨

int ovpn_udp4_output (struct ovpn_peer *peer , struct ovpn_bind *bind ,
struct dst_cache *cache , struct sock *sk , struct sk_buff *skb , const
struct ovpn_route_key *key );

✨ ARGUMENTS ✨

okay so here's the cast of characters, and they ALL matter, no cap πŸ‘‘

  • peer β€” the destination peer 🫢 like, who we're sending this to
  • bind β€” the binding related to the destination peer πŸ”— (yes, the one tied to peer above, they're a package deal)
  • cache β€” dst cache πŸŽ€ the destination cache, keeping things snappy
  • sk β€” the socket to send the packet over 🧚 this is the actual udp socket doing the yeeting
  • skb β€” the packet to send πŸ“¦ the payload itself, the main character
  • key β€” the route key snapshot used for cache validation and flow lookup πŸ”‘ snapshot energy: it's used for cache validation and flow lookup, both. iykyk

✨ RETURN ✨

0 on success, or a negative error code otherwise 😭 so like... check it. zero is the slay outcome, anything negative is the πŸ’€ outcome.

✨ SEE ALSO ✨

go look at the kernel file ./drivers/net/ovpn/udp.c and also these iconic siblings:


🌈 friendly reminder bestie: this page lives in ./drivers/net/ovpn, dated October 2026, and it's part of the Kernel API Manual. that's the whole footer, but make it cute πŸ’–

go forth and send those packets, you absolute icon β­πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from