From 8a2e408a3fc20f1055a8ca796a4d32ebc9fb9aa0 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Mon, 21 Jan 2019 13:25:59 +0100 Subject: HICN-4 - Fix Windows compilation issue with named struct initializers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9c9e8780ec1132d3d74b6202b9b142ed64b4e13f Signed-off-by: Jordan Augé --- lib/src/mapme.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/src/mapme.h') 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 -- cgit 1.2.3-korg