diff options
author | brian <brian@FreeBSD.org> | 1997-10-29 01:19:51 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-10-29 01:19:51 +0000 |
commit | 941e2045a2c71da41fadec9bfed70cb37decf91d (patch) | |
tree | 4c2bd79bb14d877ea218862c9460f1013baccc74 /usr.sbin/ppp/main.c | |
parent | addd7d2b5d469a8b3c11cfc9d397c0faad4ade9a (diff) | |
download | FreeBSD-src-941e2045a2c71da41fadec9bfed70cb37decf91d.zip FreeBSD-src-941e2045a2c71da41fadec9bfed70cb37decf91d.tar.gz |
o Bump version to 1.3 to reflect major changes
o Report modem connect time properly
o Report bytes in/out over physical media
o Fix phases (TERMINATE is *higher than* DEAD)
o Do a LayerFinish from LcpDown
o Bring down IPCP & CCP when we enter PHASE_TERMINATE
o Give a new prompt when we go to PHASE_DEAD
o Stop the modem timer properly when idle
o Treat sig 15 like an exiting carrier loss
o Log (DEBUG) offline & online transitions
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index ae27355..aeb4640 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.84 1997/10/24 22:36:30 brian Exp $ + * $Id: main.c,v 1.85 1997/10/26 01:03:14 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -173,14 +173,13 @@ TtyOldMode() void Cleanup(int excode) { - OsLinkdown(); - OsCloseLink(1); + OsInterfaceDown(1); + HangupModem(1); nointr_sleep(1); if (mode & MODE_AUTO) DeleteIfRoutes(1); (void) unlink(pid_filename); (void) unlink(if_filename); - OsInterfaceDown(1); if (mode & MODE_BACKGROUND && BGFiledes[1] != -1) { char c = EX_ERRDEAD; @@ -800,7 +799,6 @@ DoLoop() reconnectState = RECON_UNKNOWN; tries = 0; } else { - CloseModem(); if (mode & MODE_BACKGROUND) { if (VarNextPhone == NULL || res == EX_SIG) Cleanup(EX_DIAL); /* Tried all numbers - no luck */ |