Removed old broadcast check macro.

This commit is contained in:
likewise
2004-04-28 23:18:20 +00:00
parent b8ee8808b4
commit 5b12c61a81
2 changed files with 1 additions and 10 deletions

View File

@@ -125,14 +125,7 @@ extern const struct ip_addr ip_addr_broadcast;
#define ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == 0)
#if 0 /* 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 *, struct netif *);
#endif
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))