Compile dammit

This commit is contained in:
likewise 2004-11-25 14:03:31 +00:00
parent aa249922df
commit f3def542ee

View File

@ -61,10 +61,10 @@ u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif)
else if (addr->addr == netif->ip_addr.addr)
return 0;
/* on the same (sub) network... */
else if (ip_addr_netcmp(addr->addr, netif->ip_addr.addr, netif->netmask.addr)
else if (ip_addr_netcmp(addr, &(netif->ip_addr), &(netif->netmask))
/* ...and host identifier bits are all ones? =>... */
&& ((addr->addr & ~netif->netmask.addr) ==
(ip_addr_broadcast.addr & ~netif->netmask.addr))
(ip_addr_broadcast.addr & ~netif->netmask.addr)))
/* => network broadcast address */
return 1;
else