FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
tuntap.h File Reference

Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vnet_tap_connect_args_t
 arguments structure for vnet_tap_connect, vnet_tap_connect_renumber, etc. More...
 

Functions

void register_tuntap_inject_node_name (char *name)
 
int vnet_tap_connect (vlib_main_t *vm, vnet_tap_connect_args_t *args)
 Connect a tap interface. More...
 
int vnet_tap_connect_renumber (vlib_main_t *vm, vnet_tap_connect_args_t *args)
 Connect / renumber a tap interface. More...
 
int vnet_tap_modify (vlib_main_t *vm, vnet_tap_connect_args_t *args)
 Modify a tap interface. More...
 
int vnet_tap_delete (vlib_main_t *vm, u32 sw_if_index)
 delete a tap interface More...
 

Detailed Description

Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name.

Definition in file tuntap.h.

Function Documentation

void register_tuntap_inject_node_name ( char *  name)
int vnet_tap_connect ( vlib_main_t vm,
vnet_tap_connect_args_t ap 
)

Connect a tap interface.

Connect a tap interface.

Parameters
vm- vlib_main_t
ap- vnet_tap_connect_args_t
Returns
rc - int

Definition at line 855 of file tapcli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_tap_connect_renumber ( vlib_main_t vm,
vnet_tap_connect_args_t ap 
)

Connect / renumber a tap interface.

Connect / renumber a tap interface.

Parameters
*vm- vlib_main_t
*intfc_name- u8
*hwaddr_arg- u8
*sw_if_indexp- u32
renumber- u8
custom_dev_instance- u32
Returns
rc - int

Definition at line 1109 of file tapcli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_tap_delete ( vlib_main_t vm,
u32  sw_if_index 
)

delete a tap interface

delete a tap interface

Parameters
*vm- vlib_main_t
sw_if_index- u32
Returns
rc - int

Definition at line 1166 of file tapcli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_tap_modify ( vlib_main_t vm,
vnet_tap_connect_args_t ap 
)

Modify a tap interface.

Modify a tap interface.

Parameters
*vm- vlib_main_t
orig_sw_if_index- u32
*intfc_name- u8
*hwaddr_arg- u8
*sw_if_indexp- u32
renumber- u8
custom_dev_instance- u32
Returns
rc - int

Definition at line 1263 of file tapcli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: