From 36ec1f5fc2b3b3f70442cd1e78341732488b7dc5 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 29 May 2018 21:15:38 -0700 Subject: 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 --- src/vnet/session/application_interface.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/vnet') 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; -- cgit 1.2.3-korg