/third_party/lwip/src/include/netif/ppp/ |
D | ppp_impl.h | 145 void (*connect) (ppp_pcb *pcb, void *ctx); 148 void (*listen) (ppp_pcb *pcb, void *ctx); 151 void (*disconnect) (ppp_pcb *pcb, void *ctx); 153 err_t (*free) (ppp_pcb *pcb, void *ctx); 155 err_t (*write)(ppp_pcb *pcb, void *ctx, struct pbuf *p); 157 err_t (*netif_output)(ppp_pcb *pcb, void *ctx, struct pbuf *p, u_short protocol); 159 void (*send_config)(ppp_pcb *pcb, void *ctx, u32_t accm, int pcomp, int accomp); 161 void (*recv_config)(ppp_pcb *pcb, void *ctx, u32_t accm, int pcomp, int accomp); 284 void (*init) (ppp_pcb *pcb); 286 void (*input) (ppp_pcb *pcb, u_char *pkt, int len); [all …]
|
D | pppapi.h | 48 ppp_pcb *ppp; 106 err_t pppapi_set_default(ppp_pcb *pcb); 108 err_t pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb); 111 ppp_pcb *pppapi_pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, ppp_link_status_cb_… 114 ppp_pcb *pppapi_pppoe_create(struct netif *pppif, struct netif *ethif, const char *service_name, 119 ppp_pcb *pppapi_pppol2tp_create(struct netif *pppif, struct netif *netif, ip_addr_t *ipaddr, u16_t … 123 err_t pppapi_connect(ppp_pcb *pcb, u16_t holdoff); 125 err_t pppapi_listen(ppp_pcb *pcb); 127 err_t pppapi_close(ppp_pcb *pcb, u8_t nocarrier); 128 err_t pppapi_free(ppp_pcb *pcb); [all …]
|
D | ppp.h | 158 typedef struct ppp_pcb_s ppp_pcb; typedef 196 typedef void (*ppp_link_status_cb_fn)(ppp_pcb *pcb, int err_code, void *ctx); 320 void (*link_status_cb)(ppp_pcb *pcb, int err_code, void *ctx); /* Status change callback */ 322 void (*notify_phase_cb)(ppp_pcb *pcb, u8_t phase, void *ctx); /* Notify phase callback */ 466 void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd); 521 void ppp_set_mppe(ppp_pcb *pcb, u8_t flags); 602 typedef void (*ppp_notify_phase_cb_fn)(ppp_pcb *pcb, u8_t phase, void *ctx); 603 void ppp_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb); 617 err_t ppp_connect(ppp_pcb *pcb, u16_t holdoff); 628 err_t ppp_listen(ppp_pcb *pcb); [all …]
|
D | chap-new.h | 139 void (*generate_challenge)(ppp_pcb *pcb, unsigned char *challenge); 140 int (*verify_response)(ppp_pcb *pcb, int id, const char *name, 145 void (*make_response)(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name, 148 int (*check_success)(ppp_pcb *pcb, unsigned char *pkt, int len, unsigned char *priv); 149 void (*handle_failure)(ppp_pcb *pcb, unsigned char *pkt, int len); 186 extern void chap_auth_peer(ppp_pcb *pcb, const char *our_name, int digest_code); 190 extern void chap_auth_with_peer(ppp_pcb *pcb, const char *our_name, int digest_code);
|
D | pppos.h | 62 typedef u32_t (*pppos_output_cb_fn)(ppp_pcb *pcb, u8_t *data, u32_t len, void *ctx); 75 ppp_pcb *ppp; /* PPP PCB */ 101 ppp_pcb *pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, 106 err_t pppos_input_tcpip(ppp_pcb *ppp, u8_t *s, int l); 110 void pppos_input(ppp_pcb *ppp, u8_t* data, int len);
|
D | mppe.h | 169 void mppe_set_key(ppp_pcb *pcb, ppp_mppe_state *state, u8_t *key); 170 void mppe_init(ppp_pcb *pcb, ppp_mppe_state *state, u8_t options); 171 void mppe_comp_reset(ppp_pcb *pcb, ppp_mppe_state *state); 172 err_t mppe_compress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb, u16_t protocol); 173 void mppe_decomp_reset(ppp_pcb *pcb, ppp_mppe_state *state); 174 err_t mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb);
|
D | lcp.h | 160 void lcp_open(ppp_pcb *pcb); 161 void lcp_close(ppp_pcb *pcb, const char *reason); 162 void lcp_lowerup(ppp_pcb *pcb); 163 void lcp_lowerdown(ppp_pcb *pcb); 164 void lcp_sprotrej(ppp_pcb *pcb, u_char *p, int len); /* send protocol reject */
|
D | upap.h | 119 void upap_authwithpeer(ppp_pcb *pcb, const char *user, const char *password); 121 void upap_authpeer(ppp_pcb *pcb);
|
D | pppoe.h | 146 ppp_pcb *pcb; /* PPP PCB */ 169 ppp_pcb *pppoe_create(struct netif *pppif,
|
/third_party/lwip/src/netif/ppp/ |
D | ppp.c | 155 LWIP_MEMPOOL_DECLARE(PPP_PCB, MEMP_NUM_PPP_PCB, sizeof(ppp_pcb), "PPP_PCB") 218 void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) { in ppp_set_auth() 241 void ppp_set_mppe(ppp_pcb *pcb, u8_t flags) { in ppp_set_mppe() 257 void ppp_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb) { in ppp_set_notify_phase_callback() 274 err_t ppp_connect(ppp_pcb *pcb, u16_t holdoff) { in ppp_connect() 303 err_t ppp_listen(ppp_pcb *pcb) { in ppp_listen() 334 ppp_close(ppp_pcb *pcb, u8_t nocarrier) in ppp_close() 396 err_t ppp_free(ppp_pcb *pcb) { in ppp_free() 416 ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg) in ppp_ioctl() 459 ppp_pcb *pcb = (ppp_pcb*)arg; in ppp_do_connect() [all …]
|
D | upap.c | 83 static void upap_init(ppp_pcb *pcb); 84 static void upap_lowerup(ppp_pcb *pcb); 85 static void upap_lowerdown(ppp_pcb *pcb); 86 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l); 87 static void upap_protrej(ppp_pcb *pcb); 124 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len); 126 static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len); 127 static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len); 128 static void upap_sauthreq(ppp_pcb *pcb); 130 static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen); [all …]
|
D | chap-new.c | 87 static void chap_init(ppp_pcb *pcb); 88 static void chap_lowerup(ppp_pcb *pcb); 89 static void chap_lowerdown(ppp_pcb *pcb); 92 static void chap_generate_challenge(ppp_pcb *pcb); 93 static void chap_handle_response(ppp_pcb *pcb, int code, 95 static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, 100 static void chap_respond(ppp_pcb *pcb, int id, 102 static void chap_handle_status(ppp_pcb *pcb, int code, int id, 104 static void chap_protrej(ppp_pcb *pcb); 105 static void chap_input(ppp_pcb *pcb, unsigned char *pkt, int pktlen); [all …]
|
D | pppos.c | 58 static err_t pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p); 59 static err_t pppos_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *pb, u16_t protocol); 60 static void pppos_connect(ppp_pcb *ppp, void *ctx); 62 static void pppos_listen(ppp_pcb *ppp, void *ctx); 64 static void pppos_disconnect(ppp_pcb *ppp, void *ctx); 65 static err_t pppos_destroy(ppp_pcb *ppp, void *ctx); 66 static void pppos_send_config(ppp_pcb *ppp, void *ctx, u32_t accm, int pcomp, int accomp); 67 static void pppos_recv_config(ppp_pcb *ppp, void *ctx, u32_t accm, int pcomp, int accomp); 174 ppp_pcb *pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, in pppos_create() 178 ppp_pcb *ppp; in pppos_create() [all …]
|
D | pppapi.c | 73 pppapi_set_default(ppp_pcb *pcb) in pppapi_set_default() 106 pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb) in pppapi_set_notify_phase_callback() 141 ppp_pcb* 145 ppp_pcb* result; in pppapi_pppos_create() 183 ppp_pcb* 188 ppp_pcb* result; in pppapi_pppoe_create() 235 ppp_pcb* 240 ppp_pcb* result; in pppapi_pppol2tp_create() 285 pppapi_connect(ppp_pcb *pcb, u16_t holdoff) in pppapi_connect() 318 pppapi_listen(ppp_pcb *pcb) in pppapi_listen() [all …]
|
D | ipv6cp.c | 253 static void ipv6cp_init(ppp_pcb *pcb); 254 static void ipv6cp_open(ppp_pcb *pcb); 255 static void ipv6cp_close(ppp_pcb *pcb, const char *reason); 256 static void ipv6cp_lowerup(ppp_pcb *pcb); 257 static void ipv6cp_lowerdown(ppp_pcb *pcb); 258 static void ipv6cp_input(ppp_pcb *pcb, u_char *p, int len); 259 static void ipv6cp_protrej(ppp_pcb *pcb); 303 static void ipv6cp_clear_addrs(ppp_pcb *pcb, eui64_t ourid, eui64_t hisid); 428 static void ipv6cp_init(ppp_pcb *pcb) { 459 static void ipv6cp_open(ppp_pcb *pcb) { [all …]
|
D | chap_ms.c | 173 static void Set_Start_Key (ppp_pcb *pcb, const u_char *, const char *, int); 174 static void SetMasterKeys (ppp_pcb *pcb, const char *, int, u_char[24], int); 177 static void ChapMS (ppp_pcb *pcb, const u_char *, const char *, int, u_char *); 178 static void ChapMS2 (ppp_pcb *pcb, const u_char *, const u_char *, const char *, const char *, int, 225 static void chapms_generate_challenge(ppp_pcb *pcb, unsigned char *challenge) { in chapms_generate_challenge() 237 static void chapms2_generate_challenge(ppp_pcb *pcb, unsigned char *challenge) { in chapms2_generate_challenge() 249 static int chapms_verify_response(ppp_pcb *pcb, int id, const char *name, in chapms_verify_response() 297 static int chapms2_verify_response(ppp_pcb *pcb, int id, const char *name, in chapms2_verify_response() 374 static void chapms_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_nam… in chapms_make_response() 385 static void chapms2_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_na… in chapms2_make_response() [all …]
|
D | ccp.c | 168 static void ccp_init(ppp_pcb *pcb); 169 static void ccp_open(ppp_pcb *pcb); 170 static void ccp_close(ppp_pcb *pcb, const char *reason); 171 static void ccp_lowerup(ppp_pcb *pcb); 172 static void ccp_lowerdown(ppp_pcb *pcb); 173 static void ccp_input(ppp_pcb *pcb, u_char *pkt, int len); 174 static void ccp_protrej(ppp_pcb *pcb); 179 static void ccp_datainput(ppp_pcb *pcb, u_char *pkt, int len); 368 static void ccp_init(ppp_pcb *pcb) { in ccp_init() 409 static void ccp_open(ppp_pcb *pcb) { in ccp_open() [all …]
|
D | auth.c | 239 static void network_phase(ppp_pcb *pcb); 548 void link_required(ppp_pcb *pcb) { in link_required() 559 ppp_pcb *pcb = &ppp_pcb_list[unit]; 620 void link_terminated(ppp_pcb *pcb) { in link_terminated() 698 void link_down(ppp_pcb *pcb) { in link_down() 716 void upper_layers_down(ppp_pcb *pcb) { in upper_layers_down() 734 void link_established(ppp_pcb *pcb) { in link_established() 860 static void network_phase(ppp_pcb *pcb) { in network_phase() 862 ppp_pcb *pcb = &ppp_pcb_list[unit]; in network_phase() 917 void start_networks(ppp_pcb *pcb) { in start_networks() [all …]
|
D | ipcp.c | 259 static void ipcp_init(ppp_pcb *pcb); 260 static void ipcp_open(ppp_pcb *pcb); 261 static void ipcp_close(ppp_pcb *pcb, const char *reason); 262 static void ipcp_lowerup(ppp_pcb *pcb); 263 static void ipcp_lowerdown(ppp_pcb *pcb); 264 static void ipcp_input(ppp_pcb *pcb, u_char *p, int len); 265 static void ipcp_protrej(ppp_pcb *pcb); 310 static void ipcp_clear_addrs(ppp_pcb *pcb, u32_t ouraddr, u32_t hisaddr, u8_t replacedefaultroute); 592 static void ipcp_init(ppp_pcb *pcb) { in ipcp_init() 654 static void ipcp_open(ppp_pcb *pcb) { in ipcp_open() [all …]
|
D | mppe.c | 100 void mppe_set_key(ppp_pcb *pcb, ppp_mppe_state *state, u8_t *key) { in mppe_set_key() 109 mppe_init(ppp_pcb *pcb, ppp_mppe_state *state, u8_t options) in mppe_init() 181 void mppe_comp_reset(ppp_pcb *pcb, ppp_mppe_state *state) in mppe_comp_reset() 193 mppe_compress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb, u16_t protocol) in mppe_compress() 268 void mppe_decomp_reset(ppp_pcb *pcb, ppp_mppe_state *state) in mppe_decomp_reset() 279 mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb) in mppe_decompress()
|
D | eap.c | 98 static void eap_init(ppp_pcb *pcb); 99 static void eap_input(ppp_pcb *pcb, u_char *inp, int inlen); 100 static void eap_protrej(ppp_pcb *pcb); 101 static void eap_lowerup(ppp_pcb *pcb); 102 static void eap_lowerdown(ppp_pcb *pcb); 196 static void eap_init(ppp_pcb *pcb) { in eap_init() 209 ppp_pcb *pcb = (ppp_pcb*)arg; in eap_client_timeout() 225 void eap_authwithpeer(ppp_pcb *pcb, const char *localname) { in eap_authwithpeer() 250 static void eap_send_failure(ppp_pcb *pcb) { in eap_send_failure() 281 static void eap_send_success(ppp_pcb *pcb) { in eap_send_success() [all …]
|
D | chap-md5.c | 52 static void chap_md5_generate_challenge(ppp_pcb *pcb, unsigned char *cp) { in chap_md5_generate_challenge() 61 static int chap_md5_verify_response(ppp_pcb *pcb, int id, const char *name, in chap_md5_verify_response() 95 static void chap_md5_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_n… in chap_md5_make_response()
|
D | lcp.c | 236 static void lcp_echo_lowerup(ppp_pcb *pcb); 237 static void lcp_echo_lowerdown(ppp_pcb *pcb); 267 static void lcp_init(ppp_pcb *pcb); 268 static void lcp_input(ppp_pcb *pcb, u_char *p, int len); 269 static void lcp_protrej(ppp_pcb *pcb); 363 static void lcp_init(ppp_pcb *pcb) { in lcp_init() 406 void lcp_open(ppp_pcb *pcb) { in lcp_open() 422 void lcp_close(ppp_pcb *pcb, const char *reason) { in lcp_close() 457 void lcp_lowerup(ppp_pcb *pcb) { in lcp_lowerup() 482 void lcp_lowerdown(ppp_pcb *pcb) { in lcp_lowerdown() [all …]
|
D | pppol2tp.c | 73 static err_t pppol2tp_write(ppp_pcb *ppp, void *ctx, struct pbuf *p); 74 static err_t pppol2tp_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *p, u_short protocol); 75 static err_t pppol2tp_destroy(ppp_pcb *ppp, void *ctx); /* Destroy a L2TP control block */ 76 static void pppol2tp_connect(ppp_pcb *ppp, void *ctx); /* Be a LAC, connect to a LNS. */ 77 static void pppol2tp_disconnect(ppp_pcb *ppp, void *ctx); /* Disconnect */ 109 ppp_pcb *pppol2tp_create(struct netif *pppif, in pppol2tp_create() 113 ppp_pcb *ppp; in pppol2tp_create() 165 static err_t pppol2tp_write(ppp_pcb *ppp, void *ctx, struct pbuf *p) { in pppol2tp_write() 204 static err_t pppol2tp_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *p, u_short protocol) { in pppol2tp_netif_output() 247 static err_t pppol2tp_destroy(ppp_pcb *ppp, void *ctx) { in pppol2tp_destroy() [all …]
|
D | fsm.c | 79 ppp_pcb *pcb = f->pcb; in fsm_init() 201 ppp_pcb *pcb = f->pcb; in terminate_layer() 268 ppp_pcb *pcb = f->pcb; in fsm_timeout() 460 ppp_pcb *pcb = f->pcb; in fsm_rconfack() 581 ppp_pcb *pcb = f->pcb; in fsm_rtermreq() 707 ppp_pcb *pcb = f->pcb; in fsm_sconfreq() 771 ppp_pcb *pcb = f->pcb; in fsm_sdata()
|