diff options
author | Mike Silbersack <silby@FreeBSD.org> | 2003-06-17 06:21:08 +0000 |
---|---|---|
committer | Mike Silbersack <silby@FreeBSD.org> | 2003-06-17 06:21:08 +0000 |
commit | fcaf9f9146b44e31852e5178974d7900b8221a68 (patch) | |
tree | 22d3d9073dcb44992ba5d4727f518d09ef17915a /sys/netinet/ip_input.c | |
parent | aec774abec5b81d9c15645ab06ffe7858cdbd163 (diff) | |
download | src-fcaf9f9146b44e31852e5178974d7900b8221a68.tar.gz src-fcaf9f9146b44e31852e5178974d7900b8221a68.zip |
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 <barney@pit.databus.com>
Patch delayed by laziness of: silby
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=116462
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 }; |