aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-07-05 11:58:22 +0200
committerNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-07-08 10:38:28 +0200
commit61ad550c492719a8d214e0acdcb04d494e46b7ce (patch)
tree17f203acb26b5e633e6e9fb930e9534d65fb70e2 /src
parent03f1af23b90eb053ba46e47d50bffc2fdfafbd16 (diff)
session: target app.fib_index in unbind_uri
Type: fix Change-Id: Iafcf85315c73bcd73af20bd84b1ccba030e2065b Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/application_interface.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vnet/session/application_interface.c b/src/vnet/session/application_interface.c
index 2283b0f6f94..ab011bda1b9 100644
--- a/src/vnet/session/application_interface.c
+++ b/src/vnet/session/application_interface.c
@@ -143,6 +143,7 @@ int
vnet_unbind_uri (vnet_unlisten_args_t * a)
{
session_endpoint_cfg_t sep = SESSION_ENDPOINT_CFG_NULL;
+ application_t *app;
session_t *listener;
u32 table_index;
int rv;
@@ -150,9 +151,11 @@ vnet_unbind_uri (vnet_unlisten_args_t * a)
if ((rv = parse_uri (a->uri, &sep)))
return rv;
- /* NOTE: only default fib tables supported for uri apis */
- table_index = session_lookup_get_index_for_fib (fib_ip_proto (!sep.is_ip4),
- 0);
+ app = application_get (a->app_index);
+ if (!app)
+ return VNET_API_ERROR_INVALID_VALUE;
+
+ table_index = application_session_table (app, fib_ip_proto (!sep.is_ip4));
listener = session_lookup_listener (table_index,
(session_endpoint_t *) & sep);
if (!listener)