summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorjesper <jesper@FreeBSD.org>2001-08-27 22:10:07 +0000
committerjesper <jesper@FreeBSD.org>2001-08-27 22:10:07 +0000
commit0d6191f0277fc0b26d4c5a8e054d52da40448fc7 (patch)
tree8a4a08aa483e5322e5a389fd303c65e1d1687680 /sys/netinet/ip_input.c
parent636614d36b63f4d8c946cbbcae4f95ac6fc5b1f5 (diff)
downloadFreeBSD-src-0d6191f0277fc0b26d4c5a8e054d52da40448fc7.zip
FreeBSD-src-0d6191f0277fc0b26d4c5a8e054d52da40448fc7.tar.gz
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>
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 2cc3fd6..d2f14da 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
};
/*
OpenPOWER on IntegriCloud