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>
This commit is contained in:
parent
91f36658d1
commit
3b8123b72c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82445
@ -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
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user