summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-02-04 01:08:24 +0000
committerbrian <brian@FreeBSD.org>2001-02-04 01:08:24 +0000
commit9c086803157cb2e0b2761298de16bbe6a17a68a1 (patch)
treed16c59d965b7cc33fdfa2da47f70028fec6e1ada /usr.sbin/ppp/bundle.c
parent75b98b19e66ca2d1d64e6228ea1f70ddede7e6a8 (diff)
downloadFreeBSD-src-9c086803157cb2e0b2761298de16bbe6a17a68a1.zip
FreeBSD-src-9c086803157cb2e0b2761298de16bbe6a17a68a1.tar.gz
Make the MPPE MasterKey Invalid messages a bit clearer (it now
complains that you can't do MPPE without CHAP81). Reset MasterKeyValid to zero when we hit phase DEAD.
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 34f7a02..85e0877 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -97,6 +97,7 @@
#include "ip.h"
#include "iface.h"
#include "server.h"
+#include "mppe.h"
#define SCATTER_SEGMENTS 7 /* version, datalink, name, physical,
throughput, throughput, device */
@@ -128,8 +129,9 @@ bundle_NewPhase(struct bundle *bundle, u_int new)
switch (new) {
case PHASE_DEAD:
- log_DisplayPrompts();
bundle->phase = new;
+ MPPE_MasterKeyValid = 0;
+ log_DisplayPrompts();
break;
case PHASE_ESTABLISH:
OpenPOWER on IntegriCloud