aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-12-03 16:00:27 +0000
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-12-04 09:08:34 +0000
commit36d699cc16a609cb7cd87945b5a618448dca5889 (patch)
tree9e9d6acdfcf53a33ffc81c6c630ab86b18fd728e /ctrl/libhicnctrl/src
parentac2224ae8845f414c1a7fa85aab4e7287fb1df84 (diff)
[HICN-428] Creating libctrl deb and rpm packages specific for hicn-plugin
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I2460276eb400777105d3351dffdaf8452f01c51f
Diffstat (limited to 'ctrl/libhicnctrl/src')
-rw-r--r--ctrl/libhicnctrl/src/CMakeLists.txt4
-rw-r--r--ctrl/libhicnctrl/src/hicn_plugin_api.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/ctrl/libhicnctrl/src/CMakeLists.txt b/ctrl/libhicnctrl/src/CMakeLists.txt
index 42fe3d543..6f4066238 100644
--- a/ctrl/libhicnctrl/src/CMakeLists.txt
+++ b/ctrl/libhicnctrl/src/CMakeLists.txt
@@ -30,7 +30,7 @@ set(SOURCE_FILES
route.c
)
-if(BUILD_CTRL_HICNPLUGIN)
+if(BUILD_HICNPLUGIN)
set(SOURCE_FILES
${SOURCE_FILES}
hicn_plugin_api.c
@@ -53,7 +53,7 @@ set(INCLUDE_DIRS
${HICN_INCLUDE_DIRS}
)
-# Android requires static libraries
+# Android requires static libraries
if (${CMAKE_SYSTEM_NAME} STREQUAL "Android")
set(LIBRARIES ${LIBRARIES} ${LIBHICN_STATIC})
set(LINK_TYPE STATIC)
diff --git a/ctrl/libhicnctrl/src/hicn_plugin_api.c b/ctrl/libhicnctrl/src/hicn_plugin_api.c
index d0f1eae10..233abb0f8 100644
--- a/ctrl/libhicnctrl/src/hicn_plugin_api.c
+++ b/ctrl/libhicnctrl/src/hicn_plugin_api.c
@@ -360,6 +360,7 @@ int hc_sock_connect(hc_sock_t *s) {
vapi_ctx_free(vapi_skc.g_vapi_ctx_instance);
goto ERR_CONNECT;
}
+ s->g_vapi_ctx_instance = vapi_skc.g_vapi_ctx_instance;
printf("[hc_sock_connect] *connected %s ok", APP_NAME);
} else if (s->async == vapi_skc.async){
s->g_vapi_ctx_instance = vapi_skc.g_vapi_ctx_instance;