diff options
author | brian <brian@FreeBSD.org> | 1998-06-25 22:33:31 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-25 22:33:31 +0000 |
commit | 1e23d0e92ca74f12045a6edbe3af1659468b1133 (patch) | |
tree | 3d61fb0aefd12cb54f86a51a4915c119627010a2 /usr.sbin/ppp/ccp.c | |
parent | c957b12bc95bfb0a1df6e5625df47e96bdf7df94 (diff) | |
download | FreeBSD-src-1e23d0e92ca74f12045a6edbe3af1659468b1133.zip FreeBSD-src-1e23d0e92ca74f12045a6edbe3af1659468b1133.tar.gz |
Add ``ipcp'' as an optional argument to ``open'', and make
open capable of re-negotiatiating the various layers.
It is now possible to change various link options and then
re-open the relevant layer, making the changes effective -
for example, switching off VJ compression or starting ECHO
LQRs on-the-fly.
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r-- | usr.sbin/ppp/ccp.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index 086160e..5e164c22 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ccp.c,v 1.33 1998/05/23 13:38:00 brian Exp $ + * $Id: ccp.c,v 1.34 1998/06/15 19:06:02 brian Exp $ * * TODO: * o Support other compression protocols @@ -306,13 +306,13 @@ CcpLayerStart(struct fsm *fp) } static void -CcpLayerFinish(struct fsm *fp) +CcpLayerDown(struct fsm *fp) { - /* We're now down */ + /* About to come down */ struct ccp *ccp = fsm2ccp(fp); struct ccp_opt *next; - log_Printf(LogCCP, "%s: CcpLayerFinish.\n", fp->link->name); + log_Printf(LogCCP, "%s: CcpLayerDown.\n", fp->link->name); if (ccp->in.state != NULL) { (*algorithm[ccp->in.algorithm]->i.Term)(ccp->in.state); ccp->in.state = NULL; @@ -330,13 +330,14 @@ CcpLayerFinish(struct fsm *fp) free(ccp->out.opt); ccp->out.opt = next; } + ccp_Setup(ccp); } static void -CcpLayerDown(struct fsm *fp) +CcpLayerFinish(struct fsm *fp) { - /* About to come down */ - log_Printf(LogCCP, "%s: CcpLayerDown.\n", fp->link->name); + /* We're now down */ + log_Printf(LogCCP, "%s: CcpLayerFinish.\n", fp->link->name); } /* |