diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2021-07-28 14:09:50 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-10-05 19:13:13 +0000 |
commit | 7b3a3df263c7a5bf549f350553cbd9bce7ee40b3 (patch) | |
tree | 6c42695ee8e90c93bbe49c3cded4f35262322bc6 /src/vnet/session/session_api.c | |
parent | 5546e43f7943d6edff6c6587ed4e7233e8002e28 (diff) |
session: Add session_sapi_enable_disable
Type: feature
This adds an API message to do the switch
at runtime.
Change-Id: Ice6b69c57f0bfbf5668182e25593362ff4133615
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/session_api.c')
-rw-r--r-- | src/vnet/session/session_api.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index c031545323e..2121d2075e6 100644 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -602,6 +602,17 @@ vl_api_session_enable_disable_t_handler (vl_api_session_enable_disable_t * mp) } static void +vl_api_session_sapi_enable_disable_t_handler ( + vl_api_session_sapi_enable_disable_t *mp) +{ + vl_api_session_sapi_enable_disable_reply_t *rmp; + int rv = 0; + + rv = appns_sapi_enable_disable (mp->is_enable); + REPLY_MACRO (VL_API_SESSION_SAPI_ENABLE_DISABLE_REPLY); +} + +static void vl_api_app_attach_t_handler (vl_api_app_attach_t * mp) { int rv = 0, *fds = 0, n_fds = 0, n_workers, i; |