summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-03-28 18:23:43 +0000
committerume <ume@FreeBSD.org>2003-03-28 18:23:43 +0000
commit0d084321c47fcd5a73af7c95ba2e5e4910bb2fe9 (patch)
treec8480e31682f8aa6c3cfc5d849a1ca30243b95bf /usr.sbin/ppp
parentc269e60fb6b1b4c0f220e08bac1ce5ea8d524a0d (diff)
downloadFreeBSD-src-0d084321c47fcd5a73af7c95ba2e5e4910bb2fe9.zip
FreeBSD-src-0d084321c47fcd5a73af7c95ba2e5e4910bb2fe9.tar.gz
If IPCP is disabled, susccess of IPV6CP negotiation is sufficient
to communicate by IPv6. So, the prompt should be `PPP' rather than `PPp'.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/prompt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ppp/prompt.c b/usr.sbin/ppp/prompt.c
index 0931706..839e655 100644
--- a/usr.sbin/ppp/prompt.c
+++ b/usr.sbin/ppp/prompt.c
@@ -103,6 +103,11 @@ prompt_Display(struct prompt *p)
if (p->bundle->ncp.ipcp.fsm.state == ST_OPENED)
pconnect = "PPP";
+#ifndef NOINET6
+ else if (!Enabled(p->bundle, OPT_IPCP) &&
+ p->bundle->ncp.ipv6cp.fsm.state == ST_OPENED)
+ pconnect = "PPP";
+#endif
else if (bundle_Phase(p->bundle) == PHASE_NETWORK)
pconnect = "PPp";
else if (bundle_Phase(p->bundle) == PHASE_AUTHENTICATE)
OpenPOWER on IntegriCloud