diff options
author | brian <brian@FreeBSD.org> | 1999-08-06 20:04:08 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-08-06 20:04:08 +0000 |
commit | 8229df47c3e2374322058e43333045e6fe030427 (patch) | |
tree | 0dcd97a0d9e4b6f52cd1f2aa158c28fca4e9e808 /usr.sbin/ppp/i4b.h | |
parent | 82b15b21003b7e5df8e9a7bae9330508378a0ee8 (diff) | |
download | FreeBSD-src-8229df47c3e2374322058e43333045e6fe030427.zip FreeBSD-src-8229df47c3e2374322058e43333045e6fe030427.tar.gz |
Add ISDN support via isdnd & i4b. This requires version
0.81.1 of the i4b code - namely support of the I4B_VR_REQ
ioctl via the i4brbchX device.
Ppp controls the phone number, but idle timers and
SYNC/RAW decisions are still made by isdnd (in isdnd.rc).
This involves a new datalink state machine phase. The
``wait for carrier'' phase happens after dialing but
before logging in. The whole dial state should really
be abstracted so that each device type can deal with it
in its own way (thinking about PPPoE) - but that'll have
to wait.
The ``set cd'' symantics remain the same for tty devices,
but we now delay until we either get CD or timeout waiting
(at which time we drop the link if we require CD).
For i4b devices we always insist on carrier.
Thanks to hm@ for his help, and especially for pointing out
that I *don't* need to re-implement isdnd (that was a huge
waste of time !) :-]
Diffstat (limited to 'usr.sbin/ppp/i4b.h')
-rw-r--r-- | usr.sbin/ppp/i4b.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/usr.sbin/ppp/i4b.h b/usr.sbin/ppp/i4b.h new file mode 100644 index 0000000..e9fa511 --- /dev/null +++ b/usr.sbin/ppp/i4b.h @@ -0,0 +1,35 @@ +/*- + * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $Id:$ + */ + +struct physical; +struct device; + +extern struct device *i4b_Create(struct physical *); +extern struct device *i4b_iov2device(int, struct physical *, + struct iovec *, int *, int); +extern int i4b_DeviceSize(void); |