Go to the documentation of this file.
32 #ifndef __LWIP_IP_ADDR_H__
33 #define __LWIP_IP_ADDR_H__
43 #ifdef PACK_STRUCT_USE_INCLUDES
44 # include "arch/bpstruct.h"
51 #ifdef PACK_STRUCT_USE_INCLUDES
52 # include "arch/epstruct.h"
59 #ifdef PACK_STRUCT_USE_INCLUDES
60 # include "arch/bpstruct.h"
67 #ifdef PACK_STRUCT_USE_INCLUDES
68 # include "arch/epstruct.h"
71 #define IP6_ADDR(ipaddr, a,b,c,d,e,f,g,h) do { (ipaddr)->addr[0] = htonl((u32_t)((a & 0xffff) << 16) | (b & 0xffff)); \
72 (ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \
73 (ipaddr)->addr[2] = htonl(((e & 0xffff) << 16) | (f & 0xffff)); \
74 (ipaddr)->addr[3] = htonl(((g & 0xffff) << 16) | (h & 0xffff)); } while(0)
82 #define ip_addr_debug_print(debug, ipaddr) \
83 LWIP_DEBUGF(debug, ("%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F"\n", \
84 (ntohl(ipaddr->addr[0]) >> 16) & 0xffff, \
85 ntohl(ipaddr->addr[0]) & 0xffff, \
86 (ntohl(ipaddr->addr[1]) >> 16) & 0xffff, \
87 ntohl(ipaddr->addr[1]) & 0xffff, \
88 (ntohl(ipaddr->addr[2]) >> 16) & 0xffff, \
89 ntohl(ipaddr->addr[2]) & 0xffff, \
90 (ntohl(ipaddr->addr[3]) >> 16) & 0xffff, \
91 ntohl(ipaddr->addr[3]) & 0xffff));