diff options
Diffstat (limited to 'src/plugins/memif/cli.c')
-rw-r--r-- | src/plugins/memif/cli.c | 5 |
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, |