mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
* Applied patch #2679 * Adds check to line 133 for NETIF_FLAG_BROADCAST
This commit is contained in:
parent
4bf3359574
commit
f81c2744cc
@ -130,7 +130,8 @@ tcp_input(struct pbuf *p, struct netif *inp)
|
||||
}
|
||||
|
||||
/* Don't even process incoming broadcasts/multicasts. */
|
||||
if (ip_addr_isbroadcast(&(iphdr->dest), &(inp->netmask)) ||
|
||||
if (((inp->flags & NETIF_FLAG_BROADCAST) &&
|
||||
ip_addr_isbroadcast(&(iphdr->dest), &(inp->netmask))) ||
|
||||
ip_addr_ismulticast(&(iphdr->dest))) {
|
||||
pbuf_free(p);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user