diff options
Diffstat (limited to 'lib/src/protocol/ipv4.c')
-rw-r--r-- | lib/src/protocol/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/protocol/ipv4.c b/lib/src/protocol/ipv4.c index 4e4c47f5b..97aafaeaf 100644 --- a/lib/src/protocol/ipv4.c +++ b/lib/src/protocol/ipv4.c @@ -383,7 +383,7 @@ ipv4_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->ipv4.len = htons (payload_length + IPV4_HDRLEN + child_header_length); + h->ipv4.len = htons ((u_short) (payload_length + IPV4_HDRLEN + child_header_length)); return HICN_LIB_ERROR_NONE; } |