X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;h=fc65d921b526345e1ac47f1db825ad6f03381514;hb=1a39a96301b795cda440a54192833c1ae96c7670;hp=2571774974c05668e858be67ea02eae2e2a44fb5;hpb=43980349e8e0c4119d58aa4d53c414864991b276;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index 2571774..fc65d92 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -18,7 +18,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: options.c,v 1.62 1999/08/12 04:25:10 paulus Exp $"; +static const char rcsid[] = "$Id: options.c,v 1.63 1999/08/13 01:57:36 paulus Exp $"; #endif #include @@ -94,6 +94,7 @@ int using_pty = 0; bool sync_serial = 0; /* Device is synchronous serial device */ int log_to_fd = 1; /* send log messages to this fd too */ int maxfail = 10; /* max # of unsuccessful connection attempts */ +char linkname[MAXPATHLEN]; /* logical name for link */ extern option_t auth_options[]; extern struct stat devstat; @@ -240,6 +241,9 @@ option_t general_options[] = { { "nologfd", o_int, &log_to_fd, "Don't send log messages to any file descriptor", OPT_NOARG | OPT_VAL(-1) }, + { "linkname", o_string, linkname, + "Set logical name for link", + OPT_PRIV|OPT_STATIC, NULL, MAXPATHLEN }, { "maxfail", o_int, &maxfail, "Maximum number of unsuccessful connection attempts to allow" },