/reactos/drivers/network/tcpip/lwip/src/include/netif/ppp/ |
H A D | ppp_impl.h | 286 void (*init) (ppp_pcb *pcb); 290 void (*protrej) (ppp_pcb *pcb); 296 void (*open) (ppp_pcb *pcb); 404 void ppp_start(ppp_pcb *pcb); 410 void ppp_link_end(ppp_pcb *pcb); 445 int sifup(ppp_pcb *pcb); 446 int sifdown (ppp_pcb *pcb); 453 int sif6up(ppp_pcb *pcb); 454 int sif6down (ppp_pcb *pcb); 469 void ccp_reset_comp(ppp_pcb *pcb); [all …]
|
H A 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 …]
|
H A 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); 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); 642 err_t ppp_close(ppp_pcb *pcb, u8_t nocarrier); 654 err_t ppp_free(ppp_pcb *pcb); [all …]
|
H A 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);
|
H A D | pppos.h | 61 typedef u32_t (*pppos_output_cb_fn)(ppp_pcb *pcb, const void *data, u32_t len, void *ctx); 74 ppp_pcb *ppp; /* PPP PCB */ 100 ppp_pcb *pppos_create(struct netif *pppif, pppos_output_cb_fn output_cb, 105 err_t pppos_input_tcpip(ppp_pcb *ppp, const void *s, int l); 109 void pppos_input(ppp_pcb *ppp, const void* data, int len);
|
H A 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);
|
H A 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 */
|
H A D | upap.h | 119 void upap_authwithpeer(ppp_pcb *pcb, const char *user, const char *password); 121 void upap_authpeer(ppp_pcb *pcb);
|
/reactos/drivers/network/tcpip/lwip/src/netif/ppp/ |
H A D | ppp.c | 397 err_t ppp_free(ppp_pcb *pcb) { in ppp_free() 460 ppp_pcb *pcb = (ppp_pcb*)arg; in ppp_do_connect() 508 ppp_pcb *pcb = (ppp_pcb*)netif->state; in ppp_netif_output() 650 ppp_pcb *pcb; in ppp_new() 734 void ppp_start(ppp_pcb *pcb) { in ppp_start() 1173 int sifup(ppp_pcb *pcb) { in sifup() 1188 int sifdown(ppp_pcb *pcb) { in sifdown() 1280 int sif6up(ppp_pcb *pcb) { in sif6up() 1296 int sif6down(ppp_pcb *pcb) { in sif6down() 1377 ccp_reset_comp(ppp_pcb *pcb) in ccp_reset_comp() [all …]
|
H A 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); 87 static void upap_protrej(ppp_pcb *pcb); 128 static void upap_sauthreq(ppp_pcb *pcb); 137 static void upap_init(ppp_pcb *pcb) { in upap_init() 183 void upap_authpeer(ppp_pcb *pcb) { in upap_authpeer() 202 ppp_pcb *pcb = (ppp_pcb*)arg; in upap_timeout() 224 ppp_pcb *pcb = (ppp_pcb*)arg; in upap_reqtimeout() 240 static void upap_lowerup(ppp_pcb *pcb) { in upap_lowerup() [all …]
|
H A 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); 100 static void chap_respond(ppp_pcb *pcb, int id, 104 static void chap_protrej(ppp_pcb *pcb); 124 static void chap_init(ppp_pcb *pcb) { in chap_init() 138 static void chap_lowerup(ppp_pcb *pcb) { in chap_lowerup() 148 static void chap_lowerdown(ppp_pcb *pcb) { in chap_lowerdown() 224 ppp_pcb *pcb = (ppp_pcb*)arg; in chap_timeout() 435 static void chap_respond(ppp_pcb *pcb, int id, [all …]
|
H A D | pppos.c | 62 static void pppos_listen(ppp_pcb *ppp, void *ctx); 178 ppp_pcb *ppp; in pppos_create() 315 pppos_connect(ppp_pcb *ppp, void *ctx) in pppos_connect() 347 pppos_listen(ppp_pcb *ppp, void *ctx) in pppos_listen() 379 pppos_disconnect(ppp_pcb *ppp, void *ctx) in pppos_disconnect() 401 pppos_destroy(ppp_pcb *ppp, void *ctx) in pppos_destroy() 445 ppp_pcb *ppp = (ppp_pcb*)inp->state; in pppos_input_sys() 465 PACK_STRUCT_FIELD(ppp_pcb *ppp); 480 pppos_input(ppp_pcb *ppp, const void *s, int l) in pppos_input() 752 ppp_pcb *ppp; in pppos_input_callback() [all …]
|
H A D | pppapi.c | 73 pppapi_set_default(ppp_pcb *pcb) in pppapi_set_default() 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() 350 pppapi_close(ppp_pcb *pcb, u8_t nocarrier) in pppapi_close() [all …]
|
H A D | ipv6cp.c | 253 static void ipv6cp_init(ppp_pcb *pcb); 254 static void ipv6cp_open(ppp_pcb *pcb); 510 ppp_pcb *pcb = f->pcb; 530 ppp_pcb *pcb = f->pcb; 550 ppp_pcb *pcb = f->pcb; 598 ppp_pcb *pcb = f->pcb; 672 ppp_pcb *pcb = f->pcb; 807 ppp_pcb *pcb = f->pcb; 888 ppp_pcb *pcb = f->pcb; 1152 ppp_pcb *pcb = f->pcb; [all …]
|
H A 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() 431 static void chapms_handle_failure(ppp_pcb *pcb, unsigned char *inp, int len) { in chapms_handle_failure() 838 static void ChapMS(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len, in ChapMS() [all …]
|
H A D | ccp.c | 488 ppp_pcb *pcb = f->pcb; in ccp_extcode() 542 ppp_pcb *pcb = f->pcb; in ccp_resetci() 744 ppp_pcb *pcb = f->pcb; in ccp_cilen() 769 ppp_pcb *pcb = f->pcb; in ccp_addci() 836 ppp_pcb *pcb = f->pcb; in ccp_ackci() 929 ppp_pcb *pcb = f->pcb; in ccp_nakci() 1022 ppp_pcb *pcb = f->pcb; in ccp_rejci() 1106 ppp_pcb *pcb = f->pcb; in ccp_reqci() 1460 ppp_pcb *pcb = f->pcb; in ccp_up() 1490 ppp_pcb *pcb = f->pcb; in ccp_down() [all …]
|
H A D | auth.c | 239 static void network_phase(ppp_pcb *pcb); 548 void link_required(ppp_pcb *pcb) { in link_required() 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() 917 void start_networks(ppp_pcb *pcb) { in start_networks() 971 void continue_networks(ppp_pcb *pcb) { in continue_networks() 1200 void np_up(ppp_pcb *pcb, int proto) { in np_up() 1324 ppp_pcb *pcb = (ppp_pcb*)arg; in check_idle() [all …]
|
H A D | ipcp.c | 259 static void ipcp_init(ppp_pcb *pcb); 713 ppp_pcb *pcb = f->pcb; in ipcp_resetci() 747 ppp_pcb *pcb = f->pcb; in ipcp_cilen() 807 ppp_pcb *pcb = f->pcb; in ipcp_addci() 922 ppp_pcb *pcb = f->pcb; in ipcp_ackci() 1077 ppp_pcb *pcb = f->pcb; in ipcp_nakci() 1342 ppp_pcb *pcb = f->pcb; in ipcp_rejci() 1507 ppp_pcb *pcb = f->pcb; in ipcp_reqci() 1886 ppp_pcb *pcb = f->pcb; in ipcp_up() 2119 ppp_pcb *pcb = f->pcb; in ipcp_down() [all …]
|
H A D | eap.c | 98 static void eap_init(ppp_pcb *pcb); 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() 902 ppp_pcb *pcb = (ppp_pcb*)arg; in eap_server_timeout() 917 ppp_pcb *pcb = (ppp_pcb*)arg; in eap_rechallenge() 931 ppp_pcb *pcb = (ppp_pcb*)arg; in srp_lwrechallenge() 952 static void eap_lowerup(ppp_pcb *pcb) { in eap_lowerup() [all …]
|
H A D | lcp.c | 524 ppp_pcb *pcb = f->pcb; in lcp_extcode() 652 ppp_pcb *pcb = f->pcb; in lcp_resetci() 771 ppp_pcb *pcb = f->pcb; in lcp_cilen() 835 ppp_pcb *pcb = f->pcb; in lcp_addci() 948 ppp_pcb *pcb = f->pcb; in lcp_ackci() 1128 ppp_pcb *pcb = f->pcb; in lcp_nakci() 1594 ppp_pcb *pcb = f->pcb; in lcp_rejci() 1825 ppp_pcb *pcb = f->pcb; in lcp_reqci() 2295 ppp_pcb *pcb = f->pcb; in lcp_up() 2344 ppp_pcb *pcb = f->pcb; in lcp_down() [all …]
|
H A 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()
|
H A 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()
|
H A 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() 250 static err_t pppol2tp_destroy(ppp_pcb *ppp, void *ctx) { in pppol2tp_destroy() 261 static void pppol2tp_connect(ppp_pcb *ppp, void *ctx) { in pppol2tp_connect() [all …]
|
H A 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()
|
/reactos/drivers/network/tcpip/lwip/test/unit/ppp/ |
H A D | test_pppos.c | 9 static ppp_pcb *ppp; 11 static u32_t ppp_output_cb(ppp_pcb *pcb, const void *data, u32_t len, void *ctx) in ppp_output_cb() 21 static void ppp_link_status_cb(ppp_pcb *pcb, int err_code, void *ctx) in ppp_link_status_cb()
|