diff options
| author | Brian Somers <brian@FreeBSD.org> | 1997-04-13 00:54:45 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1997-04-13 00:54:45 +0000 |
| commit | 4ed9958f49e81df6068faa21d307382b7be72ef8 (patch) | |
| tree | c50b6f56c554a443b6afdfc9cdda8c52e52b8f5b /usr.sbin | |
| parent | c0139fb2e25e8c35cd51eef1c8daae6f4d16809f (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/ppp/main.c | 11 | ||||
| -rw-r--r-- | usr.sbin/ppp/modem.c | 7 | ||||
| -rw-r--r-- | usr.sbin/ppp/ppp.8 | 11 | ||||
| -rw-r--r-- | usr.sbin/ppp/ppp.8.m4 | 11 |
4 files changed, 27 insertions, 13 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 6f43044f4ce43..04a5d26ab2a5a 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.41 1997/04/09 17:35:54 ache Exp $ + * $Id: main.c,v 1.42 1997/04/12 22:58:39 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -172,7 +172,7 @@ int excode; LogPrintf(LOG_PHASE_BIT,"Failed to notify parent of failure.\n"); close(BGFiledes[1]); } - LogPrintf(LOG_PHASE_BIT, "PPP Terminated.\n"); + LogPrintf(LOG_PHASE_BIT, "PPP Terminated %d.\n",excode); LogClose(); if (server >= 0) { close(server); @@ -775,7 +775,12 @@ DoLoop() tries = 0; } else { CloseModem(); - if (VarDialTries && tries >= VarDialTries) { + if (mode & MODE_BACKGROUND) { + if (VarNextPhone == NULL) + Cleanup(EX_DIAL); /* Tried all numbers - no luck */ + else + sleep(1); /* Try all numbers in background mode */ + } else if (VarDialTries && tries >= VarDialTries) { /* I give up ! Can't get through :( */ StartRedialTimer(); dial_up = FALSE; diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 074276a447c5b..ead30acd61504 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.31 1997/03/10 06:54:58 ache Exp $ + * $Id: modem.c,v 1.32 1997/03/31 22:51:00 brian Exp $ * * TODO: */ @@ -763,11 +763,6 @@ DialModem() } } HangupModem(0); - if (mode & MODE_BACKGROUND) { - extern void Cleanup(); - CloseModem(); - Cleanup(excode); - } return(0); } diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index a882bfc4f92b7..3d47cd23894f1 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -1,5 +1,5 @@ .\" manual page [] for ppp 0.94 beta2 + alpha -.\" $Id: ppp.8,v 1.26 1997/03/13 21:39:41 brian Exp $ +.\" $Id: ppp.8,v 1.27 1997/04/12 22:58:41 brian Exp $ .Dd 20 September 1995 .Os FreeBSD .Dt PPP 8 @@ -432,7 +432,14 @@ dial mode on both ends of the link. If each end has the same timeout, both ends wind up calling each other at the same time if the link drops and both ends have packets queued. - To terminate the program, type +The +.Dq set redial +command is ineffective if the +.Fl background +flag is specified. For background mode, all phone numbers are dialed +at most once until a connection is made. + +To terminate the program, type PPP ON tama> close ppp ON tama> quit all diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4 index a882bfc4f92b7..3d47cd23894f1 100644 --- a/usr.sbin/ppp/ppp.8.m4 +++ b/usr.sbin/ppp/ppp.8.m4 @@ -1,5 +1,5 @@ .\" manual page [] for ppp 0.94 beta2 + alpha -.\" $Id: ppp.8,v 1.26 1997/03/13 21:39:41 brian Exp $ +.\" $Id: ppp.8,v 1.27 1997/04/12 22:58:41 brian Exp $ .Dd 20 September 1995 .Os FreeBSD .Dt PPP 8 @@ -432,7 +432,14 @@ dial mode on both ends of the link. If each end has the same timeout, both ends wind up calling each other at the same time if the link drops and both ends have packets queued. - To terminate the program, type +The +.Dq set redial +command is ineffective if the +.Fl background +flag is specified. For background mode, all phone numbers are dialed +at most once until a connection is made. + +To terminate the program, type PPP ON tama> close ppp ON tama> quit all |
