diff options
author | brian <brian@FreeBSD.org> | 2001-02-04 22:53:11 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-02-04 22:53:11 +0000 |
commit | a59964d665ad1cfe452c2c227de97a8af275fec8 (patch) | |
tree | d2333a42ca97b6c465b331cfb89fc7686024d300 /usr.sbin/ppp/deflate.c | |
parent | c0460ef928465b6cc12672bb05309f2a94ab6f87 (diff) | |
download | FreeBSD-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/deflate.c')
-rw-r--r-- | usr.sbin/ppp/deflate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/deflate.c b/usr.sbin/ppp/deflate.c index aacc438..8908f12 100644 --- a/usr.sbin/ppp/deflate.c +++ b/usr.sbin/ppp/deflate.c @@ -551,9 +551,10 @@ DeflateTermOutput(void *v) } const struct ccp_algorithm PppdDeflateAlgorithm = { - TY_PPPD_DEFLATE, /* pppd (wrongly) expects this ``type'' field */ + TY_PPPD_DEFLATE, /* Older versions of pppd expected this ``type'' */ CCP_NEG_DEFLATE24, DeflateDispOpts, + ccp_IsUsable, { DeflateSetOptsInput, DeflateInitInput, @@ -576,6 +577,7 @@ const struct ccp_algorithm DeflateAlgorithm = { TY_DEFLATE, /* rfc 1979 */ CCP_NEG_DEFLATE, DeflateDispOpts, + ccp_IsUsable, { DeflateSetOptsInput, DeflateInitInput, |