From bf12efc432823c83dc06ead6be2094ac605f0021 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Mon, 25 Jul 2022 09:29:23 -0700 Subject: udp: store mss and sw_if_index to udp_connection_t Store mss and sw_if_index to udp_connection_t and display them via show sessipn verbose 2 Type: fix Signed-off-by: Steven Luong Change-Id: I32928f3f4195b178873dc1bada702e035d99c464 --- src/vnet/udp/udp_cli.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vnet/udp/udp_cli.c') diff --git a/src/vnet/udp/udp_cli.c b/src/vnet/udp/udp_cli.c index 3b7bb380c89..9787eedf933 100644 --- a/src/vnet/udp/udp_cli.c +++ b/src/vnet/udp/udp_cli.c @@ -67,11 +67,12 @@ static u8 * format_udp_vars (u8 * s, va_list * args) { udp_connection_t *uc = va_arg (*args, udp_connection_t *); + s = format (s, " index %u flags: %U", uc->c_c_index, format_udp_connection_flags, uc); - if (!(uc->flags & UDP_CONN_F_LISTEN)) - s = format (s, "\n"); + s = format (s, " \n sw_if_index: %d, mss: %u\n", uc->sw_if_index, uc->mss); + return s; } -- cgit 1.2.3-korg