summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-01-31 17:26:36 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-01-31 17:27:04 +0100
commit159b18d6875bc2f9df66c78d1b71aa07930666af (patch)
tree40bef1440237a59a71d2eb77cec5a63f41af2d16 /lib
parent4d3c71e9ae772d020220596636bc6e3ea07741e5 (diff)
[HICN-23] Fix ICMP types for MAP-Me Ack
Change-Id: Ieb9fcb87f75be62270df6e2f599182fd9fba5e5b Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/src/mapme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/mapme.c b/lib/src/mapme.c
index e4c5ee1f2..746336205 100644
--- a/lib/src/mapme.c
+++ b/lib/src/mapme.c
@@ -120,7 +120,7 @@ hicn_mapme_v4_create_ack (u8 * buf, const mapme_params_t * params)
mh->ip.daddr = mh->ip.saddr;
mh->ip.saddr = tmp;
mh->ip.ttl = HICN_MAPME_TTL;
- mh->icmp.type = (params->type == UPDATE) ? UPDATE_ACK : NOTIFICATION_ACK;
+ mh->icmp.type = HICN_MAPME_ICMP_TYPE_ACK_IPV4;
mh->icmp.csum = 0;
return HICN_MAPME_V4_HDRLEN;
@@ -136,7 +136,7 @@ hicn_mapme_v6_create_ack (u8 * buf, const mapme_params_t * params)
mh->ip.daddr = mh->ip.saddr;
mh->ip.saddr = tmp;
mh->ip.hlim = HICN_MAPME_TTL;
- mh->icmp.type = (params->type == UPDATE) ? UPDATE_ACK : NOTIFICATION_ACK;
+ mh->icmp.type = HICN_MAPME_ICMP_TYPE_ACK_IPV6;
mh->icmp.csum = 0;
return HICN_MAPME_V6_HDRLEN;