diff options
author | Luca Muscariello <lumuscar+fdio@cisco.com> | 2019-01-31 20:18:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-01-31 20:18:18 +0000 |
commit | c793ea85f8375013abaf2c6fb43347f935558276 (patch) | |
tree | 65afd170fa76536a2a1f26c566c9ffcd467bb800 /lib | |
parent | bf29f9a52ffa3a1f32f700e4fd36ea53885d83aa (diff) | |
parent | 159b18d6875bc2f9df66c78d1b71aa07930666af (diff) |
Merge "[HICN-23] Fix ICMP types for MAP-Me Ack"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/src/mapme.c | 4 |
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; |