summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/pred.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-02-04 22:53:11 +0000
committerbrian <brian@FreeBSD.org>2001-02-04 22:53:11 +0000
commita59964d665ad1cfe452c2c227de97a8af275fec8 (patch)
treed2333a42ca97b6c465b331cfb89fc7686024d300 /usr.sbin/ppp/pred.c
parentc0460ef928465b6cc12672bb05309f2a94ab6f87 (diff)
downloadFreeBSD-src-a59964d665ad1cfe452c2c227de97a8af275fec8.zip
FreeBSD-src-a59964d665ad1cfe452c2c227de97a8af275fec8.tar.gz
Add a ``Usable'' function to the ccp switch. The function
is called prior to sending a CCP configure request for a given protocol. The default is to send the request, but this is overridden for MPPE which checks to see if the lcp negotiations agreed CHAP81, and if not fails. Use the same function to decide if we should reject peer requests for MPPE. This should get rid of those boring messages about not being able to initialise MPPE when we don't negotiate CHAP81.
Diffstat (limited to 'usr.sbin/ppp/pred.c')
-rw-r--r--usr.sbin/ppp/pred.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/pred.c b/usr.sbin/ppp/pred.c
index d21a28f..6fd300c 100644
--- a/usr.sbin/ppp/pred.c
+++ b/usr.sbin/ppp/pred.c
@@ -323,6 +323,7 @@ const struct ccp_algorithm Pred1Algorithm = {
TY_PRED1,
CCP_NEG_PRED1,
Pred1DispOpts,
+ ccp_IsUsable,
{
Pred1SetOptsInput,
Pred1InitInput,
OpenPOWER on IntegriCloud