From 6a22b27277d90bf2c80b41a85881da4d17dcdc73 Mon Sep 17 00:00:00 2001 From: silby Date: Tue, 17 Jun 2003 06:21:08 +0000 Subject: [PATCH] Map icmp time exceeded responses to EHOSTUNREACH rather than 0 (no error); this makes connect act more sensibly in these cases. PR: 50839 Submitted by: Barney Wolff Patch delayed by laziness of: silby MFC after: 1 week --- sys/netinet/ip_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 7f9195aa0eb1..7aa4005a7030 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1696,7 +1696,7 @@ u_char inetctlerrmap[PRC_NCMDS] = { 0, EMSGSIZE, EHOSTDOWN, EHOSTUNREACH, EHOSTUNREACH, EHOSTUNREACH, ECONNREFUSED, ECONNREFUSED, EMSGSIZE, EHOSTUNREACH, 0, 0, - 0, 0, 0, 0, + 0, 0, EHOSTUNREACH, 0, ENOPROTOOPT, ECONNREFUSED };