FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
tuntap.h
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * tuntap.h - kernel stack (reverse) punt/inject path
4  *
5  * Copyright (c) 2009 Cisco and/or its affiliates.
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at:
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *------------------------------------------------------------------
18  */
19 /**
20  * @file
21  * @brief Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name.
22  */
23 void register_tuntap_inject_node_name (char *name);
24 
25 int vnet_tap_connect (vlib_main_t * vm, u8 * intfc_name,
26  u8 *hwaddr_arg, u32 * sw_if_indexp);
27 int vnet_tap_connect_renumber (vlib_main_t * vm, u8 * intfc_name,
28  u8 *hwaddr_arg, u32 * sw_if_indexp,
29  u8 renumber, u32 custom_dev_instance);
30 
31 int vnet_tap_delete(vlib_main_t *vm, u32 sw_if_index);
32 
33 int vnet_tap_modify (vlib_main_t * vm, u32 orig_sw_if_index,
34  u8 * intfc_name, u8 *hwaddr_arg,
35  u32 * sw_if_indexp,
36  u8 renumber, u32 custom_dev_instance);
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.
Definition: tapcli.c:1121
void register_tuntap_inject_node_name(char *name)
int vnet_tap_delete(vlib_main_t *vm, u32 sw_if_index)
Delete TAP interface.
Definition: tapcli.c:1030
unsigned int u32
Definition: types.h:88
int vnet_tap_connect(vlib_main_t *vm, u8 *intfc_name, u8 *hwaddr_arg, u32 *sw_if_indexp)
Connect a TAP interface.
Definition: tapcli.c:794
unsigned char u8
Definition: types.h:56
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.
Definition: tapcli.c:975