diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-22 17:29:33 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-22 17:29:33 +0000 |
commit | 52623b565c8fc4ba063611c16810780149f5a572 (patch) | |
tree | 72cd3867b0a34f1c1c5b4b27757dd905d1a8e4e0 /usr.sbin/ppp/phase.h | |
parent | 6ca14a89c608ae04e77c840dbd24a9587eb1e5c7 (diff) | |
download | FreeBSD-src-52623b565c8fc4ba063611c16810780149f5a572.zip FreeBSD-src-52623b565c8fc4ba063611c16810780149f5a572.tar.gz |
For /usr/sbin/ppp, you must choose between running ppp in the background or
connecting to a host immediately in the foreground.
I would like to be able to run ppp from a script so that my script can be
sure that it is connected to the 'net before it continues running:
# Dial up the internet.
ppp -background myprovider || exit 1
do-some-net-command
# Hang up the modem.
kill -HUP `cat /var/run/ppp.tun0.pid`
Another problem is that the current ppp calls its process id file
`/var/run/PPP.server', which may conflict if you have more than one IP
tunnel interface available.
Closes PR#1469
Submitted by: Gord Matzigkeit <gord@enci.ucalgary.ca>
Diffstat (limited to 'usr.sbin/ppp/phase.h')
-rw-r--r-- | usr.sbin/ppp/phase.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/phase.h b/usr.sbin/ppp/phase.h index 688ae33..f7a879a 100644 --- a/usr.sbin/ppp/phase.h +++ b/usr.sbin/ppp/phase.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: phase.h,v 1.1.1.1 1995/01/31 06:29:55 amurai Exp $ + * $Id: phase.h,v 1.2 1995/02/26 12:17:53 amurai Exp $ * * TODO: */ @@ -26,9 +26,10 @@ #define PHASE_DEAD 0 /* Link is dead */ #define PHASE_ESTABLISH 1 /* Establishing link */ -#define PHASE_AUTHENTICATE 2 /* Beeing authenticate */ +#define PHASE_AUTHENTICATE 2 /* Being authenticated */ #define PHASE_NETWORK 3 #define PHASE_TERMINATE 4 /* Terminating link */ +#define PHASE_OSLINKED 5 /* The OS is linked up */ int phase; /* Curent phase */ |