FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
tuntap_main_t Struct Reference

TUNTAP node main state. More...

+ Collaboration diagram for tuntap_main_t:

Data Fields

tuntap_per_thread_tthreads
 per thread variables More...
 
int dev_net_tun_fd
 File descriptors for /dev/net/tun and provisioning socket. More...
 
int dev_tap_fd
 
int is_ether
 Create a "tap" [ethernet] encaps device. More...
 
int have_normal_interface
 1 if a "normal" routed intfc, 0 if a punt/inject interface More...
 
u8 ether_dst_mac [6]
 tap device destination MAC address. More...
 
u32 mtu_bytes
 Interface MTU in bytes and # of default sized buffers. More...
 
u32 mtu_buffers
 
char * tun_name
 Linux interface name for tun device. More...
 
subif_address_tsubifs
 Pool of subinterface addresses. More...
 
mhash_t subif_mhash
 Hash for subif addresses. More...
 
u32 clib_file_index
 Unix file index. More...
 
u32 hw_if_index
 For the "normal" interface, if configured. More...
 
u32 sw_if_index
 

Detailed Description

TUNTAP node main state.

Definition at line 87 of file tuntap.c.

Field Documentation

◆ clib_file_index

u32 tuntap_main_t::clib_file_index

Unix file index.

Definition at line 118 of file tuntap.c.

◆ dev_net_tun_fd

int tuntap_main_t::dev_net_tun_fd

File descriptors for /dev/net/tun and provisioning socket.

Definition at line 93 of file tuntap.c.

◆ dev_tap_fd

int tuntap_main_t::dev_tap_fd

Definition at line 93 of file tuntap.c.

◆ ether_dst_mac

u8 tuntap_main_t::ether_dst_mac[6]

tap device destination MAC address.

Required, or Linux drops pkts

Definition at line 103 of file tuntap.c.

◆ have_normal_interface

int tuntap_main_t::have_normal_interface

1 if a "normal" routed intfc, 0 if a punt/inject interface

Definition at line 100 of file tuntap.c.

◆ hw_if_index

u32 tuntap_main_t::hw_if_index

For the "normal" interface, if configured.

Definition at line 121 of file tuntap.c.

◆ is_ether

int tuntap_main_t::is_ether

Create a "tap" [ethernet] encaps device.

Definition at line 96 of file tuntap.c.

◆ mtu_buffers

u32 tuntap_main_t::mtu_buffers

Definition at line 106 of file tuntap.c.

◆ mtu_bytes

u32 tuntap_main_t::mtu_bytes

Interface MTU in bytes and # of default sized buffers.

Definition at line 106 of file tuntap.c.

◆ subif_mhash

mhash_t tuntap_main_t::subif_mhash

Hash for subif addresses.

Definition at line 115 of file tuntap.c.

◆ subifs

subif_address_t* tuntap_main_t::subifs

Pool of subinterface addresses.

Definition at line 112 of file tuntap.c.

◆ sw_if_index

u32 tuntap_main_t::sw_if_index

Definition at line 121 of file tuntap.c.

◆ threads

tuntap_per_thread_t* tuntap_main_t::threads

per thread variables

Definition at line 90 of file tuntap.c.

◆ tun_name

char* tuntap_main_t::tun_name

Linux interface name for tun device.

Definition at line 109 of file tuntap.c.


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