summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-05-29 21:15:38 -0700
committerNeale Ranns <nranns@cisco.com>2018-05-30 06:41:13 +0000
commit36ec1f5fc2b3b3f70442cd1e78341732488b7dc5 (patch)
treebe32880d04f58e10a8515b387327377428d15ab7 /src/vnet/session
parent7ce3d13cab773226b851f627a69a4148a762592a (diff)
session: fix v6 unbinds that use uri api
This api only supports default tables but v6 and v4 default tables are different. Change-Id: I7fe39251af99082278e84d7411511bdeca34e609 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application_interface.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vnet/session/application_interface.c b/src/vnet/session/application_interface.c
index ecdbe16e6a6..9d82a1855a4 100644
--- a/src/vnet/session/application_interface.c
+++ b/src/vnet/session/application_interface.c
@@ -528,14 +528,18 @@ vnet_unbind_uri (vnet_unbind_args_t * a)
{
session_endpoint_extended_t sep = SESSION_ENDPOINT_EXT_NULL;
stream_session_t *listener;
+ u32 table_index;
int rv;
rv = parse_uri (a->uri, &sep);
if (rv)
return rv;
- /* NOTE: only default table supported for uri */
- listener = session_lookup_listener (0, (session_endpoint_t *) & sep);
+ /* NOTE: only default fib tables supported for uri apis */
+ table_index = session_lookup_get_index_for_fib (fib_ip_proto (!sep.is_ip4),
+ 0);
+ listener = session_lookup_listener (table_index,
+ (session_endpoint_t *) & sep);
if (!listener)
return VNET_API_ERROR_ADDRESS_NOT_IN_USE;