aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2024-02-08 17:08:28 +0100
committerMohammed HAWARI <momohawari@gmail.com>2024-02-12 09:59:57 +0000
commit728606591135982f4677e51f668e18bd1a3873bb (patch)
treef352f8d2d22e3e899000001bca5abb1ca14ea73c /src
parentd4f405a70f28f6e5399a503c91da7ae8f90f94af (diff)
ip_session_redirect: export symbols
Add/del functions can be used from external modules. Type: improvement Change-Id: I267bcfacd58970bcacae13744d8acc690b87d2fc Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/ip_session_redirect/CMakeLists.txt3
-rw-r--r--src/plugins/ip_session_redirect/redirect.c4
2 files changed, 5 insertions, 2 deletions
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;