|
static void | tuntap_punt_frame (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
| TX the tun/tap frame. More...
|
|
static void | tuntap_nopunt_frame (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
| Free the tun/tap frame. More...
|
|
static uword | tuntap_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
| tuntap_tx More...
|
|
static uword | tuntap_rx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
| TUNTAP receive node. More...
|
|
static clib_error_t * | tuntap_read_ready (clib_file_t *uf) |
| Gets called when file descriptor is ready from epoll. More...
|
|
static clib_error_t * | tuntap_exit (vlib_main_t *vm) |
| Clean up the tun/tap device. More...
|
|
static clib_error_t * | tuntap_config (vlib_main_t *vm, unformat_input_t *input) |
| CLI function for tun/tap config. More...
|
|
void | tuntap_ip4_add_del_interface_address (ip4_main_t *im, uword opaque, u32 sw_if_index, ip4_address_t *address, u32 address_length, u32 if_address_index, u32 is_delete) |
| Add or Del IP4 address to tun/tap interface. More...
|
|
void | tuntap_ip6_add_del_interface_address (ip6_main_t *im, uword opaque, u32 sw_if_index, ip6_address_t *address, u32 address_length, u32 if_address_index, u32 is_delete) |
| Add or Del tun/tap interface address. More...
|
|
| VNET_HW_INTERFACE_CLASS (tuntap_interface_class, static) |
|
static u8 * | format_tuntap_interface_name (u8 *s, va_list *args) |
| Format tun/tap interface name. More...
|
|
static uword | tuntap_intfc_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
| TX packet out tun/tap. More...
|
|
| VNET_DEVICE_CLASS (tuntap_dev_class, static) |
|
static clib_error_t * | tuntap_init (vlib_main_t *vm) |
| tun/tap node init More...
|
|
TunTap Kernel stack (reverse) punt/inject path.
This driver runs in one of two distinct modes:
- "punt/inject" mode, where we send pkts not otherwise processed by the forwarding to the Linux kernel stack, and
- "normal interface" mode, where we treat the Linux kernel stack as a peer.
By default, we select punt/inject mode.
Definition in file tuntap.c.