Browse Source

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

STABLE-2_1_x
jifl 19 years ago
parent
commit
748ba22a19
  1. 3
      CHANGELOG
  2. 2
      src/core/ipv4/icmp.c

3
CHANGELOG

@ -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

2
src/core/ipv4/icmp.c

@ -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));

Loading…
Cancel
Save