36 |
|
|
37 |
/** IP_ADDR_ can be used as a fixed IP address |
/** IP_ADDR_ can be used as a fixed IP address |
38 |
* for the wildcard and the broadcast address |
* for the wildcard and the broadcast address |
39 |
|
* |
40 |
*/ |
*/ |
41 |
#define IP_ADDR_ANY ((struct ip_addr *)&ip_addr_any) |
#define IP_ADDR_ANY ((struct ip_addr *)&ip_addr_any) |
42 |
#define IP_ADDR_BROADCAST ((struct ip_addr *)&ip_addr_broadcast) |
#define IP_ADDR_BROADCAST ((struct ip_addr *)&ip_addr_broadcast) |
96 |
|
|
97 |
extern const struct ip_addr ip_addr_any; |
extern const struct ip_addr ip_addr_any; |
98 |
extern const struct ip_addr ip_addr_broadcast; |
extern const struct ip_addr ip_addr_broadcast; |
|
extern const struct ip_addr ip_addr_any; |
|
|
extern const struct ip_addr ip_addr_broadcast; |
|
99 |
|
|
100 |
#define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = htonl(((u32_t)(a & 0xff) << 24) | ((u32_t)(b & 0xff) << 16) | \ |
#define IP4_ADDR(ipaddr, a,b,c,d) (ipaddr)->addr = htonl(((u32_t)(a & 0xff) << 24) | ((u32_t)(b & 0xff) << 16) | \ |
101 |
((u32_t)(c & 0xff) << 8) | (u32_t)(d & 0xff)) |
((u32_t)(c & 0xff) << 8) | (u32_t)(d & 0xff)) |