diff --git a/CHANGELOG b/CHANGELOG index dd6d1b05..1f4b80da 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,14 @@ HISTORY ++ New features: + 2014-12-08: Simon Goldschmidt + * ip6.h: fixed bug #43778: IPv6 header version not set on 16-bit platform + (macro IP6H_VTCFL_SET()) + + 2014-12-08: Simon Goldschmidt + * icmp.c, ip4.c, pbuf.c, udp.c, pbuf.h: task #11472 Support PBUF_REF for RX + (IPv6 and IPv4/v6 reassembly might not work yet) + 2014-11-06: Simon Goldschmidt * sockets.c/.h, init.c: lwip_socket_init() is not needed any more -> compatibility define diff --git a/src/include/lwip/ip6.h b/src/include/lwip/ip6.h index f76354ee..a7b264f0 100644 --- a/src/include/lwip/ip6.h +++ b/src/include/lwip/ip6.h @@ -155,7 +155,7 @@ PACK_STRUCT_END #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) #define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) -#define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (htonl(((v) << 28) | ((tc) << 20) | (fl))) +#define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (htonl((((u32_t)(v)) << 28) | (((u32_t)(tc)) << 20) | (fl))) #define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = htons(plen) #define IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth) #define IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl)