diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-05-29 18:32:11 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-05-29 18:32:11 +0000 |
commit | 81358fa3fc61a0d021f5a92e8dfadfaf3fecbf92 (patch) | |
tree | d772c76bf207865f925bc6fe1401b011d6366b66 /usr.sbin/ppp/defs.c | |
parent | d8710fd4229244716461fd2f16ce6810e3be25c5 (diff) | |
download | src-81358fa3fc61a0d021f5a92e8dfadfaf3fecbf92.tar.gz src-81358fa3fc61a0d021f5a92e8dfadfaf3fecbf92.zip |
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>
Notes
Notes:
svn path=/head/; revision=36465
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r-- | usr.sbin/ppp/defs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c index 85ccbcfd6b9a..d228eb3c5f42 100644 --- a/usr.sbin/ppp/defs.c +++ b/usr.sbin/ppp/defs.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: defs.c,v 1.13 1998/05/21 21:45:03 brian Exp $ + * $Id: defs.c,v 1.14 1998/05/29 00:03:00 brian Exp $ */ @@ -72,12 +72,12 @@ static struct { int mode; const char *name; } modes[] = { - { PHYS_MANUAL, "interactive" }, - { PHYS_DEMAND, "auto" }, + { PHYS_INTERACTIVE, "interactive" }, + { PHYS_AUTO, "auto" }, { PHYS_DIRECT, "direct" }, { PHYS_DEDICATED, "dedicated" }, - { PHYS_PERM, "ddial" }, - { PHYS_1OFF, "background" }, + { PHYS_DDIAL, "ddial" }, + { PHYS_BACKGROUND, "background" }, { PHYS_ALL, "*" }, { 0, 0 } }; |