X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;h=cb9c2d4a1638f868bdbf130530a8d1f106baeb58;hb=a3630de20e34796f434a728bfd9cf1a961380c82;hp=59c7b5b9f6e0353bc2335f7587633ea155bb0d9a;hpb=ee0fba791a4db3588ec086b43ff982bf14265301;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index 59c7b5b..cb9c2d4 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -17,9 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef lint -static const char rcsid[] = "$Id: options.c,v 1.61 1999/08/12 04:17:07 paulus Exp $"; -#endif +#define RCSID "$Id: options.c,v 1.64 1999/08/13 06:46:16 paulus Exp $" #include #include @@ -57,6 +55,8 @@ static const char rcsid[] = "$Id: options.c,v 1.61 1999/08/12 04:17:07 paulus Ex char *strdup __P((char *)); #endif +static const char rcsid[] = RCSID; + /* * Option variables and default values. */ @@ -93,7 +93,8 @@ char *record_file = NULL; /* File to record chars sent/received */ 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; /* max # of unsuccessful connection attempts */ +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" },