From 5c7189124c0ce266809389128f5e56d125ee959e Mon Sep 17 00:00:00 2001 From: kieranm Date: Mon, 23 Feb 2004 10:11:55 +0000 Subject: [PATCH] 23/02/2003 - Kieran Mansley - kieranm@gtemail.net * Applied patch #2679 * Adds check to line 314 for NETIF_FLAG_BROADCAST --- src/core/udp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/udp.c b/src/core/udp.c index c9b33b97..972cfaad 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -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 */