X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Fvirtio%2Ftap.h;h=0e0f8cb4056da45aa37a541d7c4841fec42e79bc;hb=91c6ef7cae2d20ca17a69003a44090614412c63f;hp=58dcb5bda51206bbd4f8adcc3d341faff2e7f0fc;hpb=9fa1581cc40b656b6e00d77479fc2424cd50a126;p=vpp.git diff --git a/src/vnet/devices/virtio/tap.h b/src/vnet/devices/virtio/tap.h index 58dcb5bda51..0e0f8cb4056 100644 --- a/src/vnet/devices/virtio/tap.h +++ b/src/vnet/devices/virtio/tap.h @@ -25,13 +25,20 @@ typedef struct { u8 *name; - u8 *net_ns; u8 hw_addr_set; u8 hw_addr[6]; u16 rx_ring_sz; u16 tx_ring_sz; + u8 *host_namespace; + u8 *host_bridge; + ip4_address_t host_ip4_addr; + u32 host_ip4_prefix_len; + ip6_address_t host_ip6_addr; + u32 host_ip6_prefix_len; /* return */ u32 sw_if_index; + int rv; + clib_error_t *error; } tap_create_if_args_t; /** TAP interface details struct */ @@ -41,7 +48,7 @@ typedef struct u8 dev_name[64]; } tap_interface_details_t; -int tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args); +void tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args); int tap_delete_if (vlib_main_t * vm, u32 sw_if_index); int tap_dump_ifs (tap_interface_details_t ** out_tapids);