mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Merged from DEVEL
This commit is contained in:
parent
f0e0e72e4d
commit
506a57392c
@ -118,11 +118,11 @@ extern const struct ip_addr ip_addr_broadcast;
|
|||||||
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))
|
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))
|
||||||
|
|
||||||
|
|
||||||
#define ip_addr_debug_print(ipaddr) LWIP_DEBUGF(LWIP_DEBUG, ("%d.%d.%d.%d", \
|
#define ip_addr_debug_print(debug, ipaddr) LWIP_DEBUGF(debug, ("%u.%u.%u.%u", \
|
||||||
(unsigned int)(ntohl((ipaddr)->addr) >> 24) & 0xff, \
|
ipaddr?(unsigned int)(ntohl((ipaddr)->addr) >> 24) & 0xff:0, \
|
||||||
(unsigned int)(ntohl((ipaddr)->addr) >> 16) & 0xff, \
|
ipaddr?(unsigned int)(ntohl((ipaddr)->addr) >> 16) & 0xff:0, \
|
||||||
(unsigned int)(ntohl((ipaddr)->addr) >> 8) & 0xff, \
|
ipaddr?(unsigned int)(ntohl((ipaddr)->addr) >> 8) & 0xff:0, \
|
||||||
(unsigned int)ntohl((ipaddr)->addr) & 0xff))
|
ipaddr?(unsigned int)ntohl((ipaddr)->addr) & 0xff:0U))
|
||||||
|
|
||||||
/* 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
|
||||||
* which expect integer arguments */
|
* which expect integer arguments */
|
||||||
|
Loading…
Reference in New Issue
Block a user