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:
likewise 2004-03-11 21:37:56 +00:00
parent 0cb355cd7c
commit 579d2ad811
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ const struct ip_addr ip_addr_broadcast = { 0xffffffffUL };
* as it does not support non-broadcast interfaces.
* 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"
u8_t ip_addr_isbroadcast(struct ip_addr *addr, netif)

View File

@ -111,13 +111,13 @@ extern const struct ip_addr ip_addr_broadcast;
#define ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == 0)
u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif);
#if 0 /* replaced by function in ip_addr.c */
#if 1 /* replaced by function in ip_addr.c */
#define ip_addr_isbroadcast(addr1, mask) (((((addr1)->addr) & ~((mask)->addr)) == \
(0xffffffff & ~((mask)->addr))) || \
((addr1)->addr == 0xffffffff) || \
((addr1)->addr == 0x00000000))
#else
u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif);
#endif
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))