diff options
author | 2019-01-21 13:25:59 +0100 | |
---|---|---|
committer | 2019-01-21 15:35:34 +0100 | |
commit | 8a2e408a3fc20f1055a8ca796a4d32ebc9fb9aa0 (patch) | |
tree | 6924ea2da917504e9381cf54ce976e56ff66d0dd /lib/src/mapme.h | |
parent | 29fb58203e5a44dbfafc6b788f50ca412c5f3c4b (diff) |
HICN-4 - Fix Windows compilation issue with named struct initializers
Change-Id: I9c9e8780ec1132d3d74b6202b9b142ed64b4e13f
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'lib/src/mapme.h')
-rwxr-xr-x | lib/src/mapme.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/src/mapme.h b/lib/src/mapme.h index 460c15282..00c7ca798 100755 --- a/lib/src/mapme.h +++ b/lib/src/mapme.h @@ -47,10 +47,10 @@ typedef struct /** @brief Default MAP-Me configuration */ static const hicn_mapme_conf_t hicn_mapme_conf = { - .enabled = false, - .timescale = 0, - .retx = 50, - .discovery = true, + ATTR_INIT(enabled, false), + ATTR_INIT(timescale, 0), + ATTR_INIT(retx, 50), + ATTR_INIT(discovery, true), }; /** @brief MAP-Me update sequence number */ @@ -84,9 +84,6 @@ int hicn_mapme_parse_packet (const u8 * packet, hicn_prefix_t * prefix, /* Implementation & parsing : ICMP Redirect */ -#define HEADER_TYPE_MAPME4 (hicn_type_t) {0, IPPROTO_ICMPRD, IPPROTO_ICMP, IPPROTO_IP} -#define HEADER_TYPE_MAPME6 (hicn_type_t) {0, IPPROTO_ICMPRD, IPPROTO_ICMP, IPPROTO_IPV6} - #define HICN_MAPME_ACK_FLAG (0x20 | 0x60) #define HICN_MAPME_ICMP_TYPE_IPV4 5 |