Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/openvpn/dco.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ bool dco_check_pull_options(int msglevel, const struct options *o);
/**
* Initialize the DCO context
*
* @param mode the instance operating mode (P2P or multi-peer)
* @param dco the context to initialize
* @param c the main instance context
* @return true on success, false otherwise
*/
bool ovpn_dco_init(int mode, dco_context_t *dco);
bool ovpn_dco_init(struct context *c);

/**
* Open/create a DCO interface
Expand Down Expand Up @@ -169,6 +168,7 @@ int init_key_dco_bi(struct tls_multi *multi, struct key_state *ks,
* recoverable and should reset the connection
*/
bool dco_update_keys(dco_context_t *dco, struct tls_multi *multi);

/**
* Install a new peer in DCO - to be called by a CLIENT (or P2P) instance
*
Expand Down Expand Up @@ -284,7 +284,7 @@ dco_check_pull_options(int msglevel, const struct options *o)
}

static inline bool
ovpn_dco_init(int mode, dco_context_t *dco)
ovpn_dco_init(struct context *c)
{
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions src/openvpn/dco_freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ close_fd(dco_context_t *dco)
}

bool
ovpn_dco_init(int mode, dco_context_t *dco)
ovpn_dco_init(struct context *c)
{
if (open_fd(dco) < 0)
if (open_fd(&c->c1.tuntap->dco) < 0)
{
msg(M_ERR, "Failed to open socket");
return false;
Expand Down
Loading