mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-15 22:49:16 +00:00
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.
This commit is contained in:
parent
ad56a115be
commit
8862a1ac8f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user