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:
kieranm 2004-02-23 10:07:39 +00:00
parent 4bf3359574
commit f81c2744cc

View File

@ -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;