aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_local.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-10 21:03:20 -0700
committerDamjan Marion <dmarion@me.com>2019-03-11 09:14:50 +0000
commit9f1a5432b3e6fa57bfe0788ca0ebb84075253bf7 (patch)
tree43c1871615a28568bbb3f3e97c2da121e486112b /src/vnet/session/application_local.c
parent8ae3a53c7a60c0d656c46298509fa40987c8fa8b (diff)
session: fix ct that match global table entries
Change-Id: I42addcd413094a8b6e9b2858ba2a292bd295ec82 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application_local.c')
-rw-r--r--src/vnet/session/application_local.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index 83a6c8eb49c..d1df657229d 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -274,7 +274,8 @@ ct_connect (app_worker_t * client_wrk, session_t * ll,
*/
ss = session_alloc (0);
ll = listen_session_get (ll_index);
- ss->session_type = ll->session_type;
+ ss->session_type = session_type_from_proto_and_ip (TRANSPORT_PROTO_NONE,
+ sct->c_is_ip4);
ss->connection_index = sct->c_c_index;
ss->listener_index = ll->session_index;
ss->session_state = SESSION_STATE_CREATED;
@@ -394,7 +395,7 @@ global_scope:
fib_proto = session_endpoint_fib_proto (sep);
table_index = application_session_table (app, fib_proto);
- ll = session_lookup_listener (table_index, sep);
+ ll = session_lookup_listener_wildcard (table_index, sep);
if (ll)
return ct_connect (app_wrk, ll, sep_ext);