mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
Bug #28917: don't increase error counters for icmp echo response
This commit is contained in:
parent
c637441f52
commit
16a63c6554
@ -101,6 +101,10 @@ icmp_input(struct pbuf *p, struct netif *inp)
|
|||||||
code = *(((u8_t *)p->payload)+1);
|
code = *(((u8_t *)p->payload)+1);
|
||||||
#endif /* LWIP_DEBUG */
|
#endif /* LWIP_DEBUG */
|
||||||
switch (type) {
|
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:
|
case ICMP_ECHO:
|
||||||
#if !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
|
#if !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user