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...
 

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 155 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 204 of file openvpn.h.

◆ dns_cache

struct cached_dns_entry* context_1::dns_cache

Definition at line 165 of file openvpn.h.

Referenced by do_preresolve_host(), and link_socket_init_phase1().

◆ http_proxy

struct http_proxy_info* context_1::http_proxy

Definition at line 187 of file openvpn.h.

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

◆ http_proxy_owned

bool context_1::http_proxy_owned

Definition at line 188 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

◆ 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 157 of file openvpn.h.

Referenced by check_ping_restart(), do_close_link_socket(), do_init_tun(), inherit_context_child(), link_socket_init_phase1(), 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 199 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 180 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 175 of file openvpn.h.

Referenced by add_wfp_block(), check_add_routes(), check_add_routes_action(), del_wfp_block(), 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 191 of file openvpn.h.

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

◆ socks_proxy_owned

bool context_1::socks_proxy_owned

Definition at line 192 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 184 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 171 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: