Ignore carrier if not using hardware carrier detect (i.e. CLOCAL is set).

This commit is contained in:
mycroft 1993-10-02 08:55:16 +00:00
parent db3323c9ef
commit 188ab15167

View File

@ -371,7 +371,8 @@ sloutput(ifp, m, dst)
m_freem(m);
return (ENETDOWN); /* sort of */
}
if ((sc->sc_ttyp->t_state & TS_CARR_ON) == 0) {
if ((sc->sc_ttyp->t_state & TS_CARR_ON) == 0 &&
(sc->sc_ttyp->t_cflag & CLOCAL) == 0) {
m_freem(m);
return (EHOSTUNREACH);
}