summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd/ccp.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-22 06:57:20 +0000
committerpeter <peter@FreeBSD.org>1998-03-22 06:57:20 +0000
commit108c1ee1936470b173b9dd06d836ef7d304f27aa (patch)
tree3d7d39fbdc546ae43c9cd50547f79657797d59dd /usr.sbin/pppd/ccp.h
parent47129697379a8b3b8a693c593abc3422a63ed9bf (diff)
downloadFreeBSD-src-108c1ee1936470b173b9dd06d836ef7d304f27aa.zip
FreeBSD-src-108c1ee1936470b173b9dd06d836ef7d304f27aa.tar.gz
ppp-2.3.x ships with a bad compression number for deflate. It uses number
24 (which is magnalink!) rather than the correct (according to the rfc) 26. Initial attempt at a compatability kludge that will negotiate for either but will prefer to use the correct deflate compression type.
Diffstat (limited to 'usr.sbin/pppd/ccp.h')
-rw-r--r--usr.sbin/pppd/ccp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pppd/ccp.h b/usr.sbin/pppd/ccp.h
index 32f7b05..843bddd 100644
--- a/usr.sbin/pppd/ccp.h
+++ b/usr.sbin/pppd/ccp.h
@@ -24,16 +24,18 @@
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id$
+ * $Id: ccp.h,v 1.5 1997/08/19 17:52:33 peter Exp $
*/
typedef struct ccp_options {
u_int bsd_compress: 1; /* do BSD Compress? */
- u_int deflate: 1; /* do Deflate? */
+ u_int deflate: 1; /* do Deflate? (RFC code) */
+ u_int baddeflate: 1; /* do Deflate? (Magnalink!) */
u_int predictor_1: 1; /* do Predictor-1? */
u_int predictor_2: 1; /* do Predictor-2? */
u_short bsd_bits; /* # bits/code for BSD Compress */
u_short deflate_size; /* lg(window size) for Deflate */
+ u_short baddeflate_size; /* lg(window size) for Deflate */
short method; /* code for chosen compression method */
} ccp_options;
OpenPOWER on IntegriCloud