summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-22 17:09:17 +0000
committerjkh <jkh@FreeBSD.org>1996-12-22 17:09:17 +0000
commit6ca14a89c608ae04e77c840dbd24a9587eb1e5c7 (patch)
tree9701c23213e90328798f20678270ed4b30b0c7bf /usr.sbin/ppp/command.c
parent3e3bc5da824a677449b5f5b0430bba51e41d4d40 (diff)
downloadFreeBSD-src-6ca14a89c608ae04e77c840dbd24a9587eb1e5c7.zip
FreeBSD-src-6ca14a89c608ae04e77c840dbd24a9587eb1e5c7.tar.gz
Make CRTSTS selection a runtime option. Closes PR#1392
Submitted by: Mike McGaughey <mmcg@heraclitus.cs.monash.edu.au>
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 870ef44..bf40cb3 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: command.c,v 1.24 1996/10/13 15:05:14 sos Exp $
+ * $Id: command.c,v 1.25 1996/12/03 21:38:39 nate Exp $
*
*/
#include <sys/types.h>
@@ -949,6 +949,23 @@ int param;
return(1);
}
+static int SetCtsRts(list, argc, argv)
+struct cmdtab *list;
+int argc;
+char **argv;
+{
+ if (argc > 0) {
+ if (strcmp(*argv, "on") == 0)
+ VarCtsRts = TRUE;
+ else if (strcmp(*argv, "off") == 0)
+ VarCtsRts = FALSE;
+ else
+ printf("usage: set ctsrts [on|off].\n");
+ }
+ return(1);
+}
+
+
static int SetOpenMode(list, argc, argv)
struct cmdtab *list;
int argc;
@@ -979,6 +996,8 @@ struct cmdtab const SetCommands[] = {
"Set authentication key", "key", (void *)VAR_AUTHKEY},
{ "authname", NULL, SetVariable, LOCAL_AUTH,
"Set authentication name", "name", (void *)VAR_AUTHNAME},
+ { "ctsrts", NULL, SetCtsRts, LOCAL_AUTH,
+ "Use CTS/RTS modem signalling", "[on|off]"},
{ "debug", NULL, SetDebugLevel, LOCAL_AUTH,
"Set debug level", StrValue},
{ "device", "line", SetVariable, LOCAL_AUTH,
OpenPOWER on IntegriCloud