OpenVPN
Functions
mock_push_dependencies.c File Reference
#include "error.h"
#include "options.h"
Include dependency graph for mock_push_dependencies.c:

Go to the source code of this file.

Functions

void throw_signal_soft (const int signum, const char *signal_text)
 Throw a soft global signal.
 
uint64_t pull_permission_mask (const struct context *c)
 
void unlearn_ifconfig (struct multi_context *m, struct multi_instance *mi)
 
void unlearn_ifconfig_ipv6 (struct multi_context *m, struct multi_instance *mi)
 
void update_vhash (struct multi_context *m, struct multi_instance *mi, const char *new_ip, const char *new_ipv6)
 Update the vhash with new IP/IPv6 addresses in the multi_context when a push-update message containing ifconfig/ifconfig-ipv6 options is sent from the server.
 
bool options_postprocess_pull (struct options *options, struct env_set *es)
 

Function Documentation

◆ options_postprocess_pull()

bool options_postprocess_pull ( struct options options,
struct env_set es 
)

Definition at line 66 of file mock_push_dependencies.c.

◆ pull_permission_mask()

uint64_t pull_permission_mask ( const struct context c)

◆ throw_signal_soft()

void throw_signal_soft ( const int  signum,
const char *  signal_text 
)

Throw a soft global signal.

Used to register internally generated signals due to errors that require a restart or exit, or restart requests received from the server. A textual description of the signal may be provided.

Definition at line 35 of file mock_push_dependencies.c.

References M_WARN, and msg.

◆ unlearn_ifconfig()

void unlearn_ifconfig ( struct multi_context m,
struct multi_instance mi 
)

Definition at line 51 of file mock_push_dependencies.c.

◆ unlearn_ifconfig_ipv6()

void unlearn_ifconfig_ipv6 ( struct multi_context m,
struct multi_instance mi 
)

Definition at line 56 of file mock_push_dependencies.c.

◆ update_vhash()

void update_vhash ( struct multi_context m,
struct multi_instance mi,
const char *  new_ip,
const char *  new_ipv6 
)

Update the vhash with new IP/IPv6 addresses in the multi_context when a push-update message containing ifconfig/ifconfig-ipv6 options is sent from the server.

Parameters
mThe multi_context
miThe multi_instance of the client we are updating
new_ipThe new IPv4 address or NULL if no change
new_ipv6The new IPv6 address or NULL if no change

Definition at line 61 of file mock_push_dependencies.c.