From de13ed1c3155f699cb1e322dcd4d64a06ae00bb9 Mon Sep 17 00:00:00 2001 From: michele papalini Date: Mon, 20 Jan 2020 18:09:50 +0100 Subject: [HICN-480] add related prefixes to the forwarding strategy command Signed-off-by: michele papalini Change-Id: Id1bb559351d3f1f8af76326798740d6b13760e55 Signed-off-by: michele papalini --- hicn-light/src/hicn/utils/commands.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 bb566e688..1e227ad23 100644 --- a/hicn-light/src/hicn/utils/commands.h +++ b/hicn-light/src/hicn/utils/commands.h @@ -37,6 +37,7 @@ #endif /* WITH_POLICY */ #define SYMBOLIC_NAME_LEN 16 +#define MAX_FWD_STRATEGY_RELATED_PREFIXES 10 typedef struct in6_addr ipv6_addr_t; typedef uint32_t ipv4_addr_t; @@ -252,9 +253,13 @@ typedef struct { uint8_t strategyType; uint8_t addressType; uint8_t len; + uint8_t related_prefixes; + ip_address_t addresses[MAX_FWD_STRATEGY_RELATED_PREFIXES]; + uint8_t lens[MAX_FWD_STRATEGY_RELATED_PREFIXES]; + uint8_t addresses_type[MAX_FWD_STRATEGY_RELATED_PREFIXES]; } set_strategy_command; -// SIZE=20 +// SIZE=208 //========== [11] SET WLDR ========== -- cgit 1.2.3-korg