session: fix ct local listener session index 22/29622/3
authorFlorin Coras <fcoras@cisco.com>
Mon, 26 Oct 2020 02:06:57 +0000 (19:06 -0700)
committerDamjan Marion <dmarion@me.com>
Mon, 26 Oct 2020 15:24:23 +0000 (15:24 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I015443caefb13306858b4ccadeb0b979ea87299a

src/vnet/session/application_local.c

index beca5db..25ff780 100644 (file)
@@ -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;