OpenVPN
Data Fields
context_1 Struct Reference

Level 1 context containing state that persists across SIGUSR1 restarts. More...

#include <openvpn.h>

Collaboration diagram for context_1:
Collaboration graph
[legend]

Data Fields

struct link_socket_addr link_socket_addr
 Local and remote addresses on the external network. More...
 
struct key_schedule ks
 
struct cached_dns_entrydns_cache
 
struct packet_id_persist pid_persist
 
struct tuntaptuntap
 Tun/tap virtual network interface. More...
 
bool tuntap_owned
 Whether the tun/tap interface should be cleaned up when this context is cleaned up. More...
 
struct route_listroute_list
 List of routing information. More...
 
struct route_ipv6_listroute_ipv6_list
 
struct status_outputstatus_output
 
bool status_output_owned
 
struct http_proxy_infohttp_proxy
 
bool http_proxy_owned
 
struct socks_proxy_infosocks_proxy
 
bool socks_proxy_owned
 
struct ifconfig_pool_persistifconfig_pool_persist
 
bool ifconfig_pool_persist_owned
 
struct sha256_digest pulled_options_digest_save
 Hash of option strings received from the remote OpenVPN server. More...
 
struct user_passauth_user_pass
 Username and password for authentication. More...
 
const char * ciphername
 Data channel cipher from config file. More...
 
const char * authname
 Data channel auth from config file. More...
 
int keysize
 Data channel keysize from config file. More...
 

Detailed Description

Level 1 context containing state that persists across SIGUSR1 restarts.

Level 1 state is reset on SIGHUP restarts. This structure is initialized for every iteration of the main() function's outer SIGHUP loop, but persists over iteration of that function's inner SIGUSR1 loop.

Definition at line 152 of file openvpn.h.

Field Documentation

◆ auth_user_pass

struct user_pass* context_1::auth_user_pass

Username and password for authentication.

Definition at line 205 of file openvpn.h.

◆ authname

const char* context_1::authname

Data channel auth from config file.

Definition at line 210 of file openvpn.h.

Referenced by do_init_crypto_tls(), inherit_context_child(), restore_ncp_options(), and save_ncp_options().

◆ ciphername

const char* context_1::ciphername

Data channel cipher from config file.

Definition at line 209 of file openvpn.h.

Referenced by do_init_crypto_tls(), inherit_context_child(), restore_ncp_options(), and save_ncp_options().

◆ dns_cache

struct cached_dns_entry* context_1::dns_cache

Definition at line 162 of file openvpn.h.

Referenced by do_init_socket_1(), and do_preresolve_host().

◆ http_proxy

struct http_proxy_info* context_1::http_proxy

Definition at line 184 of file openvpn.h.

Referenced by do_init_socket_1(), init_proxy_dowork(), and uninit_proxy_dowork().

◆ http_proxy_owned

bool context_1::http_proxy_owned

Definition at line 185 of file openvpn.h.

Referenced by init_proxy_dowork(), and uninit_proxy_dowork().

◆ ifconfig_pool_persist

struct ifconfig_pool_persist* context_1::ifconfig_pool_persist

◆ ifconfig_pool_persist_owned

bool context_1::ifconfig_pool_persist_owned

◆ keysize

int context_1::keysize

Data channel keysize from config file.

Definition at line 211 of file openvpn.h.

Referenced by inherit_context_child(), restore_ncp_options(), and save_ncp_options().

◆ ks

struct key_schedule context_1::ks

◆ link_socket_addr

struct link_socket_addr context_1::link_socket_addr

Local and remote addresses on the external network.

Definition at line 154 of file openvpn.h.

Referenced by check_ping_restart(), do_close_link_socket(), do_init_socket_1(), do_init_tun(), inherit_context_child(), and next_connection_entry().

◆ pid_persist

struct packet_id_persist context_1::pid_persist

◆ pulled_options_digest_save

struct sha256_digest context_1::pulled_options_digest_save

Hash of option strings received from the remote OpenVPN server.

Only used in client-mode.

Definition at line 200 of file openvpn.h.

Referenced by do_close_tun_simple(), and do_up().

◆ route_ipv6_list

struct route_ipv6_list* context_1::route_ipv6_list

Definition at line 177 of file openvpn.h.

Referenced by check_add_routes_action(), do_alloc_route_list(), do_close_tun(), and do_open_tun().

◆ route_list

struct route_list* context_1::route_list

List of routing information.

See the –route command line option.

Definition at line 172 of file openvpn.h.

Referenced by check_add_routes_action(), check_add_routes_dowork(), do_alloc_route_list(), do_close_tun(), do_open_tun(), and process_ip_header().

◆ socks_proxy

struct socks_proxy_info* context_1::socks_proxy

Definition at line 188 of file openvpn.h.

Referenced by do_init_socket_1(), init_proxy_dowork(), and uninit_proxy_dowork().

◆ socks_proxy_owned

bool context_1::socks_proxy_owned

Definition at line 189 of file openvpn.h.

Referenced by init_proxy_dowork(), and uninit_proxy_dowork().

◆ status_output

struct status_output* context_1::status_output

◆ status_output_owned

bool context_1::status_output_owned

Definition at line 181 of file openvpn.h.

Referenced by do_close_status_output(), do_open_status_output(), and inherit_context_top().

◆ tuntap

struct tuntap* context_1::tuntap

◆ tuntap_owned

bool context_1::tuntap_owned

Whether the tun/tap interface should be cleaned up when this context is cleaned up.

Definition at line 168 of file openvpn.h.

Referenced by do_close_tun(), do_close_tun_simple(), do_init_tun(), do_open_tun(), and inherit_context_top().


The documentation for this struct was generated from the following file: