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/defs.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/defs.h')
-rw-r--r-- | usr.sbin/ppp/defs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ppp/defs.h b/usr.sbin/ppp/defs.h index 3b690ff..475ca8a 100644 --- a/usr.sbin/ppp/defs.h +++ b/usr.sbin/ppp/defs.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: defs.h,v 1.6 1996/12/12 14:39:39 jkh Exp $ + * $Id: defs.h,v 1.7 1996/12/22 17:09:13 jkh Exp $ * * TODO: */ @@ -62,6 +62,8 @@ #define MODE_DEDICATED 8 /* Dedicated line mode */ #define MODE_DDIAL 16 /* Dedicated dialing line mode */ #define MODE_ALIAS 32 /* Packet aliasing (masquerading) */ +#define MODE_BACKGROUND 64 /* Background mode. */ + #define EX_NORMAL 0 #define EX_START 1 @@ -74,8 +76,11 @@ #define EX_ERRDEAD 8 #define EX_HANGUP 10 #define EX_TERM 11 +#define EX_NODIAL 12 +#define EX_NOLOGIN 13 int mode; +int BGFiledes[2]; int modem; int tun_in, tun_out; |