Add EHOSTDOWN and ENETUNREACH to the list of soft errors, that shouldn't

be returned up to the caller.

PR:		100172
Submitted by:	"Andrew - Supernews" <andrew supernews.net>
Reviewed by:	rwatson, bms
This commit is contained in:
Gleb Smirnoff
2007-02-28 12:47:49 +00:00
parent 72757d9a53
commit 8bec3467b1
+2
View File
@@ -1259,8 +1259,10 @@ tcp_output(struct tcpcb *tp)
tp->t_flags &= ~TF_TSO;
tcp_mtudisc(tp->t_inpcb, 0);
return (0);
case EHOSTDOWN:
case EHOSTUNREACH:
case ENETDOWN:
case ENETUNREACH:
if (TCPS_HAVERCVDSYN(tp->t_state)) {
tp->t_softerror = error;
return (0);