OpenVPN
Functions
helper.h File Reference
#include "options.h"
Include dependency graph for helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void helper_setdefault_topology (struct options *o)
 Set –topology default depending on –mode. More...
 
void helper_keepalive (struct options *o)
 
void helper_client_server (struct options *o)
 
void helper_tcp_nodelay (struct options *o)
 

Function Documentation

◆ helper_client_server()

void helper_client_server ( struct options o)

Definition at line 172 of file helper.c.

References add_in6_addr(), ASSERT, options::client, options::dev, options::dev_type, dev_type_enum(), DEV_TYPE_TAP, DEV_TYPE_TUN, options::enable_c2c, options::gc, gc_free(), gc_new(), helper_add_route(), helper_setdefault_topology(), options::ifconfig_ipv6_local, options::ifconfig_ipv6_netbits, options::ifconfig_ipv6_pool_base, options::ifconfig_ipv6_pool_defined, options::ifconfig_ipv6_pool_netbits, options::ifconfig_ipv6_remote, options::ifconfig_local, options::ifconfig_pool_defined, options::ifconfig_pool_end, IFCONFIG_POOL_MIN_NETBITS, options::ifconfig_pool_netmask, options::ifconfig_pool_start, ifconfig_pool_verify_range(), options::ifconfig_remote_netmask, M_USAGE, M_WARN, options::mode, MODE_SERVER, msg, netmask_to_netbits(), print_in6_addr(), print_in_addr_t(), print_netmask(), print_opt_route(), print_opt_route_gateway(), print_opt_route_gateway_dhcp(), print_opt_topology(), options::pull, options::push_ifconfig_constraint_defined, options::push_ifconfig_constraint_netmask, options::push_ifconfig_constraint_network, push_option(), options::route_default_gateway, options::server_bridge_defined, options::server_bridge_ip, options::server_bridge_netmask, options::server_bridge_pool_end, options::server_bridge_pool_start, options::server_bridge_proxy_dhcp, options::server_defined, options::server_flags, options::server_ipv6_defined, options::server_netbits_ipv6, options::server_netmask, options::server_network, options::server_network_ipv6, SF_NO_PUSH_ROUTE_GATEWAY, SF_NOPOOL, options::shared_secret_file, status, options::tls_client, options::tls_server, TOP_NET30, TOP_P2P, TOP_SUBNET, options::topology, and verify_common_subnet().

Referenced by options_postprocess_mutate().

◆ helper_keepalive()

void helper_keepalive ( struct options o)

◆ helper_setdefault_topology()

void helper_setdefault_topology ( struct options o)

Set –topology default depending on –mode.

Definition at line 144 of file helper.c.

References options::dev, options::dev_type, dev_type_enum(), DEV_TYPE_TUN, options::mode, MODE_SERVER, TOP_NET30, TOP_SUBNET, TOP_UNDEF, and options::topology.

Referenced by helper_client_server(), and options_postprocess_mutate().

◆ helper_tcp_nodelay()

void helper_tcp_nodelay ( struct options o)