FD.io VPP  v16.09
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.

Functions

void register_tuntap_inject_node_name (char *name)
 
int vnet_tap_connect (vlib_main_t *vm, u8 *intfc_name, u8 *hwaddr_arg, u32 *sw_if_indexp)
 Connect a TAP interface. More...
 
int vnet_tap_connect_renumber (vlib_main_t *vm, u8 *intfc_name, u8 *hwaddr_arg, u32 *sw_if_indexp, u8 renumber, u32 custom_dev_instance)
 Renumber a TAP interface. More...
 
int vnet_tap_delete (vlib_main_t *vm, u32 sw_if_index)
 Delete TAP interface. More...
 
int vnet_tap_modify (vlib_main_t *vm, u32 orig_sw_if_index, u8 *intfc_name, u8 *hwaddr_arg, u32 *sw_if_indexp, u8 renumber, u32 custom_dev_instance)
 Modifies tap interface - can result in new interface being created. 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,
u8 intfc_name,
u8 hwaddr_arg,
u32 sw_if_indexp 
)

Connect a TAP interface.

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

Definition at line 813 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,
u8 intfc_name,
u8 hwaddr_arg,
u32 sw_if_indexp,
u8  renumber,
u32  custom_dev_instance 
)

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 994 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 TAP interface.

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

Definition at line 1048 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,
u32  orig_sw_if_index,
u8 intfc_name,
u8 hwaddr_arg,
u32 sw_if_indexp,
u8  renumber,
u32  custom_dev_instance 
)

Modifies tap interface - can result in new interface being created.

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 1139 of file tapcli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: