OpenVPN
tuntap Struct Reference

#include <tun.h>

Collaboration diagram for tuntap:

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

Detailed Description

Definition at line 180 of file tun.h.

Field Documentation

◆ actual_name

◆ adapter_index

◆ adapter_netmask

◆ afunix

afunix_context_t tuntap::afunix

Definition at line 248 of file tun.h.

Referenced by close_tun_afunix(), read_tun_afunix(), tun_afunix_exec_child(), and write_tun_afunix().

◆ backend_driver

◆ dco

◆ dco_new_peer_ov

OVERLAPPED tuntap::dco_new_peer_ov

Definition at line 218 of file tun.h.

Referenced by create_socket_dco_win().

◆ did_ifconfig_ipv6_setup

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 199 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().

◆ did_ifconfig_setup

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 195 of file tun.h.

Referenced by add_routes(), close_tun(), do_ifconfig(), do_ifconfig_ipv6(), do_ifconfig_setenv(), ifconfig_options_string(), init_tun(), run_dns_up_down(), test_routes(), tuntap_post_open(), tuntap_set_ip_addr(), tuntap_set_ptp(), and undo_ifconfig().

◆ hand

◆ ipapi_context

ULONG tuntap::ipapi_context

Definition at line 226 of file tun.h.

Referenced by close_tun(), and tuntap_set_ip_addr().

◆ ipapi_context_defined

bool tuntap::ipapi_context_defined

Definition at line 225 of file tun.h.

Referenced by close_tun(), and tuntap_set_ip_addr().

◆ ipapi_instance

ULONG tuntap::ipapi_instance

Definition at line 227 of file tun.h.

Referenced by tuntap_set_ip_addr().

◆ local

◆ local_ipv6

◆ netbits_ipv6

◆ options

◆ persistent_if

bool tuntap::persistent_if

Definition at line 201 of file tun.h.

◆ reads

struct overlapped_io tuntap::reads

Definition at line 219 of file tun.h.

Referenced by close_tun_handle(), init_tun_post(), read_incoming_tun(), tun_read_queue(), and tun_stat().

◆ remote_ipv6

struct in6_addr tuntap::remote_ipv6

Definition at line 212 of file tun.h.

Referenced by do_ifconfig_ipv6(), do_ifconfig_setenv(), and init_tun().

◆ remote_netmask

◆ rw_handle

struct rw_handle tuntap::rw_handle

Definition at line 221 of file tun.h.

Referenced by init_tun_post(), and tun_event_handle().

◆ rwflags_debug

unsigned int tuntap::rwflags_debug

Definition at line 245 of file tun.h.

Referenced by tun_set(), and tun_stat().

◆ standby_iter

int tuntap::standby_iter

Definition at line 234 of file tun.h.

Referenced by tun_standby(), and tun_standby_init().

◆ topology

int tuntap::topology

Definition at line 186 of file tun.h.

Referenced by do_ifconfig_ipv4(), init_tun(), is_tun_p2p(), tuntap_dhcp_mask(), and tuntap_set_ptp().

◆ type

◆ writes

struct overlapped_io tuntap::writes

Definition at line 220 of file tun.h.

Referenced by close_tun_handle(), init_tun_post(), tun_stat(), tun_write_queue(), and tun_write_win32().


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