diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-02-13 16:50:43 +0100 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-02-13 16:57:03 +0100 |
commit | 1fb7b1be452111b9e26a100bc5dfdce266c30330 (patch) | |
tree | ee67c224ff4ca6f20919032ff1933b07f0b43707 /hicn-light/src/hicn/utils | |
parent | f9243a2bf823086404be1c41c7bcc1b27cfab7de (diff) |
[HICN-518] new API in hicn-light to allow a producer to force MAP-Me messages to be resent
Change-Id: I2e17250c5e4f78341966507a4bf04d09b84bb9d0
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/utils')
-rw-r--r-- | hicn-light/src/hicn/utils/commands.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/utils/commands.h b/hicn-light/src/hicn/utils/commands.h index 1cce8edd3..d8e5329b3 100644 --- a/hicn-light/src/hicn/utils/commands.h +++ b/hicn-light/src/hicn/utils/commands.h @@ -70,6 +70,7 @@ typedef enum { MAPME_DISCOVERY, MAPME_TIMESCALE, MAPME_RETX, + MAPME_SEND_UPDATE, CONNECTION_SET_ADMIN_STATE, #ifdef WITH_POLICY ADD_POLICY, @@ -308,6 +309,12 @@ typedef struct { uint32_t timePeriod; } mapme_timing_command; +typedef struct { + ip_address_t address; + uint8_t addressType; + uint8_t len; +} mapme_send_update_command; + // SIZE=1 typedef struct { @@ -400,6 +407,8 @@ static inline int payloadLengthDaemon(command_id id) { return sizeof(mapme_timing_command); case MAPME_RETX: return sizeof(mapme_timing_command); + case MAPME_SEND_UPDATE: + return sizeof(mapme_send_update_command); case CONNECTION_SET_ADMIN_STATE: return sizeof(connection_set_admin_state_command); #ifdef WITH_POLICY |