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
This commit is contained in:
Mike Silbersack 2003-06-17 06:21:08 +00:00
parent aec774abec
commit fcaf9f9146
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116462

View File

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