summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2002-08-29 02:44:58 +0000
committerBrian Somers <brian@FreeBSD.org>2002-08-29 02:44:58 +0000
commita3c48b40e951ee6765c5064c6c44e512cae9ea44 (patch)
tree3d3c39c0a4951159b05970965109d47aca8f77d7 /usr.sbin/ppp/command.c
parent16d7d180975eac5548297ce21d6f1c2d02b76e11 (diff)
Notes
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index ffa806b01f7b..8352c694b731 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -141,6 +141,7 @@
#define VAR_LOGOUT 34
#define VAR_IFQUEUE 35
#define VAR_MPPE 36
+#define VAR_IPV6CPRETRY 37
/* ``accept|deny|disable|enable'' masks */
#define NEG_HISMASK (1)
@@ -2046,6 +2047,13 @@ SetVariable(struct cmdargs const *arg)
&arg->bundle->ncp.ipcp.cfg.fsm.maxtrm, DEF_FSMTRIES);
break;
+ case VAR_IPV6CPRETRY:
+ res = SetRetry(arg->argc - arg->argn, arg->argv + arg->argn,
+ &arg->bundle->ncp.ipv6cp.cfg.fsm.timeout,
+ &arg->bundle->ncp.ipv6cp.cfg.fsm.maxreq,
+ &arg->bundle->ncp.ipv6cp.cfg.fsm.maxtrm, DEF_FSMTRIES);
+ break;
+
case VAR_NBNS:
case VAR_DNS:
if (param == VAR_DNS) {
@@ -2304,6 +2312,8 @@ static struct cmdtab const SetCommands[] = {
"set ifqueue packets", (const void *)VAR_IFQUEUE},
{"ipcpretry", "ipcpretries", SetVariable, LOCAL_AUTH, "IPCP retries",
"set ipcpretry value [attempts]", (const void *)VAR_IPCPRETRY},
+ {"ipv6cpretry", "ipv6cpretries", SetVariable, LOCAL_AUTH, "IPV6CP retries",
+ "set ipv6cpretry value [attempts]", (const void *)VAR_IPV6CPRETRY},
{"lcpretry", "lcpretries", SetVariable, LOCAL_AUTH | LOCAL_CX, "LCP retries",
"set lcpretry value [attempts]", (const void *)VAR_LCPRETRY},
{"log", NULL, log_SetLevel, LOCAL_AUTH, "log level",