summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-25 19:06:57 -0700
committerDamjan Marion <dmarion@me.com>2020-10-26 15:24:23 +0000
commita8375082a29af68fbaf853f29bc7e20d812c9e5f (patch)
treeadad924b9075124e6fdbff26b03ad7c93c1c55cf /src
parent2bd8b3ae5598f333d2d1aa93e49737a8d5822fce (diff)
session: fix ct local listener session index
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I015443caefb13306858b4ccadeb0b979ea87299a
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/application_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index beca5dbe689..25ff780eab2 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -341,6 +341,7 @@ ct_start_listen (u32 app_listener_index, transport_endpoint_t * tep)
ct->c_is_ip4 = sep->is_ip4;
clib_memcpy (&ct->c_lcl_ip, &sep->ip, sizeof (sep->ip));
ct->c_lcl_port = sep->port;
+ ct->c_s_index = app_listener_index;
ct->actual_tp = sep->transport_proto;
ct_enable_disable_main_pre_input_node (1 /* is_add */ );
return ct->c_c_index;