diff options
author | Florin Coras <fcoras@cisco.com> | 2019-12-30 21:53:19 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-01-02 16:34:33 +0000 |
commit | 95cd864382965292df9c2ffbd61285c5d45cfb50 (patch) | |
tree | 7fe915ab069ad430ba49d6de485a9541137a7a6f /src/vnet/session/session_lookup.c | |
parent | 4ed2598562b1fe65efe69ae53397dfe9f1f07be8 (diff) |
session: fix listener global endpoint lookup
Type: fix
Ensure listeners for app transport protocols are added to lookup tables
using their session endpoints instead of their transport connections,
which can override the network connection id in the transport connection.
Change-Id: I56fa3666bb1422c0799fc7143cd099751ff6e2e6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_lookup.c')
-rw-r--r-- | src/vnet/session/session_lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session_lookup.c b/src/vnet/session/session_lookup.c index b1c8fbbef8e..abaad5019fa 100644 --- a/src/vnet/session/session_lookup.c +++ b/src/vnet/session/session_lookup.c @@ -1317,7 +1317,7 @@ session_lookup_set_tables_appns (app_namespace_t * app_ns) for (fp = 0; fp < ARRAY_LEN (fib_index_to_table_index); fp++) { fib_index = app_namespace_get_fib_index (app_ns, fp); - st = session_table_get_for_fib_index (fp, fib_index); + st = session_table_get_or_alloc (fp, fib_index); if (st) st->appns_index = app_namespace_index (app_ns); } |