From 728606591135982f4677e51f668e18bd1a3873bb Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Thu, 8 Feb 2024 17:08:28 +0100 Subject: ip_session_redirect: export symbols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add/del functions can be used from external modules. Type: improvement Change-Id: I267bcfacd58970bcacae13744d8acc690b87d2fc Signed-off-by: Benoît Ganne --- src/plugins/ip_session_redirect/CMakeLists.txt | 3 +++ src/plugins/ip_session_redirect/redirect.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/ip_session_redirect/CMakeLists.txt b/src/plugins/ip_session_redirect/CMakeLists.txt index f77500fc9fc..09b93d72759 100644 --- a/src/plugins/ip_session_redirect/CMakeLists.txt +++ b/src/plugins/ip_session_redirect/CMakeLists.txt @@ -21,4 +21,7 @@ add_vpp_plugin(ip_session_redirect API_TEST_SOURCES test_api.c + + INSTALL_HEADERS + ip_session_redirect.h ) diff --git a/src/plugins/ip_session_redirect/redirect.c b/src/plugins/ip_session_redirect/redirect.c index d925d12cde7..ea18182e309 100644 --- a/src/plugins/ip_session_redirect/redirect.c +++ b/src/plugins/ip_session_redirect/redirect.c @@ -80,7 +80,7 @@ ip_session_redirect_find (ip_session_redirect_main_t *im, u32 table_index, return pool_elt_at_index (im->pool, p[0]); } -int +__clib_export int ip_session_redirect_add (vlib_main_t *vm, u32 table_index, u32 opaque_index, dpo_proto_t proto, int is_punt, const u8 *match, const fib_route_path_t *rpaths) @@ -138,7 +138,7 @@ ip_session_redirect_add (vlib_main_t *vm, u32 table_index, u32 opaque_index, return ip_session_redirect_stack (ipr); } -int +__clib_export int ip_session_redirect_del (vlib_main_t *vm, u32 table_index, const u8 *match) { ip_session_redirect_main_t *im = &ip_session_redirect_main; -- cgit 1.2.3-korg