diff options
Diffstat (limited to 'lib/src/protocol/ipv6.c')
-rw-r--r-- | lib/src/protocol/ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/protocol/ipv6.c b/lib/src/protocol/ipv6.c index 1cdcc75c0..7554eadf2 100644 --- a/lib/src/protocol/ipv6.c +++ b/lib/src/protocol/ipv6.c @@ -341,7 +341,7 @@ ipv6_set_payload_length (hicn_type_t type, hicn_protocol_t * h, int rc = CHILD_OPS (get_header_length, type, h, &child_header_length); if (rc < 0) return rc; - h->ipv6.len = htons (payload_length + child_header_length); + h->ipv6.len = htons ( (u_short) (payload_length + child_header_length)); return HICN_LIB_ERROR_NONE; } |