| /NetX-Duo-v6.2.1/test/regression/ppp_test/ |
| D | netx_ppp_pap_null_name_password_test.c | 26 static NX_PPP ppp_0; variable 94 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 102 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 109 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 110 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 117 status = nx_ppp_pap_enable(&ppp_0, NX_NULL, verify_login); in test_application_define() 123 status = nx_ppp_nak_authentication_notify(&ppp_0, nak_authentication_notify); in test_application_define() 210 (ppp_0.nx_ppp_authenticated != 1) || (ppp_1.nx_ppp_authenticated != 1) || in thread_0_entry() 220 nx_ppp_delete(&ppp_0); in thread_0_entry() 261 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() [all …]
|
| D | netx_ppp_IPCP_abnormal_packet_test.c | 24 static NX_PPP ppp_0; variable 92 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 100 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 107 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 108 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 195 ppp_0.nx_ppp_ipcp_state = NX_PPP_IPCP_CONFIGURE_REQUEST_ACKED_STATE; in thread_0_entry() 198 _nx_ppp_receive_packet_process(&ppp_0, packet_ptr); in thread_0_entry() 200 if ((i == 0) && (ppp_0.nx_ppp_peer_naked_list[0] != 18)) in thread_0_entry() 207 nx_ppp_delete(&ppp_0); in thread_0_entry()
|
| D | netx_ppp_PAP_bad_password_test.c | 28 static NX_PPP ppp_0; variable 97 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 105 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 112 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 113 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 120 status = nx_ppp_pap_enable(&ppp_0, NX_NULL, verify_login); in test_application_define() 126 status = nx_ppp_nak_authentication_notify(&ppp_0, nak_authentication_notify); in test_application_define() 209 if ((status) || (ppp_0.nx_ppp_authenticated == 0) || (ppp_1.nx_ppp_authenticated == 0) || in thread_0_entry() 220 nx_ppp_delete(&ppp_0); in thread_0_entry() 267 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() [all …]
|
| D | netx_ppp_LCP_invalid_packet_test.c | 23 static NX_PPP ppp_0; variable 83 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 91 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 98 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 99 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 163 _nx_ppp_receive_packet_process(&ppp_0, invalid_packet); in thread_0_entry() 166 if (ppp_0.nx_ppp_lcp_frames_received != 0) in thread_0_entry() 179 nx_ppp_delete(&ppp_0); in thread_0_entry()
|
| D | netx_ppp_PAP_bad_username_test.c | 30 static NX_PPP ppp_0; variable 99 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 107 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 114 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 115 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 122 status = nx_ppp_pap_enable(&ppp_0, NX_NULL, verify_login); in test_application_define() 128 status = nx_ppp_nak_authentication_notify(&ppp_0, nak_authentication_notify); in test_application_define() 226 status = nx_ppp_delete(&ppp_0); in thread_0_entry() 271 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 290 if (ppp_ptr == &ppp_0) in link_up_callback() [all …]
|
| D | netx_ppp_IPCP_timeout.c | 40 static NX_PPP ppp_0; variable 106 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 114 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 130 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 131 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 211 tx_thread_suspend(&(ppp_0.nx_ppp_thread)); in thread_0_entry() 288 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 304 if (ppp_ptr == &ppp_0) in link_up_callback() 315 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_IPCP_nak_test.c | 27 static NX_PPP ppp_0; variable 96 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 104 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 111 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 112 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 119 status = nx_ppp_pap_enable(&ppp_0, NX_NULL, verify_login); in test_application_define() 342 if (ppp_0.nx_ppp_ipcp_state > NX_PPP_IPCP_INITIAL_STATE && in ppp_1_serial_byte_output() 343 ppp_0.nx_ppp_ipcp_state < NX_PPP_IPCP_CONFIGURE_REQUEST_ACKED_STATE) in ppp_1_serial_byte_output() 377 nx_ppp_byte_receive(&ppp_0, temp_data[i]); in ppp_1_serial_byte_output() 383 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() [all …]
|
| D | netx_ppp_LCP_timeout.c | 31 static NX_PPP ppp_0; variable 91 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 99 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 106 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 107 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 159 nx_ppp_delete(&ppp_0); in thread_0_entry()
|
| D | netx_ppp_IPCP_retransmit_test.c | 27 static NX_PPP ppp_0; variable 94 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 102 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 109 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 110 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 320 if (ppp_0.nx_ppp_ipcp_state < NX_PPP_IPCP_CONFIGURE_REQUEST_SENT_STATE) in ppp_0_serial_byte_output() 373 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 392 if (ppp_ptr == &ppp_0) in link_up_callback() 403 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_acfc_option_test.c | 24 static NX_PPP ppp_0; variable 106 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 116 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 125 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 126 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 359 if (ppp_0.nx_ppp_ipcp_state < NX_PPP_IPCP_COMPLETED_STATE) in ppp_0_serial_byte_output() 381 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 398 if (ppp_ptr == &ppp_0) in link_up_callback() 408 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_check_boundary_test.c | 29 static NX_PPP ppp_0; variable 100 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 108 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 124 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 125 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 288 nx_ppp_delete(&ppp_0); in thread_0_entry() 373 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 392 if (ppp_ptr == &ppp_0) in link_up_callback() 403 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_pfc_option_test.c | 24 static NX_PPP ppp_0; variable 106 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 116 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 125 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 126 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 359 if (ppp_0.nx_ppp_ipcp_state < NX_PPP_IPCP_COMPLETED_STATE) in ppp_0_serial_byte_output() 381 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 398 if (ppp_ptr == &ppp_0) in link_up_callback() 408 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_chap_bad_secret_failed_retry_test.c | 34 static NX_PPP ppp_0; variable 115 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 123 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 130 …status = nx_ppp_chap_enable(&ppp_0, get_challenge_values, get_responder_values, get_verification_v… in test_application_define() 132 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 134 status += nx_ppp_nak_authentication_notify(&ppp_0, nak_authentication_notify); in test_application_define() 212 …if ((status != NX_NOT_SUCCESSFUL) || (ppp_0.nx_ppp_authenticated == 1) || (ppp_1.nx_ppp_authentic… in thread_0_entry() 223 nx_ppp_delete(&ppp_0); in thread_0_entry() 354 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 373 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_chap_bad_secret_passed_on_retry_test.c | 33 static NX_PPP ppp_0; variable 120 …status = nx_ppp_create(&ppp_0, "PPP0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler, … in test_application_define() 128 …status = nx_ppp_chap_enable(&ppp_0, get_challenge_values, get_responder_values, get_verification_v… in test_application_define() 130 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 132 status += nx_ppp_nak_authentication_notify(&ppp_0, nak_authentication_notify); in test_application_define() 135 status += nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 214 if ((status) || (!ppp_0.nx_ppp_authenticated) || (!ppp_1.nx_ppp_authenticated) || in thread_0_entry() 230 nx_ppp_delete(&ppp_0); in thread_0_entry() 395 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 414 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_pap_basic_test.c | 24 static NX_PPP ppp_0; variable 93 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 103 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 112 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in test_application_define() 113 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in test_application_define() 122 status = nx_ppp_pap_enable(&ppp_0, NX_NULL, verify_login); in test_application_define() 408 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 425 if (ppp_ptr == &ppp_0) in link_up_callback() 435 if (ppp_ptr == &ppp_0) in link_down_callback()
|
| D | netx_ppp_request_dns_server_test.c | 24 static NX_PPP ppp_0; variable 86 …status = nx_ppp_create(&ppp_0, "PPP 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_packet_handler,… in test_application_define() 96 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in test_application_define() 150 status = nx_ppp_dns_address_set(&ppp_0, IP_ADDRESS(1,2,3,89)); in test_application_define() 153 status += nx_ppp_secondary_dns_address_set(&ppp_0, IP_ADDRESS(1,2,3,88)); in test_application_define() 261 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output()
|
| /NetX-Duo-v6.2.1/samples/ |
| D | demo_netx_ppp.c | 28 NX_PPP ppp_0; variable 105 …status = nx_ppp_create(&ppp_0, "NetX PPP Instance 0", &ip_0, pointer, 2048, 1, &pool_0, invalid_p… in tx_application_define() 113 status = nx_ppp_ip_address_assign(&ppp_0, IP_ADDRESS(1, 2, 3, 4), IP_ADDRESS(1, 2, 3, 5)); in tx_application_define() 120 status = nx_ppp_link_up_notify(&ppp_0, link_up_callback); in tx_application_define() 121 status += nx_ppp_link_down_notify(&ppp_0, link_down_callback); in tx_application_define() 128 status = nx_ppp_pap_enable(&ppp_0, NX_NULL, verify_login); in tx_application_define() 335 nx_ppp_byte_receive(&ppp_0, byte); in ppp_1_serial_byte_output() 354 if (ppp_ptr == &ppp_0) in link_up_callback() 365 if (ppp_ptr == &ppp_0) in link_down_callback()
|