From 596c45b22211c9af243b624dc037f58c0aa1c302 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 9 Sep 2021 12:04:17 -0700 Subject: tcp session: initialize sw_if_index at connect time Type: fix Signed-off-by: Florin Coras Change-Id: Id0e67a9ce9c5d8bca2cd7a30493f03a02a46dc46 --- src/vnet/tcp/tcp_cli.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vnet/tcp/tcp_cli.c') diff --git a/src/vnet/tcp/tcp_cli.c b/src/vnet/tcp/tcp_cli.c index e602f114a74..c7b5c0b441e 100644 --- a/src/vnet/tcp/tcp_cli.c +++ b/src/vnet/tcp/tcp_cli.c @@ -208,8 +208,9 @@ format_tcp_vars (u8 * s, va_list * args) tc->mrtt_us * 1e3, tc->rttvar / 1000.0); s = format (s, " rtt_ts %.4f rtt_seq %u\n", tc->rtt_ts, tc->rtt_seq - tc->iss); - s = format (s, " next_node %u opaque 0x%x fib_index %u\n", - tc->next_node_index, tc->next_node_opaque, tc->c_fib_index); + s = format (s, " next_node %u opaque 0x%x fib_index %u sw_if_index %d\n", + tc->next_node_index, tc->next_node_opaque, tc->c_fib_index, + tc->sw_if_index); s = format (s, " cong: %U", format_tcp_congestion, tc); if (tc->state >= TCP_STATE_ESTABLISHED) -- cgit 1.2.3-korg