From 8862a1ac8fdae69535e9e5e19a042d55a53f2d49 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Wed, 25 Mar 2015 00:09:37 +0100 Subject: [PATCH] PPP, MPPE, ccp_options->mppe is a bitfield of MPPE_OPT_* and not a boolean, fixed This is actually wrong as well in PPPd, oops. --- src/include/netif/ppp/ccp.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/include/netif/ppp/ccp.h b/src/include/netif/ppp/ccp.h index d6e21bf8..02157994 100644 --- a/src/include/netif/ppp/ccp.h +++ b/src/include/netif/ppp/ccp.h @@ -37,15 +37,15 @@ #define CCP_H typedef struct ccp_options { - unsigned int bsd_compress :1; /* do BSD Compress? */ unsigned int deflate :1; /* do Deflate? */ - unsigned int predictor_1 :1; /* do Predictor-1? */ - unsigned int predictor_2 :1; /* do Predictor-2? */ unsigned int deflate_correct :1; /* use correct code for deflate? */ unsigned int deflate_draft :1; /* use draft RFC code for deflate? */ - unsigned int mppe :1; /* do MPPE? */ - unsigned int :1; /* 1 bit of padding to round out to 8 bits */ + unsigned int bsd_compress :1; /* do BSD Compress? */ + unsigned int predictor_1 :1; /* do Predictor-1? */ + unsigned int predictor_2 :1; /* do Predictor-2? */ + unsigned int :2; /* 2 bit of padding to round out to 8 bits */ + u8_t mppe; /* MPPE bitfield */ u_short bsd_bits; /* # bits/code for BSD Compress */ u_short deflate_size; /* lg(window size) for Deflate */ short method; /* code for chosen compression method */