STRUCT OVPN_BIND(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ovpn_bind(9) πŸ’–

okay so real talk β€” this is a page from the Kernel API Manual, and it's all about struct ovpn_bind, which is basically the remote peer binding glow-up. it's the lil data structure that remembers who your peer is and how you're reaching them. bestie, it's giving "address book entry but make it kernel" πŸŽ€


✨ NAME ✨

struct ovpn_bind β€” remote peer binding 🫢

like, the whole point is binding a peer to a remote address. iconic behavior, no cap.


🌸 SYNOPSIS 🌸

here's the whole thing, verbatim, don't @ me:

struct ovpn_bind {
    union ovpn_sockaddr remote;
    union {
      struct in_addr ipv4;
      struct in6_addr ipv6;
    } local;
    struct rcu_head rcu;
 };

that's it. that's the struct. lowkey gorgeous πŸ’…


πŸ¦‹ Members πŸ¦‹

  • remote β€” the remote peer sockaddress. this is the main character right here β€” where your peer lives, address-wise ✨
  • local β€” the local endpoint used to talk to the peer. like, the whole "this is the address I'm calling from" vibe πŸ’–
    • local.ipv4 β€” local IPv4 used to talk to the peer. classic, reliable, still slaying 🌈
    • local.ipv6 β€” local IPv6 used to talk to the peer. futuristic queen behavior πŸ‘‘
  • rcu β€” used to schedule RCU cleanup job. not the fun one, but somebody's gotta do the cleanup 🧹 it's giving "designated driver of the struct"
fr fr, local is a union holding either local.ipv4 or local.ipv6 β€” pick your fighter, not both πŸ’€

πŸ’œ SEE ALSO πŸ’œ

go read these next, iykwim:

  • Kernel file ./drivers/net/ovpn/bind.h β€” literally the home of all this, go look
  • union ovpn_sockaddr(9) β€” the union doing the sockaddr thing
  • ovpn_bind_skb_src_match(9) β€” the friend that checks if the skb source matches 🫢

periodt. that's the whole page. go forth and bind responsibly πŸ¦‹


and that's a wrap, bestie! 🌸 this one lives in ./drivers/net/ovpn, dated October 2026, and the page itself is struct ovpn_bind(9) β€” mwah, go read the source, it's right there πŸ˜­πŸ’–

πŸ“¦ where this page comes from