aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/command_line
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-07-26 23:20:30 +0200
committerMauro Sardara <msardara@cisco.com>2019-07-29 17:13:35 +0200
commit0a1c6b5565e20167d1f1f33a5a8b597f420b18b0 (patch)
tree98c5da8f231fbd3dc2ce6502040e29c8333d9ffc /hicn-light/src/hicn/command_line
parent05ca0aa8f612ee48fb66d4dbebe596b7f1e03181 (diff)
[HICN-252] Add per-application policy framework to hicn-light forwarder
Change-Id: I0531cd7a7de179581295ae34766c81cd9cf3e172 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com> Co-authored-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/command_line')
-rw-r--r--hicn-light/src/hicn/command_line/controller/CMakeLists.txt1
-rw-r--r--hicn-light/src/hicn/command_line/controller/hicnLightControl_main.c12
-rw-r--r--hicn-light/src/hicn/command_line/daemon/CMakeLists.txt3
3 files changed, 14 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/command_line/controller/CMakeLists.txt b/hicn-light/src/hicn/command_line/controller/CMakeLists.txt
index c0a584dae..405654052 100644
--- a/hicn-light/src/hicn/command_line/controller/CMakeLists.txt
+++ b/hicn-light/src/hicn/command_line/controller/CMakeLists.txt
@@ -20,4 +20,5 @@ build_executable(${HICN_LIGHT_CONTROL}
LINK_LIBRARIES ${HICN_LIGHT_LINK_LIBRARIES}
DEPENDS ${LIBHICN_LIGHT_STATIC}
COMPONENT ${HICN_LIGHT}
+ DEFINITIONS ${COMPILER_DEFINITIONS}
)
diff --git a/hicn-light/src/hicn/command_line/controller/hicnLightControl_main.c b/hicn-light/src/hicn/command_line/controller/hicnLightControl_main.c
index 8cbccde34..f704d237e 100644
--- a/hicn-light/src/hicn/command_line/controller/hicnLightControl_main.c
+++ b/hicn-light/src/hicn/command_line/controller/hicnLightControl_main.c
@@ -74,7 +74,15 @@ static int payloadLengthController[LAST_COMMAND_VALUE] = {
sizeof(mapme_activator_command),
sizeof(mapme_activator_command),
sizeof(mapme_timing_command),
- sizeof(mapme_timing_command)};
+ sizeof(mapme_timing_command),
+ sizeof(connection_set_admin_state_command),
+#ifdef WITH_POLICY
+ sizeof(add_policy_command),
+ sizeof(list_policies_command),
+ sizeof(remove_policy_command),
+ sizeof(update_connection_command),
+#endif
+};
typedef struct controller_main_state {
ControlState *controlState;
@@ -320,9 +328,11 @@ int main(int argc, char *argv[]) {
char **commandOutputMain =
controlState_GetCommandOutput(mainState.controlState);
if (commandOutputMain != NULL && commandOutputLen > 0) {
+#if 0
for (size_t j = 0; j < commandOutputLen; j++) {
printf("Output %zu: %s \n", j, commandOutputMain[j]);
}
+#endif
controlState_ReleaseCommandOutput(mainState.controlState,
commandOutputMain, commandOutputLen);
}
diff --git a/hicn-light/src/hicn/command_line/daemon/CMakeLists.txt b/hicn-light/src/hicn/command_line/daemon/CMakeLists.txt
index ca8c02ef0..ff9d31ebc 100644
--- a/hicn-light/src/hicn/command_line/daemon/CMakeLists.txt
+++ b/hicn-light/src/hicn/command_line/daemon/CMakeLists.txt
@@ -20,4 +20,5 @@ build_executable(${HICN_LIGHT_DAEMON}
LINK_LIBRARIES ${HICN_LIGHT_LINK_LIBRARIES}
DEPENDS ${LIBHICN_LIGHT_STATIC}
COMPONENT ${HICN_LIGHT}
-) \ No newline at end of file
+ DEFINITIONS ${COMPILER_DEFINITIONS}
+)