23/02/2003 - Kieran Mansley - kieranm@gtemail.net

* Applied patch #2679

 * Adds check to line 314 for NETIF_FLAG_BROADCAST
This commit is contained in:
kieranm 2004-02-23 10:11:55 +00:00
parent f81c2744cc
commit 5c7189124c

View File

@ -311,7 +311,8 @@ udp_input(struct pbuf *p, struct netif *inp)
/* No match was found, send ICMP destination port unreachable unless
destination address was broadcast/multicast. */
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)) {
/* adjust pbuf pointer */