114#define CI_MPPE 18 /* config option for MPPE */
115#define CILEN_MPPE 6 /* length of config option */
116#endif /* MPPE_SUPPORT */
117
118#if PREDICTOR_SUPPORT
119/*
120 * Definitions for other, as yet unsupported, compression methods.
121 */
122
123#define CI_PREDICTOR_1 1 /* config option for Predictor-1 */
124#define CILEN_PREDICTOR_1 2 /* length of its config option */
125#define CI_PREDICTOR_2 2 /* config option for Predictor-2 */
126#define CILEN_PREDICTOR_2 2 /* length of its config option */
127#endif /* PREDICTOR_SUPPORT */
128
129typedefstruct ccp_options {
130#if DEFLATE_SUPPORT
131unsignedint deflate :1; /* do Deflate? */
132unsignedint deflate_correct :1; /* use correct code for deflate? */
133unsignedint deflate_draft :1; /* use draft RFC code for deflate? */
134#endif /* DEFLATE_SUPPORT */
135#if BSDCOMPRESS_SUPPORT
136unsignedint bsd_compress :1; /* do BSD Compress? */
137#endif /* BSDCOMPRESS_SUPPORT */
138#if PREDICTOR_SUPPORT
139unsignedint predictor_1 :1; /* do Predictor-1? */
140unsignedint predictor_2 :1; /* do Predictor-2? */
141#endif /* PREDICTOR_SUPPORT */
142
143#if MPPE_SUPPORT
144 u8_t mppe; /* MPPE bitfield */
145#endif /* MPPE_SUPPORT */
146#if BSDCOMPRESS_SUPPORT
147 u_short bsd_bits; /* # bits/code for BSD Compress */
148#endif /* BSDCOMPRESS_SUPPORT */
149#if DEFLATE_SUPPORT
150 u_short deflate_size; /* lg(window size) for Deflate */
151#endif /* DEFLATE_SUPPORT */
152 u8_t method; /* code for chosen compression method */
153 } ccp_options;
154
155externconststruct protent ccp_protent;
156
157void ccp_resetrequest(ppp_pcb *pcb); /* Issue a reset-request. */
158
159#ifdef __cplusplus
160 }
161#endif
162
163#endif /* CCP_H */
164#endif /* PPP_SUPPORT && CCP_SUPPORT */
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.