mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
Disabling ip_addr_isbroadcast() due to recursive header dependencies.
Currently, patch #2679 is broken, but will be neatly fixed once this is solved.
This commit is contained in:
parent
0cb355cd7c
commit
579d2ad811
@ -41,7 +41,7 @@ const struct ip_addr ip_addr_broadcast = { 0xffffffffUL };
|
|||||||
* as it does not support non-broadcast interfaces.
|
* as it does not support non-broadcast interfaces.
|
||||||
* lwip-devel 18-2-2004
|
* lwip-devel 18-2-2004
|
||||||
*/
|
*/
|
||||||
#if 1 /* replaces macro in ip_addr.h */
|
#if 0 /* going to replace macro in ip_addr.h */
|
||||||
#include "lwip/netif.h"
|
#include "lwip/netif.h"
|
||||||
|
|
||||||
u8_t ip_addr_isbroadcast(struct ip_addr *addr, netif)
|
u8_t ip_addr_isbroadcast(struct ip_addr *addr, netif)
|
||||||
|
@ -111,13 +111,13 @@ extern const struct ip_addr ip_addr_broadcast;
|
|||||||
|
|
||||||
#define ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == 0)
|
#define ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == 0)
|
||||||
|
|
||||||
u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif);
|
#if 1 /* replaced by function in ip_addr.c */
|
||||||
|
|
||||||
#if 0 /* replaced by function in ip_addr.c */
|
|
||||||
#define ip_addr_isbroadcast(addr1, mask) (((((addr1)->addr) & ~((mask)->addr)) == \
|
#define ip_addr_isbroadcast(addr1, mask) (((((addr1)->addr) & ~((mask)->addr)) == \
|
||||||
(0xffffffff & ~((mask)->addr))) || \
|
(0xffffffff & ~((mask)->addr))) || \
|
||||||
((addr1)->addr == 0xffffffff) || \
|
((addr1)->addr == 0xffffffff) || \
|
||||||
((addr1)->addr == 0x00000000))
|
((addr1)->addr == 0x00000000))
|
||||||
|
#else
|
||||||
|
u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))
|
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))
|
||||||
|
Loading…
Reference in New Issue
Block a user