OpenVPN
|
#include <tun.h>
Data Fields | |
int | type |
int | topology |
enum tun_driver_type | backend_driver |
The backend driver that used for this tun/tap device. | |
bool | did_ifconfig_setup |
if the internal variables related to ifconfig of this struct have been set up. | |
bool | did_ifconfig_ipv6_setup |
if the internal variables related to ifconfig-ipv6 of this struct have been set up. | |
bool | persistent_if |
struct tuntap_options | options |
char * | actual_name |
in_addr_t | local |
in_addr_t | remote_netmask |
struct in6_addr | local_ipv6 |
struct in6_addr | remote_ipv6 |
int | netbits_ipv6 |
HANDLE | hand |
OVERLAPPED | dco_new_peer_ov |
struct overlapped_io | reads |
struct overlapped_io | writes |
struct rw_handle | rw_handle |
bool | ipapi_context_defined |
ULONG | ipapi_context |
ULONG | ipapi_instance |
in_addr_t | adapter_netmask |
DWORD | adapter_index |
int | standby_iter |
unsigned int | rwflags_debug |
dco_context_t | dco |
afunix_context_t | afunix |
char* tuntap::actual_name |
Definition at line 202 of file tun.h.
Referenced by add_route_ipv6(), add_routes(), close_tun(), close_tun_afunix(), delete_route_ipv6(), do_address_service(), do_close_tun(), do_close_tun_simple(), do_dns_domain_service(), do_dns_service(), do_open_tun(), do_route_ipv6_service(), do_set_mtu_service(), do_wins_service(), open_tun_afunix(), open_tun_backend(), open_tun_null(), process_outgoing_tun(), route_ipv6_ipapi(), run_up_down_service(), tun_open_device(), undo_ifconfig_ipv4(), and undo_ifconfig_ipv6().
DWORD tuntap::adapter_index |
Definition at line 228 of file tun.h.
Referenced by add_route_ipv6(), add_wfp_block(), dco_p2p_start_vpn(), dhcp_release(), dhcp_renew(), do_address_service(), do_close_tun(), do_dns_domain_service(), do_dns_domain_wmic(), do_dns_service(), do_ifconfig_ipv4(), do_ifconfig_ipv6(), do_open_tun(), do_route_ipv6_service(), do_set_mtu_service(), do_wins_service(), get_tun_adapter(), init_tun_post(), netsh_delete_address_dns(), route_ipv6_ipapi(), run_up_down_service(), service_enable_dhcp(), tun_open_device(), tuntap_set_ip_addr(), and tuntap_set_ip_props().
in_addr_t tuntap::adapter_netmask |
Definition at line 224 of file tun.h.
Referenced by do_address_service(), do_ifconfig_ipv4(), init_tun(), is_adapter_up(), tuntap_dhcp_mask(), tuntap_set_ip_addr(), and tuntap_set_ip_props().
afunix_context_t tuntap::afunix |
Definition at line 244 of file tun.h.
Referenced by close_tun_afunix(), read_tun_afunix(), tun_afunix_exec_child(), and write_tun_afunix().
enum tun_driver_type tuntap::backend_driver |
The backend driver that used for this tun/tap device.
This can be one of the various windows drivers, "normal" tun/tap, utun, dco, ...
Definition at line 188 of file tun.h.
Referenced by can_preserve_tun(), close_tun_handle(), create_socket_dco_win(), do_close_tun_simple(), do_init_tun(), ifconfig_noexec_enabled(), ifconfig_order(), init_tun_post(), open_tun(), open_tun_backend(), process_outgoing_tun(), read_incoming_tun(), route_noexec_enabled(), route_order(), tap_win_getinfo(), tun_open_device(), tun_set(), tun_try_open_device(), tuntap_is_dco_win(), tuntap_post_open(), tuntap_set_ip_addr(), and undo_ifconfig().
dco_context_t tuntap::dco |
Definition at line 243 of file tun.h.
Referenced by check_dco_key_status(), dco_event_set(), do_deferred_options_part2(), do_deferred_p2p_ncp(), do_init_crypto_tls(), do_open_tun(), init_tun_post(), io_wait_dowork(), multi_client_generate_tls_keys(), multi_io_wait(), multi_print_status(), process_incoming_dco(), and setenv_stats().
OVERLAPPED tuntap::dco_new_peer_ov |
Definition at line 214 of file tun.h.
Referenced by create_socket_dco_win().
bool tuntap::did_ifconfig_ipv6_setup |
if the internal variables related to ifconfig-ipv6 of this struct have been set up.
This does NOT mean ifconfig has been called
Definition at line 196 of file tun.h.
Referenced by add_routes(), close_tun(), do_ifconfig(), do_ifconfig_setenv(), init_tun(), run_dns_up_down(), tuntap_set_ptp(), and undo_ifconfig().
bool tuntap::did_ifconfig_setup |
if the internal variables related to ifconfig of this struct have been set up.
This does NOT mean ifconfig has been called
Definition at line 192 of file tun.h.
Referenced by add_routes(), close_tun(), do_ifconfig(), do_ifconfig_ipv6(), do_ifconfig_setenv(), init_tun(), run_dns_up_down(), test_routes(), tuntap_post_open(), tuntap_set_ip_addr(), tuntap_set_ptp(), and undo_ifconfig().
HANDLE tuntap::hand |
Definition at line 213 of file tun.h.
Referenced by clear_tuntap(), close_tun_handle(), create_socket_dco_win(), dco_get_peer_stats(), dco_p2p_start_vpn(), read_incoming_tun(), tun_read_queue(), tun_try_open_device(), tun_write_queue(), tun_write_win32(), tuntap_defined(), tuntap_dhcp_mask(), tuntap_get_mtu(), tuntap_get_version_info(), tuntap_set_connected(), and tuntap_set_ptp().
ULONG tuntap::ipapi_context |
Definition at line 222 of file tun.h.
Referenced by close_tun(), and tuntap_set_ip_addr().
bool tuntap::ipapi_context_defined |
Definition at line 221 of file tun.h.
Referenced by close_tun(), and tuntap_set_ip_addr().
ULONG tuntap::ipapi_instance |
Definition at line 223 of file tun.h.
Referenced by tuntap_set_ip_addr().
in_addr_t tuntap::local |
Definition at line 205 of file tun.h.
Referenced by do_address_service(), do_close_tun(), do_ifconfig(), do_ifconfig_ipv4(), do_ifconfig_setenv(), do_open_tun(), init_tun(), initialization_sequence_completed(), is_adapter_up(), multi_init(), multi_select_virtual_addr(), netsh_delete_address_dns(), tuntap_dhcp_mask(), tuntap_set_ip_addr(), tuntap_set_ip_props(), tuntap_set_ptp(), and undo_ifconfig_ipv4().
struct in6_addr tuntap::local_ipv6 |
Definition at line 208 of file tun.h.
Referenced by add_route_connected_v6_net(), delete_route_connected_v6_net(), do_address_service(), do_ifconfig(), do_ifconfig_ipv6(), do_ifconfig_setenv(), init_tun(), initialization_sequence_completed(), multi_select_virtual_addr(), netsh_delete_address_dns(), and undo_ifconfig_ipv6().
int tuntap::netbits_ipv6 |
Definition at line 210 of file tun.h.
Referenced by add_route_connected_v6_net(), delete_route_connected_v6_net(), do_address_service(), do_ifconfig_ipv6(), do_ifconfig_setenv(), init_tun(), and undo_ifconfig_ipv6().
struct tuntap_options tuntap::options |
Definition at line 200 of file tun.h.
Referenced by add_route_ipv6(), close_tun(), create_socket_dco_win(), delete_route_ipv6(), dhcp_release(), dhcp_renew(), do_address_service(), do_dns_domain_service(), do_dns_domain_wmic(), do_dns_service(), do_ifconfig_ipv4(), do_ifconfig_ipv6(), do_open_tun(), do_route_ipv4_service(), do_route_ipv6_service(), do_set_mtu_service(), do_wins_service(), fork_register_dns_action(), init_tun_post(), netsh_delete_address_dns(), open_tun(), service_enable_dhcp(), tun_open_device(), tuntap_dhcp_mask(), tuntap_set_connected(), tuntap_set_ip_addr(), and tuntap_set_ip_props().
struct overlapped_io tuntap::reads |
Definition at line 215 of file tun.h.
Referenced by close_tun_handle(), init_tun_post(), read_incoming_tun(), and tun_read_queue().
struct in6_addr tuntap::remote_ipv6 |
Definition at line 209 of file tun.h.
Referenced by do_ifconfig_ipv6(), do_ifconfig_setenv(), and init_tun().
in_addr_t tuntap::remote_netmask |
Definition at line 206 of file tun.h.
Referenced by do_close_tun(), do_ifconfig_ipv4(), do_ifconfig_setenv(), do_open_tun(), init_tun(), multi_select_virtual_addr(), tuntap_dhcp_mask(), tuntap_set_ptp(), and undo_ifconfig_ipv4().
struct rw_handle tuntap::rw_handle |
Definition at line 217 of file tun.h.
Referenced by init_tun_post(), and tun_event_handle().
int tuntap::topology |
Definition at line 183 of file tun.h.
Referenced by do_ifconfig_ipv4(), init_tun(), tuntap_dhcp_mask(), and tuntap_set_ptp().
int tuntap::type |
Definition at line 180 of file tun.h.
Referenced by add_route_ipv6(), delete_route_ipv6(), do_address_service(), do_ifconfig_ipv4(), do_ifconfig_ipv6(), do_route_ipv6_service(), init_tun(), is_tun_type_set(), netsh_delete_address_dns(), open_tun(), route_ipv6_ipapi(), tuntap_dhcp_mask(), tuntap_get_version_info(), and tuntap_post_open().
struct overlapped_io tuntap::writes |
Definition at line 216 of file tun.h.
Referenced by close_tun_handle(), init_tun_post(), tun_write_queue(), and tun_write_win32().