mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 14:46:01 +00:00
Fix bug #36391 - inet6_addr_to_ip6addr()
Change-Id: I2ab73901a8552e3c247d95985f6ce5d6ef7d4599
This commit is contained in:
parent
3ac81e9d7c
commit
3dcd33b08f
|
@ -70,9 +70,9 @@ struct in6_addr {
|
||||||
(target_in6addr)->un.u32_addr[2] = (source_ip6addr)->addr[2]; \
|
(target_in6addr)->un.u32_addr[2] = (source_ip6addr)->addr[2]; \
|
||||||
(target_in6addr)->un.u32_addr[3] = (source_ip6addr)->addr[3];}
|
(target_in6addr)->un.u32_addr[3] = (source_ip6addr)->addr[3];}
|
||||||
#define inet6_addr_to_ip6addr(target_ip6addr, source_in6addr) {(target_ip6addr)->addr[0] = (source_in6addr)->un.u32_addr[0]; \
|
#define inet6_addr_to_ip6addr(target_ip6addr, source_in6addr) {(target_ip6addr)->addr[0] = (source_in6addr)->un.u32_addr[0]; \
|
||||||
(target_ip6addr)->addr[0] = (source_in6addr)->un.u32_addr[0]; \
|
(target_ip6addr)->addr[1] = (source_in6addr)->un.u32_addr[1]; \
|
||||||
(target_ip6addr)->addr[0] = (source_in6addr)->un.u32_addr[0]; \
|
(target_ip6addr)->addr[2] = (source_in6addr)->un.u32_addr[2]; \
|
||||||
(target_ip6addr)->addr[0] = (source_in6addr)->un.u32_addr[0];}
|
(target_ip6addr)->addr[3] = (source_in6addr)->un.u32_addr[3];}
|
||||||
/* ATTENTION: the next define only works because both in6_addr and ip6_addr_t are an u32_t[4] effectively! */
|
/* ATTENTION: the next define only works because both in6_addr and ip6_addr_t are an u32_t[4] effectively! */
|
||||||
#define inet6_addr_to_ip6addr_p(target_ip6addr_p, source_in6addr) ((target_ip6addr_p) = (ip6_addr_t*)(source_in6addr))
|
#define inet6_addr_to_ip6addr_p(target_ip6addr_p, source_in6addr) ((target_ip6addr_p) = (ip6_addr_t*)(source_in6addr))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user