From 3e2cd52a6ae2345a44f39761beb5315a45832d95 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Thu, 9 May 2019 11:26:31 +0200 Subject: [HICN-192] Add interface to administratively set a connection up and down MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8d00262fd8601328a50d0e2a6bef952031246818 Signed-off-by: Jordan Augé --- hicn-light/src/hicn/utils/commands.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hicn-light/src/hicn/utils/commands.h') diff --git a/hicn-light/src/hicn/utils/commands.h b/hicn-light/src/hicn/utils/commands.h index 802e6bfa6..236a75a33 100644 --- a/hicn-light/src/hicn/utils/commands.h +++ b/hicn-light/src/hicn/utils/commands.h @@ -66,6 +66,7 @@ typedef enum { MAPME_DISCOVERY, MAPME_TIMESCALE, MAPME_RETX, + CONNECTION_SET_ADMIN_STATE, LAST_COMMAND_VALUE } command_id; @@ -125,6 +126,7 @@ typedef struct { uint16_t localPort; uint8_t ipType; uint8_t connectionType; + uint8_t admin_state; } add_connection_command; // SIZE=56 @@ -282,6 +284,11 @@ typedef struct { // SIZE=1 +typedef struct { + char symbolicOrConnid[16]; + uint8_t admin_state; +} connection_set_admin_state_command; + //===== size of commands ====== // REMINDER: when a new_command is added, the following switch has to be // updated. @@ -323,6 +330,8 @@ static inline int payloadLengthDaemon(command_id id) { return sizeof(mapme_timing_command); case MAPME_RETX: return sizeof(mapme_timing_command); + case CONNECTION_SET_ADMIN_STATE: + return sizeof(connection_set_admin_state_command); case LAST_COMMAND_VALUE: return 0; default: -- cgit 1.2.3-korg