fixed bug #43778: IPv6 header version not set on 16-bit platform (macro IP6H_VTCFL_SET())

This commit is contained in:
goldsimon 2014-12-08 15:00:37 +01:00
parent 4085a3fad4
commit ca26fd17a7
2 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,14 @@ HISTORY
++ New features: ++ 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 2014-11-06: Simon Goldschmidt
* sockets.c/.h, init.c: lwip_socket_init() is not needed any more * sockets.c/.h, init.c: lwip_socket_init() is not needed any more
-> compatibility define -> compatibility define

View File

@ -155,7 +155,7 @@ PACK_STRUCT_END
#define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) #define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6)
#define IP6H_HOPLIM(hdr) ((hdr)->_hoplim) #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_PLEN_SET(hdr, plen) (hdr)->_plen = htons(plen)
#define IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth) #define IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth)
#define IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl) #define IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl)