diff options
author | Brian Somers <brian@FreeBSD.org> | 2001-08-15 13:53:38 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2001-08-15 13:53:38 +0000 |
commit | 971abb295e07b9947e1f4c1dba8a7c6ab5eab19d (patch) | |
tree | eaaf26c704b6c4694590d7b0932894ce1fe8067f /usr.sbin/ppp/command.c | |
parent | a886247185c6a2c697caeac815f4eba3190547fc (diff) | |
download | src-971abb295e07b9947e1f4c1dba8a7c6ab5eab19d.tar.gz src-971abb295e07b9947e1f4c1dba8a7c6ab5eab19d.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 41a4e502be9b..df6dae79a036 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -101,6 +101,7 @@ #include "datalink.h" #include "iface.h" #include "id.h" +#include "probe.h" /* ``set'' values */ #define VAR_AUTHKEY 0 @@ -2573,13 +2574,19 @@ OptSet(struct cmdargs const *arg) unsigned keep; /* Keep these bits */ unsigned add; /* Add these bits */ - if ((cmd = ident_cmd(arg->argv[arg->argn-2], &keep, &add)) == NULL) + if (ident_cmd(arg->argv[arg->argn - 2], &keep, &add) == NULL) return 1; + if (add == NEG_ENABLED && bit == OPT_IPV6CP && !probe.ipv6_available) { + log_Printf(LogWARN, "IPv6 is not available on this machine\n"); + return 1; + } + if (add) arg->bundle->cfg.opt |= bit; else arg->bundle->cfg.opt &= ~bit; + return 0; } |