Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 32) sorted by relevance

12

/NetX-Duo-v6.2.1/common/inc/
Dnx_icmpv4.h211 #define NX_ICMPV4_SEND_DEST_UNREACHABLE(ip_ptr, packet, code) \ argument
212 …ror_message((ip_ptr), (packet), (ULONG)((NX_ICMP_DEST_UNREACHABLE_TYPE << 24) | ((code) << 16)), 0)
214 #define NX_ICMPV4_SEND_TIME_EXCEED(ip_ptr, packet, code) \ argument
215 …_error_message((ip_ptr), (packet), (ULONG)((NX_ICMP_TIME_EXCEEDED_TYPE << 24) | ((code) << 16)), 0)
217 #define NX_ICMPV4_SEND_PARAMETER_PROBLEM(ip_ptr, packet, code, offset) \ argument
218 …essage((ip_ptr), (packet), (ULONG)((NX_ICMP_PARAMETER_PROB_TYPE << 24) | ((code) << 16)), (offset))
Dnx_icmpv6.h324 #define NX_ICMPV6_SEND_DEST_UNREACHABLE(ip_ptr, packet, code) \ argument
325 …r_message((ip_ptr), (packet), (ULONG)((NX_ICMPV6_DEST_UNREACHABLE_TYPE << 24) | ((code) << 16)), 0)
328 #define NX_ICMPV6_SEND_PACKET_TOO_BIG(ip_ptr, packet, code) \
329 …send_error_message((ip_ptr), (packet), ((NX_ICMPV6_PACKET_TOO_BIG_TYPE << 24) | ((code) << 16)), 0)
332 #define NX_ICMPV6_SEND_TIME_EXCEED(ip_ptr, packet, code) \ argument
333 …_error_message((ip_ptr), (packet), (ULONG)((NX_ICMPV6_TIME_EXCEED_TYPE << 24) | ((code) << 16)), 0)
335 #define NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet, code, offset) \ argument
336 …e((ip_ptr), (packet), (ULONG)((NX_ICMPV6_PARAMETER_PROBLEM_TYPE << 24) | ((code) << 16)), (offset))
/NetX-Duo-v6.2.1/test/regression/websocket_test/
Dnetx_websocket_one_packet_with_multi_frames_test.c253 UINT code; in thread_client_entry() local
321 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, 5*NX_IP_PERIODIC_RATE); in thread_client_entry()
325 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) || (code != NX_WEBSOCKET_O… in thread_client_entry()
341 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
345 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) || (code != NX_WEBSOCKET_O… in thread_client_entry()
361 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
365 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_TRUE) || (code != NX_WEBSOCKET_OP… in thread_client_entry()
397 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 5*NX_IP_PERIODIC_RATE… in thread_client_entry()
400 if (code != NX_WEBSOCKET_OPCODE_BINARY_FRAME) in thread_client_entry()
418 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, NX_NO_WAIT); in thread_client_entry()
[all …]
Dnetx_websocket_16_bit_payload_length_test.c282 UINT code; in thread_client_entry() local
348 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, 5 * NX_IP_PERIODIC_RAT… in thread_client_entry()
351 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_TRUE) || (code != NX_WEBSOCKET_OP… in thread_client_entry()
385 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 5 * NX_IP_PERIODIC_RA… in thread_client_entry()
388 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) && (code != NX_WEBSOCKET_O… in thread_client_entry()
406 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 5 * NX_IP_PERIODIC_RA… in thread_client_entry()
409 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) && (code != NX_WEBSOCKET_O… in thread_client_entry()
427 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 5 * NX_IP_PERIODIC_RA… in thread_client_entry()
430 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) && (code != NX_WEBSOCKET_O… in thread_client_entry()
448 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 5 * NX_IP_PERIODIC_RA… in thread_client_entry()
[all …]
Dnetx_websocket_mask_test.c195 UINT code; in thread_client_entry() local
261 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, 500); in thread_client_entry()
265 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_TRUE) || (code != NX_WEBSOCKET_OP… in thread_client_entry()
285 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 500); in thread_client_entry()
289 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) || (code != NX_WEBSOCKET_O… in thread_client_entry()
295 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 500); in thread_client_entry()
305 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 500); in thread_client_entry()
Dnetx_websocket_opcode_test.c193 UINT code; in thread_client_entry() local
259 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, 500); in thread_client_entry()
263 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_TRUE) || (code != NX_WEBSOCKET_OP… in thread_client_entry()
283 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 500); in thread_client_entry()
287 …if ((client_websocket.nx_websocket_client_frame_fragmented == NX_FALSE) || (code != NX_WEBSOCKET_O… in thread_client_entry()
293 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 500); in thread_client_entry()
304 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, 500); in thread_client_entry()
Dnetx_websocket_fin_test.c193 UINT code; in thread_client_entry() local
259 … status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_IP_PERIODIC_RATE); in thread_client_entry()
283 … status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, NX_IP_PERIODIC_RATE); in thread_client_entry()
293 … status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, NX_IP_PERIODIC_RATE); in thread_client_entry()
303 … status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, NX_IP_PERIODIC_RATE); in thread_client_entry()
Dnetx_websocket_one_frame_in_packets_test.c193 UINT code; in thread_client_entry() local
259 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
285 status = nx_websocket_client_receive(&client_websocket, &packet_ptr1, &code, NX_NO_WAIT); in thread_client_entry()
288 if (code != NX_WEBSOCKET_OPCODE_BINARY_FRAME) in thread_client_entry()
Dnetx_websocket_non_block_test.c280 UINT code; in thread_client_entry() local
336 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
387 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
422 … status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
423 if ((status == NX_SUCCESS) && (code == NX_WEBSOCKET_OPCODE_BINARY_FRAME)) in thread_client_entry()
Dnetx_websocket_disconnect_test.c184 UINT code; in thread_client_entry() local
253 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
269 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
Dnetx_websocket_multi_instance_test.c253 UINT code; in thread_client_entry() local
315 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, 5 * NX_IP_PERIODIC_RAT… in thread_client_entry()
446 UINT code; in thread_client1_entry() local
508 …status = nx_websocket_client_receive(&client1_websocket, &packet_ptr, &code, 5 * NX_IP_PERIODIC_RA… in thread_client1_entry()
Dnetx_websocket_delete_test.c179 UINT code; in thread_client_entry() local
250 status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, NX_NO_WAIT); in thread_client_entry()
Dnetx_websocket_send_chain_packets_test.c225 UINT code; in thread_client_entry() local
307 …status = nx_websocket_client_receive(&client_websocket, &packet_ptr, &code, 5 * NX_IP_PERIODIC_RAT… in thread_client_entry()
/NetX-Duo-v6.2.1/addons/ppp/
Dnx_ppp.c1503 UINT code; in _nx_ppp_receive_packet_process() local
1597 code = packet_ptr -> nx_packet_prepend_ptr[2]; in _nx_ppp_receive_packet_process()
1647 if ((code != NX_PPP_LCP_ECHO_REQUEST) && (code != NX_PPP_LCP_ECHO_REPLY)) in _nx_ppp_receive_packet_process()
1668 if (code == NX_PPP_LCP_ECHO_REQUEST) in _nx_ppp_receive_packet_process()
2362 UCHAR code; in _nx_ppp_lcp_state_machine_update() local
2379 code = packet_ptr -> nx_packet_prepend_ptr[2]; in _nx_ppp_lcp_state_machine_update()
2384 switch (code) in _nx_ppp_lcp_state_machine_update()
2464 if ((code < NX_PPP_LCP_CONFIGURE_REQUEST) || in _nx_ppp_lcp_state_machine_update()
2465 (code > NX_PPP_LCP_DISCARD_REQUEST)) in _nx_ppp_lcp_state_machine_update()
2482 code = NX_PPP_LCP_TIMEOUT; in _nx_ppp_lcp_state_machine_update()
[all …]
/NetX-Duo-v6.2.1/addons/pppoe/
Dnx_pppoe_server.c57 …send(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PPPOE_CLIENT_SESSION *client_session_ptr, UINT code);
59 …RVER *pppoe_server_ptr, NX_PPPOE_CLIENT_SESSION *client_session_ptr, UINT code, UCHAR *tag_ptr, UL…
2399 ULONG code; in _nx_pppoe_server_discovery_packet_process() local
2424 code = _nx_pppoe_server_data_get(pppoe_header_ptr + NX_PPPOE_SERVER_OFFSET_CODE, 1); in _nx_pppoe_server_discovery_packet_process()
2427 if ((code != NX_PPPOE_SERVER_CODE_PADI) && in _nx_pppoe_server_discovery_packet_process()
2428 (code != NX_PPPOE_SERVER_CODE_PADR) && in _nx_pppoe_server_discovery_packet_process()
2429 (code != NX_PPPOE_SERVER_CODE_PADT)) in _nx_pppoe_server_discovery_packet_process()
2439 if (((code == NX_PPPOE_SERVER_CODE_PADI) && (is_broadcast != NX_TRUE)) || in _nx_pppoe_server_discovery_packet_process()
2440 ((code != NX_PPPOE_SERVER_CODE_PADI) && (is_broadcast == NX_TRUE))) in _nx_pppoe_server_discovery_packet_process()
2454 if (((code != NX_PPPOE_SERVER_CODE_PADT) && (session_id != 0)) || in _nx_pppoe_server_discovery_packet_process()
[all …]
Dnx_pppoe_client.c60 static UINT _nx_pppoe_client_discovery_send(NX_PPPOE_CLIENT *pppoe_client_ptr, UINT code);
2232 ULONG code; in _nx_pppoe_client_discovery_packet_process() local
2262 code = _nx_pppoe_client_data_get(pppoe_header_ptr + NX_PPPOE_CLIENT_OFFSET_CODE, 1); in _nx_pppoe_client_discovery_packet_process()
2265 …if (((pppoe_client_ptr -> nx_pppoe_state == NX_PPPOE_CLIENT_STATE_PADI_SENT) && (code == NX_PPPOE_… in _nx_pppoe_client_discovery_packet_process()
2266 …((pppoe_client_ptr -> nx_pppoe_state == NX_PPPOE_CLIENT_STATE_PADR_SENT) && (code == NX_PPPOE_CLIE… in _nx_pppoe_client_discovery_packet_process()
2267 …((pppoe_client_ptr -> nx_pppoe_state == NX_PPPOE_CLIENT_STATE_ESTABLISHED) && (code == NX_PPPOE_CL… in _nx_pppoe_client_discovery_packet_process()
2290 if (((code == NX_PPPOE_CLIENT_CODE_PADO) && (session_id != 0)) || in _nx_pppoe_client_discovery_packet_process()
2291 ((code != NX_PPPOE_CLIENT_CODE_PADO) && (session_id == 0)) || in _nx_pppoe_client_discovery_packet_process()
2292 …((code == NX_PPPOE_CLIENT_CODE_PADT) && (session_id != pppoe_client_ptr -> nx_pppoe_server_session… in _nx_pppoe_client_discovery_packet_process()
2301 if (code != NX_PPPOE_CLIENT_CODE_PADO) in _nx_pppoe_client_discovery_packet_process()
[all …]
/NetX-Duo-v6.2.1/addons/websocket/
Dnx_websocket_client.h275 UINT nx_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code, U…
276 …ent_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option);
310 UINT _nxe_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code,…
311 UINT _nx_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code, …
312 …ent_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option);
313 …ent_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option);
331 …websocket_client_data_process(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code);
Dnx_websocket_client.c1369 UINT _nxe_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code,… in _nxe_websocket_client_send() argument
1383 status = _nx_websocket_client_send(client_ptr, packet_ptr, code, is_final, wait_option); in _nxe_websocket_client_send()
1430 UINT _nx_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code, … in _nx_websocket_client_send() argument
1490 *data_ptr = (UCHAR)(NX_WEBSOCKET_FIN | code); in _nx_websocket_client_send()
1494 *data_ptr = (UCHAR)code; in _nx_websocket_client_send()
1599 …ient_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option) in _nxe_websocket_client_receive() argument
1607 (packet_ptr == NX_NULL) || (code == NX_NULL)) in _nxe_websocket_client_receive()
1613 status = _nx_websocket_client_receive(client_ptr, packet_ptr, code, wait_option); in _nxe_websocket_client_receive()
1662 …ient_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option) in _nx_websocket_client_receive() argument
1726 status = _nx_websocket_client_data_process(client_ptr, packet_ptr, code); in _nx_websocket_client_receive()
[all …]
/NetX-Duo-v6.2.1/test/regression/sntp_test/
Dnetx_sntp_client_kod_test.c56 static UINT kiss_of_death_test(NX_SNTP_CLIENT* client_ptr, UINT code);
148 static UINT kiss_of_death_test(NX_SNTP_CLIENT* client_ptr, UINT code) in kiss_of_death_test() argument
150 if (code != NX_SNTP_KOD_DENY) in kiss_of_death_test()
/NetX-Duo-v6.2.1/addons/tftp/
Dnxd_tftp_client.c1421 UINT code; in _nx_tftp_client_file_open_internal() local
1428 code = *(buffer_ptr); in _nx_tftp_client_file_open_internal()
1431 if (code == NX_TFTP_CODE_ERROR) in _nx_tftp_client_file_open_internal()
1619 UCHAR code; in _nxd_tftp_client_file_read() local
1730 code = *buffer_ptr; in _nxd_tftp_client_file_read()
1733 if (code == NX_TFTP_CODE_DATA) in _nxd_tftp_client_file_read()
1888 else if (code == NX_TFTP_CODE_ERROR) in _nxd_tftp_client_file_read()
1921 else if (code == NX_TFTP_CODE_ACK) in _nxd_tftp_client_file_read()
2205 UINT code; in _nxd_tftp_client_file_write() local
2212 code = *(buffer_ptr); in _nxd_tftp_client_file_write()
[all …]
/NetX-Duo-v6.2.1/
DREADME.md37 The master branch has the most recent code with all new features and bug fixes. It does not represe…
120 …dons you need in `nx_user.h` and build together with the component source code. You can refer to […
124 …nd host systems. Integrating any of these components into your device app code is as simple as add…
126 …e pattern is to include NetX Duo into your device code source tree to be built & linked with your
152 Eclipse ThreadX provides OEMs with components to secure communication and to create code and data i…
D.gitattributes4 # Custom attribute to mark sources as using our C code style.
DCONTRIBUTING.md28 Information regarding source code management, builds, coding standards, and more.
31 The project maintains the following source code repositories
/NetX-Duo-v6.2.1/addons/sntp/
Dnxd_sntp_client.h596 … (*kiss_of_death_handler)(struct NX_SNTP_CLIENT_STRUCT *client_ptr, UINT code);
672 UINT (*kiss_of_death_handler)(NX_SNTP_CLIENT *client_ptr, UINT code),
700 UINT (*kiss_of_death_handler)(NX_SNTP_CLIENT *client_ptr, UINT code),
704 UINT (*kiss_of_death_handler)(NX_SNTP_CLIENT *client_ptr, UINT code),
/NetX-Duo-v6.2.1/docs/
Drevision_history.txt8 08-15-2019 NetX Duo generic code version 5.12. This release includes the
145 07/15/2018 NetX Duo generic code version 5.11. This release includes the
264 Files are modified to remove unreachable code:
626 05/10/2016 NetX Duo generic code version 5.10. This release includes the
705 Files are modified to remove unreachable code and deprecated functions:
786 nx_icmpv6_destination_table_periodic_update.c Optimized the code.
807 nx_ipv4_option_process.c Optimized the code.
846 02/22/2016 NetX Duo generic code version 5.9. This release includes the
1290 Files are modified to optimize the code for deleting transmission control block
1319 Files are modified to optimize the code.
[all …]

12