diff options
author | brian <brian@FreeBSD.org> | 1997-12-03 10:23:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-03 10:23:54 +0000 |
commit | 4c9568e05af003a85ca40c896b5041fc8286221f (patch) | |
tree | 86301631e3a842883c7e61e9c2f1feab23a39e23 /usr.sbin/ppp/fsm.c | |
parent | 185fb48052f903a80b31786784cbb82fb059c35c (diff) | |
download | FreeBSD-src-4c9568e05af003a85ca40c896b5041fc8286221f.zip FreeBSD-src-4c9568e05af003a85ca40c896b5041fc8286221f.tar.gz |
Abstract the CCP layer a level.
Add DEFLATE support.
Diffstat (limited to 'usr.sbin/ppp/fsm.c')
-rw-r--r-- | usr.sbin/ppp/fsm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index 7bf11eb..48f9d07 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: fsm.c,v 1.21 1997/11/11 23:23:11 brian Exp $ + * $Id: fsm.c,v 1.22 1997/11/22 03:37:31 brian Exp $ * * TODO: * o Refer loglevel for log output @@ -44,7 +44,6 @@ #include "modem.h" #include "loadalias.h" #include "vars.h" -#include "pred.h" u_char AckBuff[200]; u_char NakBuff[200]; @@ -735,12 +734,12 @@ static void FsmRecvResetAck(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp) { LogPrintf(fp->LogLevel, "RecvResetAck\n"); - Pred1Init(1); /* Initialize Input part */ + CcpResetInput(); fp->reqid++; pfree(bp); } -struct fsmcodedesc FsmCodes[] = { +static const struct fsmcodedesc FsmCodes[] = { {FsmRecvConfigReq, "Configure Request",}, {FsmRecvConfigAck, "Configure Ack",}, {FsmRecvConfigNak, "Configure Nak",}, @@ -763,7 +762,7 @@ FsmInput(struct fsm * fp, struct mbuf * bp) { int len; struct fsmheader *lhp; - struct fsmcodedesc *codep; + const struct fsmcodedesc *codep; len = plength(bp); if (len < sizeof(struct fsmheader)) { |