From 16a63c655489c832e914d694fa87cb59635ed223 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 16 Feb 2010 20:38:35 +0000 Subject: [PATCH] Bug #28917: don't increase error counters for icmp echo response --- src/core/ipv4/icmp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index bc649c56..b9326bd9 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -101,6 +101,10 @@ icmp_input(struct pbuf *p, struct netif *inp) code = *(((u8_t *)p->payload)+1); #endif /* LWIP_DEBUG */ switch (type) { + case ICMP_ER: + /* This is OK, echo reply might have been parsed by a raw PCB + (as obviously, an echo request has been sent, too). */ + break; case ICMP_ECHO: #if !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING {