From 245558fd56e2e7ef59a17ed6c9442af4390c3cf0 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 7 Feb 2008 01:33:47 +0000 Subject: [PATCH] Make windows tracert work: needs ICMP time exceeded sent for ICMP echo packets --- core/net/uip-fw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/net/uip-fw.c b/core/net/uip-fw.c index 1e336a05d..f9a0fe7b7 100644 --- a/core/net/uip-fw.c +++ b/core/net/uip-fw.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: uip-fw.c,v 1.9 2008/01/24 23:07:37 adamdunkels Exp $ + * $Id: uip-fw.c,v 1.10 2008/02/07 01:33:47 adamdunkels Exp $ */ /** * \addtogroup uip @@ -227,8 +227,9 @@ static void time_exceeded(void) { - /* We don't send out ICMP errors for ICMP messages. */ - if(ICMPBUF->proto == UIP_PROTO_ICMP) { + /* We don't send out ICMP errors for ICMP messages (unless they are pings). */ + if(ICMPBUF->proto == UIP_PROTO_ICMP && + ICMPBUF->type != ICMP_ECHO) { uip_len = 0; return; }