summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-04-21 02:00:29 +0000
committerbrian <brian@FreeBSD.org>2002-04-21 02:00:29 +0000
commit734c0c9c89aa23635f5b917b997b4d88a8664ba4 (patch)
tree7e9d1b660e4d5c9bfdfd1c70b47c2b5dceb2fa30 /usr.sbin/ppp
parentab6fdd245b7105f237c28d1ef4105422a65b8ec1 (diff)
downloadFreeBSD-src-734c0c9c89aa23635f5b917b997b4d88a8664ba4.zip
FreeBSD-src-734c0c9c89aa23635f5b917b997b4d88a8664ba4.tar.gz
Don't load the netgraph line discipline. When it's in use, TIOCMGET
fails and on loss of carrier, the device doesn't become selectable with 0 bytes to read. Problem reported by: ache
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/tty.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c
index 83783ec..a246aab 100644
--- a/usr.sbin/ppp/tty.c
+++ b/usr.sbin/ppp/tty.c
@@ -260,6 +260,13 @@ LoadLineDiscipline(struct physical *p)
struct ngm_connect ngc;
int ldisc, cs, ds, hot, speed;
+ /*
+ * Don't use the netgraph line discipline for now. Using it works, but
+ * carrier cannot be detected via TIOCMGET and the device doesn't become
+ * selectable with 0 bytes to read when carrier is lost :(
+ */
+ return 0;
+
reply = (struct ng_mesg *)rbuf;
info = (struct nodeinfo *)reply->data;
OpenPOWER on IntegriCloud