mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
PPP, CCP, replaced bool to unsigned int in struct ccp_options
This commit is contained in:
parent
98c6a4e86e
commit
10d09049bb
@ -34,13 +34,15 @@
|
|||||||
#if PPP_SUPPORT && CCP_SUPPORT /* don't build if not configured for use in lwipopts.h */
|
#if PPP_SUPPORT && CCP_SUPPORT /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
typedef struct ccp_options {
|
typedef struct ccp_options {
|
||||||
bool bsd_compress; /* do BSD Compress? */
|
unsigned int bsd_compress :1; /* do BSD Compress? */
|
||||||
bool deflate; /* do Deflate? */
|
unsigned int deflate :1; /* do Deflate? */
|
||||||
bool predictor_1; /* do Predictor-1? */
|
unsigned int predictor_1 :1; /* do Predictor-1? */
|
||||||
bool predictor_2; /* do Predictor-2? */
|
unsigned int predictor_2 :1; /* do Predictor-2? */
|
||||||
bool deflate_correct; /* use correct code for deflate? */
|
unsigned int deflate_correct :1; /* use correct code for deflate? */
|
||||||
bool deflate_draft; /* use draft RFC code for deflate? */
|
unsigned int deflate_draft :1; /* use draft RFC code for deflate? */
|
||||||
bool mppe; /* do MPPE? */
|
unsigned int mppe :1; /* do MPPE? */
|
||||||
|
unsigned int :1; /* 1 bit of padding to round out to 8 bits */
|
||||||
|
|
||||||
u_short bsd_bits; /* # bits/code for BSD Compress */
|
u_short bsd_bits; /* # bits/code for BSD Compress */
|
||||||
u_short deflate_size; /* lg(window size) for Deflate */
|
u_short deflate_size; /* lg(window size) for Deflate */
|
||||||
short method; /* code for chosen compression method */
|
short method; /* code for chosen compression method */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user