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/hdlc.c | |
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/hdlc.c')
-rw-r--r-- | usr.sbin/ppp/hdlc.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index f969645..4ffb7a8 100644 --- a/usr.sbin/ppp/hdlc.c +++ b/usr.sbin/ppp/hdlc.c @@ -17,14 +17,11 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: hdlc.c,v 1.42 1999/05/08 11:06:36 brian Exp $ + * $Id: hdlc.c,v 1.43 1999/06/02 15:58:59 brian Exp $ * * TODO: */ #include <sys/param.h> -#include <netinet/in.h> -#include <netinet/in_systm.h> -#include <netinet/ip.h> #include <sys/un.h> #include <stdio.h> @@ -40,15 +37,8 @@ #include "fsm.h" #include "lqr.h" #include "hdlc.h" -#include "proto.h" -#include "iplist.h" #include "throughput.h" -#include "slcompress.h" -#include "ipcp.h" -#include "ip.h" -#include "vjcomp.h" #include "auth.h" -#include "pap.h" #include "lcp.h" #include "async.h" #include "ccp.h" @@ -61,11 +51,6 @@ #include "mp.h" #include "cbcp.h" #include "datalink.h" -#include "filter.h" -#ifndef NORADIUS -#include "radius.h" -#endif -#include "bundle.h" static u_int16_t const fcstab[256] = { /* 00 */ 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, |