45#include "netif/ppp/ppp_opts.h"
61#define CI_MAGICNUMBER 5
62#define CI_PCOMPRESSION 7
63#define CI_ACCOMPRESSION 8
100#define MAX_ENDP_LEN 20
102 unsigned char class_;
103 unsigned char length;
104 unsigned char value[MAX_ENDP_LEN];
110typedef struct lcp_options {
111 unsigned int passive :1;
112 unsigned int silent :1;
114 unsigned int restart :1;
116 unsigned int neg_mru :1;
117 unsigned int neg_asyncmap :1;
119 unsigned int neg_upap :1;
122 unsigned int neg_chap :1;
125 unsigned int neg_eap :1;
127 unsigned int neg_magicnumber :1;
128 unsigned int neg_pcompression :1;
129 unsigned int neg_accompression :1;
131 unsigned int neg_lqr :1;
133 unsigned int neg_cbcp :1;
135 unsigned int neg_mrru :1;
137 unsigned int neg_ssnhf :1;
138 unsigned int neg_endpoint :1;
153 struct epdisc endpoint;
156void lcp_open(ppp_pcb *pcb);
157void lcp_close(ppp_pcb *pcb,
const char *reason);
158void lcp_lowerup(ppp_pcb *pcb);
159void lcp_lowerdown(ppp_pcb *pcb);
160void lcp_sprotrej(ppp_pcb *pcb, u_char *p,
int len);
162extern const struct protent lcp_protent;
167#define DEFLOOPBACKFAIL 10