aboutsummaryrefslogtreecommitdiffstats
path: root/router
diff options
context:
space:
mode:
authorMichael Borokhovich <michaelbor@gmail.com>2017-11-07 04:50:23 +0000
committerMichael Borokhovich <michaelbor@gmail.com>2017-11-07 04:51:51 +0000
commit042a782c530ceb58507d697726e68ad7fe4fe023 (patch)
treed541804fb6cf956e6dfbcb2a7dca10b46362cdd7 /router
parentea3a7716b61e8e742058435e6d4f8c911f20b7d6 (diff)
Changing unix_file to clib_file in order to work with VPP 1801
Change-Id: Ie27f1884692802ae1b6a48ac25ef5aef25495c0a Signed-off-by: Michael Borokhovich <michaelbor@gmail.com>
Diffstat (limited to 'router')
-rw-r--r--router/router/tap_inject_tap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/router/router/tap_inject_tap.c b/router/router/tap_inject_tap.c
index 9650323..a3ec9ff 100644
--- a/router/router/tap_inject_tap.c
+++ b/router/router/tap_inject_tap.c
@@ -30,7 +30,7 @@
static clib_error_t *
-tap_inject_tap_read (unix_file_t * f)
+tap_inject_tap_read (clib_file_t * f)
{
vlib_main_t * vm = vlib_get_main ();
tap_inject_main_t * im = tap_inject_get_main ();
@@ -52,7 +52,7 @@ tap_inject_tap_connect (vnet_hw_interface_t * hw)
static const int one = 1;
int fd;
struct ifreq ifr;
- unix_file_t template;
+ clib_file_t template;
u32 tap_fd;
u8 * name;
@@ -120,7 +120,7 @@ tap_inject_tap_connect (vnet_hw_interface_t * hw)
template.read_function = tap_inject_tap_read;
template.file_descriptor = tap_fd;
- unix_file_add (&unix_main, &template);
+ clib_file_add (&file_main, &template);
tap_inject_insert_tap (sw->sw_if_index, tap_fd, ifr.ifr_ifindex);