diff options
author | Florin Coras <fcoras@cisco.com> | 2019-11-19 18:22:41 -0800 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-11-20 15:08:16 +0000 |
commit | d9035a4092bd18259ab00960fe032486bfce61d8 (patch) | |
tree | 519318b7d93085d2a84b0b3aea5abb5152ecd1d9 /src | |
parent | 535fdba533b91c9105215f07bb686ddf6fd6975a (diff) |
session tcp: add opaque data to show cli
Type: feature
Change-Id: Iac8d4ed4997c4fce802589585e6a9424957152ca
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/session/session_cli.c | 5 | ||||
-rw-r--r-- | src/vnet/tcp/tcp.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c index 9264f47cca7..4d4141da375 100644 --- a/src/vnet/session/session_cli.c +++ b/src/vnet/session/session_cli.c @@ -133,8 +133,9 @@ format_session (u8 * s, va_list * args) if (verbose > 1) { s = format (s, "%U", format_session_fifos, ss, verbose); - s = format (s, " session: state: %U flags: %U\n", - format_session_state, ss, format_session_flags, ss); + s = format (s, " session: state: %U opaque: 0x%x flags: %U\n", + format_session_state, ss, ss->opaque, + format_session_flags, ss); } } else if (ss->session_state == SESSION_STATE_LISTENING) diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 317ed3aa876..c0b50ce6962 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -1018,6 +1018,8 @@ format_tcp_vars (u8 * s, va_list * args) tc->rto, tc->rto_boff, tc->srtt, tc->mrtt_us * 1000, tc->rttvar, tc->rtt_ts); s = format (s, " rtt_seq %u\n", tc->rtt_seq - tc->iss); + s = format (s, " next_node %u opaque 0x%x\n", tc->next_node_index, + tc->next_node_opaque); s = format (s, " cong: %U", format_tcp_congestion, tc); if (tc->state >= TCP_STATE_ESTABLISHED) |