/[lwip]/lwip/src/include/ipv4/lwip/ip_addr.h
ViewVC logotype

Diff of /lwip/src/include/ipv4/lwip/ip_addr.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13.2.1 by likewise, Thu Jun 19 10:01:19 2003 UTC revision 1.13.2.2 by likewise, Thu Jun 19 10:33:58 2003 UTC
# Line 119  extern const struct ip_addr ip_addr_broa Line 119  extern const struct ip_addr ip_addr_broa
119    
120    
121  #define ip_addr_debug_print(debug, ipaddr) LWIP_DEBUGF(debug, ("%u.%u.%u.%u", \  #define ip_addr_debug_print(debug, ipaddr) LWIP_DEBUGF(debug, ("%u.%u.%u.%u", \
122          (unsigned int)(ntohl((ipaddr)->addr) >> 24) & 0xff, \          ipaddr?(unsigned int)(ntohl((ipaddr)->addr) >> 24) & 0xff:0, \
123          (unsigned int)(ntohl((ipaddr)->addr) >> 16) & 0xff, \          ipaddr?(unsigned int)(ntohl((ipaddr)->addr) >> 16) & 0xff:0, \
124          (unsigned int)(ntohl((ipaddr)->addr) >> 8) & 0xff, \          ipaddr?(unsigned int)(ntohl((ipaddr)->addr) >> 8) & 0xff:0, \
125          (unsigned int)ntohl((ipaddr)->addr) & 0xff))          ipaddr?(unsigned int)ntohl((ipaddr)->addr) & 0xff:0U))
126    
127  /* cast to unsigned int, as it is used as argument to printf functions  /* cast to unsigned int, as it is used as argument to printf functions
128   * which expect integer arguments */   * which expect integer arguments */

Legend:
Removed from v.1.13.2.1  
changed lines
  Added in v.1.13.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26