diff options
author | brian <brian@FreeBSD.org> | 1998-05-29 18:32:11 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-05-29 18:32:11 +0000 |
commit | 36b1e9c4f09ae1f2c7cfe800667495650ecb809d (patch) | |
tree | a4e78ce3ef923cefd2226712ba750e1414447eb4 /usr.sbin/ppp/defs.h | |
parent | 6489989afd9e0aa8160383e09211468c91682707 (diff) | |
download | FreeBSD-src-36b1e9c4f09ae1f2c7cfe800667495650ecb809d.zip FreeBSD-src-36b1e9c4f09ae1f2c7cfe800667495650ecb809d.tar.gz |
o Make modes consistent throughout ppp. The same strings are used
in `set mode', `allow modes', on the command line and when
outputting mode names. The strings are matched so that only
enough characters to uniquely identify the string are required,
so you can now
ppp -a mylabel (for auto mode)
ppp -b mylabel (for background mode)
ppp -dd mylabel (for direct dial mode)
etc.
o Make -ddial dial when specified on the command line (oops).
Pointed out by: Alex <garbanzo@hooked.net>
Diffstat (limited to 'usr.sbin/ppp/defs.h')
-rw-r--r-- | usr.sbin/ppp/defs.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/ppp/defs.h b/usr.sbin/ppp/defs.h index 877b7dd..b14f5e9 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.30 1998/05/21 21:45:05 brian Exp $ + * $Id: defs.h,v 1.31 1998/05/28 23:17:40 brian Exp $ * * TODO: */ @@ -72,14 +72,14 @@ #define EX_NOLOGIN 13 /* physical::type values (OR'd in bundle::phys_type) */ -#define PHYS_NONE 0 -#define PHYS_MANUAL 1 /* Manual link */ -#define PHYS_DEMAND 2 /* Dial-on-demand link (-auto) */ -#define PHYS_DIRECT 4 /* Incoming link (-direct) */ -#define PHYS_DEDICATED 8 /* Dedicated link (-dedicated) */ -#define PHYS_PERM 16 /* Dial immediately, stay connected (-ddial) */ -#define PHYS_1OFF 32 /* Dial immediately, delete when done. (-background) */ -#define PHYS_ALL 63 +#define PHYS_NONE 0 +#define PHYS_INTERACTIVE 1 /* Manual link */ +#define PHYS_AUTO 2 /* Dial-on-demand link */ +#define PHYS_DIRECT 4 /* Incoming link, deleted when closed */ +#define PHYS_DEDICATED 8 /* Dedicated link */ +#define PHYS_DDIAL 16 /* Dial immediately, stay connected */ +#define PHYS_BACKGROUND 32 /* Dial immediately, deleted when closed */ +#define PHYS_ALL 63 extern void randinit(void); extern ssize_t fullread(int, void *, size_t); |