summaryrefslogtreecommitdiffstats
path: root/lib/src/mapme.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/mapme.h')
-rwxr-xr-xlib/src/mapme.h11
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