diff options
author | bde <bde@FreeBSD.org> | 1995-07-29 13:40:13 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-07-29 13:40:13 +0000 |
commit | 14ed6d3cb408b96bbf946287814b3a0d8be13a42 (patch) | |
tree | 240af9291d5034b8a6fc1ffc02892d0c35a79f52 /sys/net/if_ppp.c | |
parent | 7d793609e88f56616024a50a7086c0f13fd3dade (diff) | |
download | FreeBSD-src-14ed6d3cb408b96bbf946287814b3a0d8be13a42.zip FreeBSD-src-14ed6d3cb408b96bbf946287814b3a0d8be13a42.tar.gz |
Obtained from: partly from ancient patches by ache and me via 1.1.5
Remove nullmodem().
It may be useful to have a null modem routine, but nullmodem()
wasn't one. nullmodem() was identical to ttymodem() except it
didn't implement MDMBUF (carrier) flow control, didn't do any
wakeups for off to on carrier transitions, and didn't flush the
i/o queues for on to off carrier transitions (flushing has the side
effect of waking up readers and writers) although it did generate
SIGHUPs. The wakeups must normally be done even if nullmodem() is
null in case something is sleeping waiting for a carrier transition.
In any case, the wakeups should be harmless. They may cause bogus
results for select(), but select() is already bogus for nonstandard
line disciplines.
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 236d5ad..e9d5e65 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -69,7 +69,7 @@ * Paul Mackerras (paulus@cs.anu.edu.au). */ -/* $Id: if_ppp.c,v 1.15 1995/07/08 16:34:55 joerg Exp $ */ +/* $Id: if_ppp.c,v 1.16 1995/07/21 20:52:55 bde Exp $ */ /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */ #include "ppp.h" @@ -146,7 +146,7 @@ int pppstart __P((struct tty *tp)); static struct linesw pppdisc = { pppopen, pppclose, pppread, pppwrite, ppptioctl, - pppinput, pppstart, nullmodem + pppinput, pppstart, ttymodem }; static int pppasyncstart __P((struct ppp_softc *)); |