mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
Fixed constant initializer problem in ip_addr_t by having ip6 first
This commit is contained in:
@@ -44,24 +44,8 @@
|
||||
#include "lwip/netif.h"
|
||||
|
||||
/* used by IP_ADDR_ANY and IP_ADDR_BROADCAST in ip_addr.h */
|
||||
const ip_addr_t ip_addr_any = {
|
||||
#if LWIP_IPV6
|
||||
{
|
||||
#endif
|
||||
IPADDR_ANY
|
||||
#if LWIP_IPV6
|
||||
}, IPADDR_TYPE_V4
|
||||
#endif
|
||||
};
|
||||
const ip_addr_t ip_addr_broadcast = {
|
||||
#if LWIP_IPV6
|
||||
{
|
||||
#endif
|
||||
IPADDR_BROADCAST
|
||||
#if LWIP_IPV6
|
||||
}, IPADDR_TYPE_V4
|
||||
#endif
|
||||
};
|
||||
const ip_addr_t ip_addr_any = IPADDR4_INIT(IPADDR_ANY);
|
||||
const ip_addr_t ip_addr_broadcast = IPADDR4_INIT(IPADDR_BROADCAST);
|
||||
|
||||
/**
|
||||
* Determine if an address is a broadcast address on a network interface
|
||||
|
||||
Reference in New Issue
Block a user