summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/cli.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-09-13 21:30:31 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2017-11-09 18:31:08 +0000
commitb966b8e63ff71159d55bc4510b4d9d96a01c19db (patch)
tree4a501f465f6a071b6c22ed5f11500ad2d8aa2f58 /src/plugins/memif/cli.c
parent4e50d2f1f8adb1bef9187dab1b7cffdc7bc4fb8c (diff)
memif: use clib_socket_t for socket connections
This reverts commit 590acf8fa7af6a8604edd72a32f9f087be52c767. new version includes minor fix for the crash when the interface is deleted. Change-Id: I8fc56eb9145e4d8e1d410206f84e705045898608 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/memif/cli.c')
-rw-r--r--src/plugins/memif/cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/memif/cli.c b/src/plugins/memif/cli.c
index 3d38550c1ba..29d13310776 100644
--- a/src/plugins/memif/cli.c
+++ b/src/plugins/memif/cli.c
@@ -309,8 +309,9 @@ memif_show_command_fn (vlib_main_t * vm, unformat_input_t * input,
vlib_cli_output (vm, " id %d mode %U file %s", mif->id,
format_memif_if_mode, mif, msf->filename);
vlib_cli_output (vm, " flags%U", format_memif_if_flags, mif->flags);
- vlib_cli_output (vm, " listener-fd %d conn-fd %d", msf->fd,
- mif->conn_fd);
+ vlib_cli_output (vm, " listener-fd %d conn-fd %d",
+ msf->sock ? msf->sock->fd : 0,
+ mif->sock ? mif->sock->fd : 0);
vlib_cli_output (vm,
" num-s2m-rings %u num-m2s-rings %u buffer-size %u",
mif->run.num_s2m_rings, mif->run.num_m2s_rings,