aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp_cli.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-05-12 16:35:14 -0700
committerDave Wallace <dwallacelf@gmail.com>2023-05-15 17:54:49 +0000
commit9794326125264dc6543325ee10f58c3862c70095 (patch)
tree6ff66e2ea2677733060565b986ace9e9adf72bfb /src/vnet/udp/udp_cli.c
parent639beb91f6e80192977f12f56614ff1254431cc9 (diff)
udp: improvements to connection format fn
Print fib-index, next node index and opaque. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id2ff265c9acffc75f8b04fb9f26c6d571fc2ef98
Diffstat (limited to 'src/vnet/udp/udp_cli.c')
-rw-r--r--src/vnet/udp/udp_cli.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vnet/udp/udp_cli.c b/src/vnet/udp/udp_cli.c
index 72dd9d8447d..d60f0dde50b 100644
--- a/src/vnet/udp/udp_cli.c
+++ b/src/vnet/udp/udp_cli.c
@@ -95,10 +95,13 @@ format_udp_vars (u8 * s, va_list * args)
{
udp_connection_t *uc = va_arg (*args, udp_connection_t *);
- s = format (s, " index %u%U flags: %U", uc->c_c_index, format_udp_cfg_flags,
- uc, format_udp_connection_flags, uc);
+ s = format (s, " index %u%U flags: %U\n", uc->c_c_index,
+ format_udp_cfg_flags, uc, format_udp_connection_flags, uc);
+ s = format (s, " fib_index: %u next_node: %u opaque: %u ", uc->c_fib_index);
if (!(uc->flags & UDP_CONN_F_LISTEN))
- s = format (s, " \n sw_if_index: %d, mss: %u\n", uc->sw_if_index, uc->mss);
+ s = format (s, " sw_if_index: %d mss: %u\n", uc->sw_if_index, uc->mss);
+ else
+ s = format (s, "\n");
return s;
}