STRUCT OVPN_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct ovpn_priv β€” per ovpn interface state. Hii bestie, welcome to the struct ovpn_priv(9) page in the Kernel API Manual πŸ’– This is the state struct for an ovpn interface, and we’re doing a full field roll call, no skips.

✨ SYNOPSIS ✨

Okay so here’s the whole struct, exactly as it appears:

       struct ovpn_priv {
           struct net_device *dev;
           enum ovpn_mode mode;
           spinlock_t lock;
           struct ovpn_peer_collection *peers;
           struct ovpn_peer *peer;
           struct gro_cells gro_cells;
           struct delayed_work keepalive_work;
        };

🫢 Members 🫢

  • dev β€” the actual netdev representing the tunnel πŸš‡
  • mode β€” device operation mode (i.e. p2p, mp, ..) β€” literally β€œwhich mode are we in?” energy πŸ’…
  • lock β€” protect this object πŸ”’
  • peers β€” data structures holding multi-peer references πŸ«‚
  • peer β€” in P2P mode, this is the only remote peer πŸ‘‘
  • gro_cells β€” pointer to the Generic Receive Offload cell 🌾
  • keepalive_work β€” struct used to schedule keepalive periodic job ⏰

πŸ” SEE ALSO πŸ”

  • Kernel file ./drivers/net/ovpn/ovpnpriv.h
  • struct ovpn_peer_collection(9) β€” go read, iykyk πŸ¦‹

xoxo, your Kernel API Manual bestie πŸ’œ β€” source ./drivers/net/ovpn, October 2026, page struct ovpn_priv(9). That’s the vibe, periodt ✨

πŸ“¦ where this page comes from