diff options
author | Jesper Skriver <jesper@FreeBSD.org> | 2001-08-27 22:10:07 +0000 |
---|---|---|
committer | Jesper Skriver <jesper@FreeBSD.org> | 2001-08-27 22:10:07 +0000 |
commit | 3b8123b72c6c5bcbaa8001659682a4f5f0be9fb4 (patch) | |
tree | 8a4a08aa483e5322e5a389fd303c65e1d1687680 /sys | |
parent | 91f36658d1f77796bc1ae64d1472ce972f62ce05 (diff) | |
download | src-3b8123b72c6c5bcbaa8001659682a4f5f0be9fb4.tar.gz src-3b8123b72c6c5bcbaa8001659682a4f5f0be9fb4.zip |
When net.inet.tcp.icmp_may_rst is enabled, report ECONNREFUSED not ENETRESET
to the application as a RST would, this way we're compatible with the most
applications.
MFC candidate.
Submitted by: Scott Renfro <scott@renfro.org>
Reviewed by: Mike Silbersack <silby@silby.com>
Notes
Notes:
svn path=/head/; revision=82445
Diffstat (limited to 'sys')
-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 2cc3fd644f95..d2f14da96c72 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1562,7 +1562,7 @@ u_char inetctlerrmap[PRC_NCMDS] = { EHOSTUNREACH, EHOSTUNREACH, ECONNREFUSED, ECONNREFUSED, EMSGSIZE, EHOSTUNREACH, 0, 0, 0, 0, 0, 0, - ENOPROTOOPT, ENETRESET + ENOPROTOOPT, ECONNREFUSED }; /* |