summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/defs.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-05-29 18:32:11 +0000
committerbrian <brian@FreeBSD.org>1998-05-29 18:32:11 +0000
commit36b1e9c4f09ae1f2c7cfe800667495650ecb809d (patch)
treea4e78ce3ef923cefd2226712ba750e1414447eb4 /usr.sbin/ppp/defs.c
parent6489989afd9e0aa8160383e09211468c91682707 (diff)
downloadFreeBSD-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.c')
-rw-r--r--usr.sbin/ppp/defs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c
index 85ccbcf..d228eb3 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 }
};
OpenPOWER on IntegriCloud