| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define CI_VENDOR 0 |
| #define CI_MRU 1 |
| #define CI_ASYNCMAP 2 |
| #define CI_AUTHTYPE 3 |
| #define CI_QUALITY 4 |
| #define CI_MAGICNUMBER 5 |
| #define CI_PCOMPRESSION 7 |
| #define CI_ACCOMPRESSION 8 |
| #define CI_FCSALTERN 9 |
| #define CI_SDP 10 |
| #define CI_NUMBERED 11 |
| #define CI_CALLBACK 13 |
| #define CI_MRRU 17 |
| #define CI_SSNHF 18 |
| #define CI_EPDISC 19 |
| #define CI_MPPLUS 22 |
| #define CI_LDISC 23 |
| #define CI_LCPAUTH 24 |
| #define CI_COBS 25 |
| #define CI_PREFELIS 26 |
| #define CI_MPHDRFMT 27 |
| #define CI_I18N 28 |
| #define CI_SDL 29 |
| |
| |
| |
| |
| #define PROTREJ 8 |
| #define ECHOREQ 9 |
| #define ECHOREP 10 |
| #define DISCREQ 11 |
| #define IDENTIF 12 |
| #define TIMEREM 13 |
| |
| |
| #define CBCP_OPT 6 |
| |
| |
| |
| |
| typedef struct lcp_options { |
| bool passive; |
| bool silent; |
| bool restart; |
| bool neg_mru; |
| bool neg_asyncmap; |
| bool neg_upap; |
| bool neg_chap; |
| bool neg_eap; |
| bool neg_magicnumber; |
| bool neg_pcompression; |
| bool neg_accompression; |
| bool neg_lqr; |
| bool neg_cbcp; |
| bool neg_mrru; |
| bool neg_ssnhf; |
| bool neg_endpoint; |
| int mru; |
| int mrru; |
| u_char chap_mdtype; |
| u_int32_t asyncmap; |
| u_int32_t magicnumber; |
| int numloops; |
| u_int32_t lqr_period; |
| struct epdisc endpoint; |
| } lcp_options; |
| |
| extern fsm lcp_fsm[]; |
| extern lcp_options lcp_wantoptions[]; |
| extern lcp_options lcp_gotoptions[]; |
| extern lcp_options lcp_allowoptions[]; |
| extern lcp_options lcp_hisoptions[]; |
| |
| #define DEFMRU 1500 |
| #define MINMRU 128 |
| #define MAXMRU 16384 |
| |
| void lcp_open __P((int)); |
| void lcp_close __P((int, char *)); |
| void lcp_lowerup __P((int)); |
| void lcp_lowerdown __P((int)); |
| void lcp_sprotrej __P((int, u_char *, int)); |
| |
| extern struct protent lcp_protent; |
| |
| |
| |
| #define DEFLOOPBACKFAIL 10 |