mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 09:16:20 +00:00
Corrected comparison by adding missing parentheses.
This commit is contained in:
parent
8603e19516
commit
384fb3c353
@ -57,7 +57,7 @@ u8_t ip_addr_isbroadcast(struct ip_addr *addr, struct netif *netif)
|
||||
return 1;
|
||||
/* no broadcast support on this network interface
|
||||
* we cannot proceed matching against broadcast addresses */
|
||||
else if (netif->flags & NETIF_FLAG_BROADCAST == 0)
|
||||
else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0)
|
||||
return 0;
|
||||
/* address matches network interface address exactly? => no broadcast */
|
||||
else if (addr->addr == netif->ip_addr.addr)
|
||||
|
Loading…
Reference in New Issue
Block a user