From 3a784509df5b382fdad35ac7e811b971756f8734 Mon Sep 17 00:00:00 2001 From: kieranm Date: Mon, 23 Feb 2004 10:13:12 +0000 Subject: [PATCH] 23/02/2003 - Kieran Mansley - kieranm@gtemail.net * Applied patch #2679 * Adds check to line 75 for NETIF_FLAG_BROADCAST --- src/core/ipv4/icmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index fbf5e7e5..d62ca00f 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -72,7 +72,8 @@ icmp_input(struct pbuf *p, struct netif *inp) code = *(((u8_t *)p->payload)+1); switch (type) { case ICMP_ECHO: - 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)) { LWIP_DEBUGF(ICMP_DEBUG, ("Smurf.\n")); ICMP_STATS_INC(icmp.err);