summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/tty.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-12-13 18:45:21 +0000
committerbrian <brian@FreeBSD.org>1999-12-13 18:45:21 +0000
commit0a9c0373046ed92cf5000ae6d00017482c9a4580 (patch)
tree81b8757a1a19a05dce0f40ac2a23cd0a2451b7bd /usr.sbin/ppp/tty.c
parent5fac1829472379fa7598ceb5589a8f80ef598618 (diff)
downloadFreeBSD-src-0a9c0373046ed92cf5000ae6d00017482c9a4580.zip
FreeBSD-src-0a9c0373046ed92cf5000ae6d00017482c9a4580.tar.gz
Handle PPPoPTY correctly.
Diffstat (limited to 'usr.sbin/ppp/tty.c')
-rw-r--r--usr.sbin/ppp/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c
index 13e7a1a..df6029c 100644
--- a/usr.sbin/ppp/tty.c
+++ b/usr.sbin/ppp/tty.c
@@ -113,6 +113,7 @@ tty_Timeout(void *data)
log_Printf(LogWARN, "%s: Carrier ioctl not supported, "
"using ``set cd off''\n", p->link.name);
timer_Stop(&dev->Timer);
+ dev->mbits = TIOCM_CD;
return;
}
} else
@@ -188,8 +189,7 @@ tty_AwaitCarrier(struct physical *p)
return CARRIER_PENDING; /* Not yet ! */
}
- return Online(dev) || !dev->dev.cd.necessity == CD_REQUIRED ?
- CARRIER_OK : CARRIER_LOST;
+ return Online(dev) ? CARRIER_OK : CARRIER_LOST;
}
static int
OpenPOWER on IntegriCloud