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/datalink.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/datalink.c')
-rw-r--r-- | usr.sbin/ppp/datalink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index 1b36120..018df41 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: datalink.c,v 1.11 1998/06/20 00:19:35 brian Exp $ + * $Id: datalink.c,v 1.12 1998/06/24 19:33:31 brian Exp $ */ #include <sys/types.h> @@ -483,7 +483,8 @@ datalink_AuthOk(struct datalink *dl) } } else if (bundle_Phase(dl->bundle) == PHASE_NETWORK) { log_Printf(LogPHASE, "%s: Already in NETWORK phase\n", dl->name); - datalink_AuthNotOk(dl); + datalink_NewState(dl, DATALINK_OPEN); + (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.lcp.fsm); return; } else { dl->bundle->ncp.mp.peer = dl->peer; |