* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).

This commit is contained in:
jifl 2007-04-12 18:55:44 +00:00
parent 79be888b6f
commit 748ba22a19
2 changed files with 4 additions and 1 deletions

View File

@ -117,6 +117,9 @@ HISTORY
++ Bug fixes:
2007-04-12 Jonathan Larmour
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).
2007-04-11 Simon Goldschmidt
* etharp.c, pbuf.c, pbuf.h: 3rd fix for bug #11400 (arp-queuing): More pbufs than
previously thought need to be copied (everything but PBUF_ROM!). Cleaned up

View File

@ -115,7 +115,7 @@ icmp_input(struct pbuf *p, struct netif *inp)
LWIP_ASSERT("Can't move over header in packet", 0);
else
ip_output_if(p, &(iphdr->src), IP_HDRINCL,
IPH_TTL(iphdr), 0, IP_PROTO_ICMP, inp);
ICMP_TTL, 0, IP_PROTO_ICMP, inp);
break;
default:
LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n", (s16_t)type, (s16_t)code));