aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_cli.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-22 19:03:03 -0700
committerDave Barach <openvpp@barachs.net>2019-07-25 17:59:17 +0000
commit5f06632fc700e5f5c72b7238aee3fd84663ddf4f (patch)
tree2b8b74650fcd3d826805493c13dc4a74b1272ebf /src/vnet/session/session_cli.c
parent6c84fb2ee1bf230951aaf92d9db595d4c0feac45 (diff)
session: add transport deleted state
Type: fix Distinguish between closed and deleted states to avoid deleting the session prior to the transport connection. Change-Id: Ia285ce94b26a70773f8c0ce9d2c73095d3e2a337 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_cli.c')
-rwxr-xr-xsrc/vnet/session/session_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c
index ca4b8c12f8d..fd598f45d3e 100755
--- a/src/vnet/session/session_cli.c
+++ b/src/vnet/session/session_cli.c
@@ -59,7 +59,7 @@ format_session (u8 * s, va_list * args)
u32 tp = session_get_transport_proto (ss);
u8 *str = 0;
- if (ss->session_state >= SESSION_STATE_TRANSPORT_CLOSED)
+ if (ss->session_state >= SESSION_STATE_TRANSPORT_DELETED)
{
s = format (s, "[%u:%u] CLOSED", ss->thread_index, ss->session_index);
return s;
@@ -330,7 +330,7 @@ show_session_command_fn (vlib_main_t * vm, unformat_input_t * input,
/* *INDENT-OFF* */
pool_foreach (s, pool, ({
- if (s->session_state >= SESSION_STATE_TRANSPORT_CLOSED)
+ if (s->session_state >= SESSION_STATE_TRANSPORT_DELETED)
{
n_closed += 1;
continue;