X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsession%2Fapplication_namespace.h;h=8ba5a9878a840c07abc2a76fe1ba2e82968e7699;hb=288eaab5964b9211350acad8d742fae4789577fe;hp=da3f6017961fdc38d8346a99de2d525e4055d3ba;hpb=cea194d8f973a2f2b5ef72d212533057174cc70a;p=vpp.git diff --git a/src/vnet/session/application_namespace.h b/src/vnet/session/application_namespace.h index da3f6017961..8ba5a9878a8 100644 --- a/src/vnet/session/application_namespace.h +++ b/src/vnet/session/application_namespace.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Cisco and/or its affiliates. + * Copyright (c) 2017-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -14,6 +14,7 @@ */ #include +#include #ifndef SRC_VNET_SESSION_APPLICATION_NAMESPACE_H_ #define SRC_VNET_SESSION_APPLICATION_NAMESPACE_H_ @@ -71,6 +72,14 @@ u32 app_namespace_index_from_id (const u8 * ns_id); void app_namespaces_init (void); clib_error_t *vnet_app_namespace_add_del (vnet_app_namespace_add_del_args_t * a); +u32 app_namespace_get_fib_index (app_namespace_t * app_ns, u8 fib_proto); +session_table_t *app_namespace_get_local_table (app_namespace_t * app_ns); + +always_inline app_namespace_t * +app_namespace_get_default (void) +{ + return app_namespace_get (0); +} #endif /* SRC_VNET_SESSION_APPLICATION_NAMESPACE_H_ */