diff options
Diffstat (limited to 'src/vnet/session/application_namespace.h')
-rw-r--r-- | src/vnet/session/application_namespace.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/vnet/session/application_namespace.h b/src/vnet/session/application_namespace.h index 5449d4755c3..261325cbe0e 100644 --- a/src/vnet/session/application_namespace.h +++ b/src/vnet/session/application_namespace.h @@ -51,11 +51,6 @@ typedef struct _app_namespace u8 *ns_id; /** - * Linux netns if one was provided - */ - u8 *netns; - - /** * Name of socket applications can use to attach to session layer */ u8 *sock_name; @@ -69,7 +64,6 @@ typedef struct _app_namespace typedef struct _vnet_app_namespace_add_del_args { u8 *ns_id; - u8 *netns; u8 *sock_name; u64 secret; u32 sw_if_index; @@ -88,7 +82,8 @@ const u8 *app_namespace_id (app_namespace_t * app_ns); const u8 *app_namespace_id_from_index (u32 index); u32 app_namespace_index_from_id (const u8 *ns_id); void app_namespaces_init (void); -int vnet_app_namespace_add_del (vnet_app_namespace_add_del_args_t * a); +session_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); @@ -160,8 +155,9 @@ appns_sapi_handle_sock_index (u32 sapi_sock_handle) } int appns_sapi_add_ns_socket (app_namespace_t * app_ns); +void appns_sapi_del_ns_socket (app_namespace_t *app_ns); u8 appns_sapi_enabled (void); -void appns_sapi_enable (void); +int appns_sapi_enable_disable (int is_enable); #endif /* SRC_VNET_SESSION_APPLICATION_NAMESPACE_H_ */ |