From ff90b3ffcb84b2c6099ec31ef032b541e1ef5f0a Mon Sep 17 00:00:00 2001 From: Frédéric Desbiens Date: Sat, 7 Mar 2026 00:14:18 +0100 Subject: Updated copyright headers and version strings. Removed version history --- addons/BSD/nxd_bsd.c | 742 +--------- addons/BSD/nxd_bsd.h | 29 +- addons/auto_ip/nx_auto_ip.c | 133 +- addons/auto_ip/nx_auto_ip.h | 23 +- addons/azure_iot/nx_azure_iot.c | 6 +- addons/azure_iot/nx_azure_iot.h | 10 +- addons/azure_iot/nx_azure_iot_adu_agent.c | 14 +- addons/azure_iot/nx_azure_iot_adu_agent.h | 10 +- addons/azure_iot/nx_azure_iot_adu_root_key.c | 12 +- addons/azure_iot/nx_azure_iot_hub_client.c | 6 +- addons/azure_iot/nx_azure_iot_hub_client.h | 6 +- .../azure_iot/nx_azure_iot_hub_client_properties.c | 6 +- .../azure_iot/nx_azure_iot_hub_client_properties.h | 16 +- addons/azure_iot/nx_azure_iot_json_reader.c | 6 +- addons/azure_iot/nx_azure_iot_json_reader.h | 6 +- addons/azure_iot/nx_azure_iot_json_writer.c | 6 +- addons/azure_iot/nx_azure_iot_json_writer.h | 8 +- .../azure_iot/nx_azure_iot_provisioning_client.c | 6 +- .../azure_iot/nx_azure_iot_provisioning_client.h | 6 +- addons/azure_iot/samples/cert/nx_azure_iot_cert.c | 8 +- addons/azure_iot/samples/cert/nx_azure_iot_cert.h | 6 +- .../samples/cert/nx_azure_iot_ciphersuites.c | 6 +- .../samples/cert/nx_azure_iot_ciphersuites.h | 6 +- .../samples/sample_azure_iot_embedded_sdk.c | 6 +- ...nx_azure_iot_adu_agent_proxy_simulator_driver.c | 6 +- .../nx_azure_iot_adu_agent_simulator_driver.c | 6 +- .../sample_azure_iot_embedded_sdk_adu.c | 6 +- .../sample_azure_iot_embedded_sdk_connect.c | 6 +- .../samples/sample_azure_iot_embedded_sdk_pnp.c | 6 +- addons/azure_iot/samples/sample_config.h | 6 +- addons/azure_iot/samples/sample_device_identity.c | 6 +- addons/cloud/nx_cloud.c | 93 +- addons/cloud/nx_cloud.h | 12 +- addons/dhcp/nxd_dhcp_client.c | 943 +------------ addons/dhcp/nxd_dhcp_client.h | 63 +- addons/dhcp/nxd_dhcp_server.c | 455 +------ addons/dhcp/nxd_dhcp_server.h | 49 +- addons/dhcp/nxd_dhcpv6_client.c | 1036 +------------- addons/dhcp/nxd_dhcpv6_client.h | 43 +- addons/dhcp/nxd_dhcpv6_server.c | 560 +------- addons/dhcp/nxd_dhcpv6_server.h | 56 +- addons/dns/nxd_dns.c | 959 +------------ addons/dns/nxd_dns.h | 158 +-- addons/ftp/nxd_ftp_client.c | 430 +----- addons/ftp/nxd_ftp_client.h | 23 +- addons/ftp/nxd_ftp_server.c | 363 +---- addons/ftp/nxd_ftp_server.h | 27 +- addons/http/nxd_http_client.c | 264 +--- addons/http/nxd_http_client.h | 18 +- addons/http/nxd_http_server.c | 693 +--------- addons/http/nxd_http_server.h | 28 +- addons/mdns/nxd_mdns.c | 961 +------------ addons/mdns/nxd_mdns.h | 113 +- addons/mqtt/nxd_mqtt_client.c | 621 +-------- addons/mqtt/nxd_mqtt_client.h | 32 +- addons/nat/nx_nat.c | 323 +---- addons/nat/nx_nat.h | 22 +- addons/pop3/nxd_pop3_client.c | 236 +--- addons/pop3/nxd_pop3_client.h | 14 +- addons/ppp/nx_ppp.c | 802 +---------- addons/ppp/nx_ppp.h | 45 +- addons/pppoe/nx_pppoe_client.c | 326 +---- addons/pppoe/nx_pppoe_client.h | 24 +- addons/pppoe/nx_pppoe_server.c | 408 +----- addons/pppoe/nx_pppoe_server.h | 24 +- addons/ptp/nxd_ptp_client.c | 435 +----- addons/ptp/nxd_ptp_client.h | 18 +- addons/rtp/nx_rtp_sender.c | 270 +--- addons/rtp/nx_rtp_sender.h | 15 +- addons/rtsp/nx_rtsp_server.c | 300 +--- addons/rtsp/nx_rtsp_server.h | 12 +- addons/smtp/nxd_smtp_client.c | 406 +----- addons/smtp/nxd_smtp_client.h | 27 +- addons/snmp/nx_des.c | 40 +- addons/snmp/nx_des.h | 14 +- addons/snmp/nx_sha1.c | 47 +- addons/snmp/nx_sha1.h | 14 +- addons/snmp/nxd_snmp.c | 1435 +------------------- addons/snmp/nxd_snmp.h | 34 +- addons/sntp/nxd_sntp_client.c | 575 +------- addons/sntp/nxd_sntp_client.h | 48 +- addons/telnet/nxd_telnet_client.c | 121 +- addons/telnet/nxd_telnet_client.h | 21 +- addons/telnet/nxd_telnet_server.c | 240 +--- addons/telnet/nxd_telnet_server.h | 29 +- addons/tftp/nxd_tftp_client.c | 182 +-- addons/tftp/nxd_tftp_client.h | 21 +- addons/tftp/nxd_tftp_server.c | 220 +-- addons/tftp/nxd_tftp_server.h | 29 +- addons/web/nx_tcpserver.c | 159 +-- addons/web/nx_tcpserver.h | 21 +- addons/web/nx_web_http_client.c | 699 +--------- addons/web/nx_web_http_client.h | 18 +- addons/web/nx_web_http_common.h | 22 +- addons/web/nx_web_http_server.c | 818 +---------- addons/web/nx_web_http_server.h | 33 +- addons/websocket/nx_sha1.c | 47 +- addons/websocket/nx_sha1.h | 14 +- addons/websocket/nx_websocket_client.c | 174 +-- addons/websocket/nx_websocket_client.h | 12 +- common/inc/nx_arp.h | 17 +- common/inc/nx_http_proxy_client.h | 12 +- common/inc/nx_icmp.h | 17 +- common/inc/nx_icmpv4.h | 17 +- common/inc/nx_icmpv6.h | 17 +- common/inc/nx_igmp.h | 17 +- common/inc/nx_ip.h | 17 +- common/inc/nx_ipv4.h | 20 +- common/inc/nx_ipv6.h | 17 +- common/inc/nx_link.h | 12 +- common/inc/nx_md5.h | 17 +- common/inc/nx_mld.h | 14 +- common/inc/nx_nd_cache.h | 14 +- common/inc/nx_packet.h | 20 +- common/inc/nx_rarp.h | 17 +- common/inc/nx_system.h | 14 +- common/inc/nx_tcp.h | 23 +- common/inc/nx_udp.h | 23 +- common/inc/nx_user_sample.h | 22 +- common/src/nx_arp_announce_send.c | 14 +- common/src/nx_arp_dynamic_entries_invalidate.c | 14 +- common/src/nx_arp_dynamic_entry_delete.c | 14 +- common/src/nx_arp_dynamic_entry_set.c | 17 +- common/src/nx_arp_enable.c | 14 +- common/src/nx_arp_entry_allocate.c | 14 +- common/src/nx_arp_entry_delete.c | 14 +- common/src/nx_arp_gratuitous_send.c | 14 +- common/src/nx_arp_hardware_address_find.c | 14 +- common/src/nx_arp_info_get.c | 14 +- common/src/nx_arp_initialize.c | 14 +- common/src/nx_arp_interface_entries_delete.c | 14 +- common/src/nx_arp_ip_address_find.c | 14 +- common/src/nx_arp_packet_deferred_receive.c | 14 +- common/src/nx_arp_packet_receive.c | 17 +- common/src/nx_arp_packet_send.c | 14 +- common/src/nx_arp_periodic_update.c | 14 +- common/src/nx_arp_probe_send.c | 14 +- common/src/nx_arp_queue_process.c | 14 +- common/src/nx_arp_queue_send.c | 14 +- common/src/nx_arp_static_entries_delete.c | 14 +- common/src/nx_arp_static_entry_create.c | 14 +- common/src/nx_arp_static_entry_delete.c | 14 +- common/src/nx_arp_static_entry_delete_internal.c | 14 +- common/src/nx_http_proxy_client.c | 42 +- common/src/nx_icmp_cleanup.c | 14 +- common/src/nx_icmp_enable.c | 14 +- common/src/nx_icmp_info_get.c | 14 +- common/src/nx_icmp_interface_ping.c | 14 +- common/src/nx_icmp_interface_ping6.c | 14 +- common/src/nx_icmp_packet_process.c | 14 +- common/src/nx_icmp_packet_receive.c | 14 +- common/src/nx_icmp_ping.c | 14 +- common/src/nx_icmp_ping6.c | 14 +- common/src/nx_icmp_queue_process.c | 14 +- common/src/nx_icmpv4_packet_process.c | 14 +- common/src/nx_icmpv4_process_echo_reply.c | 14 +- common/src/nx_icmpv4_process_echo_request.c | 14 +- common/src/nx_icmpv4_send_error_message.c | 14 +- common/src/nx_icmpv6_DAD_clear_NDCache_entry.c | 14 +- common/src/nx_icmpv6_DAD_failure.c | 14 +- common/src/nx_icmpv6_dest_table_add.c | 14 +- common/src/nx_icmpv6_dest_table_find.c | 14 +- .../nx_icmpv6_destination_table_periodic_update.c | 14 +- common/src/nx_icmpv6_packet_process.c | 17 +- common/src/nx_icmpv6_perform_DAD.c | 18 +- common/src/nx_icmpv6_process_echo_reply.c | 14 +- common/src/nx_icmpv6_process_echo_request.c | 14 +- common/src/nx_icmpv6_process_na.c | 17 +- common/src/nx_icmpv6_process_ns.c | 17 +- common/src/nx_icmpv6_process_packet_too_big.c | 17 +- common/src/nx_icmpv6_process_ra.c | 22 +- common/src/nx_icmpv6_process_redirect.c | 17 +- common/src/nx_icmpv6_send_error_message.c | 18 +- common/src/nx_icmpv6_send_ns.c | 14 +- common/src/nx_icmpv6_send_queued_packets.c | 17 +- common/src/nx_icmpv6_send_rs.c | 14 +- common/src/nx_icmpv6_validate_neighbor_message.c | 14 +- common/src/nx_icmpv6_validate_options.c | 16 +- common/src/nx_icmpv6_validate_ra.c | 14 +- common/src/nx_igmp_enable.c | 14 +- common/src/nx_igmp_info_get.c | 14 +- common/src/nx_igmp_interface_report_send.c | 14 +- common/src/nx_igmp_loopback_disable.c | 14 +- common/src/nx_igmp_loopback_enable.c | 14 +- common/src/nx_igmp_multicast_check.c | 14 +- common/src/nx_igmp_multicast_interface_join.c | 14 +- .../nx_igmp_multicast_interface_join_internal.c | 14 +- common/src/nx_igmp_multicast_interface_leave.c | 14 +- .../nx_igmp_multicast_interface_leave_internal.c | 14 +- common/src/nx_igmp_multicast_join.c | 14 +- common/src/nx_igmp_multicast_leave.c | 14 +- common/src/nx_igmp_packet_process.c | 17 +- common/src/nx_igmp_packet_receive.c | 14 +- common/src/nx_igmp_periodic_processing.c | 14 +- common/src/nx_igmp_queue_process.c | 14 +- common/src/nx_invalidate_destination_entry.c | 14 +- common/src/nx_ip_address_change_notify.c | 14 +- common/src/nx_ip_address_get.c | 14 +- common/src/nx_ip_address_set.c | 17 +- common/src/nx_ip_auxiliary_packet_pool_set.c | 14 +- common/src/nx_ip_checksum_compute.c | 14 +- common/src/nx_ip_create.c | 17 +- common/src/nx_ip_deferred_link_status_process.c | 18 +- common/src/nx_ip_delete.c | 14 +- common/src/nx_ip_delete_queue_clear.c | 14 +- common/src/nx_ip_dispatch_process.c | 19 +- common/src/nx_ip_driver_deferred_enable.c | 14 +- common/src/nx_ip_driver_deferred_processing.c | 14 +- common/src/nx_ip_driver_deferred_receive.c | 14 +- common/src/nx_ip_driver_direct_command.c | 14 +- common/src/nx_ip_driver_interface_direct_command.c | 14 +- common/src/nx_ip_driver_link_status_event.c | 14 +- common/src/nx_ip_driver_packet_send.c | 14 +- common/src/nx_ip_fast_periodic_timer_entry.c | 22 +- common/src/nx_ip_forward_packet_process.c | 14 +- common/src/nx_ip_forwarding_disable.c | 14 +- common/src/nx_ip_forwarding_enable.c | 14 +- common/src/nx_ip_fragment_assembly.c | 15 +- common/src/nx_ip_fragment_disable.c | 14 +- common/src/nx_ip_fragment_enable.c | 14 +- common/src/nx_ip_fragment_forward_packet.c | 14 +- common/src/nx_ip_fragment_packet.c | 14 +- common/src/nx_ip_fragment_timeout_check.c | 22 +- common/src/nx_ip_gateway_address_clear.c | 14 +- common/src/nx_ip_gateway_address_get.c | 14 +- common/src/nx_ip_gateway_address_set.c | 14 +- common/src/nx_ip_header_add.c | 20 +- common/src/nx_ip_info_get.c | 14 +- common/src/nx_ip_initialize.c | 14 +- common/src/nx_ip_interface_address_get.c | 14 +- .../nx_ip_interface_address_mapping_configure.c | 14 +- common/src/nx_ip_interface_address_set.c | 18 +- common/src/nx_ip_interface_attach.c | 17 +- common/src/nx_ip_interface_capability_get.c | 14 +- common/src/nx_ip_interface_capability_set.c | 14 +- common/src/nx_ip_interface_detach.c | 14 +- common/src/nx_ip_interface_info_get.c | 14 +- common/src/nx_ip_interface_mtu_set.c | 14 +- common/src/nx_ip_interface_physical_address_get.c | 14 +- common/src/nx_ip_interface_physical_address_set.c | 14 +- common/src/nx_ip_interface_status_check.c | 17 +- common/src/nx_ip_link_status_change_notify_set.c | 14 +- common/src/nx_ip_max_payload_size_find.c | 14 +- common/src/nx_ip_packet_checksum_compute.c | 17 +- common/src/nx_ip_packet_deferred_receive.c | 14 +- common/src/nx_ip_packet_receive.c | 19 +- common/src/nx_ip_packet_send.c | 18 +- common/src/nx_ip_periodic_timer_entry.c | 14 +- common/src/nx_ip_raw_packet_cleanup.c | 14 +- common/src/nx_ip_raw_packet_disable.c | 14 +- common/src/nx_ip_raw_packet_enable.c | 14 +- common/src/nx_ip_raw_packet_filter_set.c | 14 +- common/src/nx_ip_raw_packet_processing.c | 14 +- common/src/nx_ip_raw_packet_receive.c | 14 +- common/src/nx_ip_raw_packet_send.c | 14 +- common/src/nx_ip_raw_packet_source_send.c | 14 +- common/src/nx_ip_raw_receive_queue_max_set.c | 14 +- common/src/nx_ip_route_find.c | 16 +- common/src/nx_ip_static_route_add.c | 14 +- common/src/nx_ip_static_route_delete.c | 14 +- common/src/nx_ip_status_check.c | 14 +- common/src/nx_ip_thread_entry.c | 17 +- common/src/nx_ipv4_multicast_interface_join.c | 14 +- common/src/nx_ipv4_multicast_interface_leave.c | 14 +- common/src/nx_ipv4_option_process.c | 16 +- common/src/nx_ipv4_packet_receive.c | 20 +- common/src/nx_ipv6_fragment_process.c | 17 +- common/src/nx_ipv6_header_add.c | 17 +- common/src/nx_ipv6_multicast_join.c | 14 +- common/src/nx_ipv6_multicast_leave.c | 14 +- common/src/nx_ipv6_option_error.c | 14 +- common/src/nx_ipv6_packet_copy.c | 14 +- common/src/nx_ipv6_packet_receive.c | 14 +- common/src/nx_ipv6_packet_send.c | 17 +- common/src/nx_ipv6_prefix_list_add_entry.c | 14 +- common/src/nx_ipv6_prefix_list_delete.c | 14 +- common/src/nx_ipv6_prefix_list_delete_entry.c | 14 +- common/src/nx_ipv6_process_fragment_option.c | 15 +- common/src/nx_ipv6_process_hop_by_hop_option.c | 17 +- common/src/nx_ipv6_process_routing_option.c | 15 +- common/src/nx_ipv6_util.c | 102 +- common/src/nx_link.c | 102 +- common/src/nx_md5.c | 45 +- common/src/nx_nd_cache_add.c | 14 +- common/src/nx_nd_cache_add_entry.c | 14 +- common/src/nx_nd_cache_delete_internal.c | 14 +- common/src/nx_nd_cache_fast_periodic_update.c | 14 +- common/src/nx_nd_cache_find_entry.c | 14 +- common/src/nx_nd_cache_find_entry_by_mac_addr.c | 14 +- common/src/nx_nd_cache_interface_entries_delete.c | 14 +- common/src/nx_nd_cache_slow_periodic_update.c | 14 +- common/src/nx_packet_allocate.c | 18 +- common/src/nx_packet_copy.c | 14 +- common/src/nx_packet_data_adjust.c | 16 +- common/src/nx_packet_data_append.c | 15 +- common/src/nx_packet_data_extract_offset.c | 15 +- common/src/nx_packet_data_retrieve.c | 15 +- common/src/nx_packet_debug_info_get.c | 14 +- common/src/nx_packet_length_get.c | 14 +- common/src/nx_packet_pool_cleanup.c | 14 +- common/src/nx_packet_pool_create.c | 14 +- common/src/nx_packet_pool_delete.c | 14 +- common/src/nx_packet_pool_info_get.c | 14 +- common/src/nx_packet_pool_initialize.c | 14 +- common/src/nx_packet_pool_low_watermark_set.c | 14 +- common/src/nx_packet_release.c | 14 +- common/src/nx_packet_transmit_release.c | 14 +- common/src/nx_packet_vlan_priority_set.c | 12 +- common/src/nx_ram_network_driver.c | 46 +- common/src/nx_rarp_disable.c | 14 +- common/src/nx_rarp_enable.c | 14 +- common/src/nx_rarp_info_get.c | 14 +- common/src/nx_rarp_packet_deferred_receive.c | 14 +- common/src/nx_rarp_packet_receive.c | 18 +- common/src/nx_rarp_packet_send.c | 14 +- common/src/nx_rarp_periodic_update.c | 14 +- common/src/nx_rarp_queue_process.c | 14 +- common/src/nx_system_initialize.c | 14 +- common/src/nx_tcp_cleanup_deferred.c | 14 +- common/src/nx_tcp_client_bind_cleanup.c | 14 +- common/src/nx_tcp_client_socket_bind.c | 17 +- common/src/nx_tcp_client_socket_connect.c | 14 +- common/src/nx_tcp_client_socket_port_get.c | 14 +- common/src/nx_tcp_client_socket_unbind.c | 14 +- common/src/nx_tcp_connect_cleanup.c | 14 +- common/src/nx_tcp_deferred_cleanup_check.c | 14 +- common/src/nx_tcp_disconnect_cleanup.c | 14 +- common/src/nx_tcp_enable.c | 14 +- common/src/nx_tcp_fast_periodic_processing.c | 14 +- common/src/nx_tcp_free_port_find.c | 17 +- common/src/nx_tcp_info_get.c | 14 +- common/src/nx_tcp_initialize.c | 14 +- common/src/nx_tcp_mss_option_get.c | 14 +- common/src/nx_tcp_no_connection_reset.c | 14 +- common/src/nx_tcp_packet_process.c | 17 +- common/src/nx_tcp_packet_receive.c | 14 +- common/src/nx_tcp_packet_send_ack.c | 14 +- common/src/nx_tcp_packet_send_control.c | 17 +- common/src/nx_tcp_packet_send_fin.c | 14 +- common/src/nx_tcp_packet_send_probe.c | 14 +- common/src/nx_tcp_packet_send_rst.c | 14 +- common/src/nx_tcp_packet_send_syn.c | 14 +- common/src/nx_tcp_periodic_processing.c | 14 +- common/src/nx_tcp_queue_process.c | 14 +- common/src/nx_tcp_receive_cleanup.c | 14 +- common/src/nx_tcp_server_socket_accept.c | 14 +- common/src/nx_tcp_server_socket_driver_listen.c | 12 +- common/src/nx_tcp_server_socket_listen.c | 17 +- common/src/nx_tcp_server_socket_relisten.c | 17 +- common/src/nx_tcp_server_socket_unaccept.c | 14 +- common/src/nx_tcp_server_socket_unlisten.c | 23 +- common/src/nx_tcp_socket_block_cleanup.c | 17 +- common/src/nx_tcp_socket_bytes_available.c | 14 +- common/src/nx_tcp_socket_connection_reset.c | 18 +- common/src/nx_tcp_socket_create.c | 17 +- common/src/nx_tcp_socket_delete.c | 14 +- common/src/nx_tcp_socket_disconnect.c | 17 +- .../src/nx_tcp_socket_disconnect_complete_notify.c | 14 +- common/src/nx_tcp_socket_driver_establish.c | 12 +- common/src/nx_tcp_socket_driver_packet_receive.c | 12 +- common/src/nx_tcp_socket_establish_notify.c | 14 +- common/src/nx_tcp_socket_info_get.c | 14 +- common/src/nx_tcp_socket_mss_get.c | 14 +- common/src/nx_tcp_socket_mss_peer_get.c | 14 +- common/src/nx_tcp_socket_mss_set.c | 14 +- common/src/nx_tcp_socket_packet_process.c | 24 +- common/src/nx_tcp_socket_peer_info_get.c | 14 +- common/src/nx_tcp_socket_queue_depth_notify_set.c | 14 +- common/src/nx_tcp_socket_receive.c | 14 +- common/src/nx_tcp_socket_receive_notify.c | 14 +- common/src/nx_tcp_socket_receive_queue_flush.c | 14 +- common/src/nx_tcp_socket_receive_queue_max_set.c | 14 +- common/src/nx_tcp_socket_retransmit.c | 17 +- common/src/nx_tcp_socket_send.c | 14 +- common/src/nx_tcp_socket_send_internal.c | 34 +- common/src/nx_tcp_socket_state_ack_check.c | 28 +- common/src/nx_tcp_socket_state_closing.c | 14 +- common/src/nx_tcp_socket_state_data_check.c | 47 +- common/src/nx_tcp_socket_state_established.c | 17 +- common/src/nx_tcp_socket_state_fin_wait1.c | 14 +- common/src/nx_tcp_socket_state_fin_wait2.c | 14 +- common/src/nx_tcp_socket_state_last_ack.c | 14 +- common/src/nx_tcp_socket_state_syn_received.c | 14 +- common/src/nx_tcp_socket_state_syn_sent.c | 17 +- common/src/nx_tcp_socket_state_transmit_check.c | 14 +- common/src/nx_tcp_socket_state_wait.c | 17 +- common/src/nx_tcp_socket_thread_resume.c | 14 +- common/src/nx_tcp_socket_thread_suspend.c | 14 +- common/src/nx_tcp_socket_timed_wait_callback.c | 14 +- common/src/nx_tcp_socket_transmit_configure.c | 17 +- common/src/nx_tcp_socket_transmit_queue_flush.c | 14 +- common/src/nx_tcp_socket_vlan_priority_set.c | 12 +- .../src/nx_tcp_socket_window_update_notify_set.c | 14 +- common/src/nx_tcp_transmit_cleanup.c | 14 +- common/src/nx_tcp_window_scaling_option_get.c | 14 +- common/src/nx_trace_event_insert.c | 14 +- common/src/nx_trace_event_update.c | 14 +- common/src/nx_trace_object_register.c | 14 +- common/src/nx_trace_object_unregister.c | 14 +- common/src/nx_udp_bind_cleanup.c | 14 +- common/src/nx_udp_enable.c | 14 +- common/src/nx_udp_free_port_find.c | 17 +- common/src/nx_udp_info_get.c | 14 +- common/src/nx_udp_packet_info_extract.c | 14 +- common/src/nx_udp_packet_receive.c | 14 +- common/src/nx_udp_receive_cleanup.c | 14 +- common/src/nx_udp_socket_bind.c | 26 +- common/src/nx_udp_socket_bytes_available.c | 14 +- common/src/nx_udp_socket_checksum_disable.c | 14 +- common/src/nx_udp_socket_checksum_enable.c | 14 +- common/src/nx_udp_socket_create.c | 17 +- common/src/nx_udp_socket_delete.c | 14 +- common/src/nx_udp_socket_driver_packet_receive.c | 12 +- common/src/nx_udp_socket_info_get.c | 14 +- common/src/nx_udp_socket_port_get.c | 14 +- common/src/nx_udp_socket_receive.c | 14 +- common/src/nx_udp_socket_receive_notify.c | 14 +- common/src/nx_udp_socket_send.c | 14 +- common/src/nx_udp_socket_source_send.c | 14 +- common/src/nx_udp_socket_unbind.c | 23 +- common/src/nx_udp_socket_vlan_priority_set.c | 12 +- common/src/nx_udp_source_extract.c | 14 +- common/src/nx_utility.c | 53 +- common/src/nxd_icmp_enable.c | 14 +- common/src/nxd_icmp_ping.c | 14 +- common/src/nxd_icmp_source_ping.c | 14 +- common/src/nxd_icmpv6_ra_flag_callback_set.c | 14 +- common/src/nxd_ip_raw_packet_send.c | 14 +- common/src/nxd_ip_raw_packet_source_send.c | 14 +- common/src/nxd_ipv6_address_change_notify.c | 14 +- common/src/nxd_ipv6_address_delete.c | 14 +- common/src/nxd_ipv6_address_get.c | 14 +- common/src/nxd_ipv6_address_set.c | 18 +- common/src/nxd_ipv6_default_router_add.c | 14 +- common/src/nxd_ipv6_default_router_add_internal.c | 14 +- common/src/nxd_ipv6_default_router_delete.c | 14 +- common/src/nxd_ipv6_default_router_entry_get.c | 14 +- common/src/nxd_ipv6_default_router_get.c | 14 +- ...nxd_ipv6_default_router_number_of_entries_get.c | 14 +- common/src/nxd_ipv6_default_router_table_init.c | 14 +- .../src/nxd_ipv6_destination_table_find_next_hop.c | 14 +- common/src/nxd_ipv6_disable.c | 14 +- common/src/nxd_ipv6_enable.c | 14 +- .../nxd_ipv6_find_default_router_from_address.c | 14 +- common/src/nxd_ipv6_find_max_prefix_length.c | 14 +- common/src/nxd_ipv6_interface_find.c | 14 +- common/src/nxd_ipv6_multicast_interface_join.c | 14 +- common/src/nxd_ipv6_multicast_interface_leave.c | 14 +- common/src/nxd_ipv6_prefix_router_timer_tick.c | 14 +- common/src/nxd_ipv6_raw_packet_send_internal.c | 14 +- common/src/nxd_ipv6_router_lookup.c | 14 +- common/src/nxd_ipv6_router_solicitation_check.c | 14 +- common/src/nxd_ipv6_search_onlink.c | 14 +- ...nxd_ipv6_stateless_address_autoconfig_disable.c | 17 +- .../nxd_ipv6_stateless_address_autoconfig_enable.c | 17 +- common/src/nxd_nd_cache_entry_delete.c | 14 +- common/src/nxd_nd_cache_entry_set.c | 14 +- common/src/nxd_nd_cache_hardware_address_find.c | 14 +- common/src/nxd_nd_cache_invalidate.c | 14 +- common/src/nxd_nd_cache_ip_address_find.c | 14 +- common/src/nxd_tcp_client_socket_connect.c | 26 +- common/src/nxd_tcp_socket_peer_info_get.c | 14 +- common/src/nxd_udp_packet_info_extract.c | 14 +- common/src/nxd_udp_socket_send.c | 29 +- common/src/nxd_udp_socket_source_send.c | 14 +- common/src/nxd_udp_source_extract.c | 14 +- common/src/nxde_icmp_enable.c | 14 +- common/src/nxde_icmp_ping.c | 14 +- common/src/nxde_icmp_source_ping.c | 14 +- common/src/nxde_icmpv6_ra_flag_callback_set.c | 14 +- common/src/nxde_ip_raw_packet_send.c | 14 +- common/src/nxde_ip_raw_packet_source_send.c | 14 +- common/src/nxde_ipv6_address_change_notify.c | 14 +- common/src/nxde_ipv6_address_delete.c | 14 +- common/src/nxde_ipv6_address_get.c | 14 +- common/src/nxde_ipv6_address_set.c | 14 +- common/src/nxde_ipv6_default_router_add.c | 14 +- common/src/nxde_ipv6_default_router_delete.c | 14 +- common/src/nxde_ipv6_default_router_entry_get.c | 14 +- common/src/nxde_ipv6_default_router_get.c | 14 +- ...xde_ipv6_default_router_number_of_entries_get.c | 14 +- common/src/nxde_ipv6_disable.c | 14 +- common/src/nxde_ipv6_enable.c | 14 +- common/src/nxde_ipv6_multicast_interface_join.c | 14 +- common/src/nxde_ipv6_multicast_interface_leave.c | 14 +- ...xde_ipv6_stateless_address_autoconfig_disable.c | 14 +- ...nxde_ipv6_stateless_address_autoconfig_enable.c | 14 +- common/src/nxde_nd_cache_entry_delete.c | 14 +- common/src/nxde_nd_cache_entry_set.c | 14 +- common/src/nxde_nd_cache_hardware_address_find.c | 14 +- common/src/nxde_nd_cache_invalidate.c | 14 +- common/src/nxde_nd_cache_ip_address_find.c | 14 +- common/src/nxde_tcp_client_socket_connect.c | 14 +- common/src/nxde_tcp_socket_peer_info_get.c | 14 +- common/src/nxde_udp_packet_info_extract.c | 14 +- common/src/nxde_udp_socket_send.c | 14 +- common/src/nxde_udp_socket_source_send.c | 14 +- common/src/nxde_udp_source_extract.c | 14 +- common/src/nxe_arp_dynamic_entries_invalidate.c | 14 +- common/src/nxe_arp_dynamic_entry_set.c | 14 +- common/src/nxe_arp_enable.c | 14 +- common/src/nxe_arp_entry_delete.c | 14 +- common/src/nxe_arp_gratuitous_send.c | 14 +- common/src/nxe_arp_hardware_address_find.c | 14 +- common/src/nxe_arp_info_get.c | 14 +- common/src/nxe_arp_ip_address_find.c | 14 +- common/src/nxe_arp_static_entries_delete.c | 14 +- common/src/nxe_arp_static_entry_create.c | 14 +- common/src/nxe_arp_static_entry_delete.c | 14 +- common/src/nxe_icmp_enable.c | 14 +- common/src/nxe_icmp_info_get.c | 14 +- common/src/nxe_icmp_ping.c | 14 +- common/src/nxe_igmp_enable.c | 14 +- common/src/nxe_igmp_info_get.c | 14 +- common/src/nxe_igmp_loopback_disable.c | 14 +- common/src/nxe_igmp_loopback_enable.c | 14 +- common/src/nxe_igmp_multicast_interface_join.c | 14 +- common/src/nxe_igmp_multicast_interface_leave.c | 14 +- common/src/nxe_igmp_multicast_join.c | 14 +- common/src/nxe_igmp_multicast_leave.c | 14 +- common/src/nxe_ip_address_change_notify.c | 14 +- common/src/nxe_ip_address_get.c | 14 +- common/src/nxe_ip_address_set.c | 14 +- common/src/nxe_ip_auxiliary_packet_pool_set.c | 14 +- common/src/nxe_ip_create.c | 14 +- common/src/nxe_ip_delete.c | 14 +- common/src/nxe_ip_driver_direct_command.c | 14 +- .../src/nxe_ip_driver_interface_direct_command.c | 14 +- common/src/nxe_ip_forwarding_disable.c | 14 +- common/src/nxe_ip_forwarding_enable.c | 14 +- common/src/nxe_ip_fragment_disable.c | 14 +- common/src/nxe_ip_fragment_enable.c | 14 +- common/src/nxe_ip_gateway_address_clear.c | 14 +- common/src/nxe_ip_gateway_address_get.c | 14 +- common/src/nxe_ip_gateway_address_set.c | 14 +- common/src/nxe_ip_info_get.c | 14 +- common/src/nxe_ip_interface_address_get.c | 14 +- .../nxe_ip_interface_address_mapping_configure.c | 14 +- common/src/nxe_ip_interface_address_set.c | 14 +- common/src/nxe_ip_interface_attach.c | 14 +- common/src/nxe_ip_interface_capability_get.c | 14 +- common/src/nxe_ip_interface_capability_set.c | 14 +- common/src/nxe_ip_interface_detach.c | 14 +- common/src/nxe_ip_interface_info_get.c | 14 +- common/src/nxe_ip_interface_mtu_set.c | 14 +- common/src/nxe_ip_interface_physical_address_get.c | 14 +- common/src/nxe_ip_interface_physical_address_set.c | 14 +- common/src/nxe_ip_interface_status_check.c | 14 +- common/src/nxe_ip_link_status_change_notify_set.c | 14 +- common/src/nxe_ip_max_payload_size_find.c | 14 +- common/src/nxe_ip_raw_packet_disable.c | 14 +- common/src/nxe_ip_raw_packet_enable.c | 14 +- common/src/nxe_ip_raw_packet_filter_set.c | 14 +- common/src/nxe_ip_raw_packet_receive.c | 14 +- common/src/nxe_ip_raw_packet_send.c | 14 +- common/src/nxe_ip_raw_packet_source_send.c | 14 +- common/src/nxe_ip_raw_receive_queue_max_set.c | 14 +- common/src/nxe_ip_static_route_add.c | 14 +- common/src/nxe_ip_static_route_delete.c | 14 +- common/src/nxe_ip_status_check.c | 14 +- common/src/nxe_ipv4_multicast_interface_join.c | 14 +- common/src/nxe_ipv4_multicast_interface_leave.c | 14 +- common/src/nxe_packet_allocate.c | 14 +- common/src/nxe_packet_copy.c | 14 +- common/src/nxe_packet_data_append.c | 14 +- common/src/nxe_packet_data_extract_offset.c | 14 +- common/src/nxe_packet_data_retrieve.c | 14 +- common/src/nxe_packet_length_get.c | 14 +- common/src/nxe_packet_pool_create.c | 14 +- common/src/nxe_packet_pool_delete.c | 14 +- common/src/nxe_packet_pool_info_get.c | 14 +- common/src/nxe_packet_pool_low_watermark_set.c | 14 +- common/src/nxe_packet_release.c | 14 +- common/src/nxe_packet_transmit_release.c | 14 +- common/src/nxe_packet_vlan_priority_set.c | 12 +- common/src/nxe_rarp_disable.c | 14 +- common/src/nxe_rarp_enable.c | 14 +- common/src/nxe_rarp_info_get.c | 14 +- common/src/nxe_tcp_client_socket_bind.c | 14 +- common/src/nxe_tcp_client_socket_connect.c | 14 +- common/src/nxe_tcp_client_socket_port_get.c | 14 +- common/src/nxe_tcp_client_socket_unbind.c | 14 +- common/src/nxe_tcp_enable.c | 14 +- common/src/nxe_tcp_free_port_find.c | 14 +- common/src/nxe_tcp_info_get.c | 14 +- common/src/nxe_tcp_server_socket_accept.c | 14 +- common/src/nxe_tcp_server_socket_listen.c | 14 +- common/src/nxe_tcp_server_socket_relisten.c | 14 +- common/src/nxe_tcp_server_socket_unaccept.c | 14 +- common/src/nxe_tcp_server_socket_unlisten.c | 14 +- common/src/nxe_tcp_socket_bytes_available.c | 14 +- common/src/nxe_tcp_socket_create.c | 14 +- common/src/nxe_tcp_socket_delete.c | 14 +- common/src/nxe_tcp_socket_disconnect.c | 14 +- .../nxe_tcp_socket_disconnect_complete_notify.c | 14 +- common/src/nxe_tcp_socket_establish_notify.c | 14 +- common/src/nxe_tcp_socket_info_get.c | 14 +- common/src/nxe_tcp_socket_mss_get.c | 14 +- common/src/nxe_tcp_socket_mss_peer_get.c | 14 +- common/src/nxe_tcp_socket_mss_set.c | 14 +- common/src/nxe_tcp_socket_peer_info_get.c | 14 +- common/src/nxe_tcp_socket_queue_depth_notify_set.c | 14 +- common/src/nxe_tcp_socket_receive.c | 14 +- common/src/nxe_tcp_socket_receive_notify.c | 17 +- common/src/nxe_tcp_socket_receive_queue_max_set.c | 14 +- common/src/nxe_tcp_socket_send.c | 14 +- common/src/nxe_tcp_socket_state_wait.c | 14 +- common/src/nxe_tcp_socket_timed_wait_callback.c | 14 +- common/src/nxe_tcp_socket_transmit_configure.c | 14 +- common/src/nxe_tcp_socket_vlan_priority_set.c | 12 +- .../src/nxe_tcp_socket_window_update_notify_set.c | 14 +- common/src/nxe_udp_enable.c | 14 +- common/src/nxe_udp_free_port_find.c | 14 +- common/src/nxe_udp_info_get.c | 14 +- common/src/nxe_udp_packet_info_extract.c | 14 +- common/src/nxe_udp_socket_bind.c | 14 +- common/src/nxe_udp_socket_bytes_available.c | 14 +- common/src/nxe_udp_socket_checksum_disable.c | 14 +- common/src/nxe_udp_socket_checksum_enable.c | 14 +- common/src/nxe_udp_socket_create.c | 14 +- common/src/nxe_udp_socket_delete.c | 14 +- common/src/nxe_udp_socket_info_get.c | 14 +- common/src/nxe_udp_socket_port_get.c | 14 +- common/src/nxe_udp_socket_receive.c | 14 +- common/src/nxe_udp_socket_receive_notify.c | 14 +- common/src/nxe_udp_socket_send.c | 14 +- common/src/nxe_udp_socket_source_send.c | 14 +- common/src/nxe_udp_socket_unbind.c | 14 +- common/src/nxe_udp_socket_vlan_priority_set.c | 12 +- common/src/nxe_udp_source_extract.c | 14 +- crypto_libraries/inc/nx_crypto.h | 29 +- crypto_libraries/inc/nx_crypto_3des.h | 14 +- crypto_libraries/inc/nx_crypto_aes.h | 18 +- crypto_libraries/inc/nx_crypto_cbc.h | 14 +- crypto_libraries/inc/nx_crypto_ccm.h | 14 +- crypto_libraries/inc/nx_crypto_const.h | 27 +- crypto_libraries/inc/nx_crypto_ctr.h | 14 +- crypto_libraries/inc/nx_crypto_des.h | 14 +- crypto_libraries/inc/nx_crypto_dh.h | 14 +- crypto_libraries/inc/nx_crypto_drbg.h | 14 +- crypto_libraries/inc/nx_crypto_ec.h | 24 +- crypto_libraries/inc/nx_crypto_ecdh.h | 17 +- crypto_libraries/inc/nx_crypto_ecdsa.h | 14 +- crypto_libraries/inc/nx_crypto_ecjpake.h | 14 +- crypto_libraries/inc/nx_crypto_gcm.h | 14 +- crypto_libraries/inc/nx_crypto_hkdf.h | 14 +- crypto_libraries/inc/nx_crypto_hmac.h | 14 +- crypto_libraries/inc/nx_crypto_hmac_md5.h | 14 +- crypto_libraries/inc/nx_crypto_hmac_sha1.h | 14 +- crypto_libraries/inc/nx_crypto_hmac_sha2.h | 14 +- crypto_libraries/inc/nx_crypto_hmac_sha5.h | 14 +- crypto_libraries/inc/nx_crypto_huge_number.h | 18 +- crypto_libraries/inc/nx_crypto_md5.h | 14 +- crypto_libraries/inc/nx_crypto_method_self_test.h | 6 +- crypto_libraries/inc/nx_crypto_null.h | 14 +- crypto_libraries/inc/nx_crypto_phash.h | 14 +- crypto_libraries/inc/nx_crypto_pkcs1_v1.5.h | 14 +- crypto_libraries/inc/nx_crypto_rsa.h | 14 +- crypto_libraries/inc/nx_crypto_sha1.h | 14 +- crypto_libraries/inc/nx_crypto_sha2.h | 14 +- crypto_libraries/inc/nx_crypto_sha5.h | 17 +- crypto_libraries/inc/nx_crypto_tls_prf_1.h | 14 +- crypto_libraries/inc/nx_crypto_tls_prf_sha256.h | 14 +- crypto_libraries/inc/nx_crypto_tls_prf_sha384.h | 14 +- crypto_libraries/inc/nx_crypto_tls_prf_sha512.h | 14 +- crypto_libraries/inc/nx_crypto_xcbc_mac.h | 14 +- .../ports/cortex_m3/ac5/inc/nx_crypto_port.h | 14 +- .../ports/cortex_m3/ac6/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m3/gnu/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m3/iar/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m3/keil/inc/nx_crypto_port.h | 14 +- .../ports/cortex_m4/ac5/inc/nx_crypto_port.h | 14 +- .../ports/cortex_m4/ac6/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m4/gnu/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m4/iar/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m4/keil/inc/nx_crypto_port.h | 14 +- .../ports/cortex_m7/ac5/inc/nx_crypto_port.h | 14 +- .../ports/cortex_m7/ac6/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m7/gnu/inc/nx_crypto_port.h | 12 +- .../ports/cortex_m7/iar/inc/nx_crypto_port.h | 12 +- .../ports/linux/gnu/inc/nx_crypto_port.h | 12 +- .../ports/win32/vs_2019/inc/nx_crypto_port.h | 12 +- crypto_libraries/src/nx_crypto_3des.c | 78 +- crypto_libraries/src/nx_crypto_aes.c | 195 +-- crypto_libraries/src/nx_crypto_cbc.c | 41 +- crypto_libraries/src/nx_crypto_ccm.c | 59 +- crypto_libraries/src/nx_crypto_ctr.c | 41 +- crypto_libraries/src/nx_crypto_des.c | 84 +- crypto_libraries/src/nx_crypto_dh.c | 26 +- crypto_libraries/src/nx_crypto_drbg.c | 91 +- crypto_libraries/src/nx_crypto_ec.c | 360 +---- .../src/nx_crypto_ec_secp192r1_fixed_points.c | 6 +- .../src/nx_crypto_ec_secp224r1_fixed_points.c | 6 +- .../src/nx_crypto_ec_secp256r1_fixed_points.c | 6 +- .../src/nx_crypto_ec_secp384r1_fixed_points.c | 6 +- .../src/nx_crypto_ec_secp521r1_fixed_points.c | 6 +- crypto_libraries/src/nx_crypto_ecdh.c | 94 +- crypto_libraries/src/nx_crypto_ecdsa.c | 53 +- crypto_libraries/src/nx_crypto_ecjpake.c | 127 +- crypto_libraries/src/nx_crypto_gcm.c | 92 +- .../src/nx_crypto_generic_ciphersuites.c | 28 +- crypto_libraries/src/nx_crypto_hkdf.c | 54 +- crypto_libraries/src/nx_crypto_hmac.c | 100 +- crypto_libraries/src/nx_crypto_hmac_md5.c | 34 +- crypto_libraries/src/nx_crypto_hmac_sha1.c | 34 +- crypto_libraries/src/nx_crypto_hmac_sha2.c | 34 +- crypto_libraries/src/nx_crypto_hmac_sha5.c | 34 +- crypto_libraries/src/nx_crypto_huge_number.c | 216 +-- .../src/nx_crypto_huge_number_extended.c | 36 +- crypto_libraries/src/nx_crypto_initialize.c | 66 +- crypto_libraries/src/nx_crypto_md5.c | 67 +- crypto_libraries/src/nx_crypto_method_self_test.c | 18 +- .../src/nx_crypto_method_self_test_3des.c | 18 +- .../src/nx_crypto_method_self_test_aes.c | 18 +- .../src/nx_crypto_method_self_test_des.c | 18 +- .../src/nx_crypto_method_self_test_drbg.c | 36 +- .../src/nx_crypto_method_self_test_ecdh.c | 18 +- .../src/nx_crypto_method_self_test_ecdsa.c | 18 +- .../src/nx_crypto_method_self_test_hmac_md5.c | 18 +- .../src/nx_crypto_method_self_test_hmac_sha.c | 18 +- .../src/nx_crypto_method_self_test_md5.c | 18 +- .../src/nx_crypto_method_self_test_pkcs1.c | 18 +- .../src/nx_crypto_method_self_test_prf.c | 18 +- .../src/nx_crypto_method_self_test_rsa.c | 18 +- .../src/nx_crypto_method_self_test_sha.c | 18 +- crypto_libraries/src/nx_crypto_methods.c | 22 +- crypto_libraries/src/nx_crypto_null_cipher.c | 30 +- crypto_libraries/src/nx_crypto_phash.c | 17 +- crypto_libraries/src/nx_crypto_pkcs1_v1.5.c | 63 +- crypto_libraries/src/nx_crypto_rsa.c | 45 +- crypto_libraries/src/nx_crypto_sha1.c | 67 +- crypto_libraries/src/nx_crypto_sha2.c | 73 +- crypto_libraries/src/nx_crypto_sha5.c | 67 +- crypto_libraries/src/nx_crypto_tls_prf_1.c | 36 +- crypto_libraries/src/nx_crypto_tls_prf_sha256.c | 36 +- crypto_libraries/src/nx_crypto_tls_prf_sha384.c | 36 +- crypto_libraries/src/nx_crypto_tls_prf_sha512.c | 36 +- crypto_libraries/src/nx_crypto_xcbc_mac.c | 24 +- nx_secure/inc/nx_secure_crypto_table_self_test.h | 14 +- nx_secure/inc/nx_secure_dtls.h | 22 +- nx_secure/inc/nx_secure_dtls_api.h | 14 +- nx_secure/inc/nx_secure_tls.h | 87 +- nx_secure/inc/nx_secure_tls_api.h | 17 +- nx_secure/inc/nx_secure_user_sample.h | 26 +- nx_secure/inc/nx_secure_x509.h | 33 +- nx_secure/ports/nx_secure_port.h | 14 +- .../src/nx_secure_crypto_method_self_test_3des.c | 14 +- .../src/nx_secure_crypto_method_self_test_aes.c | 14 +- .../src/nx_secure_crypto_method_self_test_des.c | 14 +- .../nx_secure_crypto_method_self_test_hmac_md5.c | 14 +- .../nx_secure_crypto_method_self_test_hmac_sha.c | 14 +- .../src/nx_secure_crypto_method_self_test_md5.c | 14 +- .../src/nx_secure_crypto_method_self_test_prf.c | 14 +- .../src/nx_secure_crypto_method_self_test_rsa.c | 14 +- .../src/nx_secure_crypto_method_self_test_sha.c | 14 +- nx_secure/src/nx_secure_crypto_rng_self_test.c | 17 +- nx_secure/src/nx_secure_crypto_table_self_test.c | 14 +- .../src/nx_secure_dtls_allocate_handshake_packet.c | 14 +- nx_secure/src/nx_secure_dtls_client_handshake.c | 30 +- ..._secure_dtls_client_protocol_version_override.c | 14 +- .../src/nx_secure_dtls_client_session_start.c | 14 +- nx_secure/src/nx_secure_dtls_ecc_initialize.c | 14 +- nx_secure/src/nx_secure_dtls_hash_record.c | 15 +- nx_secure/src/nx_secure_dtls_initialize.c | 14 +- nx_secure/src/nx_secure_dtls_packet_allocate.c | 14 +- nx_secure/src/nx_secure_dtls_process_clienthello.c | 37 +- .../src/nx_secure_dtls_process_handshake_header.c | 18 +- nx_secure/src/nx_secure_dtls_process_header.c | 22 +- .../nx_secure_dtls_process_helloverifyrequest.c | 19 +- nx_secure/src/nx_secure_dtls_process_record.c | 23 +- nx_secure/src/nx_secure_dtls_psk_add.c | 14 +- nx_secure/src/nx_secure_dtls_receive_callback.c | 15 +- nx_secure/src/nx_secure_dtls_retransmit.c | 14 +- .../src/nx_secure_dtls_retransmit_queue_flush.c | 18 +- nx_secure/src/nx_secure_dtls_send_clienthello.c | 26 +- .../src/nx_secure_dtls_send_handshake_record.c | 15 +- .../src/nx_secure_dtls_send_helloverifyrequest.c | 15 +- nx_secure/src/nx_secure_dtls_send_record.c | 23 +- nx_secure/src/nx_secure_dtls_send_serverhello.c | 15 +- nx_secure/src/nx_secure_dtls_server_create.c | 14 +- nx_secure/src/nx_secure_dtls_server_delete.c | 14 +- .../src/nx_secure_dtls_server_ecc_initialize.c | 14 +- nx_secure/src/nx_secure_dtls_server_handshake.c | 32 +- .../nx_secure_dtls_server_local_certificate_add.c | 19 +- ...x_secure_dtls_server_local_certificate_remove.c | 19 +- nx_secure/src/nx_secure_dtls_server_notify_set.c | 14 +- ..._secure_dtls_server_protocol_version_override.c | 14 +- nx_secure/src/nx_secure_dtls_server_psk_add.c | 14 +- nx_secure/src/nx_secure_dtls_server_session_send.c | 14 +- .../src/nx_secure_dtls_server_session_start.c | 14 +- nx_secure/src/nx_secure_dtls_server_start.c | 14 +- nx_secure/src/nx_secure_dtls_server_stop.c | 14 +- ...nx_secure_dtls_server_trusted_certificate_add.c | 19 +- ...secure_dtls_server_trusted_certificate_remove.c | 19 +- ...cure_dtls_server_x509_client_verify_configure.c | 14 +- ...secure_dtls_server_x509_client_verify_disable.c | 14 +- nx_secure/src/nx_secure_dtls_session_cache.c | 39 +- .../src/nx_secure_dtls_session_client_info_get.c | 14 +- nx_secure/src/nx_secure_dtls_session_create.c | 14 +- nx_secure/src/nx_secure_dtls_session_delete.c | 14 +- nx_secure/src/nx_secure_dtls_session_end.c | 21 +- .../nx_secure_dtls_session_local_certificate_add.c | 18 +- ..._secure_dtls_session_local_certificate_remove.c | 18 +- nx_secure/src/nx_secure_dtls_session_receive.c | 25 +- nx_secure/src/nx_secure_dtls_session_reset.c | 18 +- nx_secure/src/nx_secure_dtls_session_send.c | 19 +- .../nx_secure_dtls_session_sliding_window_check.c | 14 +- .../nx_secure_dtls_session_sliding_window_update.c | 12 +- nx_secure/src/nx_secure_dtls_session_start.c | 16 +- ...x_secure_dtls_session_trusted_certificate_add.c | 18 +- ...ecure_dtls_session_trusted_certificate_remove.c | 18 +- nx_secure/src/nx_secure_dtls_verify_mac.c | 15 +- .../src/nx_secure_generate_client_key_exchange.c | 16 +- nx_secure/src/nx_secure_generate_master_secret.c | 12 +- .../src/nx_secure_generate_premaster_secret.c | 16 +- .../src/nx_secure_generate_server_key_exchange.c | 12 +- nx_secure/src/nx_secure_generate_session_keys.c | 12 +- nx_secure/src/nx_secure_module_hash_compute.c | 14 +- .../src/nx_secure_process_client_key_exchange.c | 16 +- .../src/nx_secure_process_server_key_exchange.c | 16 +- .../src/nx_secure_remote_certificate_verify.c | 12 +- nx_secure/src/nx_secure_session_keys_set.c | 12 +- nx_secure/src/nx_secure_tls_1_3_client_handshake.c | 34 +- nx_secure/src/nx_secure_tls_1_3_crypto_init.c | 17 +- .../src/nx_secure_tls_1_3_finished_hash_generate.c | 17 +- nx_secure/src/nx_secure_tls_1_3_generate_keys.c | 86 +- nx_secure/src/nx_secure_tls_1_3_server_handshake.c | 34 +- nx_secure/src/nx_secure_tls_1_3_session_keys_set.c | 18 +- .../src/nx_secure_tls_1_3_transcript_hash_save.c | 18 +- .../src/nx_secure_tls_active_certificate_set.c | 18 +- .../src/nx_secure_tls_allocate_handshake_packet.c | 14 +- .../src/nx_secure_tls_check_protocol_version.c | 14 +- nx_secure/src/nx_secure_tls_ciphersuite_lookup.c | 15 +- nx_secure/src/nx_secure_tls_client_handshake.c | 36 +- nx_secure/src/nx_secure_tls_client_psk_set.c | 15 +- nx_secure/src/nx_secure_tls_ecc_generate_keys.c | 26 +- nx_secure/src/nx_secure_tls_ecc_initialize.c | 17 +- nx_secure/src/nx_secure_tls_find_curve_method.c | 21 +- .../src/nx_secure_tls_finished_hash_generate.c | 18 +- nx_secure/src/nx_secure_tls_generate_keys.c | 18 +- .../src/nx_secure_tls_generate_premaster_secret.c | 22 +- nx_secure/src/nx_secure_tls_handshake_hash_init.c | 14 +- .../src/nx_secure_tls_handshake_hash_update.c | 19 +- nx_secure/src/nx_secure_tls_handshake_process.c | 16 +- nx_secure/src/nx_secure_tls_hash_record.c | 21 +- nx_secure/src/nx_secure_tls_initialize.c | 14 +- nx_secure/src/nx_secure_tls_key_material_init.c | 17 +- .../src/nx_secure_tls_local_certificate_add.c | 21 +- .../src/nx_secure_tls_local_certificate_find.c | 21 +- .../src/nx_secure_tls_local_certificate_remove.c | 21 +- nx_secure/src/nx_secure_tls_map_error_to_alert.c | 22 +- .../src/nx_secure_tls_metadata_size_calculate.c | 21 +- .../src/nx_secure_tls_newest_supported_version.c | 20 +- nx_secure/src/nx_secure_tls_packet_allocate.c | 17 +- nx_secure/src/nx_secure_tls_packet_release.c | 12 +- .../nx_secure_tls_process_certificate_request.c | 21 +- .../src/nx_secure_tls_process_certificate_verify.c | 32 +- .../src/nx_secure_tls_process_changecipherspec.c | 14 +- .../nx_secure_tls_process_client_key_exchange.c | 26 +- nx_secure/src/nx_secure_tls_process_clienthello.c | 45 +- .../nx_secure_tls_process_clienthello_extensions.c | 113 +- .../nx_secure_tls_process_encrypted_extensions.c | 15 +- nx_secure/src/nx_secure_tls_process_finished.c | 21 +- .../src/nx_secure_tls_process_handshake_header.c | 21 +- nx_secure/src/nx_secure_tls_process_header.c | 15 +- .../src/nx_secure_tls_process_newsessionticket.c | 16 +- nx_secure/src/nx_secure_tls_process_record.c | 43 +- .../src/nx_secure_tls_process_remote_certificate.c | 43 +- .../nx_secure_tls_process_server_key_exchange.c | 25 +- nx_secure/src/nx_secure_tls_process_serverhello.c | 23 +- .../nx_secure_tls_process_serverhello_extensions.c | 66 +- nx_secure/src/nx_secure_tls_protocol_version_get.c | 14 +- nx_secure/src/nx_secure_tls_psk_add.c | 19 +- nx_secure/src/nx_secure_tls_psk_binder_generate.c | 14 +- nx_secure/src/nx_secure_tls_psk_find.c | 17 +- nx_secure/src/nx_secure_tls_psk_identity_find.c | 14 +- .../src/nx_secure_tls_record_hash_calculate.c | 14 +- .../src/nx_secure_tls_record_hash_initialize.c | 14 +- nx_secure/src/nx_secure_tls_record_hash_update.c | 14 +- .../src/nx_secure_tls_record_payload_decrypt.c | 44 +- .../src/nx_secure_tls_record_payload_encrypt.c | 37 +- .../nx_secure_tls_remote_certificate_allocate.c | 21 +- ...secure_tls_remote_certificate_buffer_allocate.c | 24 +- .../src/nx_secure_tls_remote_certificate_free.c | 26 +- .../nx_secure_tls_remote_certificate_free_all.c | 18 +- .../src/nx_secure_tls_remote_certificate_verify.c | 32 +- nx_secure/src/nx_secure_tls_send_alert.c | 14 +- nx_secure/src/nx_secure_tls_send_certificate.c | 27 +- .../src/nx_secure_tls_send_certificate_request.c | 14 +- .../src/nx_secure_tls_send_certificate_verify.c | 36 +- .../src/nx_secure_tls_send_changecipherspec.c | 14 +- .../src/nx_secure_tls_send_client_key_exchange.c | 23 +- nx_secure/src/nx_secure_tls_send_clienthello.c | 21 +- .../nx_secure_tls_send_clienthello_extensions.c | 103 +- .../src/nx_secure_tls_send_encrypted_extensions.c | 15 +- nx_secure/src/nx_secure_tls_send_finished.c | 20 +- .../src/nx_secure_tls_send_handshake_record.c | 16 +- nx_secure/src/nx_secure_tls_send_hellorequest.c | 15 +- .../src/nx_secure_tls_send_newsessionticket.c | 15 +- nx_secure/src/nx_secure_tls_send_record.c | 28 +- .../src/nx_secure_tls_send_server_key_exchange.c | 18 +- nx_secure/src/nx_secure_tls_send_serverhello.c | 23 +- .../nx_secure_tls_send_serverhello_extensions.c | 62 +- .../src/nx_secure_tls_server_certificate_add.c | 14 +- .../src/nx_secure_tls_server_certificate_find.c | 21 +- .../src/nx_secure_tls_server_certificate_remove.c | 21 +- nx_secure/src/nx_secure_tls_server_handshake.c | 32 +- .../src/nx_secure_tls_session_alert_value_get.c | 14 +- ...x_secure_tls_session_certificate_callback_set.c | 14 +- .../nx_secure_tls_session_client_callback_set.c | 14 +- .../nx_secure_tls_session_client_verify_disable.c | 14 +- .../nx_secure_tls_session_client_verify_enable.c | 14 +- nx_secure/src/nx_secure_tls_session_create.c | 14 +- nx_secure/src/nx_secure_tls_session_create_ext.c | 32 +- nx_secure/src/nx_secure_tls_session_delete.c | 17 +- nx_secure/src/nx_secure_tls_session_end.c | 15 +- nx_secure/src/nx_secure_tls_session_iv_size_get.c | 14 +- nx_secure/src/nx_secure_tls_session_keys_set.c | 24 +- .../src/nx_secure_tls_session_packet_buffer_set.c | 14 +- .../src/nx_secure_tls_session_packet_pool_set.c | 12 +- ..._secure_tls_session_protocol_version_override.c | 15 +- nx_secure/src/nx_secure_tls_session_receive.c | 23 +- .../src/nx_secure_tls_session_receive_records.c | 21 +- nx_secure/src/nx_secure_tls_session_renegotiate.c | 34 +- ...x_secure_tls_session_renegotiate_callback_set.c | 15 +- nx_secure/src/nx_secure_tls_session_reset.c | 30 +- nx_secure/src/nx_secure_tls_session_send.c | 14 +- .../nx_secure_tls_session_server_callback_set.c | 14 +- .../nx_secure_tls_session_sni_extension_parse.c | 15 +- .../src/nx_secure_tls_session_sni_extension_set.c | 17 +- nx_secure/src/nx_secure_tls_session_start.c | 21 +- .../src/nx_secure_tls_session_time_function_set.c | 14 +- ...cure_tls_session_x509_client_verify_configure.c | 18 +- nx_secure/src/nx_secure_tls_shutdown.c | 14 +- .../src/nx_secure_tls_trusted_certificate_add.c | 24 +- .../src/nx_secure_tls_trusted_certificate_remove.c | 21 +- nx_secure/src/nx_secure_tls_verify_mac.c | 26 +- nx_secure/src/nx_secure_trusted_certificate_add.c | 12 +- nx_secure/src/nx_secure_verify_mac.c | 12 +- nx_secure/src/nx_secure_x509.c | 126 +- .../src/nx_secure_x509_asn1_tlv_block_parse.c | 17 +- .../src/nx_secure_x509_certificate_chain_verify.c | 24 +- .../src/nx_secure_x509_certificate_initialize.c | 25 +- .../src/nx_secure_x509_certificate_list_add.c | 17 +- .../src/nx_secure_x509_certificate_list_find.c | 17 +- .../src/nx_secure_x509_certificate_list_remove.c | 17 +- ...secure_x509_certificate_revocation_list_parse.c | 84 +- nx_secure/src/nx_secure_x509_certificate_verify.c | 22 +- .../src/nx_secure_x509_common_name_dns_check.c | 17 +- .../src/nx_secure_x509_crl_revocation_check.c | 36 +- nx_secure/src/nx_secure_x509_crl_verify.c | 19 +- .../nx_secure_x509_distinguished_name_compare.c | 25 +- .../src/nx_secure_x509_distinguished_name_parse.c | 25 +- nx_secure/src/nx_secure_x509_dns_name_initialize.c | 19 +- .../src/nx_secure_x509_ec_private_key_parse.c | 21 +- nx_secure/src/nx_secure_x509_expiration_check.c | 30 +- ...ecure_x509_extended_key_usage_extension_parse.c | 17 +- nx_secure/src/nx_secure_x509_extension_find.c | 17 +- .../src/nx_secure_x509_find_certificate_methods.c | 17 +- nx_secure/src/nx_secure_x509_find_curve_method.c | 12 +- .../src/nx_secure_x509_free_certificate_get.c | 17 +- .../src/nx_secure_x509_key_usage_extension_parse.c | 18 +- .../src/nx_secure_x509_local_certificate_find.c | 17 +- .../nx_secure_x509_local_device_certificate_get.c | 17 +- nx_secure/src/nx_secure_x509_oid_parse.c | 17 +- .../nx_secure_x509_pkcs1_rsa_private_key_parse.c | 25 +- nx_secure/src/nx_secure_x509_pkcs7_decode.c | 17 +- ...x_secure_x509_remote_endpoint_certificate_get.c | 17 +- .../src/nx_secure_x509_store_certificate_add.c | 17 +- .../src/nx_secure_x509_store_certificate_find.c | 17 +- .../src/nx_secure_x509_store_certificate_remove.c | 17 +- .../src/nx_secure_x509_subject_alt_names_find.c | 17 +- nx_secure/src/nx_secure_x509_wildcard_compare.c | 17 +- ..._secure_dtls_client_protocol_version_override.c | 14 +- .../src/nxe_secure_dtls_client_session_start.c | 14 +- nx_secure/src/nxe_secure_dtls_ecc_initialize.c | 14 +- nx_secure/src/nxe_secure_dtls_packet_allocate.c | 14 +- nx_secure/src/nxe_secure_dtls_psk_add.c | 14 +- nx_secure/src/nxe_secure_dtls_server_create.c | 14 +- nx_secure/src/nxe_secure_dtls_server_delete.c | 14 +- .../src/nxe_secure_dtls_server_ecc_initialize.c | 14 +- .../nxe_secure_dtls_server_local_certificate_add.c | 14 +- ...e_secure_dtls_server_local_certificate_remove.c | 14 +- nx_secure/src/nxe_secure_dtls_server_notify_set.c | 14 +- ..._secure_dtls_server_protocol_version_override.c | 14 +- nx_secure/src/nxe_secure_dtls_server_psk_add.c | 14 +- .../src/nxe_secure_dtls_server_session_send.c | 14 +- .../src/nxe_secure_dtls_server_session_start.c | 14 +- nx_secure/src/nxe_secure_dtls_server_start.c | 14 +- nx_secure/src/nxe_secure_dtls_server_stop.c | 14 +- ...xe_secure_dtls_server_trusted_certificate_add.c | 14 +- ...secure_dtls_server_trusted_certificate_remove.c | 14 +- ...cure_dtls_server_x509_client_verify_configure.c | 14 +- ...secure_dtls_server_x509_client_verify_disable.c | 14 +- .../src/nxe_secure_dtls_session_client_info_get.c | 14 +- nx_secure/src/nxe_secure_dtls_session_create.c | 14 +- nx_secure/src/nxe_secure_dtls_session_delete.c | 14 +- nx_secure/src/nxe_secure_dtls_session_end.c | 14 +- ...nxe_secure_dtls_session_local_certificate_add.c | 14 +- ..._secure_dtls_session_local_certificate_remove.c | 14 +- nx_secure/src/nxe_secure_dtls_session_receive.c | 14 +- nx_secure/src/nxe_secure_dtls_session_reset.c | 14 +- nx_secure/src/nxe_secure_dtls_session_send.c | 14 +- nx_secure/src/nxe_secure_dtls_session_start.c | 14 +- ...e_secure_dtls_session_trusted_certificate_add.c | 14 +- ...ecure_dtls_session_trusted_certificate_remove.c | 14 +- .../src/nxe_secure_tls_active_certificate_set.c | 14 +- nx_secure/src/nxe_secure_tls_client_psk_set.c | 14 +- .../src/nxe_secure_tls_local_certificate_add.c | 14 +- .../src/nxe_secure_tls_local_certificate_find.c | 14 +- .../src/nxe_secure_tls_local_certificate_remove.c | 14 +- .../src/nxe_secure_tls_metadata_size_calculate.c | 14 +- nx_secure/src/nxe_secure_tls_packet_allocate.c | 14 +- nx_secure/src/nxe_secure_tls_psk_add.c | 14 +- .../nxe_secure_tls_remote_certificate_allocate.c | 14 +- ...secure_tls_remote_certificate_buffer_allocate.c | 14 +- .../nxe_secure_tls_remote_certificate_free_all.c | 14 +- .../src/nxe_secure_tls_server_certificate_add.c | 14 +- .../src/nxe_secure_tls_server_certificate_find.c | 14 +- .../src/nxe_secure_tls_server_certificate_remove.c | 14 +- .../src/nxe_secure_tls_session_alert_value_get.c | 14 +- ...e_secure_tls_session_certificate_callback_set.c | 14 +- .../nxe_secure_tls_session_client_callback_set.c | 14 +- .../nxe_secure_tls_session_client_verify_disable.c | 14 +- .../nxe_secure_tls_session_client_verify_enable.c | 14 +- nx_secure/src/nxe_secure_tls_session_create.c | 14 +- nx_secure/src/nxe_secure_tls_session_delete.c | 14 +- nx_secure/src/nxe_secure_tls_session_end.c | 14 +- .../src/nxe_secure_tls_session_packet_buffer_set.c | 14 +- .../src/nxe_secure_tls_session_packet_pool_set.c | 12 +- ..._secure_tls_session_protocol_version_override.c | 14 +- nx_secure/src/nxe_secure_tls_session_receive.c | 14 +- nx_secure/src/nxe_secure_tls_session_renegotiate.c | 15 +- ...e_secure_tls_session_renegotiate_callback_set.c | 15 +- nx_secure/src/nxe_secure_tls_session_reset.c | 14 +- nx_secure/src/nxe_secure_tls_session_send.c | 17 +- .../nxe_secure_tls_session_server_callback_set.c | 14 +- .../nxe_secure_tls_session_sni_extension_parse.c | 14 +- .../src/nxe_secure_tls_session_sni_extension_set.c | 14 +- nx_secure/src/nxe_secure_tls_session_start.c | 14 +- .../src/nxe_secure_tls_session_time_function_set.c | 14 +- ...cure_tls_session_x509_client_verify_configure.c | 17 +- .../src/nxe_secure_tls_trusted_certificate_add.c | 14 +- .../nxe_secure_tls_trusted_certificate_remove.c | 14 +- .../src/nxe_secure_x509_certificate_initialize.c | 17 +- .../src/nxe_secure_x509_common_name_dns_check.c | 17 +- .../src/nxe_secure_x509_crl_revocation_check.c | 17 +- .../src/nxe_secure_x509_dns_name_initialize.c | 17 +- ...ecure_x509_extended_key_usage_extension_parse.c | 17 +- nx_secure/src/nxe_secure_x509_extension_find.c | 17 +- .../nxe_secure_x509_key_usage_extension_parse.c | 17 +- ports/arc_em/metaware/inc/nx_port.h | 25 +- ports/arc_hs/metaware/inc/nx_port.h | 25 +- ports/cortex_a15/gnu/inc/nx_port.h | 25 +- ports/cortex_a5/ac5/inc/nx_port.h | 25 +- ports/cortex_a5/gnu/inc/nx_port.h | 25 +- ports/cortex_a5/iar/inc/nx_port.h | 25 +- ports/cortex_a5x/ac6/inc/nx_port.h | 25 +- ports/cortex_a7/ac5/inc/nx_port.h | 25 +- ports/cortex_a7/gnu/inc/nx_port.h | 25 +- ports/cortex_a7/iar/inc/nx_port.h | 25 +- ports/cortex_a8/ac5/inc/nx_port.h | 25 +- ports/cortex_a8/gnu/inc/nx_port.h | 25 +- ports/cortex_a8/iar/inc/nx_port.h | 25 +- ports/cortex_a9/ac5/inc/nx_port.h | 25 +- ports/cortex_a9/gnu/inc/nx_port.h | 25 +- ports/cortex_a9/iar/inc/nx_port.h | 25 +- ports/cortex_a9/rvds/inc/nx_port.h | 25 +- ports/cortex_m0/ac5/inc/nx_port.h | 25 +- ports/cortex_m0/gnu/inc/nx_port.h | 29 +- ports/cortex_m0/iar/inc/nx_port.h | 22 +- ports/cortex_m23/ac5/inc/nx_port.h | 25 +- ports/cortex_m23/gnu/inc/nx_port.h | 25 +- ports/cortex_m23/iar/inc/nx_port.h | 22 +- ports/cortex_m3/ac5/inc/nx_port.h | 25 +- ports/cortex_m3/gnu/inc/nx_port.h | 29 +- ports/cortex_m3/iar/inc/nx_port.h | 22 +- ports/cortex_m3/keil/inc/nx_port.h | 25 +- ports/cortex_m33/ac5/inc/nx_port.h | 20 +- ports/cortex_m33/ac6/inc/nx_port.h | 14 +- ports/cortex_m33/gnu/inc/nx_port.h | 18 +- ports/cortex_m33/iar/inc/nx_port.h | 17 +- ports/cortex_m4/ac5/inc/nx_port.h | 25 +- ports/cortex_m4/gnu/inc/nx_port.h | 29 +- ports/cortex_m4/iar/inc/nx_port.h | 22 +- ports/cortex_m4/keil/inc/nx_port.h | 25 +- ports/cortex_m55/ac5/inc/nx_port.h | 14 +- ports/cortex_m55/ac6/inc/nx_port.h | 14 +- ports/cortex_m55/gnu/inc/nx_port.h | 14 +- ports/cortex_m55/iar/inc/nx_port.h | 14 +- ports/cortex_m7/ac5/inc/nx_port.h | 25 +- ports/cortex_m7/ac6/inc/nx_port.h | 22 +- ports/cortex_m7/gnu/inc/nx_port.h | 29 +- ports/cortex_m7/iar/inc/nx_port.h | 22 +- ports/cortex_m85/ac5/inc/nx_port.h | 14 +- ports/cortex_m85/ac6/inc/nx_port.h | 14 +- ports/cortex_m85/gnu/inc/nx_port.h | 14 +- ports/cortex_m85/iar/inc/nx_port.h | 14 +- ports/cortex_r4/ac5/inc/nx_port.h | 25 +- ports/cortex_r4/ac6/inc/nx_port.h | 25 +- ports/cortex_r4/gnu/inc/nx_port.h | 25 +- ports/cortex_r4/iar/inc/nx_port.h | 25 +- ports/cortex_r5/ac5/inc/nx_port.h | 25 +- ports/cortex_r5/gnu/inc/nx_port.h | 23 +- ports/cortex_r5/iar/inc/nx_port.h | 25 +- ports/linux/gnu/inc/nx_port.h | 16 +- ports/mips/gnu/inc/nx_port.h | 23 +- ports/rxv1/ccrx/inc/nx_port.h | 29 +- ports/rxv1/gnu/inc/nx_port.h | 26 +- ports/rxv1/iar/inc/nx_port.h | 26 +- ports/rxv2/ccrx/inc/nx_port.h | 28 +- ports/rxv2/gnu/inc/nx_port.h | 25 +- ports/rxv2/iar/inc/nx_port.h | 25 +- ports/rxv3/ccrx/inc/nx_port.h | 29 +- ports/rxv3/gnu/inc/nx_port.h | 26 +- ports/rxv3/iar/inc/nx_port.h | 26 +- ports/win32/vs_2019/inc/nx_port.h | 22 +- samples/demo_bsd_raw.c | 2 +- samples/demo_bsd_tcp.c | 6 +- samples/demo_mqtt_client.c | 14 +- samples/demo_netx_duo_mdns.c | 4 +- samples/demo_netx_nat.c | 10 +- samples/demo_netx_ppp.c | 6 +- samples/demo_netx_pppoe_client.c | 4 +- samples/demo_netx_pppoe_server.c | 10 +- samples/demo_netx_secure_tls.c | 6 +- samples/demo_netxduo_dhcp.c | 4 +- samples/demo_netxduo_dhcpv6.c | 24 +- samples/demo_netxduo_dhcpv6_client.c | 58 +- samples/demo_netxduo_dns.c | 14 +- samples/demo_netxduo_ftp.c | 10 +- samples/demo_netxduo_http.c | 10 +- samples/demo_netxduo_https.c | 22 +- samples/demo_netxduo_multihome_dhcp_client.c | 46 +- samples/demo_netxduo_pop3_client.c | 14 +- samples/demo_netxduo_smtp_client.c | 20 +- samples/demo_netxduo_snmp.c | 12 +- samples/demo_netxduo_sntp_client.c | 28 +- samples/demo_netxduo_telnet.c | 14 +- samples/demo_netxduo_tftp.c | 20 +- samples/demo_rtsp_over_rtp.h | 2 +- samples/demo_snmp_helper.h | 2 +- samples/main.c | 6 +- test/cmake/filex | 2 +- test/cmake/libs/tx_user.h | 12 +- test/cmake/netxduo64/nx_user.h | 12 +- test/cmake/netxduo_fast/libs/tx_user.h | 12 +- test/cmake/netxduo_fast/nx_user.h | 12 +- test/cmake/threadx | 2 +- test/regression/azure_iot/api_unit_test.c | 6 +- test/regression/azure_iot/c2d_property_unit_test.c | 6 +- test/regression/azure_iot/c2d_unit_test.c | 6 +- .../azure_iot/connection_non_block_ram_test.c | 6 +- .../azure_iot/connection_sas_expiry_ram_test.c | 6 +- test/regression/azure_iot/connection_unit_test.c | 6 +- test/regression/azure_iot/d2c_unit_test.c | 6 +- test/regression/azure_iot/device_cert_unit_test.c | 6 +- test/regression/azure_iot/device_twin_unit_test.c | 6 +- .../regression/azure_iot/direct_method_unit_test.c | 6 +- .../azure_iot/initialization_unit_test.c | 6 +- .../azure_iot/iot_provisioning_client_unit_test.c | 6 +- test/regression/azure_iot/main.c | 6 +- .../azure_iot/nx_azure_iot_adu_agent_unit_test.c | 6 +- .../azure_iot/nx_azure_iot_json_reader_unit_test.c | 6 +- .../azure_iot/nx_azure_iot_json_writer_unit_test.c | 6 +- .../nx_azure_iot_pnp_client_command_unit_test.c | 6 +- .../nx_azure_iot_pnp_client_properties_unit_test.c | 6 +- .../nx_azure_iot_pnp_client_telemetry_unit_test.c | 6 +- test/regression/azure_iot/nx_azure_iot_unit_test.c | 6 +- test/regression/azure_iot/trusted_cert_unit_test.c | 6 +- .../azure_iot/user_agent_string_unit_test.c | 6 +- .../bsd_test/netx_bsd_ioctl_nonblocking_test.c | 4 +- .../bsd_test/netx_bsd_raw_basic_blocking_test.c | 2 +- .../netx_bsd_raw_basic_rx_nohdr_blocking_test.c | 2 +- test/regression/bsd_test/netx_bsd_raw_pppoe_test.c | 6 +- .../netx_bsd_raw_rx_nohdr_basic_blocking_test.c | 2 +- test/regression/bsd_test/netx_bsd_raw_tx_test.c | 4 +- .../bsd_test/netx_bsd_tcp_basic_blocking_test.c | 4 +- .../bsd_test/netx_bsd_tcp_basic_nonblocking_test.c | 4 +- .../netx_bsd_tcp_clients_share_port_test.c | 4 +- .../netx_bsd_tcp_clients_shared_port_test.c | 2 +- .../regression/bsd_test/netx_bsd_tcp_rcvbuf_test.c | 4 +- .../netx_bsd_tcp_servers_share_port_test.c | 10 +- .../netx_bsd_tcp_servers_shared_port_test.c | 2 +- test/regression/bsd_test/netx_bsd_udp_bind_test.c | 4 +- test/regression/crypto_test/crypto_size_print.c | 8 +- .../regression/dhcp_test/netx_dhcp_03_02_01_test.c | 2 +- .../regression/dhcp_test/netx_dhcp_03_05_01_test.c | 2 +- .../regression/dhcp_test/netx_dhcp_04_01_01_test.c | 4 +- .../dhcp_test/netx_dhcp_04_03_02_01_test.c | 2 +- .../dhcp_test/netx_dhcp_04_03_02_02_test.c | 2 +- .../dhcp_test/netx_dhcp_04_03_02_03_test.c | 2 +- .../dhcp_test/netx_dhcp_04_04_01_02_test.c | 4 +- test/regression/dhcp_test/netx_dhcp_basic_test.c | 6 +- .../netx_dhcp_client_activate_interfaces_test.c | 6 +- .../netx_dhcp_client_interface_order_test.c | 4 +- .../dhcp_test/netx_dhcp_client_ip_mutex_test.c | 6 +- .../dhcp_test/netx_dhcp_client_ntp_option_test.c | 2 +- .../netx_dhcp_client_parameter_request_test.c | 2 +- .../netx_dhcp_client_secondary_interface_test.c | 4 +- ...hcp_client_send_with_zero_source_address_test.c | 6 +- .../netx_dhcp_client_server_source_port_test.c | 2 +- .../regression/dhcp_test/netx_dhcp_coverage_test.c | 6 +- test/regression/dhcp_test/netx_dhcp_delete_test.c | 6 +- test/regression/dhcp_test/netx_dhcp_enable_test.c | 6 +- .../dhcp_test/netx_dhcp_get_option_value_test.c | 2 +- .../dhcp_test/netx_dhcp_packet_process_test.c | 2 +- .../dhcp_test/netx_dhcp_reinitialize_test.c | 8 +- test/regression/dhcp_test/netx_dhcp_release_test.c | 6 +- .../netx_dhcp_send_request_internal_test.c | 2 +- .../netx_dhcp_server_small_packet_payload_test.c | 6 +- test/regression/dhcp_test/netx_dhcp_start_test.c | 6 +- test/regression/dhcp_test/netx_dhcp_stop_test.c | 6 +- test/regression/dhcp_test/netx_dhcpv6_basic_test.c | 12 +- .../netx_dhcpv6_client_process_server_duid_test.c | 2 +- .../dhcp_test/netx_dhcpv6_extended_api_test.c | 12 +- .../dhcp_test/netx_dhcpv6_packet_loss_test.c | 16 +- .../dhcp_test/netx_dhcpv6_server_iana_test.c | 2 +- .../dhcp_test/netx_dhcpv6_user_option_add_test.c | 10 +- .../dns_test/netx_dns_abnormal_packet_test.c | 8 +- .../dns_test/netx_dns_fake_response_test.c | 8 +- test/regression/dns_test/netx_dns_function_test.c | 8 +- .../dns_test/netx_dns_invalid_name_unencode_test.c | 8 +- .../dns_test/netx_dns_invalid_resource_get_test.c | 8 +- .../dns_test/netx_dns_non_blocking_a_test.c | 8 +- .../dns_test/netx_dns_packet_double_release_test.c | 8 +- ...request_a_response_cname_a_smtp_live_com_test.c | 8 +- .../dns_test/netx_dns_source_port_test.c | 8 +- .../netx_ftp_access_control_commands_01_test.c | 2 +- .../netx_ftp_access_control_commands_02_test.c | 2 +- .../netx_ftp_access_control_commands_03_test.c | 2 +- .../netx_ftp_access_control_commands_04_test.c | 2 +- test/regression/ftp_test/netx_ftp_basic_test.c | 2 +- .../netx_ftp_client_file_write_fail_test.c | 6 +- ..._client_invalid_username_password_length_test.c | 2 +- .../ftp_test/netx_ftp_client_packet_leak_test.c | 2 +- .../ftp_test/netx_ftp_client_pasv_denied.c | 4 +- .../ftp_test/netx_ftp_client_pasv_file_read_test.c | 6 +- .../netx_ftp_client_pasv_file_write_test.c | 6 +- .../ftp_test/netx_ftp_commands_characters_test.c | 2 +- .../ftp_test/netx_ftp_commands_replys_test.c | 2 +- .../ftp_test/netx_ftp_control_connection_test.c | 2 +- .../ftp_test/netx_ftp_data_connection_test.c | 4 +- .../ftp_test/netx_ftp_disconnection_event_test.c | 2 +- .../netx_ftp_establish_data_connection_03_test.c | 2 +- .../netx_ftp_establish_data_connection_05_test.c | 2 +- .../netx_ftp_establish_data_connection_06_test.c | 2 +- .../netx_ftp_establish_data_connection_08_test.c | 2 +- test/regression/ftp_test/netx_ftp_ipv6_epsv_test.c | 10 +- test/regression/ftp_test/netx_ftp_pasv_port_test.c | 2 +- test/regression/ftp_test/netx_ftp_pasv_stor_test.c | 4 +- .../regression/ftp_test/netx_ftp_pasv_twice_test.c | 6 +- test/regression/ftp_test/netx_ftp_rst_test.c | 2 +- .../netx_ftp_server_abnormal_packet_test.c | 2 +- .../netx_ftp_server_dangling_pointer_test.c | 2 +- .../netx_ftp_server_invalid_month_crash_test.c | 6 +- .../ftp_test/netx_ftp_server_list_command_test.c | 4 +- .../ftp_test/netx_ftp_server_mss_too_small_test.c | 2 +- .../netx_ftp_service_commands_RETR_STOR_test.c | 2 +- .../netx_ftp_service_commands_file_write_test.c | 6 +- .../netx_ftp_service_commands_nlist_test.c | 2 +- .../netx_ftp_service_commands_rename_test.c | 2 +- .../regression/ftp_test/netx_ftp_two_listen_test.c | 2 +- .../ftp_test/netx_ftp_user_data_type_test.c | 2 +- .../http_test/netx_http_basic_authenticate_test.c | 6 +- test/regression/http_test/netx_http_basic_test.c | 4 +- .../netx_http_client_change_connect_port_test.c | 10 +- .../http_test/netx_http_delete_basic_test.c | 2 +- .../http_test/netx_http_digest_authenticate_test.c | 6 +- .../netx_http_digest_authenticate_timeout_test.c | 4 +- .../http_test/netx_http_get_content_length_test.c | 2 +- .../netx_http_get_contentlength_packetleak_test.c | 2 +- .../netx_http_get_put_referred_URI_test.c | 10 +- .../http_test/netx_http_head_basic_test.c | 2 +- .../http_test/netx_http_if_modified_since_test.c | 12 +- .../http_test/netx_http_post_basic_test.c | 2 +- .../netx_http_request_in_multiple_packets_test.c | 6 +- .../http_test/netx_http_status_404_test.c | 6 +- .../interoperability_test/nx_pcap_network_driver.c | 54 +- .../nx_secure_test/demo_tls_test_server.c | 2 +- .../nx_secure_1_0_1_1_echo_server_entry.c | 2 +- ...e_client_certificate_verify_test_server_entry.c | 2 +- .../nx_secure_test/nx_secure_echo_server_entry.c | 2 +- .../mdns_test/netx_mdns_bad_packet_test.c | 2 +- .../mdns_test/netx_mdns_ipv6_string_test.c | 2 +- .../netx_mdns_responder_cooperating_test.c | 2 +- .../mdns_test/netx_mdns_source_port_test.c | 2 +- test/regression/mqtt_test/netx_mqtt_api_test.c | 2 +- test/regression/mqtt_test/netx_mqtt_testcontrol.c | 2 +- .../mqtt_test/netx_mqtt_websocket_block_test.c | 2 +- .../mqtt_test/netx_mqtt_websocket_non_block_test.c | 2 +- .../netx_nat_entry_removed_after_timeout_test.c | 10 +- test/regression/nat_test/netx_nat_icmp_test.c | 2 +- .../nat_test/netx_nat_invalid_header_test.c | 2 +- .../nat_test/netx_nat_tcp_fragment_test.c | 2 +- test/regression/nat_test/netx_nat_tcp_port_test.c | 2 +- test/regression/nat_test/netx_nat_tcp_port_test2.c | 2 +- .../netx_nat_tcp_remove_oldest_udp_entry_test.c | 10 +- test/regression/nat_test/netx_nat_tcp_test1.c | 2 +- test/regression/nat_test/netx_nat_tcp_test2.c | 2 +- .../nat_test/netx_nat_udp_fragment_test.c | 2 +- test/regression/nat_test/netx_nat_udp_port_test.c | 2 +- test/regression/nat_test/netx_nat_udp_test.c | 2 +- test/regression/netxduo_test/netx_102_23_test.c | 2 +- test/regression/netxduo_test/netx_10_24_01_test.c | 4 +- test/regression/netxduo_test/netx_10_24_02_test.c | 2 +- test/regression/netxduo_test/netx_10_24_03_test.c | 4 +- test/regression/netxduo_test/netx_10_25_test.c | 2 +- test/regression/netxduo_test/netx_11_24_test.c | 2 +- test/regression/netxduo_test/netx_12_01_test.c | 2 +- test/regression/netxduo_test/netx_12_17_test.c | 2 +- test/regression/netxduo_test/netx_12_23_test.c | 2 +- test/regression/netxduo_test/netx_12_24_test.c | 2 +- test/regression/netxduo_test/netx_12_25_test.c | 2 +- test/regression/netxduo_test/netx_12_26_test.c | 4 +- test/regression/netxduo_test/netx_12_27_test.c | 2 +- test/regression/netxduo_test/netx_12_30_test.c | 4 +- test/regression/netxduo_test/netx_12_31_test.c | 2 +- test/regression/netxduo_test/netx_13_01_test.c | 4 +- test/regression/netxduo_test/netx_14_19_test.c | 2 +- test/regression/netxduo_test/netx_14_20_test.c | 2 +- test/regression/netxduo_test/netx_16_02_test.c | 4 +- test/regression/netxduo_test/netx_16_21_test.c | 2 +- test/regression/netxduo_test/netx_16_22_test.c | 2 +- test/regression/netxduo_test/netx_1_02_test.c | 2 +- test/regression/netxduo_test/netx_1_04_ipv6_test.c | 2 +- test/regression/netxduo_test/netx_1_04_test.c | 2 +- test/regression/netxduo_test/netx_1_17_test.c | 2 +- test/regression/netxduo_test/netx_1_18_test.c | 2 +- test/regression/netxduo_test/netx_23_02_01_test.c | 2 +- test/regression/netxduo_test/netx_23_02_02_test.c | 4 +- test/regression/netxduo_test/netx_23_02_03_test.c | 4 +- test/regression/netxduo_test/netx_23_02_04_test.c | 4 +- test/regression/netxduo_test/netx_3_04_test.c | 12 +- test/regression/netxduo_test/netx_3_17_test.c | 2 +- test/regression/netxduo_test/netx_3_18_test.c | 12 +- test/regression/netxduo_test/netx_3_19_test.c | 12 +- test/regression/netxduo_test/netx_3_20_test.c | 6 +- test/regression/netxduo_test/netx_3_21_test.c | 12 +- test/regression/netxduo_test/netx_3_23_test.c | 12 +- test/regression/netxduo_test/netx_5_19_test.c | 2 +- test/regression/netxduo_test/netx_5_20_test.c | 4 +- test/regression/netxduo_test/netx_5_22_test.c | 4 +- test/regression/netxduo_test/netx_5_23_test.c | 2 +- test/regression/netxduo_test/netx_5_25_test.c | 4 +- test/regression/netxduo_test/netx_6_22_01_test.c | 2 +- test/regression/netxduo_test/netx_6_22_02_test.c | 2 +- test/regression/netxduo_test/netx_6_23_test.c | 2 +- test/regression/netxduo_test/netx_6_24_test.c | 2 +- test/regression/netxduo_test/netx_6_25_test.c | 2 +- test/regression/netxduo_test/netx_8_02_test.c | 2 +- test/regression/netxduo_test/netx_9_17_test.c | 10 +- test/regression/netxduo_test/netx_9_18_test.c | 2 +- test/regression/netxduo_test/netx_9_19_01_test.c | 2 +- test/regression/netxduo_test/netx_9_19_02_test.c | 2 +- .../netxduo_test/netx_arp_auto_entry_test.c | 2 +- .../netxduo_test/netx_arp_invalid_type_test.c | 2 +- .../netx_arp_no_duplicate_entry_test.c | 10 +- .../netxduo_test/netx_forward_multicast_test.c | 2 +- .../netxduo_test/netx_icmp_multiple_ping6_test2.c | 2 +- .../netx_icmp_send_error_message_test_1.c | 2 +- .../netxduo_test/netx_icmpv6_error_test.c | 6 +- .../netxduo_test/netx_icmpv6_invalid_length_test.c | 2 +- .../netx_icmpv6_invalid_length_test2.c | 2 +- .../netxduo_test/netx_icmpv6_invalid_na.c | 2 +- .../netxduo_test/netx_icmpv6_mtu_option_test.c | 2 +- test/regression/netxduo_test/netx_icmpv6_na_test.c | 6 +- .../netx_icmpv6_ra_address_full_test.c | 4 +- .../netxduo_test/netx_icmpv6_ra_router_full_test.c | 4 +- .../netxduo_test/netx_icmpv6_redirect_test.c | 6 +- .../netxduo_test/netx_icmpv6_solicitated_ra_test.c | 4 +- .../netxduo_test/netx_igmp_branch_test.c | 2 +- .../netx_igmp_checksum_computation_test.c | 2 +- ...netx_igmp_interface_indirect_report_send_test.c | 2 +- .../netxduo_test/netx_igmp_router_query_test.c | 10 +- .../netx_ip_address_conflict_detection_test.c | 2 +- test/regression/netxduo_test/netx_ip_branch_test.c | 2 +- .../netx_ip_fragmentation_packet_copy_test.c | 2 +- .../netx_ip_fragmentation_packet_delay_test.c | 2 +- .../netx_ip_fragmentation_packet_drop_test.c | 4 +- ...x_ip_fragmentation_time_exceeded_message_test.c | 12 +- ..._fragmentation_wrong_destination_address_test.c | 2 +- ...tx_ip_fragmentation_wrong_protocol_field_test.c | 2 +- ...x_ip_fragmentation_wrong_protocol_field_test2.c | 4 +- .../netxduo_test/netx_ip_gateway_address_test.c | 2 +- .../netxduo_test/netx_ip_idle_scan_test.c | 2 +- .../netxduo_test/netx_ipv6_branch_test.c | 2 +- .../netx_ipv6_fragmentation_error_test1.c | 8 +- .../netx_ipv6_fragmentation_error_test2.c | 10 +- .../netx_ipv6_hop_by_hop_fragment_test.c | 2 +- .../netx_ipv6_invalid_packet_receive_test.c | 2 +- .../netxduo_test/netx_ipv6_multicast_ping_test1.c | 12 +- test/regression/netxduo_test/netx_ipv6_pmtu_test.c | 2 +- .../netxduo_test/netx_low_watermark_test.c | 2 +- .../netxduo_test/netx_tcp_ack_check_issue_test.c | 2 +- .../netx_tcp_advertised_window_update_test.c | 4 +- .../regression/netxduo_test/netx_tcp_branch_test.c | 46 +- .../netx_tcp_delayed_retransmission_test.c | 2 +- .../netx_tcp_delayed_retransmission_test2.c | 2 +- .../netxduo_test/netx_tcp_dropped_packet_test2.c | 2 +- .../netxduo_test/netx_tcp_duplicate_accept_test.c | 2 +- .../netx_tcp_ipv6_basic_processing_test.c | 2 +- .../netx_tcp_ipv6_delayed_retransmission_test.c | 2 +- .../netx_tcp_ipv6_interface2_mss_test.c | 2 +- .../netxduo_test/netx_tcp_keepalive_test.c | 4 +- .../netxduo_test/netx_tcp_multiple_send_test2.c | 2 +- .../netx_tcp_new_reno_algorithm_test4.c | 2 +- .../netx_tcp_new_reno_algorithm_test5.c | 2 +- .../netxduo_test/netx_tcp_odd_window_test.c | 2 +- .../netx_tcp_overlapping_packet_test.c | 2 +- .../netx_tcp_overlapping_packet_test_10.c | 2 +- .../netx_tcp_overlapping_packet_test_11.c | 2 +- .../netx_tcp_overlapping_packet_test_12.c | 2 +- .../netx_tcp_overlapping_packet_test_13.c | 2 +- .../netx_tcp_overlapping_packet_test_14.c | 2 +- .../netx_tcp_overlapping_packet_test_15.c | 6 +- .../netx_tcp_overlapping_packet_test_16.c | 2 +- .../netx_tcp_overlapping_packet_test_17.c | 2 +- .../netx_tcp_overlapping_packet_test_18.c | 2 +- .../netx_tcp_overlapping_packet_test_2.c | 2 +- .../netx_tcp_overlapping_packet_test_3.c | 2 +- .../netx_tcp_overlapping_packet_test_4.c | 2 +- .../netx_tcp_overlapping_packet_test_5.c | 2 +- .../netx_tcp_overlapping_packet_test_6.c | 2 +- .../netx_tcp_overlapping_packet_test_7.c | 4 +- .../netx_tcp_overlapping_packet_test_8.c | 2 +- .../netx_tcp_overlapping_packet_test_9.c | 2 +- .../netxduo_test/netx_tcp_race_condition_test2.c | 6 +- .../netxduo_test/netx_tcp_send_fail_test2.c | 2 +- .../netxduo_test/netx_tcp_send_fail_test3.c | 2 +- .../netxduo_test/netx_tcp_window_update_test.c | 4 +- .../netx_tcp_wrapping_sequence_test2.c | 6 +- .../netx_tcp_wrapping_sequence_test3.c | 6 +- .../netx_tcp_wrapping_sequence_test4.c | 8 +- .../netx_tcp_zero_window_probe_2_test.c | 2 +- .../regression/netxduo_test/netx_udp_branch_test.c | 2 +- .../netxduo_test/netx_udp_packet_receive_test.c | 2 +- .../netxduo_test/netx_udp_port_table_udpate_test.c | 2 +- .../hash_clone/nx_crypto_ciphersuites_hc.c | 6 +- test/regression/nx_secure_test/key_usage_certs.c | 10 +- .../nx_crypto_ciphersuites_regression.c | 12 +- ...ecure_dtls_retransmit_change_cipher_spec_test.c | 2 +- .../nx_secure_dtls_sliding_window_test.c | 4 +- .../nx_secure_expiration_time_test.c | 2 +- ...cure_tls_1_3_clienthello_length_checking_test.c | 2 +- .../nx_secure_tls_1_3_hello_retry_cookie_test.c | 2 +- .../nx_secure_tls_1_3_key_share_test.c | 2 +- ...cure_tls_1_3_serverhello_length_checking_test.c | 2 +- .../nx_secure_test/nx_secure_tls_alert_test.c | 16 +- .../nx_secure_tls_cert_callback_fail_test.c | 8 +- .../nx_secure_tls_client_handshake_test.c | 2 +- .../nx_secure_test/nx_secure_tls_coverage_2_test.c | 2 +- .../nx_secure_test/nx_secure_tls_coverage_test.c | 2 +- ...nx_secure_tls_ecc_generate_keys_coverage_test.c | 2 +- ...x_secure_tls_empty_clienthello_extension_test.c | 2 +- .../nx_secure_tls_error_checking_test.c | 4 +- .../nx_secure_tls_handshake_fail_test.c | 4 +- ...x_secure_tls_handshake_fragmentation_ecc_test.c | 6 +- .../nx_secure_tls_handshake_fragmentation_test.c | 2 +- .../nx_secure_test/nx_secure_tls_hash_clone_test.c | 2 +- .../nx_secure_tls_no_client_cert_test.c | 8 +- .../nx_secure_test/nx_secure_tls_nxe_api_test.c | 2 +- .../nx_secure_tls_packet_chain_test.c | 2 +- .../nx_secure_tls_rsa_private_key_test.c | 2 +- ...x_secure_tls_server_ciphersuite_priority_test.c | 4 +- ..._secure_tls_session_renegotiate_coverage_test.c | 2 +- .../nx_secure_tls_session_start_test.c | 2 +- .../nx_secure_tls_tcp_fragment_test.c | 2 +- .../nx_secure_test/nx_secure_tls_two_way_test.c | 4 +- .../nx_secure_tls_two_way_test_version_1_1.c | 8 +- .../pop3_test/netx_pop3_abnormal_packet_test.c | 6 +- .../pop3_test/netx_pop3_mail_receive_test.c | 16 +- .../netx_pop3_packet_with_endmarker_test.c | 14 +- .../pop3_test/netx_pop3_two_mails_received_test.c | 16 +- test/regression/ppp_test/netx_ppp_IPCP_nak_test.c | 2 +- .../ppp_test/netx_ppp_IPCP_retransmit_test.c | 2 +- test/regression/ppp_test/netx_ppp_IPCP_timeout.c | 6 +- test/regression/ppp_test/netx_ppp_LCP_timeout.c | 12 +- .../ppp_test/netx_ppp_PAP_bad_password_test.c | 2 +- .../ppp_test/netx_ppp_PAP_bad_username_test.c | 2 +- .../ppp_test/netx_ppp_acfc_option_test.c | 2 +- .../netx_ppp_chap_bad_secret_failed_retry_test.c | 4 +- ...netx_ppp_chap_bad_secret_passed_on_retry_test.c | 4 +- .../ppp_test/netx_ppp_check_boundary_test.c | 4 +- test/regression/ppp_test/netx_ppp_pap_basic_test.c | 2 +- .../netx_ppp_pap_null_name_password_test.c | 2 +- .../regression/ppp_test/netx_ppp_pfc_option_test.c | 2 +- .../ppp_test/netx_ppp_request_dns_server_test.c | 4 +- .../pppoe_test/netx_pppoe_ac_name_test.c | 10 +- .../pppoe_test/netx_pppoe_api_extended_test.c | 4 +- test/regression/pppoe_test/netx_pppoe_api_test.c | 4 +- test/regression/pppoe_test/netx_pppoe_basic_test.c | 10 +- .../pppoe_test/netx_pppoe_session_control_test.c | 10 +- .../ptp_test/netx_ptp_client_ipv6_test.c | 2 +- test/regression/ptp_test/netx_ptp_utility.c | 2 +- .../smtp_test/netx_smtp_abnormal_packet_test.c | 2 +- .../smtp_test/netx_smtp_auth_logon_function_test.c | 2 +- .../netx_smtp_auth_no_type_function_test.c | 2 +- .../smtp_test/netx_smtp_auth_no_type_test.c | 2 +- .../smtp_test/netx_smtp_auth_none_test.c | 4 +- .../smtp_test/netx_smtp_basic_function_test.c | 2 +- .../smtp_test/netx_smtp_invalid_release_test.c | 2 +- .../netx_smtp_missing_last_250_EHLO_message_test.c | 4 +- ...x_smtp_two_packet_EHLO_auth_last_message_test.c | 6 +- .../netx_smtp_two_packet_EHLO_message_test.c | 6 +- .../snmp_test/netx_snmp_abnormal_packet_test.c | 4 +- .../regression/snmp_test/netx_snmp_basic_v2_test.c | 8 +- .../netx_snmp_no_security_function_test.c | 12 +- .../snmp_test/netx_snmp_setget_integers_test.c | 6 +- .../snmp_test/netx_snmp_setget_ip_address_test.c | 6 +- .../snmp_test/netx_snmp_setget_misc_test.c | 8 +- .../netx_snmp_setget_octet_strings_test.c | 6 +- .../snmp_test/netx_snmp_v1_buffer_overwrite_test.c | 4 +- .../netx_snmp_v1_object_id_buffer_overwrite_test.c | 4 +- .../netx_snmp_v1_packet_double_release_test.c | 4 +- .../snmp_test/netx_snmp_v2_buffer_overwrite_test.c | 4 +- .../snmp_test/netx_snmp_v2_get_bulk_request_test.c | 6 +- .../snmp_test/netx_snmp_v2_send_trap_test.c | 2 +- .../snmp_test/netx_snmp_v2_unknown_oid_test.c | 6 +- .../snmp_test/netx_snmp_v3_buffer_overwrite_test.c | 4 +- ...etx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c | 4 +- ...etx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c | 4 +- ..._v3_encrypt_pdu_padding_buffer_overwrite_test.c | 4 +- .../netx_snmp_v3_md5_failed_security_test.c | 10 +- .../netx_snmp_v3_md5_security_extended_test.c | 6 +- .../snmp_test/netx_snmp_v3_md5_security_test.c | 6 +- .../netx_snmp_v3_no_security_function_test.c | 6 +- .../snmp_test/netx_snmp_v3_nosec_traplist_test.c | 4 +- .../netx_snmp_v3_object_id_buffer_overwrite_test.c | 4 +- test/regression/snmp_test/small_mib_helper.c | 4 +- test/regression/snmp_test/small_mib_helper.h | 2 +- test/regression/snmp_test/snmp_manager_packets.c | 8 +- .../netx_sntp_client_unicast_display_date_test.c | 4 +- .../netx_sntp_forward_unicast_update_test.c | 10 +- .../sntp_test/netx_sntp_request_unicast_test.c | 6 +- .../tahi_test/netx_tahi_dhcpv6_test_01_002.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_003.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_004.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_005.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_006.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_007.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_008.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_009.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_010.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_011.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_012.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_013.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_014.c | 4 +- .../tahi_test/netx_tahi_dhcpv6_test_01_019.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_020.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_021.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_022.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_023.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_024.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_025.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_026.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_027.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_028.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_029.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_030.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_031.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_032.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_033.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_034.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_035.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_036.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_037.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_038.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_039.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_040.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_041.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_042.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_043.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_044.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_045.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_046.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_047.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_048.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_049.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_050.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_051.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_052.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_053.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_054.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_055.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_056.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_057.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_058.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_059.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_060.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_061.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_062.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_063.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_064.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_065.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_066.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_067.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_068.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_069.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_070.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_071.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_072.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_073.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_074.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_075.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_076.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_077.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_078.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_079.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_080.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_081.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_082.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_083.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_084.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_085.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_086.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_087.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_088.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_089.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_090.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_091.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_092.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_093.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_094.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_095.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_096.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_097.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_098.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_01_099.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_002.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_003.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_004.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_005.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_006.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_007.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_008.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_009.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_010.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_012.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_013.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_014.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_015.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_016.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_017.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_018.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_019.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_020.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_021.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_022.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_026.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_04_027.c | 4 +- .../tahi_test/netx_tahi_dhcpv6_test_07_002.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_003.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_004.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_005.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_006.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_007.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_008.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_009.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_010.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_011.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_012.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_013.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_014.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_015.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_016.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_017.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_018.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_019.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_020.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_021.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_022.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_023.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_024.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_025.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_026.c | 2 +- .../tahi_test/netx_tahi_dhcpv6_test_07_027.c | 4 +- .../regression/tahi_test/netx_tahi_run_test_case.c | 2 +- test/regression/tahi_test/tahi_01_008.c | 50 +- test/regression/tahi_test/tahi_01_013.c | 50 +- test/regression/tahi_test/tahi_01_047.c | 2 +- test/regression/tahi_test/tahi_04_005.c | 2 +- .../netx_telnet_activity_timeout_test.c | 10 +- .../telnet_test/netx_telnet_basic_test.c | 6 +- .../netx_telnet_create_packet_pool_test.c | 12 +- .../telnet_test/netx_telnet_max_connections_test.c | 10 +- .../netx_telnet_server_bad_option_reply_test.c | 12 +- .../netx_telnet_server_options_negotiate_test.c | 10 +- test/regression/test/netxtestcontrol.c | 2 +- .../test/nx_ram_network_driver_test_1500.c | 146 +- test/regression/tftp_test/netx_tftp_basic_test.c | 12 +- .../netx_tftp_error_destionation_port_test.c | 12 +- .../tftp_test/netx_tftp_error_file_name_test.c | 12 +- .../tftp_test/netx_tftp_ipv6_basic_test.c | 12 +- .../tftp_test/netx_tftp_large_data_test.c | 12 +- .../tftp_test/netx_tftp_malformed_packet_test.c | 12 +- .../tftp_test/netx_tftp_read_interaction_test.c | 12 +- .../tftp_test/netx_tftp_write_interaction_test.c | 12 +- test/regression/web_test/netx_web_abnormal_test.c | 2 +- .../netx_web_basic_authenticate_empty_test.c | 2 +- .../web_test/netx_web_basic_authenticate_test.c | 2 +- test/regression/web_test/netx_web_basic_test.c | 6 +- .../web_test/netx_web_certifiacte_verify_test.c | 2 +- .../netx_web_chunked_request_additional_test.c | 2 +- .../web_test/netx_web_chunked_request_test.c | 2 +- .../netx_web_chunked_response_packet_chain_test.c | 2 +- .../netx_web_chunked_response_process_test.c | 2 +- .../web_test/netx_web_chunked_response_test.c | 2 +- .../web_test/netx_web_client_cleanup_test.c | 2 +- .../netx_web_client_receive_no_packet_test.c | 2 +- .../regression/web_test/netx_web_client_rst_test.c | 2 +- .../web_test/netx_web_concurrent_sessions_test.c | 2 +- .../web_test/netx_web_connect_three_times_test.c | 4 +- .../web_test/netx_web_delete_basic_test.c | 2 +- .../web_test/netx_web_digest_authenticate_test.c | 4 +- .../web_test/netx_web_digest_authenticate_test2.c | 4 +- .../netx_web_digest_authenticate_timeout_test.c | 4 +- .../web_test/netx_web_external_client_test.c | 2 +- .../web_test/netx_web_get_content_length_test.c | 2 +- .../web_test/netx_web_get_put_referred_URI_test.c | 4 +- .../regression/web_test/netx_web_head_basic_test.c | 2 +- test/regression/web_test/netx_web_http_demo_test.c | 14 +- .../regression/web_test/netx_web_https_demo_test.c | 10 +- .../web_test/netx_web_if_modified_since_test.c | 12 +- .../web_test/netx_web_invalid_release_test.c | 2 +- .../web_test/netx_web_multipart_fragment_test.c | 2 +- .../web_test/netx_web_multipart_underflow_test.c | 2 +- .../netx_web_multiple_sessions_timeout_test.c | 4 +- .../regression/web_test/netx_web_post_basic_test.c | 2 +- .../web_test/netx_web_post_long_message_test.c | 2 +- test/regression/web_test/netx_web_put_basic_test.c | 2 +- .../netx_web_request_in_multiple_packets_test.c | 2 +- .../netx_web_response_in_multiple_packets_test.c | 2 +- .../web_test/netx_web_secure_connect_fail_test.c | 4 +- .../netx_web_server_chunked_content_process_test.c | 2 +- .../netx_web_server_content_process_test.c | 4 +- .../regression/web_test/netx_web_status_400_test.c | 12 +- .../regression/web_test/netx_web_status_404_test.c | 6 +- .../regression/web_test/netx_web_status_501_test.c | 6 +- .../websocket_test/netx_websocket_common_process.c | 2 +- tsn/inc/nx_mrp.h | 12 +- tsn/inc/nx_msrp.h | 6 +- tsn/inc/nx_mvrp.h | 12 +- tsn/inc/nx_shaper.h | 12 +- tsn/inc/nx_srp.h | 6 +- tsn/src/nx_mrp.c | 120 +- tsn/src/nx_msrp.c | 114 +- tsn/src/nx_mvrp.c | 54 +- tsn/src/nx_shaper.c | 102 +- tsn/src/nx_srp.c | 48 +- utility/iperf/demo_iperf.c | 6 +- utility/iperf/nx_iperf.c | 6 +- utility/iperf/nx_iperf.h | 6 +- 1753 files changed, 5851 insertions(+), 34987 deletions(-) diff --git a/addons/BSD/nxd_bsd.c b/addons/BSD/nxd_bsd.c index c705e53e..ef27b0dd 100644 --- a/addons/BSD/nxd_bsd.c +++ b/addons/BSD/nxd_bsd.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -260,20 +260,6 @@ static struct NX_BSD_SERVICE_LIST *_nx_bsd_serv_list_ptr; /* */ /* Start-up code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* 12-31-2023 Yanwu Cai Modified comment(s), and */ -/* added nx_link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ INT nx_bsd_initialize(NX_IP *default_ip, NX_PACKET_POOL *default_pool, CHAR *bsd_thread_stack_area, ULONG bsd_thread_stack_size, UINT bsd_thread_priority) @@ -509,14 +495,6 @@ ULONG info; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID nx_bsd_timeout_process() { @@ -669,14 +647,6 @@ NX_BSD_SOCKET *bsd_socket_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_BSD_TIMEOUT_PROCESS_IN_TIMER @@ -739,17 +709,6 @@ VOID nx_bsd_thread_entry(ULONG info) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_socket(INT protocolFamily, INT type, INT protocol) { @@ -1292,17 +1251,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_connect(INT sockID, struct nx_bsd_sockaddr *remoteAddress, INT addressLength) { @@ -1837,17 +1785,6 @@ ULONG actual_status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_bind(INT sockID, const struct nx_bsd_sockaddr *localAddress, INT addressLength) { @@ -2439,17 +2376,6 @@ INT address_conflict; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_listen(INT sockID, INT backlog) { @@ -2695,18 +2621,6 @@ INT ret; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_accept(INT sockID, struct nx_bsd_sockaddr *ClientAddress, INT *addressLength) { @@ -3175,17 +3089,6 @@ struct nx_bsd_sockaddr_in6 /* send */ /* sendto */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* supported random IP id, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static INT nx_bsd_send_internal(INT sockID, const CHAR *msg, INT msgLength, INT flags, NXD_ADDRESS *dst_address, USHORT dst_port, UINT local_interface_index) @@ -3628,17 +3531,6 @@ ULONG data_sent = (ULONG)msgLength; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_send(INT sockID, const CHAR *msg, INT msgLength, INT flags) { @@ -3789,17 +3681,6 @@ NX_BSD_SOCKET *bsd_socket_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_sendto(INT sockID, CHAR *msg, INT msgLength, INT flags, struct nx_bsd_sockaddr *destAddr, INT destAddrLen) { @@ -4036,18 +3917,6 @@ USHORT peer_port = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_recv(INT sockID, VOID *rcvBuffer, INT bufferLength, INT flags) { @@ -4104,21 +3973,6 @@ struct nx_bsd_iovec iov; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* 12-31-2023 Yanwu Cai Modified comment(s), and */ -/* added nx_bsd_recv_internal, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ INT nx_bsd_recvfrom(INT sockID, CHAR *rcvBuffer, INT bufferLength, INT flags, struct nx_bsd_sockaddr *fromAddr, INT *fromAddrLen) { @@ -4167,12 +4021,6 @@ struct nx_bsd_iovec iov; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yanwu Cai Initial Version 6.4.0 */ -/* */ /**************************************************************************/ INT nx_bsd_recvmsg(INT sockID, struct nx_bsd_msghdr *msg, INT flags) { @@ -4249,12 +4097,6 @@ INT fromAddrLen = 0; /* recvmsg */ /* recvfrom */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yanwu Cai Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static INT nx_bsd_recv_internal(INT sockID, struct nx_bsd_iovec *iov, size_t iovlen, INT flags, struct nx_bsd_sockaddr *fromAddr, INT *fromAddrLen) { @@ -4935,17 +4777,6 @@ struct nx_bsd_sockaddr_in6 /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_soc_close(INT sockID) { @@ -5396,17 +5227,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_fcntl(INT sockID, UINT flag_type, UINT f_options) { @@ -5512,24 +5332,6 @@ NX_BSD_SOCKET *bsd_socket_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Wenhui Xie Modified comment(s), corrected*/ -/* the result of FIONREAD, */ -/* resulting in version 6.2.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* 12-31-2023 Yanwu Cai Modified comment(s), and */ -/* added SIOCGIFINDEX and */ -/* SIOCGIFHWADDR commands, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ INT nx_bsd_ioctl(INT sockID, INT command, INT *result) { @@ -5771,17 +5573,6 @@ NX_INTERFACE *nx_interface; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ CHAR *nx_bsd_inet_ntoa(struct nx_bsd_in_addr address_to_convert) { @@ -5838,14 +5629,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT bsd_number_convert(UINT number, CHAR *string, ULONG buffer_len, UINT base) { @@ -5942,17 +5725,6 @@ UINT size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_inet_aton(const CHAR *address_buffer_ptr, struct nx_bsd_in_addr *addr) { @@ -6223,17 +5995,6 @@ UINT dot_flag; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ nx_bsd_in_addr_t nx_bsd_inet_addr(const CHAR *buffer) { @@ -6290,17 +6051,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_getsockopt(INT sockID, INT option_level, INT option_name, VOID *option_value, INT *option_length) { @@ -6627,21 +6377,6 @@ ULONG ticks; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* 12-31-2023 Yanwu Cai Modified comment(s), and */ -/* added PACKET_ADD_MEMBERSHIP */ -/* and PACKET_DROP_MEMBERSHIP, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ INT nx_bsd_setsockopt(INT sockID, INT option_level, INT option_name, const VOID *option_value, INT option_length) { @@ -7315,18 +7050,6 @@ ULONG physical_addr_lsw; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_getsockname(INT sockID, struct nx_bsd_sockaddr *localAddress, INT *addressLength) { @@ -7549,17 +7272,6 @@ NX_BSD_SOCKET *bsd_socket_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_getpeername(INT sockID, struct nx_bsd_sockaddr *remoteAddress, INT *addressLength) { @@ -7884,17 +7596,6 @@ struct nx_bsd_sockaddr_in6 *soc6_struct_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_select(INT nfds, nx_bsd_fd_set *readfds, nx_bsd_fd_set *writefds, nx_bsd_fd_set *exceptfds, struct nx_bsd_timeval *timeout) { @@ -8353,14 +8054,6 @@ INT ret; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID nx_bsd_tcp_receive_notify(NX_TCP_SOCKET *socket_ptr) { @@ -8431,14 +8124,6 @@ UINT bsd_socket_index; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_DISABLE_EXTENDED_NOTIFY_SUPPORT static VOID nx_bsd_tcp_establish_notify(NX_TCP_SOCKET *socket_ptr) @@ -8551,14 +8236,6 @@ UINT master_socket_index; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID nx_bsd_tcp_socket_disconnect_notify(NX_TCP_SOCKET *socket_ptr) { @@ -8711,14 +8388,6 @@ UINT status; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID nx_bsd_udp_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -8780,17 +8449,6 @@ NX_UDP_SOCKET *udp_socket_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID NX_BSD_FD_SET(INT fd, nx_bsd_fd_set *fdset) { @@ -8860,17 +8518,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID NX_BSD_FD_CLR(INT fd, nx_bsd_fd_set *fdset) { @@ -8942,14 +8589,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT NX_BSD_FD_ISSET(INT fd, nx_bsd_fd_set *fdset) { @@ -9019,17 +8658,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID NX_BSD_FD_ZERO(nx_bsd_fd_set *fdset) { @@ -9088,18 +8716,6 @@ INT i; /* */ /* NetX Duo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed NULL pointer access */ -/* for raw socket, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ static UINT nx_bsd_raw_packet_filter(NX_IP *ip_ptr, ULONG protocol, NX_PACKET *packet_ptr) { @@ -9243,14 +8859,6 @@ NX_BSD_SOCKET * bsd_socket_ptr; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID nx_bsd_raw_receive_notify(NX_IP *ip_ptr, UINT bsd_socket_index) { @@ -9300,17 +8908,6 @@ VOID nx_bsd_raw_receive_notify(NX_IP *ip_ptr, UINT bsd_socket_index) /* recv Checks the specified socket for */ /* received packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT nx_bsd_raw_packet_receive(NX_BSD_SOCKET *bsd_socket_ptr, NX_PACKET **packet_ptr) { @@ -9405,14 +9002,6 @@ UINT nx_bsd_raw_packet_receive(NX_BSD_SOCKET *bsd_socket_ptr, NX_PACKET **packet /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT nx_bsd_raw_packet_info_extract(NX_PACKET *packet_ptr, NXD_ADDRESS *address, UINT *interface_index) { @@ -9524,14 +9113,6 @@ NX_INTERFACE *if_ptr = NX_NULL; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID nx_bsd_socket_timed_wait_callback(NX_TCP_SOCKET *tcp_socket_ptr) { @@ -9582,15 +9163,6 @@ VOID nx_bsd_socket_timed_wait_callback(NX_TCP_SOCKET *tcp_socket_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_BSD_INCLUDE_DATA_EXTRACT_OFFSET UINT nx_packet_data_extract_offset(NX_PACKET *packet_ptr, ULONG offset, VOID *buffer_start, ULONG buffer_length, ULONG *bytes_copied) @@ -9746,14 +9318,6 @@ NX_PACKET *working_packet_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_BSD_TIMEOUT_PROCESS_IN_TIMER VOID nx_bsd_timer_entry(ULONG info) @@ -9797,14 +9361,6 @@ VOID nx_bsd_timer_entry(ULONG info) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT nx_bsd_socket_set_inherited_settings(UINT master_sock_id, UINT secondary_sock_id) { @@ -9872,14 +9428,6 @@ UINT nx_bsd_socket_set_inherited_settings(UINT master_sock_id, UINT secondary_so /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT nx_bsd_isspace(UCHAR c) { @@ -9932,14 +9480,6 @@ static UINT nx_bsd_isspace(UCHAR c) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT nx_bsd_islower(UCHAR c) { @@ -9987,14 +9527,6 @@ static UINT nx_bsd_islower(UCHAR c) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT nx_bsd_isdigit(UCHAR c) { @@ -10042,14 +9574,6 @@ static UINT nx_bsd_isdigit(UCHAR c) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT nx_bsd_isxdigit(UCHAR c) { @@ -10107,17 +9631,6 @@ static UINT nx_bsd_isxdigit(UCHAR c) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID nx_bsd_set_errno(INT tx_errno) { @@ -10168,14 +9681,6 @@ TX_THREAD *current_thread_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT _nxd_get_errno() { @@ -10237,17 +9742,6 @@ TX_THREAD *current_thread_ptr; /* nx_bsd_raw_receive_notify */ /* nx_bsd_udp_packet_received */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static VOID nx_bsd_select_wakeup(UINT sock_id, UINT fd_sets) { @@ -10384,17 +9878,6 @@ INT bsd_sock_id; /* connect */ /* bind */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static VOID nx_bsd_set_error_code(NX_BSD_SOCKET *bsd_socket_ptr, UINT status_code) { @@ -10503,14 +9986,6 @@ static VOID nx_bsd_set_error_code(NX_BSD_SOCKET *bsd_socket_ptr, UINT status_cod /* */ /* nx_bsd_udp_receive_notify */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID nx_bsd_udp_packet_received(INT sockID, NX_PACKET *packet_ptr) { @@ -10727,14 +10202,6 @@ NX_INTERFACE *interface_ptr; /* */ /* NetX Duo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT nx_bsd_tcp_syn_received_notify(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr) { @@ -10878,17 +10345,6 @@ NX_INTERFACE *interface_ptr; /* */ /* NetX Duo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static INT nx_bsd_tcp_create_listen_socket(INT master_sockid, INT backlog) { @@ -11116,14 +10572,6 @@ INT secondary_sockID = NX_BSD_MAX_SOCKETS; /* */ /* NetX Duo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID nx_bsd_tcp_pending_connection(UINT local_port, NX_TCP_SOCKET *socket_ptr) { @@ -11219,14 +10667,6 @@ UINT ret; /* */ /* nx_bsd_send_internal */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static INT nx_bsd_find_interface_by_source_addr(UINT addr_family, ULONG* ip_addr) { @@ -11320,14 +10760,6 @@ ULONG ipv6_addr[4]; /* */ /* nx_bsd_send_internal */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_bsd_ipv4_packet_send(NX_PACKET *packet_ptr) { @@ -12217,14 +11649,6 @@ ULONG destination_ip; /* */ /* nx_bsd_send_internal */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_bsd_ipv6_packet_send(NX_PACKET *packet_ptr, ULONG *src_addr, ULONG *dest_addr) { @@ -12729,14 +12153,6 @@ NX_IP *ip_ptr; /* */ /* NetX Duo BSD Layer Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_bsd_swap_ipv6_extension_headers(NX_PACKET *packet_ptr, UCHAR header_type) { @@ -12835,17 +12251,6 @@ NX_IPV6_HEADER_OPTION *option; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static INT nx_bsd_pppoe_internal_sendto(NX_BSD_SOCKET *bsd_socket_ptr, CHAR *msg, INT msgLength, INT flags, struct nx_bsd_sockaddr* destAddr, INT destAddrLen) { @@ -13043,14 +12448,6 @@ NX_PACKET *packet_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_bsd_pppoe_packet_received(NX_PACKET *packet_ptr, UINT frame_type, UINT interface_id) { @@ -13158,17 +12555,6 @@ NX_BSD_SOCKET *bsd_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yanwu Cai Modified comment(s), */ -/* added nx_link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static INT _nx_bsd_hardware_internal_sendto(NX_BSD_SOCKET *bsd_socket_ptr, CHAR *msg, INT msgLength, INT flags, struct nx_bsd_sockaddr* destAddr, INT destAddrLen) { @@ -13341,14 +12727,6 @@ NX_PACKET *packet_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_bsd_hardware_packet_received(NX_PACKET *packet_ptr, UCHAR *consumed) { @@ -13458,12 +12836,6 @@ NX_BSD_SOCKET *bsd_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yanwu Cai Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static UINT _nx_bsd_ethernet_receive_notify(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, ULONG physical_address_msw, ULONG physical_address_lsw, @@ -13582,17 +12954,6 @@ NX_BSD_SOCKET *bsd_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_inet_pton(INT af, const CHAR *src, VOID *dst) { @@ -13852,17 +13213,6 @@ struct nx_bsd_in_addr ipv4_addr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ const CHAR *nx_bsd_inet_ntop(INT af, const VOID *src, CHAR *dst, nx_bsd_socklen_t size) { @@ -14073,14 +13423,6 @@ UINT rt_size; /* */ /* NetX Duo BSD Layer Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static INT inet_ntoa_internal(const VOID *src, CHAR *dst, ULONG dst_size) @@ -14209,23 +13551,6 @@ UINT index = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* fixed compiler errors, */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_getaddrinfo(const CHAR *node, const CHAR *service, const struct nx_bsd_addrinfo *hints, struct nx_bsd_addrinfo **res) { @@ -14801,17 +14126,6 @@ static struct nx_bsd_addrinfo default_hints = {0, AF_UNSPEC, 0, 0, 0, NX_NULL, N /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID nx_bsd_freeaddrinfo(struct nx_bsd_addrinfo *res) { @@ -14887,14 +14201,6 @@ CHAR *ai_canonname_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static INT bsd_string_to_number(const CHAR *string, UINT *number) { @@ -14957,18 +14263,6 @@ static INT bsd_string_to_number(const CHAR *string, UINT *number) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* used new API/structs naming,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_getnameinfo(const struct nx_bsd_sockaddr *sa, nx_bsd_socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) { @@ -15188,14 +14482,6 @@ const CHAR *rt_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID nx_bsd_set_service_list(struct NX_BSD_SERVICE_LIST *serv_list_ptr, ULONG serv_list_len) { @@ -15234,14 +14520,6 @@ VOID nx_bsd_set_service_list(struct NX_BSD_SERVICE_LIST *serv_list_ptr, ULONG se /* */ /* NetX Duo BSD Layer Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_bsd_string_length(CHAR * string) { @@ -15290,14 +14568,6 @@ int length = 0; /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_bsd_fast_periodic_timer_entry(ULONG id) { @@ -15366,12 +14636,6 @@ static VOID _nx_bsd_fast_periodic_timer_entry(ULONG id) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Chaoqiong Xiao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ INT nx_bsd_poll(struct nx_bsd_pollfd *fds, ULONG nfds, INT timeout) { diff --git a/addons/BSD/nxd_bsd.h b/addons/BSD/nxd_bsd.h index 65d3f2e3..a35fee4d 100644 --- a/addons/BSD/nxd_bsd.h +++ b/addons/BSD/nxd_bsd.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,29 +36,6 @@ /* implement the BSD 4.3 Socket API Compatible Interface to NetX Duo. */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.5 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* defined IP protocols for */ -/* ICMP, IGMP and ICMPv6, */ -/* resulting in version 6.1.9 */ -/* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ -/* added option to enable */ -/* native APIs with prefix, */ -/* resulting in version 6.3.0 */ -/* 12-31-2023 Yanwu Cai Modified comment(s), and */ -/* added support of recvmsg, */ -/* added nx_link to raw socket,*/ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NXD_BSD_H diff --git a/addons/auto_ip/nx_auto_ip.c b/addons/auto_ip/nx_auto_ip.c index f560d27b..1a2d8fd3 100644 --- a/addons/auto_ip/nx_auto_ip.c +++ b/addons/auto_ip/nx_auto_ip.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,14 +86,6 @@ static NX_AUTO_IP *_nx_auto_ip_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_auto_ip_create(NX_AUTO_IP *auto_ip_ptr, CHAR *name, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, UINT priority) { @@ -155,14 +147,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_auto_ip_create(NX_AUTO_IP *auto_ip_ptr, CHAR *name, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, UINT priority) { @@ -250,14 +234,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_auto_ip_set_interface(NX_AUTO_IP *auto_ip_ptr, UINT interface_index) { @@ -312,14 +288,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_auto_ip_set_interface(NX_AUTO_IP *auto_ip_ptr, UINT interface_index) { @@ -373,14 +341,6 @@ UINT _nx_auto_ip_set_interface(NX_AUTO_IP *auto_ip_ptr, UINT interface_index) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_auto_ip_get_address(NX_AUTO_IP *auto_ip_ptr, ULONG *local_ip_address) { @@ -432,14 +392,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_auto_ip_get_address(NX_AUTO_IP *auto_ip_ptr, ULONG *local_ip_address) { @@ -505,14 +457,6 @@ NX_IP *ip_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_auto_ip_start(NX_AUTO_IP *auto_ip_ptr, ULONG starting_local_address) { @@ -572,14 +516,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_auto_ip_start(NX_AUTO_IP *auto_ip_ptr, ULONG starting_local_address) { @@ -633,14 +569,6 @@ UINT _nx_auto_ip_start(NX_AUTO_IP *auto_ip_ptr, ULONG starting_local_address) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_auto_ip_stop(NX_AUTO_IP *auto_ip_ptr) { @@ -694,14 +622,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_auto_ip_stop(NX_AUTO_IP *auto_ip_ptr) { @@ -748,14 +668,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_auto_ip_delete(NX_AUTO_IP *auto_ip_ptr) { @@ -811,14 +723,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_auto_ip_delete(NX_AUTO_IP *auto_ip_ptr) { @@ -894,17 +798,6 @@ NX_IP *ip_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ VOID _nx_auto_ip_thread_entry(ULONG auto_ip_ptr_info) { @@ -926,7 +819,7 @@ ULONG host_ip_address; /* Pickup the associated IP pointer. */ ip_ptr = auto_ip_ptr -> nx_auto_ip_ip_ptr; - /* Wait for the IP instance to be initialized before proceeding. This will ensure the + /* Wait for the IP instance to be initialized before proceeding. This will ensure the MAC address is valid before a random local IP address is generated. */ nx_ip_interface_status_check(ip_ptr, auto_ip_ptr -> nx_ip_interface_index, NX_IP_LINK_ENABLED, &temp, NX_WAIT_FOREVER); @@ -945,7 +838,7 @@ ULONG host_ip_address; /* Update the local variable in case anything has changed. */ host_ip_address = ip_ptr -> nx_ip_interface[auto_ip_ptr -> nx_ip_interface_index].nx_interface_ip_address; - /* Wait until the IP address is non-zero. The only way this can be non-zero is + /* Wait until the IP address is non-zero. The only way this can be non-zero is if the application has changed it or it was resolved by the DHCP protocol. */ while (host_ip_address) { @@ -1056,8 +949,8 @@ ULONG host_ip_address; delay = (NX_IP_PERIODIC_RATE * NX_AUTO_IP_PROBE_MIN); } - /* Delay by waiting for conflict events before sending the next ARP probe. This event is - set by the conflict callback function when an ARP entry is received that matches + /* Delay by waiting for conflict events before sending the next ARP probe. This event is + set by the conflict callback function when an ARP entry is received that matches the registered address. */ status = tx_event_flags_get(&(auto_ip_ptr -> nx_auto_ip_conflict_event), 0x1, TX_OR_CLEAR, &temp, delay); @@ -1129,8 +1022,8 @@ ULONG host_ip_address; /* Calculate the delay time. */ delay = (NX_IP_PERIODIC_RATE * NX_AUTO_IP_ANNOUNCE_INTERVAL); - /* Delay by waiting for conflict events before sending the next ARP announcement. This event is - set by the conflict callback function when an ARP entry is received that matches + /* Delay by waiting for conflict events before sending the next ARP announcement. This event is + set by the conflict callback function when an ARP entry is received that matches the registered address. */ status = tx_event_flags_get(&(auto_ip_ptr -> nx_auto_ip_conflict_event), 0x1, TX_OR_CLEAR, &temp, delay); @@ -1233,14 +1126,6 @@ ULONG host_ip_address; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_auto_ip_conflict(NX_IP *ip_ptr, UINT interface_index, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) { diff --git a/addons/auto_ip/nx_auto_ip.h b/addons/auto_ip/nx_auto_ip.h index d6ca35aa..fc58c3cd 100644 --- a/addons/auto_ip/nx_auto_ip.h +++ b/addons/auto_ip/nx_auto_ip.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_AUTO_IP_H @@ -127,7 +116,7 @@ extern "C" { #define NX_AUTO_IP_BAD_INTERFACE_INDEX 0xA02 -/* Define the AutoIP structure that holds all the information necessary for this AutoIP +/* Define the AutoIP structure that holds all the information necessary for this AutoIP instance. */ typedef struct NX_AUTO_IP_STRUCT @@ -151,9 +140,9 @@ typedef struct NX_AUTO_IP_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map AutoIP API functions +/* Determine if error checking is desired. If so, map AutoIP API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/azure_iot/nx_azure_iot.c b/addons/azure_iot/nx_azure_iot.c index b6eb0208..dec1d17a 100644 --- a/addons/azure_iot/nx_azure_iot.c +++ b/addons/azure_iot/nx_azure_iot.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot.h b/addons/azure_iot/nx_azure_iot.h index 5e6a9b83..daac4136 100644 --- a/addons/azure_iot/nx_azure_iot.h +++ b/addons/azure_iot/nx_azure_iot.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,7 +69,7 @@ extern "C" { * message, at-most one format specifier can be specifed at the end of message. * Currently only two format specifier are supported: * - %d for integer -* - %s for string, where first argument is length and second is pointer to string +* - %s for string, where first argument is length and second is pointer to string */ UINT nx_azure_iot_log(UCHAR *type_ptr, UINT type_len, UCHAR *msg_ptr, UINT msg_len, ...); @@ -231,7 +231,7 @@ typedef struct NX_AZURE_IOT_THREAD_STRUCT * manage activities related to Azure IoT services. Only one NX_AZURE_IOT instance * is needed to manage instances for Azure IoT hub, IoT Central, and Device Provisioning * Services (DPS). - * + * * @param[in] nx_azure_iot_ptr A pointer to a #NX_AZURE_IOT * @param[in] name_ptr A pointer to a NULL-terminated string indicating the name of the Azure IoT instance. * @param[in] ip_ptr A pointer to a `NX_IP`, which is the IP stack used to connect to Azure IoT Services. diff --git a/addons/azure_iot/nx_azure_iot_adu_agent.c b/addons/azure_iot/nx_azure_iot_adu_agent.c index d8f2a9ae..8f1e7e21 100644 --- a/addons/azure_iot/nx_azure_iot_adu_agent.c +++ b/addons/azure_iot/nx_azure_iot_adu_agent.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -1199,7 +1199,7 @@ UCHAR *sha256_decoded_hash_64_ptr; UCHAR *sha256_decoded_hash_ptr; /* The updateManifestSignature is used to ensure that the information contained within the updateManifest - hasn't been tampered with. + hasn't been tampered with. https://docs.microsoft.com/en-us/azure/iot-hub-device-update/device-update-security#json-web-signature-jws */ /* JWS value format: BASE64URL(UTF8(header)) + "." + BASE64URL(UTF8(payload) + "." + BASE64URL(signature)). */ @@ -1322,7 +1322,7 @@ UCHAR *sha256_decoded_hash_ptr; "alg": "RS256", "kid": "ADU.200702.R" } - + Payload: { "kty": "RSA", @@ -2368,7 +2368,7 @@ NX_AZURE_IOT_ADU_AGENT_WORKFLOW *workflow = &(adu_agent_ptr -> nx_azure_iot_adu_ } } - /* File URLs. + /* File URLs. Note: 1. file urls property can exist or not. 2. file urls property value can be object. */ else if (nx_azure_iot_json_reader_token_is_text_equal(json_reader_ptr, @@ -3619,7 +3619,7 @@ UINT update_id_length; /** * @brief Send service reported properties. - * + * * @param updateState state to report. * @param result Result to report (optional, can be NULL). */ diff --git a/addons/azure_iot/nx_azure_iot_adu_agent.h b/addons/azure_iot/nx_azure_iot_adu_agent.h index bd40104a..487dea40 100644 --- a/addons/azure_iot/nx_azure_iot_adu_agent.h +++ b/addons/azure_iot/nx_azure_iot_adu_agent.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -119,13 +119,13 @@ extern "C" { #define NX_AZURE_IOT_ADU_AGENT_HTTP_CONNECT_DONE_EVENT ((ULONG)0x00000010) #define NX_AZURE_IOT_ADU_AGENT_HTTP_RECEIVE_EVENT ((ULONG)0x00000020) -/* Define the agent state values. Interaction between agent and server. +/* Define the agent state values. Interaction between agent and server. https://docs.microsoft.com/en-us/azure/iot-hub-device-update/device-update-plug-and-play#state */ #define NX_AZURE_IOT_ADU_AGENT_STATE_IDLE 0 #define NX_AZURE_IOT_ADU_AGENT_STATE_DEPLOYMENT_IN_PROGRESS 6 #define NX_AZURE_IOT_ADU_AGENT_STATE_FAILED 255 -/* Define the agent action values. Interaction between agent and server. +/* Define the agent action values. Interaction between agent and server. https://docs.microsoft.com/en-us/azure/iot-hub-device-update/device-update-plug-and-play#action */ #define NX_AZURE_IOT_ADU_AGENT_ACTION_APPLY_DEPLOYMENT 3 #define NX_AZURE_IOT_ADU_AGENT_ACTION_CANCEL 255 diff --git a/addons/azure_iot/nx_azure_iot_adu_root_key.c b/addons/azure_iot/nx_azure_iot_adu_root_key.c index 5d421c1e..585d37d3 100644 --- a/addons/azure_iot/nx_azure_iot_adu_root_key.c +++ b/addons/azure_iot/nx_azure_iot_adu_root_key.c @@ -1,23 +1,23 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ #include "nx_azure_iot_adu_agent.h" /* Update manifest is meant for ADU devices to know what files are needed to be downloaded and installed. - The update manifest is signed by ADU so devices can trust that the content wasnot altered during the + The update manifest is signed by ADU so devices can trust that the content wasnot altered during the transmission. - ADU will leverage two types of keys - Root Key(s) and Signing Key(s). Signing keys will be used to + ADU will leverage two types of keys - Root Key(s) and Signing Key(s). Signing keys will be used to digest sign the update manifest and root keys will be used to sign the signing keys. - + *Root key - used to sign signing public key; root public key is hardcoded in ADU devices. *Signing key - used to sign update manifest; signing public key signed with the master key is included in digest signature header. */ diff --git a/addons/azure_iot/nx_azure_iot_hub_client.c b/addons/azure_iot/nx_azure_iot_hub_client.c index 4018acc8..bbb4a577 100644 --- a/addons/azure_iot/nx_azure_iot_hub_client.c +++ b/addons/azure_iot/nx_azure_iot_hub_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_hub_client.h b/addons/azure_iot/nx_azure_iot_hub_client.h index d54ca004..daee8d9d 100644 --- a/addons/azure_iot/nx_azure_iot_hub_client.h +++ b/addons/azure_iot/nx_azure_iot_hub_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_hub_client_properties.c b/addons/azure_iot/nx_azure_iot_hub_client_properties.c index 4e76895f..ae8a057c 100644 --- a/addons/azure_iot/nx_azure_iot_hub_client_properties.c +++ b/addons/azure_iot/nx_azure_iot_hub_client_properties.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_hub_client_properties.h b/addons/azure_iot/nx_azure_iot_hub_client_properties.h index 7c621c71..f0f8c4e4 100644 --- a/addons/azure_iot/nx_azure_iot_hub_client_properties.h +++ b/addons/azure_iot/nx_azure_iot_hub_client_properties.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -189,7 +189,7 @@ UINT nx_azure_iot_hub_client_properties_version_get(NX_AZURE_IOT_HUB_CLIENT *hub /** * @brief Iteratively read the Azure IoT Plug and Play component properties. - * + * * Note that between calls, the UCHAR* pointed to by \p component_name_pptr shall not be modified, * only checked and compared. Internally, the pointer is only changed if the component name changes * in the JSON document and is not necessarily set every invocation of the function. @@ -211,14 +211,14 @@ UINT nx_azure_iot_hub_client_properties_version_get(NX_AZURE_IOT_HUB_CLIENT *hub * NX_AZURE_IOT_HUB_CLIENT_PROPERTY_WRITABLE, * &component_name_ptr, &component_length)) == NX_AZURE_IOT_SUCCESS) * { - * + * * // Check if property is of interest (substitute user_property for your own property name) * if (nx_azure_iot_json_reader_token_is_text_equal(&json_reader, user_property, user_property_length)) * { * nx_azure_iot_json_reader_next_token(&json_reader); * * // Get the property value here - * // Example: nx_azure_iot_json_reader_token_int32_get(&json_reader, &user_int); + * // Example: nx_azure_iot_json_reader_token_int32_get(&json_reader, &user_int); * * // Skip to next property value * nx_azure_iot_json_reader_next_token(&json_reader); @@ -236,13 +236,13 @@ UINT nx_azure_iot_hub_client_properties_version_get(NX_AZURE_IOT_HUB_CLIENT *hub * } * * @endcode - * + * * @warning If you need to retrieve more than one \p property_type, you should first complete the * scan of all components for the first property type (until the API returns * NX_AZURE_IOT_NOT_FOUND). Then you must call nx_azure_iot_json_reader_init() again after this call * and before the next call to `nx_azure_iot_hub_client_properties_component_property_next_get` with the * different \p property_type. - * + * * @param[in] hub_client_ptr A pointer to a #NX_AZURE_IOT_HUB_CLIENT. * @param[in] reader_ptr A pointer to a #NX_AZURE_IOT_JSON_READER containing properties document * @param[in] message_type Type of message repsonse, only valid value are NX_AZURE_IOT_HUB_PROPERTIES or NX_AZURE_IOT_HUB_WRITABLE_PROPERTIES diff --git a/addons/azure_iot/nx_azure_iot_json_reader.c b/addons/azure_iot/nx_azure_iot_json_reader.c index 360aef11..1c528df8 100644 --- a/addons/azure_iot/nx_azure_iot_json_reader.c +++ b/addons/azure_iot/nx_azure_iot_json_reader.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_json_reader.h b/addons/azure_iot/nx_azure_iot_json_reader.h index eacf5c41..c2f2fad4 100644 --- a/addons/azure_iot/nx_azure_iot_json_reader.h +++ b/addons/azure_iot/nx_azure_iot_json_reader.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_json_writer.c b/addons/azure_iot/nx_azure_iot_json_writer.c index 4fd9bd14..9aed7cb2 100644 --- a/addons/azure_iot/nx_azure_iot_json_writer.c +++ b/addons/azure_iot/nx_azure_iot_json_writer.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_json_writer.h b/addons/azure_iot/nx_azure_iot_json_writer.h index 39e8a5c8..d4220289 100644 --- a/addons/azure_iot/nx_azure_iot_json_writer.h +++ b/addons/azure_iot/nx_azure_iot_json_writer.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -176,7 +176,7 @@ UINT nx_azure_iot_json_writer_append_string(NX_AZURE_IOT_JSON_WRITER *json_write * is, without any formatting or spacing changes. No modifications are made to this text, including * escaping. * @param[in] json_len Length of json - * + * * @remarks A single, possibly nested, JSON value is one that starts and ends with {} or [] or is a * single primitive token. The JSON cannot start with an end object or array, or a property name, or * be incomplete. diff --git a/addons/azure_iot/nx_azure_iot_provisioning_client.c b/addons/azure_iot/nx_azure_iot_provisioning_client.c index c44a9e74..793eae5f 100644 --- a/addons/azure_iot/nx_azure_iot_provisioning_client.c +++ b/addons/azure_iot/nx_azure_iot_provisioning_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/nx_azure_iot_provisioning_client.h b/addons/azure_iot/nx_azure_iot_provisioning_client.h index a2363969..c69d3931 100644 --- a/addons/azure_iot/nx_azure_iot_provisioning_client.h +++ b/addons/azure_iot/nx_azure_iot_provisioning_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/cert/nx_azure_iot_cert.c b/addons/azure_iot/samples/cert/nx_azure_iot_cert.c index b05c86e4..7e8135b2 100644 --- a/addons/azure_iot/samples/cert/nx_azure_iot_cert.c +++ b/addons/azure_iot/samples/cert/nx_azure_iot_cert.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,7 +75,7 @@ const unsigned char _nx_azure_iot_root_cert[] = { const unsigned int _nx_azure_iot_root_cert_size = sizeof(_nx_azure_iot_root_cert); /* Azure IoT Hub and DPS will migrate to the Digicert Global Root G2. - To continue without disruption due to this changes, Microsoft recommends that + To continue without disruption due to this changes, Microsoft recommends that client applications or devices trust the Digicert Global Root G2. */ /* Digicert Global Root G2 */ diff --git a/addons/azure_iot/samples/cert/nx_azure_iot_cert.h b/addons/azure_iot/samples/cert/nx_azure_iot_cert.h index af57ae7b..951333d8 100644 --- a/addons/azure_iot/samples/cert/nx_azure_iot_cert.h +++ b/addons/azure_iot/samples/cert/nx_azure_iot_cert.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.c b/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.c index 329c10cc..41358d75 100644 --- a/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.c +++ b/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.h b/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.h index 65f67b19..521e4d0e 100644 --- a/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.h +++ b/addons/azure_iot/samples/cert/nx_azure_iot_ciphersuites.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk.c b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk.c index fed5859c..061b5fc1 100644 --- a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk.c +++ b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_proxy_simulator_driver.c b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_proxy_simulator_driver.c index c7a389cf..5b2990ca 100644 --- a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_proxy_simulator_driver.c +++ b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_proxy_simulator_driver.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_simulator_driver.c b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_simulator_driver.c index 4f6e4763..48442826 100644 --- a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_simulator_driver.c +++ b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/nx_azure_iot_adu_agent_simulator_driver.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/sample_azure_iot_embedded_sdk_adu.c b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/sample_azure_iot_embedded_sdk_adu.c index 34d9633b..6c18f5f0 100644 --- a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/sample_azure_iot_embedded_sdk_adu.c +++ b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_adu/sample_azure_iot_embedded_sdk_adu.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ #include "nx_azure_iot_adu_agent.h" diff --git a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_connect.c b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_connect.c index 26af2b02..8acfd220 100644 --- a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_connect.c +++ b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_connect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_pnp.c b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_pnp.c index df8db852..ff0b5ef3 100644 --- a/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_pnp.c +++ b/addons/azure_iot/samples/sample_azure_iot_embedded_sdk_pnp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_config.h b/addons/azure_iot/samples/sample_config.h index d703df46..d06f36f9 100644 --- a/addons/azure_iot/samples/sample_config.h +++ b/addons/azure_iot/samples/sample_config.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/azure_iot/samples/sample_device_identity.c b/addons/azure_iot/samples/sample_device_identity.c index 4f5af5a6..a5119f6d 100644 --- a/addons/azure_iot/samples/sample_device_identity.c +++ b/addons/azure_iot/samples/sample_device_identity.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/addons/cloud/nx_cloud.c b/addons/cloud/nx_cloud.c index f69b7093..880e8628 100644 --- a/addons/cloud/nx_cloud.c +++ b/addons/cloud/nx_cloud.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,12 +77,6 @@ static VOID _nx_cloud_periodic_timer_entry(ULONG cloud_ptr_value); /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_cloud_create(NX_CLOUD *cloud_ptr, const CHAR *cloud_name, VOID *memory_ptr, ULONG memory_size, UINT priority) { @@ -156,12 +150,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_cloud_create(NX_CLOUD *cloud_ptr, const CHAR* cloud_name, VOID* memory_ptr, ULONG memory_size, UINT priority) { @@ -286,12 +274,6 @@ UINT old_threshold = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_cloud_delete(NX_CLOUD *cloud_ptr) { @@ -359,12 +341,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_cloud_delete(NX_CLOUD *cloud_ptr) { @@ -459,12 +435,6 @@ UINT old_threshold = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_cloud_module_register(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE *module_ptr, const CHAR *module_name, ULONG module_registered_event, VOID (*module_process)(VOID* module_context, ULONG common_events, ULONG module_own_events), VOID *module_context) @@ -538,12 +508,6 @@ UINT _nxe_cloud_module_register(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE *module_ptr /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_cloud_module_register(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE *module_ptr, const CHAR *module_name, ULONG module_registered_event, VOID(*module_process)(VOID *module_context, ULONG common_events, ULONG module_own_events), VOID *module_context) @@ -623,12 +587,6 @@ NX_CLOUD_MODULE *current_module; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_cloud_module_deregister(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE* module_ptr) { @@ -688,12 +646,6 @@ UINT _nxe_cloud_module_deregister(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE* module_p /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_cloud_module_deregister(NX_CLOUD* cloud_ptr, NX_CLOUD_MODULE* module_ptr) { @@ -785,12 +737,6 @@ UINT found = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_cloud_module_event_set(NX_CLOUD_MODULE *cloud_module, ULONG module_own_event) { @@ -853,12 +799,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_cloud_module_event_set(NX_CLOUD_MODULE *cloud_module, ULONG module_own_event) { @@ -921,15 +861,6 @@ ULONG registered_event; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 03-08-2023 Bo Chen Modified comment(s), fixed */ -/* event clear function, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nxe_cloud_module_event_clear(NX_CLOUD_MODULE *cloud_module, ULONG module_own_event) { @@ -992,12 +923,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_cloud_module_event_clear(NX_CLOUD_MODULE *cloud_module, ULONG module_own_event) { @@ -1070,12 +995,6 @@ ULONG registered_event; /* */ /* ThreadX Scheduler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_cloud_thread_entry(ULONG cloud_ptr_value) { @@ -1170,12 +1089,6 @@ ULONG module_own_events; /* */ /* ThreadX system timer thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_cloud_periodic_timer_entry(ULONG cloud_ptr_value) { diff --git a/addons/cloud/nx_cloud.h b/addons/cloud/nx_cloud.h index 6d310fc4..500e7be0 100644 --- a/addons/cloud/nx_cloud.h +++ b/addons/cloud/nx_cloud.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file defines the NetX Cloud component, including all data */ /* types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CLOUD_H diff --git a/addons/dhcp/nxd_dhcp_client.c b/addons/dhcp/nxd_dhcp_client.c index c2dc7c8c..b7a13f45 100644 --- a/addons/dhcp/nxd_dhcp_client.c +++ b/addons/dhcp/nxd_dhcp_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -119,14 +119,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_create(NX_DHCP *dhcp_ptr, NX_IP *ip_ptr, CHAR *name_ptr) { @@ -197,24 +189,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the code, */ -/* resulting in version 6.1.8 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), supported*/ -/* multiple client instances, */ -/* resulting in version 6.1.10 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), cleaned */ -/* up error check logic, and */ -/* properly terminated thread, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_create(NX_DHCP *dhcp_ptr, NX_IP *ip_ptr, CHAR *name_ptr) { @@ -242,7 +216,7 @@ UINT label_length = 0; /* The labels must follow the rules for ARPANET host names. They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphen. There are also some - restrictions on the length. Labels must be 63 characters or less. + restrictions on the length. Labels must be 63 characters or less. RFC 1035, Section 2.3.1, Page8. */ while (*temp_ptr) { @@ -321,7 +295,7 @@ UINT label_length = 0; /* If the host does not intend to supply their own packet pool, create one here. */ #ifndef NX_DHCP_CLIENT_USER_CREATE_PACKET_POOL - /* Check the packet payload size, DHCP Client must be prepared to receive a message of up to 576 octets. + /* Check the packet payload size, DHCP Client must be prepared to receive a message of up to 576 octets. RFC 2131, Section 2, Page10. */ if (NX_DHCP_PACKET_PAYLOAD < (NX_PHYSICAL_HEADER + NX_DHCP_MINIMUM_IP_DATAGRAM)) { @@ -517,14 +491,6 @@ UINT label_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_clear_broadcast_flag(NX_DHCP *dhcp_ptr, UINT clear_flag) { @@ -594,14 +560,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_clear_broadcast_flag(NX_DHCP *dhcp_ptr, UINT clear_flag) { @@ -667,14 +625,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_clear_broadcast_flag(NX_DHCP *dhcp_ptr, UINT iface_index, UINT clear_flag) { @@ -750,14 +700,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_clear_broadcast_flag(NX_DHCP *dhcp_ptr, UINT iface_index, UINT clear_flag) { @@ -825,14 +767,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_packet_pool_set(NX_DHCP *dhcp_ptr, NX_PACKET_POOL *packet_pool_ptr) { @@ -855,7 +789,7 @@ UINT status; return NX_PTR_ERROR; } - /* Check the packet payload size, DHCP Client must be prepared to receive a message of up to 576 octets. + /* Check the packet payload size, DHCP Client must be prepared to receive a message of up to 576 octets. RFC2131, Section2, Page10. */ if (packet_pool_ptr -> nx_packet_pool_payload_size < (NX_PHYSICAL_HEADER + NX_DHCP_MINIMUM_IP_DATAGRAM)) { @@ -905,14 +839,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_packet_pool_set(NX_DHCP *dhcp_ptr, NX_PACKET_POOL *packet_pool_ptr) { @@ -973,14 +899,6 @@ UINT _nx_dhcp_packet_pool_set(NX_DHCP *dhcp_ptr, NX_PACKET_POOL *packet_pool_pt /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_reinitialize(NX_DHCP *dhcp_ptr) { @@ -1038,14 +956,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_reinitialize(NX_DHCP *dhcp_ptr) { @@ -1105,14 +1015,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_reinitialize(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -1183,17 +1085,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_reinitialize(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -1324,14 +1215,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_request_client_ip(NX_DHCP *dhcp_ptr, ULONG client_request_address, UINT skip_discover_message) { @@ -1405,14 +1288,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_request_client_ip(NX_DHCP *dhcp_ptr, ULONG client_request_address, UINT skip_discover_message) { @@ -1482,14 +1357,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_request_client_ip(NX_DHCP *dhcp_ptr, UINT iface_index, ULONG client_request_address, UINT skip_discover_message) { @@ -1551,14 +1418,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_request_client_ip(NX_DHCP *dhcp_ptr, UINT iface_index, ULONG client_request_address, UINT skip_discover_message) { @@ -1626,14 +1485,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_delete(NX_DHCP *dhcp_ptr) { @@ -1698,17 +1549,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), supported*/ -/* multiple client instances, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_delete(NX_DHCP *dhcp_ptr) { @@ -1831,14 +1671,6 @@ NX_DHCP *dhcp_previous; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_force_renew(NX_DHCP *dhcp_ptr) { @@ -1896,14 +1728,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_force_renew(NX_DHCP *dhcp_ptr) { @@ -1968,14 +1792,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_force_renew(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -2036,14 +1852,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_force_renew(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -2147,14 +1955,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_decline(NX_DHCP *dhcp_ptr) { @@ -2215,14 +2015,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_decline(NX_DHCP *dhcp_ptr) { @@ -2286,14 +2078,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_decline(NX_DHCP *dhcp_ptr, UINT iface_index) @@ -2359,17 +2143,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_decline(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -2472,14 +2245,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_release(NX_DHCP *dhcp_ptr) { @@ -2537,14 +2302,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_release(NX_DHCP *dhcp_ptr) { @@ -2608,14 +2365,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_release(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -2682,17 +2431,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_release(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -2817,14 +2555,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_start(NX_DHCP *dhcp_ptr) { @@ -2887,14 +2617,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_start(NX_DHCP *dhcp_ptr) { @@ -2983,14 +2705,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_start(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -3061,14 +2775,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_start(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -3169,7 +2875,7 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; interface_record -> nx_dhcp_state = NX_DHCP_STATE_INIT; /* The client begins in INIT state and forms a DHCPDISCOVER message. - The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. + The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. RFC2131, Section4.4.1, Page36. */ /* Use the minimum value, Wait one second to begain in INIT state and forms a DHCP Discovery message. */ @@ -3233,14 +2939,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_enable(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -3307,14 +3005,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_enable(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -3428,14 +3118,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_disable(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -3504,14 +3186,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_disable(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -3579,17 +3253,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), and */ -/* corrected caller checking, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_state_change_notify(NX_DHCP *dhcp_ptr, VOID (*dhcp_state_change_notify)(NX_DHCP *dhcp_ptr, UCHAR new_state)) { @@ -3647,14 +3310,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_state_change_notify(NX_DHCP *dhcp_ptr, VOID (*dhcp_state_change_notify)(NX_DHCP *dhcp_ptr, UCHAR new_state)) { @@ -3707,14 +3362,6 @@ UINT _nx_dhcp_state_change_notify(NX_DHCP *dhcp_ptr, VOID (*dhcp_state_change_n /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_state_change_notify(NX_DHCP *dhcp_ptr, VOID (*dhcp_state_interface_change_notify)(NX_DHCP *dhcp_ptr, UINT iface_index, UCHAR new_state)) { @@ -3772,14 +3419,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_state_change_notify(NX_DHCP *dhcp_ptr, VOID (*dhcp_interface_state_change_notify)(NX_DHCP *dhcp_ptr, UINT iface_index, UCHAR new_state)) { @@ -3830,14 +3469,6 @@ UINT _nx_dhcp_interface_state_change_notify(NX_DHCP *dhcp_ptr, VOID (*dhcp_inte /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_stop(NX_DHCP *dhcp_ptr) { @@ -3903,14 +3534,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_stop(NX_DHCP *dhcp_ptr) { @@ -3984,14 +3607,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_stop(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -4061,17 +3676,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_stop(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -4199,14 +3803,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_user_option_retrieve(NX_DHCP *dhcp_ptr, UINT option_request, UCHAR *destination_ptr, UINT *destination_size) { @@ -4272,14 +3868,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_user_option_retrieve(NX_DHCP *dhcp_ptr, UINT option_request, UCHAR *destination_ptr, UINT *destination_size) { @@ -4349,12 +3937,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_user_option_request(NX_DHCP *dhcp_ptr, UINT option_code) { @@ -4409,12 +3991,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_user_option_request(NX_DHCP *dhcp_ptr, UINT option_code) { @@ -4503,14 +4079,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_user_option_retrieve(NX_DHCP *dhcp_ptr, UINT iface_index, UINT option_request, UCHAR *destination_ptr, UINT *destination_size) { @@ -4584,16 +4152,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_user_option_retrieve(NX_DHCP *dhcp_ptr, UINT iface_index, UINT option_request, UCHAR *destination_ptr, UINT *destination_size) { @@ -4747,14 +4305,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ ULONG _nxe_dhcp_user_option_convert(UCHAR *source_ptr) { @@ -4806,14 +4356,6 @@ ULONG temp; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ ULONG _nx_dhcp_user_option_convert(UCHAR *source_ptr) { @@ -4866,14 +4408,6 @@ ULONG temp; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_user_option_add_callback_set(NX_DHCP *dhcp_ptr, UINT (*dhcp_user_option_add)(NX_DHCP *dhcp_ptr, UINT iface_index, UINT message_type, UCHAR *user_option_ptr, UINT *user_option_length)) @@ -4927,14 +4461,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_user_option_add_callback_set(NX_DHCP *dhcp_ptr, UINT (*dhcp_user_option_add)(NX_DHCP *dhcp_ptr, UINT iface_index, UINT message_type, UCHAR *user_option_ptr, UINT *user_option_length)) @@ -4986,17 +4512,6 @@ UINT _nx_dhcp_user_option_add_callback_set(NX_DHCP *dhcp_ptr, UINT (*dhcp_user_ /* */ /* IP thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), supported*/ -/* multiple client instances, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_dhcp_udp_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -5043,14 +4558,6 @@ NX_DHCP *dhcp_ptr; /* */ /* ThreadX timer */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcp_timeout_entry(ULONG dhcp) { @@ -5107,14 +4614,6 @@ NX_DHCP *dhcp_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_thread_entry(ULONG dhcp_instance) { @@ -5283,17 +4782,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* nx_dhcp_thread_entry DHCP Client thread entry fcn */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ VOID _nx_dhcp_packet_process(NX_DHCP *dhcp_ptr, NX_DHCP_INTERFACE_RECORD *interface_record, NX_PACKET *packet_ptr) { @@ -5487,7 +4975,7 @@ ULONG probing_delay; if (_nx_dhcp_extract_information(dhcp_ptr, interface_record, buffer, new_packet_ptr -> nx_packet_length)) break; - /* If the host is configured to send an ARP probe to verify Client address is + /* If the host is configured to send an ARP probe to verify Client address is not in use, do so now. */ #ifdef NX_DHCP_CLIENT_SEND_ARP_PROBE @@ -5554,7 +5042,7 @@ ULONG probing_delay; interface_record -> nx_dhcp_state = NX_DHCP_STATE_INIT; /* The client begins in INIT state and forms a DHCPDISCOVER message. - The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. + The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. RFC2131, Section4.4.1, Page36. */ /* Use the minimum value, Wait one second to begain in INIT state and forms a DHCP Discovery message. */ @@ -5610,7 +5098,7 @@ ULONG probing_delay; nx_ip_gateway_address_set(dhcp_ptr -> nx_dhcp_ip_ptr, interface_record -> nx_dhcp_gateway_address); } - /* Lease has been renewed, set the countdown timer back to the renewal time and go back + /* Lease has been renewed, set the countdown timer back to the renewal time and go back to the Bound state*/ interface_record -> nx_dhcp_timeout = interface_record -> nx_dhcp_renewal_time; @@ -5633,7 +5121,7 @@ ULONG probing_delay; interface_record -> nx_dhcp_state = NX_DHCP_STATE_INIT; /* The client begins in INIT state and forms a DHCPDISCOVER message. - The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. + The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. RFC2131, Section4.4.1, Page36. */ /* Use the minimum value, Wait one second to begain in INIT state and forms a DHCP Discovery message. */ @@ -5681,7 +5169,7 @@ ULONG probing_delay; nx_ip_gateway_address_set(dhcp_ptr -> nx_dhcp_ip_ptr, interface_record -> nx_dhcp_gateway_address); } - /* Lease has been renewed, set the countdown timer back to the renewal time and go back + /* Lease has been renewed, set the countdown timer back to the renewal time and go back to the Bound state. */ interface_record -> nx_dhcp_timeout = interface_record -> nx_dhcp_renewal_time; @@ -5703,7 +5191,7 @@ ULONG probing_delay; interface_record -> nx_dhcp_state = NX_DHCP_STATE_INIT; /* The client begins in INIT state and forms a DHCPDISCOVER message. - The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. + The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. RFC2131, Section4.4.1, Page36. */ /* Use the minimum value, Wait one second to begain in INIT state and forms a DHCP Discovery message. */ @@ -5789,17 +5277,6 @@ ULONG probing_delay; /* */ /* _nx_dhcp_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ VOID _nx_dhcp_timeout_process(NX_DHCP *dhcp_ptr) { @@ -6105,8 +5582,8 @@ NX_IP *ip_ptr; case NX_DHCP_STATE_REBINDING: { - /* No response yet, the response must have timed out, - update the timeout and check if we have reached the + /* No response yet, the response must have timed out, + update the timeout and check if we have reached the end of the rebinding time. */ if (interface_record -> nx_dhcp_rebind_remain_time >= interface_record -> nx_dhcp_rtr_interval) { @@ -6133,7 +5610,7 @@ NX_IP *ip_ptr; interface_record -> nx_dhcp_state = NX_DHCP_STATE_INIT; /* The client begins in INIT state and forms a DHCPDISCOVER message. - The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. + The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. RFC2131, Section4.4.1, Page36. */ /* Use the minimum value, Wait one second to begain in INIT state and forms a DHCP Discovery message. */ @@ -6219,14 +5696,6 @@ NX_IP *ip_ptr; /* */ /* Application thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_send_request(NX_DHCP *dhcp_ptr, UINT dhcp_message_type) { @@ -6294,14 +5763,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_send_request(NX_DHCP *dhcp_ptr, UINT dhcp_message_type) { @@ -6372,14 +5833,6 @@ UINT i; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_send_request(NX_DHCP *dhcp_ptr, UINT iface_index, UINT dhcp_message_type) { @@ -6455,14 +5908,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_send_request(NX_DHCP *dhcp_ptr, UINT iface_index, UINT dhcp_message_type) { @@ -6576,22 +6021,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* _nx_dhcp_resume Resume the DHCP Client thread */ #endif /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), supported*/ -/* adding additional request */ -/* option in parameter request,*/ -/* resulting in version 6.1.8 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), corrected*/ -/* the logic of adding server */ -/* identifier option, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_send_request_internal(NX_DHCP *dhcp_ptr, NX_DHCP_INTERFACE_RECORD *interface_record, UINT dhcp_message_type) { @@ -6760,7 +6189,7 @@ UINT name_length; #ifdef NX_DHCP_CLIENT_SEND_MAX_DHCP_MESSAGE_OPTION - /* Add an option to specify the maximum length DHCP message that DHCP Client is willing to accept. + /* Add an option to specify the maximum length DHCP message that DHCP Client is willing to accept. RFC2132, Section9.10, Page28. */ _nx_dhcp_add_option_value(buffer, NX_DHCP_OPTION_MAX_DHCP_MESSAGE, 2, dhcp_ptr -> nx_dhcp_max_dhcp_message_size, &index); #endif @@ -6832,7 +6261,7 @@ UINT name_length; #ifdef NX_DHCP_CLIENT_SEND_MAX_DHCP_MESSAGE_OPTION - /* Add an option to specify the maximum length DHCP message that DHCP Client is willing to accept. + /* Add an option to specify the maximum length DHCP message that DHCP Client is willing to accept. RFC2132, Section9.10, Page28. */ _nx_dhcp_add_option_value(buffer, NX_DHCP_OPTION_MAX_DHCP_MESSAGE, 2, dhcp_ptr -> nx_dhcp_max_dhcp_message_size, &index); #endif @@ -6944,7 +6373,7 @@ UINT name_length; } #endif - /* Set the target address according to RFC2131, Section4.3.6, Page33, Table4 and Section4.4.4, Page40. + /* Set the target address according to RFC2131, Section4.3.6, Page33, Table4 and Section4.4.4, Page40. DHCP Request for renewing and DHCP Release message must be unicast. */ if (((dhcp_message_type == NX_DHCP_TYPE_DHCPREQUEST) && (interface_record -> nx_dhcp_state == NX_DHCP_STATE_RENEWING)) || (dhcp_message_type == NX_DHCP_TYPE_DHCPRELEASE)) @@ -7023,29 +6452,6 @@ UINT name_length; /* */ /* _nx_dhcp_send_request_internal Send DHCP Request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported new ip filter, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* set the IP header pointer, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* and solve inconformity with */ -/* udp socket send and ip */ -/* header add, */ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* supported random IP id, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_client_send_with_zero_source_address(NX_DHCP *dhcp_ptr, UINT iface_index, NX_PACKET *packet_ptr) { @@ -7378,15 +6784,6 @@ NX_IP_DRIVER driver_request; /* */ /* _nx_dhcp_packet_process Data received handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_extract_information(NX_DHCP *dhcp_ptr, NX_DHCP_INTERFACE_RECORD *interface_record, UCHAR *dhcp_message, UINT length) { @@ -7665,17 +7062,6 @@ ULONG value; /* _nx_dhcp_packet_process Data received handler */ /* _nx_dhcp_extract_information Extract info from server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_get_option_value(UCHAR *bootp_message, UINT option, ULONG *value, UINT length) { @@ -7768,14 +7154,6 @@ UINT option_length; /* */ /* _nx_dhcp_send_request_internal Send DHCP request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_add_option_value(UCHAR *bootp_message, UINT option, UINT size, ULONG value, UINT *index) { @@ -7833,14 +7211,6 @@ UINT _nx_dhcp_add_option_value(UCHAR *bootp_message, UINT option, UINT size, UL /* */ /* _nx_dhcp_send_request_internal Internal DHCP message send */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_add_option_string(UCHAR *bootp_message, UINT option, UINT size, UCHAR *value, UINT *index) { @@ -7896,12 +7266,6 @@ static UINT _nx_dhcp_add_option_string(UCHAR *bootp_message, UINT option, UINT /* */ /* _nx_dhcp_send_request_internal Internal DHCP message send */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_add_option_parameter_request(NX_DHCP *dhcp_ptr, UCHAR *bootp_message, UINT *index) { @@ -7962,17 +7326,6 @@ static UINT _nx_dhcp_add_option_parameter_request(NX_DHCP *dhcp_ptr, UCHAR *boo /* nx_dhcp_process Process the current state of */ /* the DHCP Client state machine*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static ULONG _nx_dhcp_add_randomize(ULONG timeout) { @@ -8039,14 +7392,6 @@ ULONG adjustment; /* */ /* _nx_dhcp_timeout_process Timer expiration handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_dhcp_update_timeout(ULONG timeout) { @@ -8104,14 +7449,6 @@ static ULONG _nx_dhcp_update_timeout(ULONG timeout) /* the DHCP Client record */ /* _nx_dhcp_timeout_process Timer expiration handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_dhcp_update_renewal_timeout(ULONG timeout) { @@ -8185,17 +7522,6 @@ static ULONG _nx_dhcp_update_renewal_timeout(ULONG timeout) /* _nx_dhcp_get_option_value Get the value of an option */ /* _nx_dhcp_get_option_data Get the string of an option */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static UCHAR *_nx_dhcp_search_buffer(UCHAR *option_message, UINT option, UINT length) { @@ -8293,14 +7619,6 @@ UINT size; /* _nx_dhcp_get_option_value Retrieve option value */ /* _nx_dhcp_update_address_list Update address list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_dhcp_get_data(UCHAR *data, UINT size) { @@ -8357,17 +7675,6 @@ ULONG value = 0; /* _nx_dhcp_send_request_internal Send DHCP request */ /* _nx_dhcp_add_option_value Add a DHCP option */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_store_data(UCHAR *data, UINT size, ULONG value) { @@ -8412,14 +7719,6 @@ static VOID _nx_dhcp_store_data(UCHAR *data, UINT size, ULONG value) /* */ /* _nx_dhcp_add_option_string Add option string */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_move_string(UCHAR *dest, UCHAR *source, UINT size) { @@ -8468,14 +7767,6 @@ static VOID _nx_dhcp_move_string(UCHAR *dest, UCHAR *source, UINT size) /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_server_address_get(NX_DHCP *dhcp_ptr, ULONG *server_address) { @@ -8541,14 +7832,6 @@ UINT status ; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_server_address_get(NX_DHCP *dhcp_ptr, ULONG *server_address) { @@ -8617,14 +7900,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_interface_server_address_get(NX_DHCP *dhcp_ptr, UINT iface_index, ULONG *server_address) @@ -8692,14 +7967,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_interface_server_address_get(NX_DHCP *dhcp_ptr, UINT iface_index, ULONG *server_address) { @@ -8777,17 +8044,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), supported*/ -/* multiple client instances, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_dhcp_ip_conflict(NX_IP *ip_ptr, UINT iface_index, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) { @@ -8860,14 +8116,6 @@ NX_DHCP *dhcp_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_set_interface_index(NX_DHCP *dhcp_ptr, UINT interface_index) { @@ -8933,14 +8181,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_set_interface_index(NX_DHCP *dhcp_ptr, UINT iface_index) { @@ -9008,14 +8248,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_interface_record_find(NX_DHCP *dhcp_ptr, UINT iface_index, NX_DHCP_INTERFACE_RECORD **interface_record) { @@ -9083,14 +8315,6 @@ UINT i; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_client_get_record(NX_DHCP *dhcp_ptr, NX_DHCP_CLIENT_RECORD *client_record_ptr) { @@ -9147,14 +8371,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_client_get_record(NX_DHCP *dhcp_ptr, NX_DHCP_CLIENT_RECORD *client_record_ptr) { @@ -9226,14 +8442,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_client_interface_get_record(NX_DHCP *dhcp_ptr, UINT iface_index, NX_DHCP_CLIENT_RECORD *client_record_ptr) { @@ -9300,14 +8508,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_client_interface_get_record(NX_DHCP *dhcp_ptr, UINT iface_index, NX_DHCP_CLIENT_RECORD *client_record_ptr) { @@ -9335,7 +8535,7 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; if (interface_record -> nx_dhcp_state < NX_DHCP_STATE_BOUND) { - /* The DHCP Client is not bound to an IP address. Cannot create a record for restoring Client + /* The DHCP Client is not bound to an IP address. Cannot create a record for restoring Client state if the Client not bound to an IP address. */ /* Release the DHCP mutex. */ @@ -9401,14 +8601,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_client_restore_record(NX_DHCP *dhcp_ptr, NX_DHCP_CLIENT_RECORD *client_record_ptr, ULONG time_elapsed) { @@ -9483,14 +8675,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_client_restore_record(NX_DHCP *dhcp_ptr, NX_DHCP_CLIENT_RECORD *client_record_ptr, ULONG time_elapsed) { @@ -9561,14 +8745,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_client_interface_restore_record(NX_DHCP *dhcp_ptr, UINT iface_index, NX_DHCP_CLIENT_RECORD *client_record_ptr, ULONG time_elapsed) { @@ -9648,16 +8824,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* restored the gateway */ -/* address, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_client_interface_restore_record(NX_DHCP *dhcp_ptr, UINT iface_index, NX_DHCP_CLIENT_RECORD *client_record_ptr, ULONG time_elapsed) { @@ -9767,14 +8933,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_client_update_time_remaining(NX_DHCP *dhcp_ptr, ULONG time_elapsed) { @@ -9834,14 +8992,6 @@ UINT status; /* */ /* _nx_dhcp_client_restore_record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_client_update_time_remaining(NX_DHCP *dhcp_ptr, ULONG time_elapsed) { @@ -9911,14 +9061,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_client_interface_update_time_remaining(NX_DHCP *dhcp_ptr, UINT iface_index, ULONG time_elapsed) { @@ -9992,14 +9134,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_client_interface_update_time_remaining(NX_DHCP *dhcp_ptr, UINT iface_index, ULONG time_elapsed) { @@ -10034,7 +9168,7 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; { if (interface_record -> nx_dhcp_renewal_time >= interface_record -> nx_dhcp_timeout) { - /* Since the Client is in a BOUND state, we know the timeout is less than T2 + /* Since the Client is in a BOUND state, we know the timeout is less than T2 or nx_dhcp_renew_time. */ time_accrued = interface_record -> nx_dhcp_renewal_time - interface_record -> nx_dhcp_timeout; } @@ -10213,7 +9347,7 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; interface_record -> nx_dhcp_state = NX_DHCP_STATE_INIT; /* The client begins in INIT state and forms a DHCPDISCOVER message. - The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. + The client should wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. RFC2131, Section4.4.1, Page36. */ /* Use the minimum value, Wait one second to begain in INIT state and forms a DHCP Discovery message. */ @@ -10280,14 +9414,6 @@ NX_DHCP_INTERFACE_RECORD *interface_record = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_resume(NX_DHCP *dhcp_ptr) { @@ -10352,15 +9478,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_resume(NX_DHCP *dhcp_ptr) { @@ -10483,14 +9600,6 @@ UINT iface_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_suspend(NX_DHCP *dhcp_ptr) { @@ -10553,14 +9662,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_suspend(NX_DHCP *dhcp_ptr) { diff --git a/addons/dhcp/nxd_dhcp_client.h b/addons/dhcp/nxd_dhcp_client.h index c5c25e90..93944b7f 100644 --- a/addons/dhcp/nxd_dhcp_client.h +++ b/addons/dhcp/nxd_dhcp_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,21 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), supported*/ -/* adding additional request */ -/* option in parameter request,*/ -/* resulting in version 6.1.8 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), supported*/ -/* multiple client instances, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ #ifndef NXD_DHCP_CLIENT_H @@ -73,16 +58,16 @@ extern "C" { #include "nx_ip.h" -/* Enable BOOTP protocol instead of DHCP, define this option. -#define NX_DHCP_ENABLE_BOOTP +/* Enable BOOTP protocol instead of DHCP, define this option. +#define NX_DHCP_ENABLE_BOOTP */ -/* Enable support for client state preserved between reboots -#define NX_DHCP_CLIENT_RESTORE_STATE +/* Enable support for client state preserved between reboots +#define NX_DHCP_CLIENT_RESTORE_STATE */ -/* Enable the DHCP Client to accept a pointer to the DHCP packet pool. -#define NX_DHCP_CLIENT_USER_CREATE_PACKET_POOL +/* Enable the DHCP Client to accept a pointer to the DHCP packet pool. +#define NX_DHCP_CLIENT_USER_CREATE_PACKET_POOL */ /* Enables an ARP probe for verifying the assigned DHCP address is @@ -121,7 +106,7 @@ extern "C" { #endif -/* Define the DHCP stack priority. This priority must be high enough to insure the +/* Define the DHCP stack priority. This priority must be high enough to insure the DHCP client gets scheduled promptly, and thus assigned an IP address. Assigning it a higher priority increases the risk of 'starving' out the IP thread task which needs to initialize the network driver (which is required to be able to transmit packets). */ @@ -144,7 +129,7 @@ extern "C" { /* Define the size of DHCP options buffer. */ -/* A DHCP client must be prepared to receive DHCP messages with an 'options' field of +/* A DHCP client must be prepared to receive DHCP messages with an 'options' field of at least length 312 octets. RFC 2131; Section 2. Protocol Summary. */ #ifndef NX_DHCP_OPTIONS_BUFFER_SIZE #define NX_DHCP_OPTIONS_BUFFER_SIZE 312 @@ -157,15 +142,15 @@ extern "C" { #define NX_BOOT_CLIENT_BUFFER_SIZE 548 -/* Define the minimum IP datafram size as per RFC 2131; Section 2. Protocol Summary. +/* Define the minimum IP datafram size as per RFC 2131; Section 2. Protocol Summary. A DHCP Client must be prepared to receive a message of up to 576 bytes: - IP header(20 bytes), UDP header (8 bytes), required DHCP header fields (236 bytes) + IP header(20 bytes), UDP header (8 bytes), required DHCP header fields (236 bytes) and the minimum requirement of option data(312 bytes). */ #define NX_DHCP_MINIMUM_IP_DATAGRAM 576 -/* Define the packet payload size, keeping in mind the DHCP Client must be prepared to - receive a message of up to 576 octets and allow room for physical network header, +/* Define the packet payload size, keeping in mind the DHCP Client must be prepared to + receive a message of up to 576 octets and allow room for physical network header, as per RFC 2131; Section 2. Protocol Summary. */ #ifndef NX_DHCP_PACKET_PAYLOAD #define NX_DHCP_PACKET_PAYLOAD (NX_DHCP_MINIMUM_IP_DATAGRAM + NX_PHYSICAL_HEADER) @@ -179,21 +164,21 @@ extern "C" { /* Define time out options for retransmission in seconds. */ -/* Define the minimum amount of time to retransmit a DHCP IP address request. The +/* Define the minimum amount of time to retransmit a DHCP IP address request. The recommended wait time is 4 seconds in RFC 2131. */ #ifndef NX_DHCP_MIN_RETRANS_TIMEOUT #define NX_DHCP_MIN_RETRANS_TIMEOUT (4 * NX_IP_PERIODIC_RATE) #endif -/* Define the maximum amount of time to retransmit a DHCP IP address request. The +/* Define the maximum amount of time to retransmit a DHCP IP address request. The recommended wait time is 64 seconds in RFC 2131. */ #ifndef NX_DHCP_MAX_RETRANS_TIMEOUT #define NX_DHCP_MAX_RETRANS_TIMEOUT (64 * NX_IP_PERIODIC_RATE) #endif -/* Define the minimum amount of time to retransmit a DHCP renew/rebind request. The +/* Define the minimum amount of time to retransmit a DHCP renew/rebind request. The recommended wait time is 60 seconds in RFC 2131. */ #ifndef NX_DHCP_MIN_RENEW_TIMEOUT #define NX_DHCP_MIN_RENEW_TIMEOUT (60 * NX_IP_PERIODIC_RATE) @@ -243,7 +228,7 @@ extern "C" { /* Define the wait time before restarting the configuration process when DHCP detects that the address is already in use. - + The client SHOULD wait a minimum of ten seconds before restarting the configuration process to avoid excessive network traffic in case of looping. RFC2131, Section 3.1, Page 17. */ #ifndef NX_DHCP_RESTART_WAIT @@ -411,7 +396,7 @@ typedef struct NX_DHCP_CLIENT_RECORD_STRUCT } NX_DHCP_CLIENT_RECORD; #endif /* NX_DHCP_CLIENT_RESTORE_STATE */ -/* Define the DHCP interface record that contains all the information necessary for a DHCP +/* Define the DHCP interface record that contains all the information necessary for a DHCP instance on each interface. */ typedef struct NX_DHCP_INTERFACE_RECORD_STRUCT { @@ -503,8 +488,8 @@ typedef struct NX_DHCP_STRUCT the DHCP associated with this IP instance. */ VOID (*nx_dhcp_state_change_callback)(struct NX_DHCP_STRUCT *dhcp_ptr, UCHAR new_state); - /* Define the callback function for DHCP interface state change notification. - this function is similar as nx_dhcp_state_change_callback, + /* Define the callback function for DHCP interface state change notification. + this function is similar as nx_dhcp_state_change_callback, Note: Suggest using state change notification, and use nx_dhcp_interface_state_change_callback if DHCP is running on multiple interfaces. */ @@ -526,9 +511,9 @@ typedef struct NX_DHCP_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map DHCP API functions +/* Determine if error checking is desired. If so, map DHCP API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/dhcp/nxd_dhcp_server.c b/addons/dhcp/nxd_dhcp_server.c index 3848ce8f..f581b9d0 100644 --- a/addons/dhcp/nxd_dhcp_server.c +++ b/addons/dhcp/nxd_dhcp_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,7 +86,7 @@ static VOID _nx_dhcp_server_socket_receive_notify(NX_UDP_SOCKET *socket_p static int add_client = 0; -/* Define how often to print the server table of current clients. +/* Define how often to print the server table of current clients. For no output set to zero. For low volume, set to 1; for very high volume, set higher so as not to overwelm the processor. */ @@ -130,14 +130,6 @@ static int add_client = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_server_create(NX_DHCP_SERVER *dhcp_ptr, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, @@ -216,15 +208,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_server_create(NX_DHCP_SERVER *dhcp_ptr, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, CHAR *name_ptr, NX_PACKET_POOL *packet_pool_ptr) @@ -370,7 +353,7 @@ UINT i, j; /* Convert seconds to timer ticks. */ timer_ticks = NX_DHCP_SLOW_PERIODIC_TIME_INTERVAL * NX_IP_PERIODIC_RATE; - /* Create the timer for Client DHCP session. This will keep track of when leases expire + /* Create the timer for Client DHCP session. This will keep track of when leases expire and when a client session has timed out. */ status = tx_timer_create(&(dhcp_ptr -> nx_dhcp_slow_periodic_timer), "DHCP Server IP Lease Timer", _nx_dhcp_slow_periodic_timer_entry, (ULONG)(ALIGN_TYPE)dhcp_ptr, @@ -381,7 +364,7 @@ UINT i, j; /* Convert seconds to timer ticks. */ timer_ticks = NX_DHCP_FAST_PERIODIC_TIME_INTERVAL * NX_IP_PERIODIC_RATE; - /* Create the timer for Client DHCP session. This will keep track of when leases expire + /* Create the timer for Client DHCP session. This will keep track of when leases expire and when a client session has timed out. */ status += tx_timer_create(&(dhcp_ptr -> nx_dhcp_fast_periodic_timer), "DHCP Server Session Timer", _nx_dhcp_fast_periodic_timer_entry, (ULONG)(ALIGN_TYPE)dhcp_ptr, @@ -473,14 +456,6 @@ UINT i, j; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_fast_periodic_timer_entry(ULONG info) { @@ -530,14 +505,6 @@ NX_DHCP_SERVER *dhcp_ptr; /* */ /* ThreadX system timer thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_slow_periodic_timer_entry(ULONG info) { @@ -587,14 +554,6 @@ NX_DHCP_SERVER *dhcp_ptr; /* */ /* Threads */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcp_server_socket_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -642,14 +601,6 @@ NX_DHCP_SERVER *dhcp_server_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_server_delete(NX_DHCP_SERVER *dhcp_ptr) { @@ -713,14 +664,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_server_delete(NX_DHCP_SERVER *dhcp_ptr) { @@ -804,14 +747,6 @@ UINT _nx_dhcp_server_delete(NX_DHCP_SERVER *dhcp_ptr) /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_create_server_ip_address_list(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, ULONG start_ip_address, ULONG end_ip_address, UINT *addresses_added) @@ -893,14 +828,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_create_server_ip_address_list(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, ULONG start_ip_address, ULONG end_ip_address, @@ -989,7 +916,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; /* Set local pointer to the next entry for convenience. */ ip_address_entry_ptr = &dhcp_interface_table_ptr -> nx_dhcp_ip_address_list[i]; - /* Clear existing entry; client identifier and available status + /* Clear existing entry; client identifier and available status must be initialized to NULL and not assigned respectively. */ memset(ip_address_entry_ptr, 0, sizeof(NX_DHCP_INTERFACE_IP_ADDRESS)); @@ -1054,14 +981,6 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_set_interface_network_parameters(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, ULONG subnet_mask, ULONG default_gateway_address, @@ -1128,14 +1047,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_set_interface_network_parameters(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, ULONG subnet_mask, ULONG default_gateway_address, @@ -1205,14 +1116,6 @@ UINT _nx_dhcp_set_interface_network_parameters(NX_DHCP_SERVER *dhcp_ptr, UINT i /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_server_start(NX_DHCP_SERVER *dhcp_ptr) { @@ -1274,14 +1177,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_server_start(NX_DHCP_SERVER *dhcp_ptr) { @@ -1360,14 +1255,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_server_stop(NX_DHCP_SERVER *dhcp_ptr) { @@ -1429,14 +1316,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_server_stop(NX_DHCP_SERVER *dhcp_ptr) { @@ -1522,14 +1401,6 @@ UINT current_preemption; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_server_thread_entry(ULONG info) { @@ -1604,7 +1475,7 @@ NX_PACKET *packet_ptr; if ((dhcp_client_ptr -> nx_dhcp_client_mac_lsw == 0) && (dhcp_client_ptr -> nx_dhcp_client_mac_msw == 0)) continue; - /* Skip clients not in active session with the Server, static members, + /* Skip clients not in active session with the Server, static members, or client in the bound state. */ if (dhcp_client_ptr -> nx_dhcp_session_timeout == TX_WAIT_FOREVER) continue; @@ -1635,7 +1506,7 @@ NX_PACKET *packet_ptr; if (dhcp_client_ptr -> nx_dhcp_session_timeout == 0) { - /* Yes, the client has bailed on the session, intentionally or otherwise. If it wants to + /* Yes, the client has bailed on the session, intentionally or otherwise. If it wants to get an IP address it must start again. Reset status to 'INIT'. */ dhcp_client_ptr -> nx_dhcp_client_state = NX_DHCP_STATE_INIT; @@ -1726,7 +1597,7 @@ NX_PACKET *packet_ptr; /* Clear all session data if there is any for this client. */ _nx_dhcp_clear_client_session(dhcp_ptr, dhcp_client_ptr); - /* No, we should have this client in the server client records table but we don't. + /* No, we should have this client in the server client records table but we don't. That's all we can do right now. */ } } @@ -1782,14 +1653,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_dhcp_listen_for_messages Service Client DHCP messages */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_respond_to_client_message(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr) { @@ -1902,7 +1765,7 @@ UINT index = 0; case NX_DHCP_TYPE_DHCPINFORM: - /* At this time the server sends just standard network parameters to INFORM requests. + /* At this time the server sends just standard network parameters to INFORM requests. so no additional options to add. */ /* Increment the number of Inform messages received. */ @@ -1935,7 +1798,7 @@ UINT index = 0; packet_ptr -> nx_packet_append_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_DHCP_OFFSET_END; } - /* DHCP Server set the correct destination address and port to send resposne. RFC2131, Section4.1, Page23. + /* DHCP Server set the correct destination address and port to send resposne. RFC2131, Section4.1, Page23. 1. If the 'giaddr' field in a DHCP message from a client is non-zero, the server sends any return messages to the 'DHCP server' port on the BOOTP relay agent whose address appears in 'giaddr'. 2. If the 'giaddr'field is zero and the 'ciaddr' field is nonzero, then the server unicasts DHCPOFFER and DHCPACK messages to the address in 'ciaddr'. @@ -2092,14 +1955,6 @@ UINT index = 0; /* _nx_dhcp_listen_for_messages Handle Client DHCP messages */ /* _nx_dhcp_fast_periodic_timer_entry Session timer entry function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_clear_client_session(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr) { @@ -2165,14 +2020,6 @@ UINT i; /* */ /* Host Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcp_clear_client_record(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr) { @@ -2235,14 +2082,6 @@ UINT status; /* */ /* Host Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_clear_client_record(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr) { @@ -2351,14 +2190,6 @@ NX_DHCP_INTERFACE_TABLE *iface_table_ptr; /* _nx_dhcp_respond_to_dhcp_message Create and send response back */ /* DHCP Client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_load_server_options(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr, UCHAR *buffer, UINT option_type, UINT *index) { @@ -2425,7 +2256,7 @@ UINT lease_time; else if (option_type == NX_DHCP_OPTIONS_FOR_REPLY_TO_INFORM) { - /* The NetX DHCP Server reply to Inform messages includes the standard server option + /* The NetX DHCP Server reply to Inform messages includes the standard server option list which is automatically included. */ } else if (option_type == NX_DHCP_OPTIONS_FOR_GENERIC_ACK) @@ -2496,14 +2327,6 @@ UINT lease_time; /* */ /* _nx_dhcp_server_create Create the DHCP Server instance*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_set_server_options(NX_DHCP_SERVER *dhcp_ptr, CHAR *buffer, UINT buffer_size) { @@ -2587,17 +2410,6 @@ CHAR *work_ptr; /* */ /* _nx_dhcp_set_default_server_options Creates the server option list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), fixed */ -/* obsolescent functions, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_parse_next_option(CHAR **option_list, UINT *option, UINT length) { @@ -2707,18 +2519,6 @@ CHAR *buffer; /* */ /* _nx_dhcp_server_thread_entry DHCP Server thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), corrected*/ -/* the logic of verifying the */ -/* incoming packet length, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_server_packet_process(NX_DHCP_SERVER *dhcp_ptr, NX_PACKET *packet_ptr) { @@ -2817,7 +2617,7 @@ ULONG offset; return(status); } - /* Update the new packet with the bytes copied, and removed. + /* Update the new packet with the bytes copied, and removed. For chained packets, this will reflect the total 'datagram' length. */ new_packet_ptr -> nx_packet_prepend_ptr += 28; new_packet_ptr -> nx_packet_length = bytes_copied - 28; @@ -2934,7 +2734,7 @@ ULONG offset; this will verify they sent the correct IP address and reset the lease time. */ status = _nx_dhcp_server_assign_ip_address(dhcp_ptr, dhcp_client_ptr); - /* Has the server run out of available addresses? Handle this 'error' + /* Has the server run out of available addresses? Handle this 'error' condition separately. */ if (status == NX_DHCP_NO_AVAILABLE_IP_ADDRESSES) { @@ -2943,10 +2743,10 @@ ULONG offset; EL_PRINTF("DHCPserv: Unable to assign IP address; none available\n"); #endif - /* Actually as yet, there is no callback to the host application - for handling this situation. + /* Actually as yet, there is no callback to the host application + for handling this situation. - The server should still send a NACK to the Client that it cannot + The server should still send a NACK to the Client that it cannot provide what it requests. */ } /* Check for errors other than running out of available IP addresses. */ @@ -3009,13 +2809,13 @@ ULONG offset; } } - /* - If the Client is BOUND, the session is over. Clear the session including - the sesison timeout. + /* + If the Client is BOUND, the session is over. Clear the session including + the sesison timeout. - If the Client is still in the BOOT or INIT state something was wrong with their + If the Client is still in the BOOT or INIT state something was wrong with their message or else the server had a problem. Clear the record and they - can start a new session with a retransmission of their request. + can start a new session with a retransmission of their request. */ /* Do we need to clear the session data depending? */ @@ -3039,11 +2839,11 @@ ULONG offset; EL_PRINTF("DHCPserv: Waiting for DHCP client response...\n"); #endif - /* No; assume the Client is Renewing, rebinding, or selecting, + /* No; assume the Client is Renewing, rebinding, or selecting, to set the session timeout to await the next Client response; (not finished with this DHCP session yet). */ - /* Assume we have received at least one message from the Client, so + /* Assume we have received at least one message from the Client, so reset the timer on the client session timeout. */ dhcp_client_ptr -> nx_dhcp_session_timeout = NX_DHCP_CLIENT_SESSION_TIMEOUT; } @@ -3154,14 +2954,6 @@ ULONG offset; /* */ /* _nx_dhcp_slow_periodic_timer_entry Update IP lease time outs */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcp_find_client_record_by_ip_address(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT **dhcp_client_ptr, UINT iface_index, ULONG assigned_ip_address) @@ -3176,7 +2968,7 @@ NX_DHCP_CLIENT *client_record_ptr; i = 0; - /* Records are not necessarily added and deleted sequentially, + /* Records are not necessarily added and deleted sequentially, so search the whole table until a match is found. */ while (i < NX_DHCP_CLIENT_RECORD_TABLE_SIZE) { @@ -3198,7 +2990,7 @@ NX_DHCP_CLIENT *client_record_ptr; else { - /* It appears the client has changed its subnet location but not hardware type e.g. + /* It appears the client has changed its subnet location but not hardware type e.g. same mac address/hardware type but not interface. Clear the old record. */ /* This will remove the client record both in the @@ -3257,14 +3049,6 @@ NX_DHCP_CLIENT *client_record_ptr; /* _nx_dhcp_server_extract_information Extract DHCP info from Client */ /* message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_find_client_record_by_chaddr(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, ULONG client_mac_msw, ULONG client_mac_lsw, NX_DHCP_CLIENT **dhcp_client_ptr, UINT add_on) @@ -3281,7 +3065,7 @@ NX_DHCP_CLIENT *client_record_ptr; /* Initialize an available slot in the table as outside the boundary (e.g. no slots available). */ available_index = NX_DHCP_CLIENT_RECORD_TABLE_SIZE; - /* Records are not necessarily added and deleted sequentially, + /* Records are not necessarily added and deleted sequentially, so search the whole table until a match is found. */ i = 0; while (i < NX_DHCP_CLIENT_RECORD_TABLE_SIZE) @@ -3318,7 +3102,7 @@ NX_DHCP_CLIENT *client_record_ptr; else { - /* It appears the client has changed its location (subnet) but not hardware type e.g. same mac + /* It appears the client has changed its location (subnet) but not hardware type e.g. same mac address/hware type but not interface. Remove the client record entirely and free up any assigned IP address in the server database. */ _nx_dhcp_clear_client_record(dhcp_ptr, client_record_ptr); @@ -3411,14 +3195,6 @@ NX_DHCP_CLIENT *client_record_ptr; /* _nx_dhcp_server_extract_information Extract DHCP info from Client */ /* message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_find_interface_table_ip_address(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, ULONG ip_address, NX_DHCP_INTERFACE_IP_ADDRESS **return_interface_address) @@ -3503,14 +3279,6 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; /* _nx_dhcp_slow_periodic_timer_entry Timer on IP address leases */ /* message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_update_assignable_ip_address(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr, ULONG ip_address, UINT assign_status) @@ -3646,14 +3414,6 @@ NX_DHCP_INTERFACE_IP_ADDRESS *interface_address_ptr; /* _nx_dhcp_server_assign_ip_address Assign an IP address to the */ /* current client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_find_ip_address_owner(NX_DHCP_INTERFACE_IP_ADDRESS *iface_owner, NX_DHCP_CLIENT *client_record_ptr, UINT *assigned_to_client) { @@ -3712,14 +3472,6 @@ static UINT _nx_dhcp_find_ip_address_owner(NX_DHCP_INTERFACE_IP_ADDRESS *iface_ /* _nx_dhcp_server_assign_ip_address Assign an IP address to the */ /* current client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_record_ip_address_owner(NX_DHCP_INTERFACE_IP_ADDRESS *iface_owner, NX_DHCP_CLIENT *client_record_ptr, UINT lease_time) { @@ -3788,14 +3540,6 @@ static UINT _nx_dhcp_record_ip_address_owner(NX_DHCP_INTERFACE_IP_ADDRESS *ifac /* _nx_dhcp_server_assign_ip_address Assign an IP address to the */ /* current client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_clear_ip_address_owner(NX_DHCP_INTERFACE_IP_ADDRESS *iface_owner) { @@ -3852,14 +3596,6 @@ static UINT _nx_dhcp_clear_ip_address_owner(NX_DHCP_INTERFACE_IP_ADDRESS *iface /* _nx_dhcp_listen_for_messages Listen for, process and respond*/ /* to DHCP Client messages */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_validate_client_message(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr) { @@ -3928,8 +3664,8 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; EL_PRINTF("DHCPserv: Received DISCOVER message\n"); #endif - /* Determine if server needs to assign an IP address based on assigned IP address. - e.g. If this appears to be a retransmission of a previous IP address DISOVERY request, + /* Determine if server needs to assign an IP address based on assigned IP address. + e.g. If this appears to be a retransmission of a previous IP address DISOVERY request, only assign another IP address if the client appears not to have been assigned one already.*/ /* Initialize response back to be an offer pending validation check. */ dhcp_client_ptr -> nx_dhcp_response_type_to_client = NX_DHCP_TYPE_DHCPOFFER; @@ -3959,9 +3695,9 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; { - /* This is a more complex message since a client request can be generated from - 4 different states: boot, selecting, renew, rebind. This requires that - we determine the Client state based on what's previously known about + /* This is a more complex message since a client request can be generated from + 4 different states: boot, selecting, renew, rebind. This requires that + we determine the Client state based on what's previously known about the client and which fields are filled in the Request message. */ /* Get the DHCP server IP address for the client package interface. */ @@ -3995,7 +3731,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; break; } - /* Server SHOULD send a DHCPNAK message to the client if the 'requested IP address' is incorrect, or is on the wrong network. + /* Server SHOULD send a DHCPNAK message to the client if the 'requested IP address' is incorrect, or is on the wrong network. RFC 2131, Section 4.3.2, Page31. */ if ((dhcp_client_ptr -> nx_dhcp_assigned_ip_address != 0) && (dhcp_client_ptr -> nx_dhcp_assigned_ip_address != dhcp_client_ptr -> nx_dhcp_requested_ip_address)) @@ -4007,7 +3743,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; EL_PRINTF("DHCPserv: NACK! REQUEST message contains incorrect requested IP address. \n"); #endif - /* No; invalid request. Return the IP address tentatively assigned to + /* No; invalid request. Return the IP address tentatively assigned to the client back to the available IP address pool. */ _nx_dhcp_update_assignable_ip_address(dhcp_ptr, dhcp_client_ptr, ip_address_assigned, @@ -4040,7 +3776,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; EL_PRINTF("DHCPserv: Received REQUEST (SELECT state) message\n"); #endif - /* ...Then the client is in the SELECT state as per RFC 2131 4.3.2 (sent a + /* ...Then the client is in the SELECT state as per RFC 2131 4.3.2 (sent a DISCOVERY message and is responding to a server OFFER message). */ /* Client may NOT specify a Client IP address. */ @@ -4092,7 +3828,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; EL_PRINTF("DHCPserv: SILENCE! REQUEST message indicates Client accepting another server IP.\n"); #endif - /* If this client wants an IP address from this server it must start + /* If this client wants an IP address from this server it must start over at the init state. */ dhcp_client_ptr -> nx_dhcp_client_state = NX_DHCP_STATE_INIT; @@ -4102,7 +3838,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; return(NX_SUCCESS); } - /* Make sure the Client did in fact receive an OFFER from this server (e.g. has + /* Make sure the Client did in fact receive an OFFER from this server (e.g. has been tentatively assigned an IP address from us). */ if (dhcp_client_ptr -> nx_dhcp_assigned_ip_address == NX_DHCP_NO_ADDRESS) { @@ -4121,7 +3857,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; break; } - /* Does the Client's requested IP address match the "Your IP" field in the server OFFER + /* Does the Client's requested IP address match the "Your IP" field in the server OFFER previously sent to this client (e.g. Client's assigned IP address)? */ else if (dhcp_client_ptr -> nx_dhcp_assigned_ip_address != dhcp_client_ptr -> nx_dhcp_requested_ip_address) { @@ -4132,7 +3868,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; EL_PRINTF("DHCPserv: NACK! REQUEST message contains requested IP address. \n"); #endif - /* No; invalid request. Return the IP address tentatively assigned to + /* No; invalid request. Return the IP address tentatively assigned to the client back to the available IP address pool. */ _nx_dhcp_update_assignable_ip_address(dhcp_ptr, dhcp_client_ptr, ip_address_assigned, @@ -4153,7 +3889,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; dhcp_client_ptr -> nx_dhcp_client_state = NX_DHCP_STATE_REQUESTING; } - /* Is this a RENEW or REBIND request? If so the server ID and requested IP options must + /* Is this a RENEW or REBIND request? If so the server ID and requested IP options must NOT be filled in as per RFC 2131 4.3.2. */ else if ((dhcp_client_ptr -> nx_dhcp_server_id == NX_DHCP_NO_ADDRESS) && (dhcp_client_ptr -> nx_dhcp_requested_ip_address == NX_DHCP_NO_ADDRESS)) @@ -4208,7 +3944,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; EL_PRINTF("DHCPserv: NACK! REQUEST message; server has no record of assigned IP address.\n"); #endif - /* No; possibly assigned by another DHCP server or outside of DHCP protocol. + /* No; possibly assigned by another DHCP server or outside of DHCP protocol. Reject the renewal request. */ dhcp_client_ptr -> nx_dhcp_response_type_to_client = NX_DHCP_TYPE_DHCPNACK; @@ -4267,8 +4003,8 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; /* The Client is releasing it's IP address back to the server. A client is not required to do this; usually it indicates the client may have moved on the - network. - + network. + Clear the client record and mark the IP address as available. If the request proves invalid, this server will ignore it and let the Client's assigned IP lease expire. */ @@ -4323,7 +4059,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; } } - /* Legitimate release request: return the IP address to the available pool, + /* Legitimate release request: return the IP address to the available pool, and clear the client session. */ /* Release the client's assigned IP address (in the "CI-ADDR" field). */ @@ -4334,7 +4070,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; /* Clear the Client's assigned IP address. */ dhcp_client_ptr -> nx_dhcp_assigned_ip_address = NX_DHCP_NO_ADDRESS; - /* If this client wants to configure its network parameters with us it + /* If this client wants to configure its network parameters with us it must start at the INIT state. */ dhcp_client_ptr -> nx_dhcp_client_state = NX_DHCP_STATE_INIT; @@ -4414,10 +4150,10 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; #endif - /* A DHCP client sends an INFORM message when it has been assigned an IP address - with another server or outside DHCP but still needs local configuration data. - The DHCP server must update its database with their address (specified in the "CI-ADDR" field) - as no longer available. When the server forms a reply ACK, it must leave the + /* A DHCP client sends an INFORM message when it has been assigned an IP address + with another server or outside DHCP but still needs local configuration data. + The DHCP server must update its database with their address (specified in the "CI-ADDR" field) + as no longer available. When the server forms a reply ACK, it must leave the 'Your IP' and lease time fields blank as per RFC 2131 3.4. */ @@ -4452,7 +4188,7 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; if (dhcp_client_ptr -> nx_dhcp_client_state != NX_DHCP_STATE_BOUND) { - /* No, so if this client needs to configure an IP address assigned + /* No, so if this client needs to configure an IP address assigned with this server it must start at the INIT state. */ dhcp_client_ptr -> nx_dhcp_client_state = NX_DHCP_STATE_INIT; } @@ -4499,8 +4235,8 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; } /* Check if the Client has requested a valid IP address. This is only permitted - with a DISCO or REQUEST messages while the Client is in either the BOOT/INIT - or SELECT states. + with a DISCO or REQUEST messages while the Client is in either the BOOT/INIT + or SELECT states. As per RFC 2131 4.3.1, the DHCP server should assign an IP address in order of preference as follows: 1) the client currently is bound to @@ -4586,14 +4322,6 @@ NX_DHCP_INTERFACE_TABLE *dhcp_interface_table_ptr; /* proper data and determine */ /* server response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_server_assign_ip_address(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT *dhcp_client_ptr) { @@ -4608,7 +4336,7 @@ UINT lease_time; /* Set a flag on the outcome of finding an available address. */ assigned_ip = NX_FALSE; - /* Compute the client lease time based on client's requested + /* Compute the client lease time based on client's requested lease time and server default lease time. */ lease_time = dhcp_client_ptr -> nx_dhcp_requested_lease_time; @@ -4694,7 +4422,7 @@ UINT lease_time; EL_PRINTF("DHCPserv: NACK! Cannot assign requested IP address (not owned by server)\n"); #endif - /* Apparently the client has asked for an IP address either not + /* Apparently the client has asked for an IP address either not in the server database or on another network. We cannot provide this so return a NACK. */ dhcp_client_ptr -> nx_dhcp_response_type_to_client = NX_DHCP_TYPE_DHCPNACK; @@ -4710,12 +4438,12 @@ UINT lease_time; return(NX_SUCCESS); } - /* For a Discovery request, the server will go ahead and find an + /* For a Discovery request, the server will go ahead and find an available IP address to offer the client. */ } } - /* If the client doesn't have an address assigned yet, find one in the server table not + /* If the client doesn't have an address assigned yet, find one in the server table not yet assigned. */ if (interface_address_ptr == 0x0) { @@ -4859,20 +4587,6 @@ UINT lease_time; /* */ /* _nx_dhcp_listen_for_messages Process DHCP Client messages */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed the issue of read */ -/* and write overflow, */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_server_extract_information(NX_DHCP_SERVER *dhcp_ptr, NX_DHCP_CLIENT **dhcp_client_ptr, NX_PACKET *packet_ptr, UINT iface_index) @@ -4940,7 +4654,7 @@ NX_DHCP_CLIENT *temp_client_rec_ptr; return(status); } - /* Check this is a 'request' DHCP Client message (not to be confused with the REQUEST + /* Check this is a 'request' DHCP Client message (not to be confused with the REQUEST message type. */ if (value != NX_DHCP_OP_REQUEST) { @@ -5013,7 +4727,7 @@ NX_DHCP_CLIENT *temp_client_rec_ptr; return(status); } - /* This is the "Your IP address" which only the server should fill in. Should be zero in + /* This is the "Your IP address" which only the server should fill in. Should be zero in client messages. */ temp_client_rec_ptr -> nx_dhcp_your_ip_address = value; @@ -5058,7 +4772,7 @@ NX_DHCP_CLIENT *temp_client_rec_ptr; if (work_ptr + 2 > packet_ptr -> nx_packet_append_ptr) { - /* Yes, Client must have sent a DHCP message with improperly terminated option + /* Yes, Client must have sent a DHCP message with improperly terminated option data (or Client is using a super large DHCP packet). */ return(NX_DHCP_IMPROPERLY_TERMINATED_OPTION); } @@ -5147,17 +4861,6 @@ NX_DHCP_CLIENT *temp_client_rec_ptr; /* */ /* _nx_dhcp_server_extract_information Extract DHCP data from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* fixed the issue of infinite */ -/* recursion, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_process_option_data(NX_DHCP_CLIENT *dhcp_client_ptr, CHAR *buffer, UCHAR option, UINT get_option_data, UINT size) { @@ -5259,7 +4962,7 @@ ULONG option_value = 0; break; case 54: - /* Server ID by which server identifies itself to client(usually server IP address). + /* Server ID by which server identifies itself to client(usually server IP address). The Client includes this option in a REQUEST message to identify which server it wants to lease an IP address from. */ dhcp_client_ptr -> nx_dhcp_user_options[dhcp_client_ptr -> nx_dhcp_client_option_count] = option; @@ -5344,21 +5047,13 @@ ULONG option_value = 0; /* _nx_dhcp_respond_to_dhcp_message Prepare and send out DHCP */ /* response to client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_add_requested_option(NX_DHCP_SERVER *dhcp_ptr, UINT iface_index, UCHAR *buffer, UINT option, UINT *index) { UINT status = NX_SUCCESS; - /* The NetX DHCP server provides a limited list of DHCP options for ACK responses. These do NOT + /* The NetX DHCP server provides a limited list of DHCP options for ACK responses. These do NOT include the server's 'required' options. */ switch (option) { @@ -5423,14 +5118,6 @@ UINT status = NX_SUCCESS; /* */ /* _nx_dhcp_process Process the DHCP state machine*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_add_option(UCHAR *dhcp_message, UINT option, UINT size, ULONG value, UINT *index) { @@ -5491,14 +5178,6 @@ static UINT _nx_dhcp_add_option(UCHAR *dhcp_message, UINT option, UINT size, UL /* _nx_dhcp_server_extract_information Extract server information */ /* _nx_dhcp_update_address_list Update address list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dhcp_server_get_data(UCHAR *data, UINT size, ULONG *value) { @@ -5563,14 +5242,6 @@ static UINT _nx_dhcp_server_get_data(UCHAR *data, UINT size, ULONG *value) /* _nx_dhcp_send_request Send DHCP request */ /* _nx_dhcp_add_option Add a DHCP option */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_dhcp_server_store_data(UCHAR *data, UINT size, ULONG value) { diff --git a/addons/dhcp/nxd_dhcp_server.h b/addons/dhcp/nxd_dhcp_server.h index 8f612bfc..8ceeda44 100644 --- a/addons/dhcp/nxd_dhcp_server.h +++ b/addons/dhcp/nxd_dhcp_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,21 +38,6 @@ /* references. It is assumed that nx_api.h and nx_port.h have already */ /* been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* modified the type of */ -/* nx_dhcp_user_options, */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_DHCP_SERVER_H @@ -141,7 +126,7 @@ extern "C" { -/* Define an interval in seconds for the session timer to check the time remaining on +/* Define an interval in seconds for the session timer to check the time remaining on all the active clients in the server database. */ #ifndef NX_DHCP_FAST_PERIODIC_TIME_INTERVAL @@ -159,7 +144,7 @@ extern "C" { #endif -/* Define an interval in seconds for the IP lease timer to check the time remaining on +/* Define an interval in seconds for the IP lease timer to check the time remaining on all the assigned IP addresses in the server database. */ #ifndef NX_DHCP_SLOW_PERIODIC_TIME_INTERVAL @@ -167,7 +152,7 @@ extern "C" { #endif -/* Set the default lease time in seconds on the IP address the server +/* Set the default lease time in seconds on the IP address the server will assign to the Client. */ #ifndef NX_DHCP_DEFAULT_LEASE_TIME @@ -178,7 +163,7 @@ extern "C" { /* Set a size of the Server option list requested by the Client. Since the NetX DHCP Server does not as yet support the complete set of options in DHCP, this number can be optimized - down to a smaller size that the largest possible number of options a Client could request. + down to a smaller size that the largest possible number of options a Client could request. */ #ifndef NX_DHCP_CLIENT_OPTIONS_MAX @@ -187,12 +172,12 @@ extern "C" { /* There are optional and required elements of the server option list. - Use the required plus the user configurable option list for the - server list to respond back to the client. + Use the required plus the user configurable option list for the + server list to respond back to the client. */ -/* At the very least, a DHCP server should supply the - Client's subnet mask, router (default gateway) address and dns server. This list must be +/* At the very least, a DHCP server should supply the + Client's subnet mask, router (default gateway) address and dns server. This list must be space separated. The combined required and optional server options should be less than NX_DHCP_CLIENT_OPTIONS_MAX. */ @@ -252,10 +237,10 @@ extern "C" { #endif -/* +/* Define the packet payload size, keeping in mind the DHCP Server must support - at least a 548 byte DHCP Client message as per RFC 2131 and allow room for Ethernet, UDP and - IP headers and 4 byte alignment. + at least a 548 byte DHCP Client message as per RFC 2131 and allow room for Ethernet, UDP and + IP headers and 4 byte alignment. */ #ifndef NX_DHCP_MINIMUM_PACKET_PAYLOAD #define NX_DHCP_MINIMUM_PACKET_PAYLOAD (NX_BOOT_BUFFER_SIZE + NX_PHYSICAL_HEADER + sizeof(NX_IPV4_HEADER) + sizeof(NX_UDP_HEADER)) @@ -491,7 +476,7 @@ typedef struct NX_DHCP_INTERFACE_TABLE_STRUCT /* Define the Interface address list. */ -/* Define the DHCP structure that contains all the server information necessary for this DHCP +/* Define the DHCP structure that contains all the server information necessary for this DHCP instance. */ typedef struct NX_DHCP_SERVER_STRUCT @@ -529,9 +514,9 @@ typedef struct NX_DHCP_SERVER_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map DHCP API functions +/* Determine if error checking is desired. If so, map DHCP API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/dhcp/nxd_dhcpv6_client.c b/addons/dhcp/nxd_dhcpv6_client.c index e7ffa741..a303075d 100644 --- a/addons/dhcp/nxd_dhcpv6_client.c +++ b/addons/dhcp/nxd_dhcpv6_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -92,15 +92,6 @@ static NX_DHCPV6 *_nx_dhcpv6_DAD_ptr; /* _nx_dhcpv6_send_request Compiles and sends the Client */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_client_duid(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -240,15 +231,6 @@ UINT i = 0; /* _nx_dhcpv6_send_request Compiles and sends the Client */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_elapsed_time(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -327,15 +309,6 @@ ULONG available_payload; /* _nx_dhcpv6_add_iana Adds the IANA and optionally the */ /* IA option to Client request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_ia_address(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index, UINT ia_index) { @@ -422,7 +395,7 @@ ULONG available_payload; (dhcpv6_ptr -> nx_dhcpv6_message_hdr.nx_message_type == NX_DHCPV6_MESSAGE_TYPE_RELEASE)) { - /* When sending a confirm request, DHCPv6 Client should set its T1,T2,preferred-lifetime and + /* When sending a confirm request, DHCPv6 Client should set its T1,T2,preferred-lifetime and valid-lifetime to zero, as the server will ignore these fields, RFC3315,page41. */ memset((buffer_ptr + (*index)), 0, sizeof(ULONG)); (*index) += (ULONG)sizeof(ULONG); @@ -493,15 +466,6 @@ ULONG available_payload; /* _nx_dhcpv6_send_request Compiles and sends the Client */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_iana(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -549,7 +513,7 @@ ULONG available_payload; (dhcpv6_ptr -> nx_dhcpv6_message_hdr.nx_message_type == NX_DHCPV6_MESSAGE_TYPE_RELEASE)) { - /* When sending a confirm request, DHCPv6 Client should set its T1,T2,preferred-lifetime and + /* When sending a confirm request, DHCPv6 Client should set its T1,T2,preferred-lifetime and valid-lifetime to zero, as the server will ignore these fields, RFC3315,page41. */ memset((buffer_ptr + (*index)), 0, sizeof(ULONG)); /* Use case of memcpy is verified. */ (*index) += (ULONG)sizeof(ULONG); @@ -653,15 +617,6 @@ ULONG available_payload; /* _nx_dhcpv6_send_request Compiles and sends the Client */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_option_request(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -773,9 +728,9 @@ ULONG available_payload; option_length = (USHORT)(option_length + sizeof(SHORT)); } - /* Is the fully qualified domain name option requested? + /* Is the fully qualified domain name option requested? A client MUST only include the Client FQDN option in SOLICIT, REQUEST, RENEW, or REBIND message. - A client that sends the Client FQDN option MUST also include the option in the Option Requst option + A client that sends the Client FQDN option MUST also include the option in the Option Requst option if it expects the server to include the Client FQDN option in any responses. RFC4704, Section5, Page7. */ if(((dhcpv6_ptr -> nx_dhcpv6_message_hdr.nx_message_type == NX_DHCPV6_MESSAGE_TYPE_SOLICIT) || (dhcpv6_ptr -> nx_dhcpv6_message_hdr.nx_message_type == NX_DHCPV6_MESSAGE_TYPE_REQUEST) || @@ -844,15 +799,6 @@ ULONG available_payload; /* _nx_dhcpv6_send_request Compiles and sends the Client */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_server_duid(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -994,15 +940,6 @@ UINT i = 0; /* _nx_dhcpv6_send_request Compiles and sends the Client */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_client_FQDN(NX_DHCPV6 *dhcpv6_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -1089,14 +1026,6 @@ UINT domain_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_client_create(NX_DHCPV6 *dhcpv6_ptr, NX_IP *ip_ptr, CHAR *name_ptr, NX_PACKET_POOL *packet_pool_ptr, VOID *stack_ptr, ULONG stack_size, @@ -1181,14 +1110,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_client_create(NX_DHCPV6 *dhcpv6_ptr, NX_IP *ip_ptr, CHAR *name_ptr, NX_PACKET_POOL *packet_pool_ptr, VOID *stack_ptr, ULONG stack_size, @@ -1389,7 +1310,7 @@ UINT status; #if !defined (NX_DISABLE_IPV6_DAD) && defined (NX_ENABLE_IPV6_ADDRESS_CHANGE_NOTIFY) /* Set the callback function to detect DAD process. - If DAD failure, automatically set event to send DHCP decline meessage. + If DAD failure, automatically set event to send DHCP decline meessage. Notice: other modules should not set the address change notify function again. */ status = nxd_ipv6_address_change_notify(dhcpv6_ptr -> nx_dhcpv6_ip_ptr, _nx_dhcpv6_ipv6_address_DAD_notify); @@ -1461,14 +1382,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_client_delete(NX_DHCPV6 *dhcpv6_ptr) { @@ -1530,14 +1443,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_client_delete(NX_DHCPV6 *dhcpv6_ptr) { @@ -1611,14 +1516,6 @@ UINT _nx_dhcpv6_client_delete(NX_DHCPV6 *dhcpv6_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_create_client_duid(NX_DHCPV6 *dhcpv6_ptr, UINT duid_type, UINT hardware_type, ULONG time) { @@ -1704,14 +1601,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_create_client_duid(NX_DHCPV6 *dhcpv6_ptr, UINT duid_type, UINT hardware_type, ULONG time) { @@ -1823,14 +1712,6 @@ USHORT option_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_add_client_ia(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRESS *ipv6_address, ULONG preferred_lifetime, ULONG valid_lifetime) @@ -1860,7 +1741,7 @@ UINT status; if (preferred_lifetime > valid_lifetime) { - /* Client preferred time must be less than valid time or + /* Client preferred time must be less than valid time or server will reject it. */ return NX_DHCPV6_PARAM_ERROR; } @@ -1917,14 +1798,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_client_ia(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRESS *ipv6_address, ULONG preferred_lifetime, ULONG valid_lifetime) @@ -2027,14 +1900,6 @@ UINT ia_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_create_client_iana(NX_DHCPV6 *dhcpv6_ptr, UINT IA_ident, ULONG T1, ULONG T2) { @@ -2102,14 +1967,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_create_client_iana(NX_DHCPV6 *dhcpv6_ptr, UINT IA_ident, ULONG T1, ULONG T2) { @@ -2166,14 +2023,6 @@ UINT _nx_dhcpv6_create_client_iana(NX_DHCPV6 *dhcpv6_ptr, UINT IA_ident, ULON /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_client_duid_time_id(NX_DHCPV6 *dhcpv6_ptr, ULONG *time_id) { @@ -2234,14 +2083,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_client_duid_time_id(NX_DHCPV6 *dhcpv6_ptr, ULONG *time_id) { @@ -2295,14 +2136,6 @@ UINT _nx_dhcpv6_get_client_duid_time_id(NX_DHCPV6 *dhcpv6_ptr, ULONG *time_id) /* */ /* nx_dhcpv6_process Process received packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_register_IP_address(NX_DHCPV6 *dhcpv6_ptr) { @@ -2390,14 +2223,6 @@ UINT ia_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_IP_address(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRESS *ip_address) { @@ -2463,14 +2288,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_IP_address(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRESS *ip_address) { @@ -2535,14 +2352,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_lease_time_data(NX_DHCPV6 *dhcpv6_ptr, ULONG *T1, ULONG *T2, ULONG *preferred_lifetime, ULONG *valid_lifetime) @@ -2607,14 +2416,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_lease_time_data(NX_DHCPV6 *dhcpv6_ptr, ULONG *T1, ULONG *T2, ULONG *preferred_lifetime, ULONG *valid_lifetime) @@ -2672,14 +2473,6 @@ UINT _nx_dhcpv6_get_lease_time_data(NX_DHCPV6 *dhcpv6_ptr, ULONG *T1, ULONG *T2, /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_DNS_server_address(NX_DHCPV6 *dhcpv6_ptr, UINT index, NXD_ADDRESS *server_address) { @@ -2746,14 +2539,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_DNS_server_address(NX_DHCPV6 *dhcpv6_ptr, UINT index, NXD_ADDRESS *server_address) @@ -2806,14 +2591,6 @@ UINT _nx_dhcpv6_get_DNS_server_address(NX_DHCPV6 *dhcpv6_ptr, UINT index, NXD_A /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_time_server_address(NX_DHCPV6 *dhcpv6_ptr, UINT index, NXD_ADDRESS *server_address) { @@ -2880,14 +2657,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_time_server_address(NX_DHCPV6 *dhcpv6_ptr, UINT index, NXD_ADDRESS *server_address) { @@ -2941,14 +2710,6 @@ UINT _nx_dhcpv6_get_time_server_address(NX_DHCPV6 *dhcpv6_ptr, UINT index, NXD_ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_other_option_data(NX_DHCPV6 *dhcpv6_ptr, UINT option_code, UCHAR *buffer,UINT buffer_length) { @@ -3018,15 +2779,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_other_option_data(NX_DHCPV6 *dhcpv6_ptr, UINT option_code, UCHAR *buffer, UINT buffer_length) { @@ -3115,14 +2867,6 @@ UINT length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_time_accrued(NX_DHCPV6 *dhcpv6_ptr, ULONG *time_accrued) { @@ -3183,14 +2927,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_time_accrued(NX_DHCPV6 *dhcpv6_ptr, ULONG *time_accrued) { @@ -3259,14 +2995,6 @@ UINT found_ia = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_iana_lease_time(NX_DHCPV6 *dhcpv6_ptr, ULONG *T1, ULONG *T2) { @@ -3323,14 +3051,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_iana_lease_time(NX_DHCPV6 *dhcpv6_ptr, ULONG *T1, ULONG *T2) { @@ -3401,14 +3121,6 @@ UINT found_ia = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_valid_ip_address_count(NX_DHCPV6 *dhcpv6_ptr, UINT *address_count) { @@ -3465,14 +3177,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_valid_ip_address_count(NX_DHCPV6 *dhcpv6_ptr, UINT *address_count) { @@ -3537,14 +3241,6 @@ UINT ia_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_get_valid_ip_address_lease_time(NX_DHCPV6 *dhcpv6_ptr, UINT address_index, NXD_ADDRESS *ip_address, ULONG *preferred_lifetime, ULONG *valid_lifetime) @@ -3605,14 +3301,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_get_valid_ip_address_lease_time(NX_DHCPV6 *dhcpv6_ptr, UINT address_index, NXD_ADDRESS *ip_address, ULONG *preferred_lifetime, ULONG *valid_lifetime) @@ -3703,14 +3391,6 @@ UINT valid_ia_count; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_IP_lifetime_timeout_entry(ULONG dhcpv6_ptr_value) { @@ -3727,7 +3407,7 @@ NX_DHCPV6 *dhcpv6_ptr; (dhcpv6_ptr -> nx_dhcpv6_iana.nx_T1 != 0)) { - /* Update the time remaining on the Client IP address lease. + /* Update the time remaining on the Client IP address lease. The current time expressed in units of seconds. */ dhcpv6_ptr -> nx_dhcpv6_IP_lifetime_time_accrued += NX_DHCPV6_IP_LIFETIME_TIMER_INTERVAL; } @@ -3781,14 +3461,6 @@ NX_DHCPV6 *dhcpv6_ptr; /* */ /* _nx_dhcpv6_thread_entry Processing thread for DHCPv6 */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_process(NX_DHCPV6 *dhcpv6_ptr) { @@ -3863,7 +3535,7 @@ UCHAR original_state; if (_nx_dhcpv6_update_retransmit_info(dhcpv6_ptr)) { - /* The retry limit on Solicit messages is exceeded. Set the CLient back to + /* The retry limit on Solicit messages is exceeded. Set the CLient back to the INIT state and stop sending solicit messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -3875,7 +3547,7 @@ UCHAR original_state; if(dhcpv6_ptr -> nx_dhcpv6_request_solicit_mode == NX_DHCPV6_SOLICIT_NORMAL) { - /* Server has responded to and accepted the SOLICIT request with an ADVERTISE message. + /* Server has responded to and accepted the SOLICIT request with an ADVERTISE message. Move to the next state to continue the DHCPv6 protocol. */ /* Set the DHCP Client state to Requesting. */ @@ -3932,7 +3604,7 @@ UCHAR original_state; } - /* The DHCP Client is in the REQUEST state; send the Request message till the server responds + /* The DHCP Client is in the REQUEST state; send the Request message till the server responds or the number of retries exceeds the max. */ case NX_DHCPV6_STATE_SENDING_REQUEST: { @@ -3987,7 +3659,7 @@ UCHAR original_state; if (_nx_dhcpv6_update_retransmit_info(dhcpv6_ptr)) { - /* The retry limit on Request messages is exceeded. Set the Client back to + /* The retry limit on Request messages is exceeded. Set the Client back to the INIT state and stop sending request messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -4057,7 +3729,7 @@ UCHAR original_state; { /* When the client receives a Reply message in response to a Renew or Rebind message, - send a Request message if the IA contains a Status Code option with the NoBinding status. + send a Request message if the IA contains a Status Code option with the NoBinding status. RFC 3315, Sectoon 18.1.8, Page 48. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_SENDING_REQUEST; @@ -4087,7 +3759,7 @@ UCHAR original_state; /* Clear the assigned IP address. */ _nx_dhcpv6_remove_assigned_address(dhcpv6_ptr, NX_DHCPV6_REMOVE_ALL_IA_ADDRESS); - /* The retry limit on Renew messages is exceeded. Set the Client back to + /* The retry limit on Renew messages is exceeded. Set the Client back to the INIT state and stop sending Renew messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -4160,7 +3832,7 @@ UCHAR original_state; { /* When the client receives a Reply message in response to a Renew or Rebind message, - send a Request message if the IA contains a Status Code option with the NoBinding status. + send a Request message if the IA contains a Status Code option with the NoBinding status. RFC 3315, Section 18.1.8, Page 48. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_SENDING_REQUEST; @@ -4190,7 +3862,7 @@ UCHAR original_state; /* Clear the assigned IP address. */ _nx_dhcpv6_remove_assigned_address(dhcpv6_ptr, NX_DHCPV6_REMOVE_ALL_IA_ADDRESS); - /* The retry limit on Rebind messages is exceeded. Set the Client back to + /* The retry limit on Rebind messages is exceeded. Set the Client back to the INIT state and stop sending Rebind messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -4267,7 +3939,7 @@ UCHAR original_state; if (_nx_dhcpv6_update_retransmit_info(dhcpv6_ptr)) { - /* The retry limit on Confirm messages is exceeded. Set the Client back to + /* The retry limit on Confirm messages is exceeded. Set the Client back to the INIT state and stop sending rebind messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -4334,7 +4006,7 @@ UCHAR original_state; /* Clear global ip address and lifetime parameters from the Client record. */ _nx_dhcpv6_remove_assigned_address(dhcpv6_ptr, NX_DHCPV6_REMOVE_ALL_IA_ADDRESS); - /* The retry limit on release messages is exceeded. Set the Client back to + /* The retry limit on release messages is exceeded. Set the Client back to the INIT state and stop sending rebind messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -4396,7 +4068,7 @@ UCHAR original_state; /* Clear global ip address and lifetime parameters from the Client record. */ _nx_dhcpv6_remove_assigned_address(dhcpv6_ptr, NX_DHCPV6_REMOVE_ALL_IA_ADDRESS); - /* The retry limit on decline messages is exceeded. Set the Client back to + /* The retry limit on decline messages is exceeded. Set the Client back to the INIT state and stop sending rebind messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; @@ -4456,7 +4128,7 @@ UCHAR original_state; if (_nx_dhcpv6_update_retransmit_info(dhcpv6_ptr)) { - /* The retry limit on decline messages is exceeded. Set the Client back to + /* The retry limit on decline messages is exceeded. Set the Client back to the INIT state and stop sending rebind messages for now. */ dhcpv6_ptr -> nx_dhcpv6_state = NX_DHCPV6_STATE_INIT; } @@ -4541,15 +4213,6 @@ UCHAR original_state; /* _nx_dhcpv6_extract_packet_information */ /* Extracts server reply from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_client_duid(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -4558,7 +4221,7 @@ ULONG data; UINT index = 0; - /* The Client should already have its own DUID on record. So just parse the + /* The Client should already have its own DUID on record. So just parse the data and compare each DUID field with the Client's DUID. */ /* Check option length for DUID type and hardware type. */ @@ -4718,15 +4381,6 @@ UINT index = 0; /* Extracts DHCPv6 options from */ /* server reply */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_domain_name(NX_DHCPV6 *dhcpv6_ptr, UCHAR *packet_start, UCHAR *option_data, UINT option_length) { @@ -4830,14 +4484,6 @@ UINT i; /* */ /* _nx_dhcpv6_add_client_FQDN Add FQDN Option to DHCPv6 packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_name_string_encode(UCHAR *ptr, UCHAR *name) { @@ -4930,17 +4576,6 @@ UINT count = 1; /* */ /* _nx_dhcpv6_process_domain_name Process the domain name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), fixed */ -/* domain name labelSize issue,*/ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_name_string_unencode(UCHAR *data, UINT start, UCHAR *buffer, UINT size) { @@ -4949,7 +4584,7 @@ UCHAR *character = data + start; UINT length = 0; - /* As long as there is space in the buffer and we haven't + /* As long as there is space in the buffer and we haven't found a zero terminating label */ while ((size > length) && (*character != '\0')) { @@ -4975,7 +4610,7 @@ UINT length = 0; } else { - /* Not defined or in compressed form. Based on section 8 of RFC 3315, + /* Not defined or in compressed form. Based on section 8 of RFC 3315, a domain name, or list of domain names, in DHCP MUST NOT be stored in compressed form, so just fail */ return(0); @@ -5042,16 +4677,6 @@ UINT length = 0; /* Extracts DHCPv6 options from */ /* server reply */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_DNS_server(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -5154,16 +4779,6 @@ UINT w, j = 0; /* _nx_dhcpv6_process_iana Processes IANA in reply buffer */ /* DHCPv6 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_ia(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length, UINT ia_index) { @@ -5217,7 +4832,7 @@ ULONG ia_option_code, ia_option_length; NX_CHANGE_ULONG_ENDIAN(valid_lifetime); /* Check for invalid lifetime data. The preferred lifetime MUST be less than - the valid lifetime. Note that a zero lifetime is acceptable + the valid lifetime. Note that a zero lifetime is acceptable (the server is letting the Client use its own preference). */ if (preferred_lifetime > valid_lifetime) { @@ -5370,15 +4985,6 @@ ULONG ia_option_code, ia_option_length; /* _nx_dhcpv6_extract_packet_information */ /* Extracts server reply from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_iana(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -5648,15 +5254,6 @@ UINT ia_status; /* Extracts DHCPv6 options from */ /* server reply */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_preference(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -5715,15 +5312,6 @@ UINT _nx_dhcpv6_process_preference(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UI /* _nx_dhcpv6_extract_packet_information */ /* Extracts server reply from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_server_duid(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -5908,16 +5496,6 @@ ULONG temp_lsw = 0; /* DHCPv6 request */ /* _nx_dhcpv6_process_ia Processes IA in reply buffer */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_status(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -5999,15 +5577,6 @@ ULONG status_code; /* Extracts DHCPv6 options from */ /* server reply */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_time_zone(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -6071,16 +5640,6 @@ UINT i; /* Extracts DHCPv6 options from */ /* server reply */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_time_server(NX_DHCPV6 *dhcpv6_ptr, UCHAR *option_data, UINT option_length) { @@ -6175,14 +5734,6 @@ UINT w, j = 0; /* */ /* nx_dhcpv6_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_remove_assigned_address(NX_DHCPV6 *dhcpv6_ptr, UINT ia_index) { @@ -6309,14 +5860,6 @@ UINT index; /* Submits an Inform Request request */ /* to Client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request(NX_DHCPV6 *dhcpv6_ptr, UINT dhcpv6_state) { @@ -6347,7 +5890,7 @@ UINT status; return(NX_DHCPV6_NOT_STARTED); } - /* Wait for an opportunity to stop the DHCPv6 Client thread e.g. not in the midst of + /* Wait for an opportunity to stop the DHCPv6 Client thread e.g. not in the midst of modifying the host DHCP profile! */ while (dhcpv6_ptr -> nx_dhcpv6_sleep_flag != NX_TRUE) { @@ -6406,14 +5949,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_confirm(NX_DHCPV6 *dhcpv6_ptr) { @@ -6475,14 +6010,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_confirm(NX_DHCPV6 *dhcpv6_ptr) { @@ -6546,14 +6073,6 @@ UINT status; /* _nx_dhcpv6_process Processes server replies to */ /* DHCPv6 Client requests */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_decline(NX_DHCPV6 *dhcpv6_ptr) { @@ -6577,14 +6096,14 @@ UINT ia_index; /* Activate the session timer to update the elapsed time. */ tx_timer_activate(&dhcpv6_ptr -> nx_dhcpv6_session_timer); - /* Now remove the address from the IP address table,the client MUST NOT use any of the addresses it is declining + /* Now remove the address from the IP address table,the client MUST NOT use any of the addresses it is declining as the source address in the Release message or in any subsequently transmitted message, RFC3315,section18.1.7.. */ /* Set the DHCPv6 Client IPv6 addresses. */ for(ia_index = 0; ia_index < NX_DHCPV6_MAX_IA_ADDRESS; ia_index++) { - /* Now remove the address from the IP address table,the client MUST NOT use any of the addresses it is declining + /* Now remove the address from the IP address table,the client MUST NOT use any of the addresses it is declining as the source address in the Release message or in any subsequently transmitted message, RFC3315,section18.1.7.. */ /* Verify we have a valid address index. */ @@ -6647,14 +6166,6 @@ UINT ia_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_inform_request(NX_DHCPV6 *dhcpv6_ptr) { @@ -6711,14 +6222,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_inform_request(NX_DHCPV6 *dhcpv6_ptr) { @@ -6786,14 +6289,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_option_DNS_server(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -6852,14 +6347,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_option_DNS_server(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -6919,14 +6406,6 @@ UINT _nx_dhcpv6_request_option_DNS_server(NX_DHCPV6 *dhcpv6_ptr, UINT enable) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_option_domain_name(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -6986,14 +6465,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_option_domain_name(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -7051,14 +6522,6 @@ UINT _nx_dhcpv6_request_option_domain_name(NX_DHCPV6 *dhcpv6_ptr, UINT enable) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_option_time_server(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -7118,14 +6581,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_option_time_server(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -7182,14 +6637,6 @@ UINT _nx_dhcpv6_request_option_time_server(NX_DHCPV6 *dhcpv6_ptr, UINT enable) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_option_timezone(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -7249,14 +6696,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_option_timezone(NX_DHCPV6 *dhcpv6_ptr, UINT enable) { @@ -7314,14 +6753,6 @@ UINT _nx_dhcpv6_request_option_timezone(NX_DHCPV6 *dhcpv6_ptr, UINT enable) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_option_FQDN(NX_DHCPV6 *dhcpv6_ptr, CHAR *domain_name, UINT op) { @@ -7380,14 +6811,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_option_FQDN(NX_DHCPV6 *dhcpv6_ptr, CHAR *domain_name, UINT op) { @@ -7408,7 +6831,7 @@ UINT name_length; /* Set the Client fully qualified domain name. */ dhcpv6_ptr -> nx_dhcpv6_client_FQDN.nx_domain_name = domain_name; - /* Flags Field. + /* Flags Field. 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ | MBZ |N|O|S| @@ -7426,14 +6849,14 @@ UINT name_length; else if (op == NX_DHCPV6_CLIENT_DESIRES_SERVER_DO_DNS_UPDATE) { - /* DHCPv6 Client chooses to update the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the Client to the Server. + /* DHCPv6 Client chooses to update the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the Client to the Server. Set the "S" bit as 1, Set "O" and "N" bits as 0. */ dhcpv6_ptr -> nx_dhcpv6_client_FQDN.nx_flags = 0x01; } else { - /* DHCPv6 Client choose to request that the Server perform no DNS updates on its behalf. + /* DHCPv6 Client choose to request that the Server perform no DNS updates on its behalf. Set the "N" bit as 1, Set "O" and "S" bits as 0. */ dhcpv6_ptr -> nx_dhcpv6_client_FQDN.nx_flags = 0x04; } @@ -7484,14 +6907,6 @@ UINT name_length; /* Application Code */ /* _nx_dhcpv6_thread_entry DHCPv6 Client thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_rebind(NX_DHCPV6 *dhcpv6_ptr) { @@ -7505,7 +6920,7 @@ UINT max_valid_lifetime = 0; if (dhcpv6_ptr -> nx_dhcpv6_state == NX_DHCPV6_STATE_SENDING_REBIND) { - /* Yes, the rebind process is already started. No need to re-request it. + /* Yes, the rebind process is already started. No need to re-request it. Also must not zero out retry count or reset timeout back to starting value. */ return NX_SUCCESS; } @@ -7586,14 +7001,6 @@ UINT max_valid_lifetime = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_release(NX_DHCPV6 *dhcpv6_ptr) { @@ -7651,14 +7058,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_release(NX_DHCPV6 *dhcpv6_ptr) { @@ -7699,7 +7098,7 @@ UINT ia_index; for(ia_index = 0; ia_index < NX_DHCPV6_MAX_IA_ADDRESS; ia_index++) { - /* Now remove the address from the IP address table,the client MUST NOT use any of the addresses it is declining + /* Now remove the address from the IP address table,the client MUST NOT use any of the addresses it is declining as the source address in the Release message or in any subsequently transmitted message, RFC3315,section18.1.7.. */ /* Verify we have a valid address index. */ @@ -7767,14 +7166,6 @@ UINT ia_index; /* Application Code */ /* _nx_dhcpv6_thread_entry DHCPv6 Client thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_renew(NX_DHCPV6 *dhcpv6_ptr) { @@ -7786,7 +7177,7 @@ UINT status; if (dhcpv6_ptr -> nx_dhcpv6_state == NX_DHCPV6_STATE_SENDING_RENEW) { - /* Yes, the renew process is already started. No need to re-request it. + /* Yes, the renew process is already started. No need to re-request it. Also must not zero out retry count or reset timeout back to starting value. */ return NX_SUCCESS; } @@ -7849,14 +7240,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_solicit(NX_DHCPV6 *dhcpv6_ptr) { @@ -7914,14 +7297,6 @@ UINT status; /* Application Code */ /* _nx_dhcpv6_process Send the DHCPv6 solicit message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_solicit(NX_DHCPV6 *dhcpv6_ptr) { @@ -7998,14 +7373,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_request_solicit_rapid(NX_DHCPV6 *dhcpv6_ptr) { @@ -8062,14 +7429,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_request_solicit_rapid(NX_DHCPV6 *dhcpv6_ptr) { @@ -8141,14 +7500,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_resume(NX_DHCPV6 *dhcpv6_ptr) { @@ -8204,14 +7555,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_resume(NX_DHCPV6 *dhcpv6_ptr) { @@ -8370,20 +7713,6 @@ UCHAR original_state; /* _nx_dhcpv6_process Process DHCPv6 client request */ /* _nx_dhcpv6_waiting_on_reply Process replies to valid server*/ /* reply received */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), supported*/ -/* adding user options, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_send_request(NX_DHCPV6 *dhcpv6_ptr) { @@ -8439,7 +7768,7 @@ UINT user_option_length; /* Setup the buffer pointer. */ buffer = packet_ptr -> nx_packet_prepend_ptr; - /* Use the message id value to judge whether the next packet is retransmit packet or not. + /* Use the message id value to judge whether the next packet is retransmit packet or not. If the id value is 0, indicate the new dhcpv6 request, then generate a random number, else,leave the transaction ID unchanged. A client MUST leave the transaction ID unchanged in retransmissions of a message,RFC3315,section 15.1,page 28. */ if(dhcpv6_ptr -> nx_dhcpv6_message_hdr.nx_message_xid == 0) @@ -8517,7 +7846,7 @@ UINT user_option_length; return status; } - /* Did the Client ask for a DHCPv6 Client FQDN option ? + /* Did the Client ask for a DHCPv6 Client FQDN option ? A client MUST only include the Client FQDN option in SOLICIT, REQUEST, RENEW, or REBIND messsage. */ if (dhcpv6_ptr ->nx_dhcpv6_client_FQDN.nx_op_code) { @@ -8634,7 +7963,7 @@ UINT user_option_length; return status; } - /* Did the Client ask for a DHCPv6 Client FQDN option ? + /* Did the Client ask for a DHCPv6 Client FQDN option ? A client MUST only include the Client FQDN option in SOLICIT, REQUEST, RENEW, or REBIND messsage. */ if (dhcpv6_ptr ->nx_dhcpv6_client_FQDN.nx_op_code) { @@ -8716,7 +8045,7 @@ UINT user_option_length; return status; } - /* Did the Client ask for a DHCPv6 Client FQDN option ? + /* Did the Client ask for a DHCPv6 Client FQDN option ? A client MUST only include the Client FQDN option in SOLICIT, REQUEST, RENEW, or REBIND messsage. */ if (dhcpv6_ptr ->nx_dhcpv6_client_FQDN.nx_op_code) { @@ -8786,7 +8115,7 @@ UINT user_option_length; return status; } - /* Did the Client ask for a DHCPv6 Client FQDN option ? + /* Did the Client ask for a DHCPv6 Client FQDN option ? A client MUST only include the Client FQDN option in SOLICIT, REQUEST, RENEW, or REBIND messsage. */ if (dhcpv6_ptr ->nx_dhcpv6_client_FQDN.nx_op_code) { @@ -9066,8 +8395,8 @@ UINT user_option_length; 1. When a client sends a DHCP message to the All_DHCP_Relay_Agents_and_Servers address, the client must use a link-local address assigned to the interface for which it is requesting configuration as the source address. - 2. When a client sends a DHCP message directly to a server using unicast, - the source address must be an address assigned to the interface for which the + 2. When a client sends a DHCP message directly to a server using unicast, + the source address must be an address assigned to the interface for which the client is interested in obtaining configuration. RFC 3315, Section 16. Client Source Address and Interface Selection, Page 32. */ @@ -9179,14 +8508,6 @@ UINT user_option_length; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_session_timeout_entry(ULONG dhcpv6_ptr_value) { @@ -9201,7 +8522,7 @@ NX_DHCPV6 *dhcpv6_ptr; if(dhcpv6_ptr -> nx_dhcpv6_elapsed_time.nx_session_time < 65500) { - /* Update the elapsed time of current DHCP session. + /* Update the elapsed time of current DHCP session. This time is expressed in hundredths of a second. */ dhcpv6_ptr -> nx_dhcpv6_elapsed_time.nx_session_time = (USHORT)(dhcpv6_ptr -> nx_dhcpv6_elapsed_time.nx_session_time + NX_DHCPV6_SESSION_TIMER_INTERVAL * 100); } @@ -9249,14 +8570,6 @@ NX_DHCPV6 *dhcpv6_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_set_time_accrued(NX_DHCPV6 *dhcpv6_ptr, ULONG time_accrued) { @@ -9313,14 +8626,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_set_time_accrued(NX_DHCPV6 *dhcpv6_ptr, ULONG time_accrued) { @@ -9375,14 +8680,6 @@ UINT _nx_dhcpv6_set_time_accrued(NX_DHCPV6 *dhcpv6_ptr, ULONG time_accrued) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_client_set_interface(NX_DHCPV6 *dhcpv6_ptr, UINT interface_index) { @@ -9445,14 +8742,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_client_set_interface(NX_DHCPV6 *dhcpv6_ptr, UINT interface_index) { @@ -9500,14 +8789,6 @@ UINT _nx_dhcpv6_client_set_interface(NX_DHCPV6 *dhcpv6_ptr, UINT interface_index /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_client_set_destination_address(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRESS *destination_address) { @@ -9577,14 +8858,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_client_set_destination_address(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRESS *destination_address) { @@ -9637,14 +8910,6 @@ UINT _nx_dhcpv6_client_set_destination_address(NX_DHCPV6 *dhcpv6_ptr, NXD_ADDRES /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_start(NX_DHCPV6 *dhcpv6_ptr) { @@ -9711,14 +8976,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_start(NX_DHCPV6 *dhcpv6_ptr) { @@ -9830,14 +9087,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_suspend(NX_DHCPV6 *dhcpv6_ptr) { @@ -9899,14 +9148,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_suspend(NX_DHCPV6 *dhcpv6_ptr) { @@ -9951,14 +9192,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_stop(NX_DHCPV6 *dhcpv6_ptr) { @@ -10023,14 +9256,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_stop(NX_DHCPV6 *dhcpv6_ptr) @@ -10131,14 +9356,6 @@ UINT current_preemption; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_reinitialize(NX_DHCPV6 *dhcpv6_ptr) @@ -10197,14 +9414,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_reinitialize(NX_DHCPV6 *dhcpv6_ptr) @@ -10221,7 +9430,7 @@ UINT status; return NX_DHCPV6_ALREADY_STARTED; } - /* This clears the assigned IP address from the Client record, as well as + /* This clears the assigned IP address from the Client record, as well as removes the assigned IP address from the IP address table. */ status = _nx_dhcpv6_remove_assigned_address(dhcpv6_ptr, NX_DHCPV6_REMOVE_ALL_IA_ADDRESS); @@ -10272,14 +9481,6 @@ UINT status; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_thread_entry(ULONG info) { @@ -10298,7 +9499,7 @@ UINT original_state; do { - /* Loop to get the DHCP mutex to handle error, release, and + /* Loop to get the DHCP mutex to handle error, release, and stop requests properly. */ do { @@ -10474,14 +9675,6 @@ UINT original_state; /* Parses each option from server */ /* reply and updates Client record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_utility_get_block_option_length(UCHAR *buffer_ptr, ULONG *option, ULONG *length) { @@ -10555,14 +9748,6 @@ UINT _nx_dhcpv6_utility_get_block_option_length(UCHAR *buffer_ptr, ULONG *optio /* Parses each option from server */ /* reply and updates Client record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_utility_get_data(UCHAR *buffer, UINT size, ULONG *value) { @@ -10622,14 +9807,6 @@ UINT _nx_dhcpv6_utility_get_data(UCHAR *buffer, UINT size, ULONG *value) /* */ /* _nx_dhcpv6_convert_delay_to_ticks Convert seconds to ticks */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT _nx_dhcpv6_utility_time_randomize(void) { @@ -10689,15 +9866,6 @@ INT temp_signed; /* */ /* _nx_dhcpv6_process Process current client state */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_waiting_on_reply(NX_DHCPV6 *dhcpv6_ptr) { @@ -10781,7 +9949,7 @@ UINT valid_answer; /* Yes, Get a valid advertise or reply message. */ valid_answer = NX_TRUE; - /* DHCPv6 client MUST collect Advertise messages for the first RT seconds, + /* DHCPv6 client MUST collect Advertise messages for the first RT seconds, unless it receives an Advertise message with a preference value of 255. RFC 3315, Section 17.1.2, Page 34. */ if((dhcpv6_ptr -> nx_dhcpv6_state == NX_DHCPV6_STATE_SENDING_SOLICIT) && @@ -10908,14 +10076,6 @@ UINT valid_answer; /* */ /* _nx_dhcpv6_waiting_on_reply Process current client message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_packet_process(NX_DHCPV6 *dhcpv6_ptr, NX_PACKET *packet_ptr) { @@ -11089,15 +10249,6 @@ NX_PACKET *new_packet_ptr; /* */ /* _nx_dhcpv6_packet_process Process dhcpv6 packet. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_scan_packet_options(NX_DHCPV6 *dhcpv6_ptr, NX_PACKET *packet_ptr) { @@ -11247,7 +10398,7 @@ UINT ia_count = 0; if(!(memcmp(&(dhcpv6_ptr->nx_dhcpv6_ia[w].nx_global_address.nxd_ip_address.v6[0]), &ipv6_address[0], 16))) { - /* Yes, it is, record the index to store the IA option, 0 means is IA address inexistence. + /* Yes, it is, record the index to store the IA option, 0 means is IA address inexistence. Then update the IA option according to the IA count in nx_dhcpv6_update_ia function. */ dhcpv6_ptr -> nx_dhcpv6_ia[w].nx_address_map = ia_count; break; @@ -11594,14 +10745,6 @@ UINT ia_count = 0; /* */ /* _nx_dhcpv6_packet_process Process the packet. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_preprocess_packet_information(NX_DHCPV6 *dhcpv6_ptr, NX_PACKET *packet_ptr) { @@ -11656,7 +10799,7 @@ ULONG returned_xid; case NX_DHCPV6_STATE_SENDING_SOLICIT: { - /* DHCPv6 Client must discrd the received advertise messages + /* DHCPv6 Client must discrd the received advertise messages that meet the message does not inlcude SERVER ID or CLIENT ID. */ if(!(dhcpv6_ptr -> nx_dhcpv6_reply_option_flags & NX_DHCPV6_INCLUDE_CLIENT_ID_OPTION) || !(dhcpv6_ptr -> nx_dhcpv6_reply_option_flags & NX_DHCPV6_INCLUDE_SERVER_ID_OPTION)) @@ -11708,7 +10851,7 @@ ULONG returned_xid; case NX_DHCPV6_STATE_SENDING_INFORM_REQUEST: { - /* DHCPv6 Client must discrd the received advertise messages + /* DHCPv6 Client must discrd the received advertise messages that meet the message does not inlcude SERVE ID or CLIENT ID. */ if(!(dhcpv6_ptr -> nx_dhcpv6_reply_option_flags & NX_DHCPV6_INCLUDE_CLIENT_ID_OPTION) || !(dhcpv6_ptr -> nx_dhcpv6_reply_option_flags & NX_DHCPV6_INCLUDE_SERVER_ID_OPTION)) @@ -11784,15 +10927,6 @@ ULONG returned_xid; /* */ /* _nx_dhcpv6_packet_process Process the dhcpv6 reply message*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_extract_packet_information(NX_DHCPV6 *dhcpv6_ptr, NX_PACKET *packet_ptr) { @@ -12000,14 +11134,6 @@ UINT index; /* */ /* _nx_dhcpv6_process Process the DHCPv6 Client request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_flush_queue_packets(NX_DHCPV6 *dhcpv6_ptr) { @@ -12065,14 +11191,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_dhcpv6_process Process current client state */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_update_retransmit_info(NX_DHCPV6 *dhcpv6_ptr) { @@ -12152,12 +11270,6 @@ UINT _nx_dhcpv6_update_retransmit_info(NX_DHCPV6 *dhcpv6_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 07-29-2022 Yuxin Zhou Initial Version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_user_option_add_callback_set(NX_DHCPV6 *dhcpv6_ptr, UINT (*dhcpv6_user_option_add)(NX_DHCPV6 *dhcpv6_ptr, UINT interface_index, UINT message_type, UCHAR *user_option_ptr, UINT *user_option_length)) @@ -12211,12 +11323,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 07-29-2022 Yuxin Zhou Initial Version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_user_option_add_callback_set(NX_DHCPV6 *dhcpv6_ptr, UINT (*dhcpv6_user_option_add)(NX_DHCPV6 *dhcpv6_ptr, UINT interface_index, UINT message_type, UCHAR *user_option_ptr, UINT *user_option_length)) @@ -12275,14 +11381,6 @@ UINT _nx_dhcpv6_user_option_add_callback_set(NX_DHCPV6 *dhcpv6_ptr, UINT (*dhcpv /* */ /* UDP receive callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_ipv6_address_DAD_notify(NX_IP *ip_ptr, UINT status, UINT interface_index, UINT ipv6_addr_index, ULONG *ipv6_address) { @@ -12381,14 +11479,6 @@ UINT ia_index; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_client_get_record(NX_DHCPV6 *dhcpv6_ptr, NX_DHCPV6_CLIENT_RECORD *client_record_ptr) { @@ -12445,15 +11535,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_client_get_record(NX_DHCPV6 *dhcpv6_ptr, NX_DHCPV6_CLIENT_RECORD *client_record_ptr) { @@ -12465,7 +11546,7 @@ UINT _nx_dhcpv6_client_get_record(NX_DHCPV6 *dhcpv6_ptr, NX_DHCPV6_CLIENT_RECOR /* Clear memory before filling with data. */ memset(client_record_ptr, 0, sizeof(NX_DHCPV6_CLIENT_RECORD)); - /* The DHCPv6 Client is not Bound to an IP address. Cannot create a record for restoring Client + /* The DHCPv6 Client is not Bound to an IP address. Cannot create a record for restoring Client state if not bound to an IP lease. */ if (dhcpv6_ptr -> nx_dhcpv6_state != NX_DHCPV6_STATE_BOUND_TO_ADDRESS) { @@ -12553,14 +11634,6 @@ UINT _nx_dhcpv6_client_get_record(NX_DHCPV6 *dhcpv6_ptr, NX_DHCPV6_CLIENT_RECOR /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_client_restore_record(NX_DHCPV6 *dhcpv6_ptr, NX_DHCPV6_CLIENT_RECORD *client_record_ptr, ULONG time_elapsed) { @@ -12626,15 +11699,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_client_restore_record(NX_DHCPV6 *dhcpv6_ptr, NX_DHCPV6_CLIENT_RECORD *client_record_ptr, ULONG time_elapsed) { diff --git a/addons/dhcp/nxd_dhcpv6_client.h b/addons/dhcp/nxd_dhcpv6_client.h index aab75ea3..054496e1 100644 --- a/addons/dhcp/nxd_dhcpv6_client.h +++ b/addons/dhcp/nxd_dhcpv6_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,21 +38,6 @@ /* references. It is assumed that nx_api.h and nx_port.h have already */ /* been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), supported*/ -/* adding user options, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ #ifndef NXD_DHCPV6_CLIENT_H @@ -72,7 +57,7 @@ extern "C" { /* Enable support for DHCPv6 client state preserved between reboots */ /* -#define NX_DHCPV6_CLIENT_RESTORE_STATE +#define NX_DHCPV6_CLIENT_RESTORE_STATE */ @@ -81,7 +66,7 @@ extern "C" { #define NX_DHCPV6_ID 0x44484336UL -/* Set the Client lease time. An infinate lease time is not recommended by the RFC +/* Set the Client lease time. An infinate lease time is not recommended by the RFC unless the Client requires a permanent IP address. Most servers will likely not grant an infinite IP address lease. */ @@ -109,7 +94,7 @@ typedef enum #define NX_DHCPV6_HW_TYPE_IEEE_802 1 -/* Define approximate time since Jan 1, 2000 for computing DUID time. This will form the +/* Define approximate time since Jan 1, 2000 for computing DUID time. This will form the basis for the DUID time ID field. */ #define SECONDS_SINCE_JAN_1_2000_MOD_32 2563729999UL @@ -338,7 +323,7 @@ typedef enum #endif -/* Define the time out option to obtain a DHCPv6 Client mutex lock. If the +/* Define the time out option to obtain a DHCPv6 Client mutex lock. If the the Client appears to be locking up, this can be set to a finite value for debugging as well as restore responsiveness to the Client */ @@ -432,12 +417,12 @@ typedef enum #endif -/* Define the initial retransmission timeout in timer ticks for DHCPv6 messages. +/* Define the initial retransmission timeout in timer ticks for DHCPv6 messages. For no limit on the retransmission timeout set to 0, for no limit - on the retries, set to 0. + on the retries, set to 0. - Note that regardless of length of timeout or number of retries, when the IP address - valid lifetime expires, the Client can no longer use its global IP address + Note that regardless of length of timeout or number of retries, when the IP address + valid lifetime expires, the Client can no longer use its global IP address assigned by the DHCPv6 Server. */ #ifndef NX_DHCPV6_FIRST_SOL_MAX_DELAY @@ -660,7 +645,7 @@ typedef struct NX_DHCPV6_MESSAGE_HDR_STRUCT ULONG nx_message_xid; /* Message transaction ID (3 bytes)*/ } NX_DHCPV6_MESSAGE_HDR; -/* Define the option request structure. This is how the Client requests information other than global IP address. +/* Define the option request structure. This is how the Client requests information other than global IP address. It can ask for domain name, DNS server, time zone, time server and other options. */ typedef struct NX_DHCPV6_OPTIONREQUEST_STRUCT @@ -795,9 +780,9 @@ typedef struct NX_DHCPV6_CLIENT_RECORD_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map DHCP API functions +/* Determine if error checking is desired. If so, map DHCP API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ diff --git a/addons/dhcp/nxd_dhcpv6_server.c b/addons/dhcp/nxd_dhcpv6_server.c index 1f3e1bfd..2d996199 100644 --- a/addons/dhcp/nxd_dhcpv6_server.c +++ b/addons/dhcp/nxd_dhcpv6_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,14 +87,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_create(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_IP *ip_ptr, CHAR *name_ptr, NX_PACKET_POOL *packet_pool_ptr, VOID *stack_ptr, ULONG stack_size, @@ -181,14 +173,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_create(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_IP *ip_ptr, CHAR *name_ptr, NX_PACKET_POOL *packet_pool_ptr, VOID *stack_ptr, ULONG stack_size, @@ -396,14 +380,6 @@ NX_DHCPV6_CLIENT *dhcpv6_client_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_option_request_handler_set(NX_DHCPV6_SERVER *dhcpv6_server_ptr, VOID (*dhcpv6_option_request_handler_extended)(struct NX_DHCPV6_SERVER_STRUCT *dhcpv6_server_ptr, UINT option_request, @@ -460,14 +436,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_option_request_handler_set(NX_DHCPV6_SERVER *dhcpv6_server_ptr, VOID (*dhcpv6_option_request_handler_extended)(struct NX_DHCPV6_SERVER_STRUCT *dhcpv6_server_ptr, UINT option_request, @@ -530,14 +498,6 @@ UINT _nx_dhcpv6_server_option_request_handler_set(NX_DHCPV6_SERVER *dhcpv6_serv /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_add_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, ULONG message_xid, NXD_ADDRESS *client_address, UINT client_state, ULONG IP_lease_time_accrued, ULONG valid_lifetime, UINT duid_type, UINT duid_hardware, ULONG physical_address_msw, @@ -651,15 +611,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, ULONG message_xid, NXD_ADDRESS *client_address, UINT client_state, ULONG IP_lease_time_accrued, ULONG valid_lifetime, UINT duid_type, UINT duid_hardware, ULONG physical_address_msw, @@ -851,14 +802,6 @@ NX_DHCPV6_CLIENT *dhcpv6_client_ptr; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_retrieve_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, ULONG *message_xid, NXD_ADDRESS *client_address, UINT *client_state, ULONG *IP_lease_time_accrued, ULONG *valid_lifetime, UINT *duid_type, UINT *duid_hardware, ULONG *physical_address_msw, @@ -948,15 +891,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), corrected*/ -/* the length of identifier, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_retrieve_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, ULONG *message_xid, NXD_ADDRESS *client_address, UINT *client_state, ULONG *IP_lease_time_accrued, ULONG *valid_lifetime, UINT *duid_type, UINT *duid_hardware, ULONG *physical_address_msw, @@ -1098,14 +1032,6 @@ INT length; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_add_ip_address_lease(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, NXD_ADDRESS *lease_IP_address, ULONG T1, ULONG T2, ULONG valid_lifetime, ULONG preferred_lifetime) @@ -1191,14 +1117,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_ip_address_lease(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, NXD_ADDRESS *lease_IP_address, ULONG T1, ULONG T2, ULONG valid_lifetime, ULONG preferred_lifetime) @@ -1320,14 +1238,6 @@ UINT prefix_length; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_retrieve_ip_address_lease(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, NXD_ADDRESS *lease_IP_address, ULONG *T1, ULONG *T2, ULONG *valid_lifetime, ULONG *preferred_lifetime) @@ -1394,14 +1304,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_retrieve_ip_address_lease(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT table_index, NXD_ADDRESS *lease_IP_address, ULONG *T1, ULONG *T2, ULONG *valid_lifetime, ULONG *preferred_lifetime) @@ -1467,14 +1369,6 @@ NX_DHCPV6_ADDRESS_LEASE *lease_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_delete(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -1534,14 +1428,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_delete(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -1610,14 +1496,6 @@ UINT _nx_dhcpv6_server_delete(NX_DHCPV6_SERVER *dhcpv6_server_ptr) /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_create_ip_address_range(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NXD_ADDRESS *start_ipv6_address, NXD_ADDRESS *end_ipv6_address, @@ -1696,14 +1574,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_create_ip_address_range(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NXD_ADDRESS *start_ipv6_address, NXD_ADDRESS *end_ipv6_address, @@ -1826,14 +1696,6 @@ UINT ga_address_index; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_reserve_ip_address_range(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NXD_ADDRESS *start_ipv6_address, NXD_ADDRESS *end_ipv6_address, @@ -1911,14 +1773,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_reserve_ip_address_range(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NXD_ADDRESS *start_ipv6_address, NXD_ADDRESS *end_ipv6_address, @@ -2057,14 +1911,6 @@ UINT ga_address_index; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_create_dns_address(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NXD_ADDRESS *dns_ipv6_address) { @@ -2126,14 +1972,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_create_dns_address(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NXD_ADDRESS *dns_ipv6_address) { @@ -2202,14 +2040,6 @@ UINT ga_address_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_set_server_duid(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT duid_type, UINT hardware_type, ULONG mac_address_msw, ULONG mac_address_lsw, ULONG time) @@ -2285,15 +2115,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_set_server_duid(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT duid_type, UINT hardware_type, ULONG mac_address_msw, ULONG mac_address_lsw, ULONG time) @@ -2359,7 +2180,7 @@ NX_DHCPV6_SVR_DUID *duid_ptr; else if (duid_ptr -> nx_duid_type == NX_DHCPV6_SERVER_DUID_TYPE_VENDOR_ASSIGNED) { - /* Set the length to include the duid type, hardware type, enterprise number and + /* Set the length to include the duid type, hardware type, enterprise number and variable length private identifier. */ duid_ptr -> nx_option_length = sizeof(USHORT) + sizeof(ULONG) + sizeof(NX_DHCPV6_SERVER_DUID_VENDOR_ASSIGNED_ID); } @@ -2408,15 +2229,6 @@ NX_DHCPV6_SVR_DUID *duid_ptr; /* */ /* _nx_dhcpv6_send_response_to_client Send server response to client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_prepare_iana_status(NX_DHCPV6_SERVER_IANA_STATUS *dhcpv6_status_ptr, UINT flag) { @@ -2557,15 +2369,6 @@ UINT _nx_dhcpv6_prepare_iana_status(NX_DHCPV6_SERVER_IANA_STATUS *dhcpv6_stat /* */ /* _nx_dhcpv6_send_response_to_client Send server response to client */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_preference(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -2651,15 +2454,6 @@ ULONG message_word; /* _nx_dhcpv6_send_request Compiles and sends the server */ /* DHCPv6 response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_option_requests(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr, UCHAR *buffer_ptr, UINT *index) @@ -2736,7 +2530,7 @@ NX_DHCPV6_SERVER_OPTIONREQUEST *dhcpv6_option_ptr; { /* Yes, so call it. This handler shall fill the buffer with the requested - option data (if available). + option data (if available). Note: The handler must update the index pointing to the end of data in the buffer after it inserts the data. This is done for the DNS server option above. */ @@ -2760,7 +2554,7 @@ NX_DHCPV6_SERVER_OPTIONREQUEST *dhcpv6_option_ptr; { /* Yes, so call it. This handler shall fill the buffer with the requested - option data (if available). + option data (if available). Note: The handler must update the index pointing to the end of data in the buffer after it inserts the data. This is done for the DNS server option above. */ @@ -2822,14 +2616,6 @@ NX_DHCPV6_SERVER_OPTIONREQUEST *dhcpv6_option_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_interface_set(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT iface_index, UINT ga_address_index) { @@ -2897,14 +2683,6 @@ UINT status; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_interface_set(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT iface_index, UINT ga_address_index) { @@ -2946,14 +2724,6 @@ UINT _nx_dhcpv6_server_interface_set(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT i /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_server_lease_timeout_entry(ULONG dhcpv6_server_ptr_value) { @@ -2964,7 +2734,7 @@ NX_DHCPV6_SERVER *dhcpv6_server_ptr; /* Setup DHCPv6 Server pointer. */ NX_TIMER_EXTENSION_PTR_GET(dhcpv6_server_ptr, NX_DHCPV6_SERVER, dhcpv6_server_ptr_value) - /* Signal the DHCPv6 Server it is time to do check the lease time remaining on + /* Signal the DHCPv6 Server it is time to do check the lease time remaining on clients it has leased IP addresses to. */ tx_event_flags_set(&(dhcpv6_server_ptr -> nx_dhcpv6_server_timer_events), NX_DHCPV6_IP_LEASE_CHECK_PERIODIC_EVENT, TX_OR); @@ -3006,14 +2776,6 @@ NX_DHCPV6_SERVER *dhcpv6_server_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_resume(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -3071,14 +2833,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_resume(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -3167,14 +2921,6 @@ UINT status; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_server_session_timeout_entry(ULONG dhcpv6_server_ptr_value) { @@ -3225,14 +2971,6 @@ NX_DHCPV6_SERVER *dhcpv6_server_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_start(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -3295,14 +3033,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_start(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -3474,14 +3204,6 @@ UINT if_index; /* */ /* Threads */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_server_socket_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -3531,14 +3253,6 @@ NX_DHCPV6_SERVER *dhcpv6_server_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dhcpv6_server_suspend(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -3596,14 +3310,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_suspend(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -3679,14 +3385,6 @@ UINT _nx_dhcpv6_server_suspend(NX_DHCPV6_SERVER *dhcpv6_server_ptr) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_dhcpv6_server_thread_entry(ULONG info) { @@ -3853,20 +3551,6 @@ NXD_ADDRESS client_address; /* */ /* _nx_dhcpv6_listen_for_messages Waits to receive client message*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), and */ -/* updated client record on */ -/* each message, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_extract_packet_information(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT **dhcpv6_client_ptr, NX_PACKET *packet_ptr, UINT iface_index, NXD_ADDRESS source_address, NXD_ADDRESS destination_address) @@ -4154,13 +3838,13 @@ UINT matching; if (temp_client_rec.nx_dhcpv6_response_back_from_server == NX_DHCPV6_MESSAGE_TYPE_DHCPSILENT) { - /* Not responding to client. So do not assign an IP address or update + /* Not responding to client. So do not assign an IP address or update the client record with invalid message. */ return NX_SUCCESS; } - /* Look up the client record in the server table. If not found, or this is - a new request e.g. a SOLICIT message, create a new client entry in the table and + /* Look up the client record in the server table. If not found, or this is + a new request e.g. a SOLICIT message, create a new client entry in the table and fill in the extracted information. */ add_on = NX_FALSE; @@ -4196,7 +3880,7 @@ UINT matching; if (matching) { - /* This is a different message from the Client. Before updating the record check the client global address + /* This is a different message from the Client. Before updating the record check the client global address to be the same as what the server assigned or is offering to assign. */ if (!CHECK_IPV6_ADDRESSES_SAME(&temp_client_rec.nx_dhcpv6_ia.nx_global_address.nxd_ip_address.v6[0], &(*dhcpv6_client_ptr )-> nx_dhcpv6_ia.nx_global_address.nxd_ip_address.v6[0])) @@ -4252,14 +3936,6 @@ UINT matching; /* _nx_dhcpv6_listen_for_messages Listen for, process and respond*/ /* to DHCPV6 Client messages */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_validate_client_message(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr) { @@ -4279,7 +3955,7 @@ UINT prefix_length; ga_address_index = dhcpv6_server_ptr -> nx_dhcpv6_server_ga_address_index; - /* Initialize the response to the client. If the client request is invalid, ignore the request (no response + /* Initialize the response to the client. If the client request is invalid, ignore the request (no response from server) or indicate the problem in the IANA status option. */ /* Initialize the IANA status for the SOLICIT request as successfully granted. */ @@ -4418,7 +4094,7 @@ UINT prefix_length; /* No matching client record found. */ - /* For Release and Decline messages let the client know using the IANA status code that + /* For Release and Decline messages let the client know using the IANA status code that the server has no record of the assigned or requested address for this client. */ if ((dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_RELEASE) || (dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_DECLINE)) @@ -4527,7 +4203,7 @@ UINT prefix_length; return(NX_SUCCESS); } - /* More checks will be done when the client rebind address is searched in the server + /* More checks will be done when the client rebind address is searched in the server address table. For now we are ok. */ break; @@ -4666,14 +4342,6 @@ UINT prefix_length; /* Parses each option from server */ /* reply and updates Client record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_utility_get_block_option_length(UCHAR *buffer_ptr, ULONG *option, ULONG *length) { @@ -4747,14 +4415,6 @@ UINT _nx_dhcpv6_server_utility_get_block_option_length(UCHAR *buffer_ptr, ULONG /* Parses each option from server */ /* reply and updates Client record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_utility_get_data(UCHAR *buffer, UINT size, ULONG *value) { @@ -4813,14 +4473,6 @@ UINT _nx_dhcpv6_server_utility_get_data(UCHAR *buffer, UINT size, ULONG *value) /* */ /* _nx_dhcpv6_convert_delay_to_ticks Convert seconds to ticks */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT _nx_dhcpv6_server_utility_time_randomize(void) { @@ -4884,14 +4536,6 @@ UINT sign; /* */ /* _nx_dhcpv6_server_thread_entry DHCPv6 Server thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_listen_for_messages(NX_DHCPV6_SERVER *dhcpv6_server_ptr) { @@ -5057,7 +4701,7 @@ ULONG bytes_copied = 0; if (dhcpv6_client_ptr -> nx_dhcpv6_iana_status.nx_status_code == NX_DHCPV6_STATUS_SUCCESS) { - /* Yes it will. Check if the client is requesting an IP address, or renewing or rebinding a + /* Yes it will. Check if the client is requesting an IP address, or renewing or rebinding a previously assigned one. */ if ((dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_SOLICIT) || (dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_REQUEST) || @@ -5075,7 +4719,7 @@ ULONG bytes_copied = 0; /* Release the mutex. */ tx_mutex_put(&dhcpv6_server_ptr -> nx_dhcpv6_server_mutex); - /* Return all other errors as completion status. Do not send a message to the client. + /* Return all other errors as completion status. Do not send a message to the client. The server will otherwise wait for the client to try again. Do not clear client record. */ return(status); } @@ -5178,7 +4822,7 @@ ULONG bytes_copied = 0; (dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_DECLINE)) { - /* This will clear the client record and in the case of + /* This will clear the client record and in the case of a release message, return the IP address lease status to available. */ status = _nx_dhcpv6_clear_client_record(dhcpv6_server_ptr, dhcpv6_client_ptr); @@ -5226,19 +4870,6 @@ ULONG bytes_copied = 0; /* */ /* _nx_dhcpv6_listen_for_messages Process Client DHCPv6 messages*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_send_response_to_client(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr) { @@ -5405,7 +5036,7 @@ ULONG message_word; (dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_INFORM_REQUEST)) { - /* It does. Did the Client ask for a requested option? Only provide information + /* It does. Did the Client ask for a requested option? Only provide information if there are no status errors from the server. */ if (dhcpv6_client_ptr -> nx_dhcpv6_iana_status.nx_status_code == NX_DHCPV6_STATUS_SUCCESS) { @@ -5489,14 +5120,6 @@ ULONG message_word; /* */ /* _nx_dhcpv6_listen_for_messages Process Client DHCPv6 messages*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_assign_ip_address(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr, NX_DHCPV6_ADDRESS_LEASE **interface_address_ptr) @@ -5582,7 +5205,7 @@ UINT matching; /* No; Reply back the client request can not be granted. */ dhcpv6_client_ptr -> nx_dhcpv6_iana_status.nx_status_code = NX_DHCPV6_STATUS_NO_BINDING; - /* Because the server can not validate the IP address to assign, + /* Because the server can not validate the IP address to assign, set the lifetimes to zero RFC 3315 Sect 18.2.3, 18.2.4. */ dhcpv6_client_ptr -> nx_dhcpv6_iana.nx_T1 = 0; dhcpv6_client_ptr -> nx_dhcpv6_iana.nx_T2 = 0; @@ -5701,14 +5324,6 @@ UINT matching; /* Extract DHCPv6 info from */ /* Client message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_find_client_record_by_duid(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_SVR_DUID *duid_ptr, UINT *record_index, UINT add_on, ULONG message_xid, UINT *matching) @@ -5726,7 +5341,7 @@ NX_DHCPV6_CLIENT *client_record_ptr; /* Initialize an available slot in the table as outside the boundary (e.g. no slots available). */ available_index = NX_DHCPV6_MAX_CLIENTS; - /* Records are not necessarily added and deleted sequentially, + /* Records are not necessarily added and deleted sequentially, so search the whole table until a match is found. */ i = 0; status = NX_SUCCESS; @@ -5836,14 +5451,6 @@ NX_DHCPV6_CLIENT *client_record_ptr; /* */ /* CHECK_IPV6_ADDRESSES_SAME Does IPv6 address comparison */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_find_ip_address(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr, NX_DHCPV6_ADDRESS_LEASE **interface_address_ptr) @@ -5914,14 +5521,6 @@ NXD_ADDRESS server_table_address; /* _nx_dhcpv6_find_client_record_by_chaddr */ /* Find client in server table */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_clear_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr) { @@ -6027,15 +5626,6 @@ UINT i; /* _nx_dhcpv6_server_extract_packet_information */ /* Process DHCPv6 data in packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_update_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *from_extracted_client_data_ptr, @@ -6088,9 +5678,9 @@ UINT _nx_dhcpv6_update_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, { - /* Ok to update the existing client record. + /* Ok to update the existing client record. - Note: if this is a duplicate client request we update the client record just + Note: if this is a duplicate client request we update the client record just the same. */ to_client_data_on_record_ptr -> nx_dhcpv6_id = from_extracted_client_data_ptr -> nx_dhcpv6_id; to_client_data_on_record_ptr -> nx_dhcpv6_message_xid = from_extracted_client_data_ptr -> nx_dhcpv6_message_xid; @@ -6103,7 +5693,7 @@ UINT _nx_dhcpv6_update_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, memcpy(&to_client_data_on_record_ptr -> nx_dhcpv6_iana, &from_extracted_client_data_ptr -> nx_dhcpv6_iana, sizeof(NX_DHCPV6_SERVER_IA_NA)); /* Use case of memcpy is verified. */ memcpy(&to_client_data_on_record_ptr -> nx_dhcpv6_ia, &from_extracted_client_data_ptr -> nx_dhcpv6_ia, sizeof(NX_DHCPV6_SERVER_IA_ADDRESS)); /* Use case of memcpy is verified. */ - /* Update the IANA status option code, length and status message. The DHCPv6 server + /* Update the IANA status option code, length and status message. The DHCPv6 server will figure out the actual lenght with the status message text added in later. */ to_client_data_on_record_ptr -> nx_dhcpv6_iana_status.nx_status_code = from_extracted_client_data_ptr -> nx_dhcpv6_iana_status.nx_status_code; to_client_data_on_record_ptr -> nx_dhcpv6_iana_status.nx_option_length = sizeof(USHORT); @@ -6120,7 +5710,7 @@ UINT _nx_dhcpv6_update_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, memcpy(&to_client_data_on_record_ptr -> nx_dhcpv6_option_request, &from_extracted_client_data_ptr -> nx_dhcpv6_option_request, sizeof(NX_DHCPV6_SERVER_OPTIONREQUEST)); /* Use case of memcpy is verified. */ - /* Update fields based on the state of the client. At this point the client is bound to a + /* Update fields based on the state of the client. At this point the client is bound to a valid IP address to the session is 'over'. Set timeout fields to stop the session timer and begin the lease life timer. */ to_client_data_on_record_ptr -> nx_dhcpv6_client_session_time = 0; @@ -6183,15 +5773,6 @@ UINT _nx_dhcpv6_update_client_record(NX_DHCPV6_SERVER *dhcpv6_server_ptr, /* _nx_dhcpv6_server_extract_packet_information */ /* Extracts DHCPV6 data from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_process_iana(NX_DHCPV6_CLIENT *dhcpv6_client_ptr, ULONG option_code, UINT option_length, UCHAR *option_data) { @@ -6283,7 +5864,7 @@ UINT process_ia_option; } /* Check if this is an IA address option request, and if we have already - processed an IA in this message (the DHCPv6 server is limited to + processed an IA in this message (the DHCPv6 server is limited to one IA per client message). */ if (iana_option_code == NX_DHCPV6_OP_IA_ADDRESS) { @@ -6354,15 +5935,6 @@ UINT process_ia_option; /* _nx_dhcpv6_server_extract_packet_information */ /* Extracts DHCPv6 data from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_option_request(NX_DHCPV6_CLIENT *dhcpv6_client_ptr, ULONG option_code, UINT option_length, UCHAR *option_data) { @@ -6429,15 +6001,6 @@ UINT index = 0; /* _nx_dhcpv6_server_extract_packet_information */ /* Extracts DHCPv6 data from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_elapsed_time(NX_DHCPV6_CLIENT *dhcpv6_client_ptr, ULONG option_code, UINT option_length, UCHAR *option_data) { @@ -6501,20 +6064,6 @@ ULONG data; /* */ /* _nx_dhcpv6_server_process_iana Processes IANA in client request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), and */ -/* improved to ignore valid */ -/* lifetime and preferred life */ -/* time in client message, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_process_ia(NX_DHCPV6_CLIENT *dhcpv6_client_ptr, ULONG option_code, UINT option_length, UCHAR *option_data, UINT process_ia) { @@ -6594,17 +6143,6 @@ ULONG data; /* _nx_dhcpv6_server_extract_packet_information */ /* Extracts DHCPv6 data from packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* corrected the logic of */ -/* processing DUID type, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_process_duid(NX_DHCPV6_SVR_DUID *duid_ptr, ULONG option_code, UINT option_length, UCHAR *option_data) { @@ -6710,7 +6248,7 @@ UINT index = 0; } } - /* Are we past the end of the buffer, subtracting for the toplevel opcode and + /* Are we past the end of the buffer, subtracting for the toplevel opcode and length of the IANA option? */ if (index != option_length) { @@ -6760,14 +6298,6 @@ UINT index = 0; /* _nx_dhcpv6_find_client_record_by_chaddr */ /* Find client in server table */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_check_duids_same(NX_DHCPV6_SVR_DUID *dhcpv6_duid1_ptr, NX_DHCPV6_SVR_DUID *dhcpv6_duid2_ptr, UINT *matching) { @@ -6881,15 +6411,6 @@ UINT _nx_dhcpv6_check_duids_same(NX_DHCPV6_SVR_DUID *dhcpv6_duid1_ptr, NX_DHCPV /* _nx_dhcpv6_send_request Compiles and sends the Server */ /* DHCPv6 response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_duid(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_SVR_DUID *dhcpv6_duid_ptr, UCHAR *buffer_ptr, UINT *index, UINT duid_type) { @@ -7005,15 +6526,6 @@ UINT available_payload; /* */ /* _nx_dhcpv6_send_request Sends server DHCPv6 response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_server_add_iana(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_CLIENT *dhcpv6_client_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -7044,7 +6556,7 @@ NX_DHCPV6_SERVER_IA_NA *iana_ptr; return NX_DHCPV6_INSUFFICIENT_PACKET_PAYLOAD; } - /* For release or decline messages, or a server status indicating no IP address can be + /* For release or decline messages, or a server status indicating no IP address can be assigned yet, set the IANA IP lease times to expired. */ if ((dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_RELEASE) || (dhcpv6_client_ptr -> nx_dhcpv6_message_type == NX_DHCPV6_MESSAGE_TYPE_DECLINE) || @@ -7252,15 +6764,6 @@ NX_DHCPV6_SERVER_IA_NA *iana_ptr; /* */ /* _nx_dhcpv6_server_add_iana Adds the IANA to server response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_ia(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_SERVER_IA_ADDRESS *dhcpv6_ia_ptr, UCHAR *buffer_ptr, UINT *index) { @@ -7373,15 +6876,6 @@ UINT available_payload; /* */ /* _nx_dhcpv6_server_add_iana Add IANA status to server response*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dhcpv6_add_iana_status(NX_DHCPV6_SERVER *dhcpv6_server_ptr, NX_DHCPV6_SERVER_IANA_STATUS *iana_status_ptr, UCHAR *buffer_ptr, UINT *index) { diff --git a/addons/dhcp/nxd_dhcpv6_server.h b/addons/dhcp/nxd_dhcpv6_server.h index cfa869b4..8b1958de 100644 --- a/addons/dhcp/nxd_dhcpv6_server.h +++ b/addons/dhcp/nxd_dhcpv6_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,18 +38,6 @@ /* references. It is assumed that nx_api.h and nx_port.h have already */ /* been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_DHCPV6_SERVER_H @@ -84,7 +72,7 @@ extern "C" { #define GLOBAL_IP_INTERFACE 1 -/* Set the Client lease time. An infinate lease time is not recommended by the RFC +/* Set the Client lease time. An infinate lease time is not recommended by the RFC unless the Client requires a permanent IP address. Most servers will likely not grant an infinite IP address lease. */ @@ -115,7 +103,7 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #define NX_DHCPV6_SERVER_DUID_TYPE 1 #define NX_DHCPV6_CLIENT_DUID_TYPE 2 -/* Define approximate time since Jan 1, 2000 for computing DUID time. This will form the +/* Define approximate time since Jan 1, 2000 for computing DUID time. This will form the basis for the DUID time ID field. */ #define SECONDS_SINCE_JAN_1_2000_MOD_32 2563729999UL @@ -237,7 +225,7 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY /* Define the server messages for IANA status codes. Note that these messages must be shorter than the NX_DHCPV6_STATUS_MESSAGE_MAX - option defined for the client IANA status option. + option defined for the client IANA status option. */ #ifndef NX_DHCPV6_STATUS_MESSAGE_SUCCESS #define NX_DHCPV6_STATUS_MESSAGE_SUCCESS "IA OPTION GRANTED" @@ -307,7 +295,7 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #endif -/* Define the session time out in seconds. This is the timer for how long the server has not +/* Define the session time out in seconds. This is the timer for how long the server has not received a client response. */ #ifndef NX_DHCPV6_SESSION_TIMEOUT @@ -338,7 +326,7 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY /* Define parameters for the server DUID */ -/* Define the server DUID type. The most common are link layer, based on mac address, +/* Define the server DUID type. The most common are link layer, based on mac address, and link layer-time which is based on mac address and current time. */ #ifndef NX_DHCPV6_SERVER_DUID_TYPE @@ -383,8 +371,8 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #endif -/* Set the default T2 time, which is when the Client should begin renewing its IP address, - assuming renewal attempts failed, for leased IP addresses in seconds. +/* Set the default T2 time, which is when the Client should begin renewing its IP address, + assuming renewal attempts failed, for leased IP addresses in seconds. T2 must be greater than T2 and less than the value of the preferred lifetime. */ #ifndef NX_DHCPV6_DEFAULT_T2_TIME @@ -392,9 +380,9 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #endif -/* Set the default preferred lifetime for leased IP addresses in seconds, which is - when the Client IP address becomes deprecated. A value of zero in - this field indicates that the server leaves it to the +/* Set the default preferred lifetime for leased IP addresses in seconds, which is + when the Client IP address becomes deprecated. A value of zero in + this field indicates that the server leaves it to the client discretion to renew its IP address lease. */ #ifndef NX_DHCPV6_DEFAULT_PREFERRED_TIME @@ -402,9 +390,9 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #endif -/* Set the default valid lifetime in seconds for leased IP addresses in secs, which is when - the Client IP address becomes obsolete. A value of zero in this field indicates - that the server leaves it to the client discretion to renew its IP address lease. +/* Set the default valid lifetime in seconds for leased IP addresses in secs, which is when + the Client IP address becomes obsolete. A value of zero in this field indicates + that the server leaves it to the client discretion to renew its IP address lease. The valid time must be greater than the preferred time. */ #ifndef NX_DHCPV6_DEFAULT_VALID_TIME @@ -427,8 +415,8 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #endif -/* Define the max number of clients the server can assign leases to at any given time. - These are clients either already leasing an IPv6 address or currently requesting one. +/* Define the max number of clients the server can assign leases to at any given time. + These are clients either already leasing an IPv6 address or currently requesting one. Note: there are more addresses than clients in the event the client declines an address or one assigned is already in use. The NetX DHCPv6 server currently only supports one IP address leased to each client. */ @@ -452,7 +440,7 @@ NX_DHCPV6_SERVER_DUID_TYPE_LINK_ONLY #endif -/* Define the DHCPv6 packet memory area. Packet pool size depends on client traffic and +/* Define the DHCPv6 packet memory area. Packet pool size depends on client traffic and available network bandwidth. */ #ifndef NX_DHCPV6_PACKET_POOL_SIZE @@ -565,7 +553,7 @@ typedef struct NX_DHCPV6_SERVER_ELAPSED_TIME_STRUCT } NX_DHCPV6_SERVER_ELAPSED_TIME; -/* Define the option request structure. This is how the Client requests information other than global IP address. +/* Define the option request structure. This is how the Client requests information other than global IP address. It can ask for domain name, DNS server, time zone, time server and other options. */ typedef struct NX_DHCPV6_SERVER_OPTIONREQUEST_STRUCT @@ -661,9 +649,9 @@ typedef struct NX_DHCPV6_SERVER_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map DHCP API functions +/* Determine if error checking is desired. If so, map DHCP API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ diff --git a/addons/dns/nxd_dns.c b/addons/dns/nxd_dns.c index 20a6aa22..c35b229d 100644 --- a/addons/dns/nxd_dns.c +++ b/addons/dns/nxd_dns.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -157,14 +157,6 @@ NX_DNS *_nx_dns_instance_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_create(NX_DNS *dns_ptr, NX_IP *ip_ptr, UCHAR *domain_name) { @@ -223,20 +215,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), and */ -/* randomized the source port, */ -/* resulting in version 6.1.4 */ -/* 07-29-2022 Jidesh Veeramachaneni Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dns_create(NX_DNS *dns_ptr, NX_IP *ip_ptr, UCHAR *domain_name) { @@ -356,14 +334,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_packet_pool_set(NX_DNS *dns_ptr, NX_PACKET_POOL *packet_pool_ptr) { @@ -432,14 +402,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_packet_pool_set(NX_DNS *dns_ptr, NX_PACKET_POOL *packet_pool_ptr) { @@ -494,14 +456,6 @@ UINT _nx_dns_packet_pool_set(NX_DNS *dns_ptr, NX_PACKET_POOL *packet_pool_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_delete(NX_DNS *dns_ptr) { @@ -555,21 +509,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), and */ -/* randomized the source port, */ -/* resulting in version 6.1.4 */ -/* 07-29-2022 Jidesh Veeramachaneni Modified comment(s), */ -/* removed error checking for */ -/* nx_packet_pool_delete, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dns_delete(NX_DNS *dns_ptr) { @@ -643,14 +582,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_server_add(NX_DNS *dns_ptr, ULONG server_address) { @@ -720,14 +651,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_server_add(NX_DNS *dns_ptr, ULONG server_address) { @@ -785,17 +708,6 @@ NXD_ADDRESS dns_server_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Jidesh Veeramachaneni Modified comment(s) and */ -/* simplified some branches, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nxde_dns_server_add(NX_DNS *dns_ptr, NXD_ADDRESS *server_address) { @@ -901,14 +813,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_dns_server_add(NX_DNS *dns_ptr, NXD_ADDRESS *dns_server_address) { @@ -952,17 +856,6 @@ UINT _nxd_dns_server_add(NX_DNS *dns_ptr, NXD_ADDRESS *dns_server_address) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Jidesh Veeramachaneni Modified comment(s) and */ -/* simplified branches, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_dns_server_add_internal(NX_DNS *dns_ptr, NXD_ADDRESS *server_address) { @@ -1128,14 +1021,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_server_remove(NX_DNS *dns_ptr, ULONG server_address) { @@ -1203,14 +1088,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_server_remove(NX_DNS *dns_ptr, ULONG server_address) { @@ -1266,18 +1143,6 @@ NXD_ADDRESS dns_server_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Jidesh Veeramachaneni Modified comment(s) and */ -/* simplified check for */ -/* invalid address types, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nxde_dns_server_remove(NX_DNS *dns_ptr, NXD_ADDRESS *server_address) { @@ -1377,14 +1242,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_dns_server_remove(NX_DNS *dns_ptr, NXD_ADDRESS *server_address) { @@ -1431,17 +1288,6 @@ UINT _nxd_dns_server_remove(NX_DNS *dns_ptr, NXD_ADDRESS *server_address) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Jidesh Veeramachaneni Modified comment(s) and */ -/* removed null IP checks, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static UINT _nx_dns_server_remove_internal(NX_DNS *dns_ptr, NXD_ADDRESS *server_address) { @@ -1601,14 +1447,6 @@ UINT found_match; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_server_remove_all(NX_DNS *dns_ptr) { @@ -1661,14 +1499,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_server_remove_all(NX_DNS *dns_ptr) { @@ -1729,14 +1559,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_get_serverlist_size(NX_DNS *dns_ptr, UINT *size) { @@ -1789,14 +1611,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_get_serverlist_size(NX_DNS *dns_ptr, UINT *size) { @@ -1855,14 +1669,6 @@ UINT _nx_dns_get_serverlist_size(NX_DNS *dns_ptr, UINT *size) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_server_get(NX_DNS *dns_ptr, UINT index, ULONG *dns_server_address) { @@ -1918,14 +1724,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_server_get(NX_DNS *dns_ptr, UINT index, ULONG *dns_server_address) { @@ -1999,14 +1797,6 @@ NXD_ADDRESS server_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_dns_server_get(NX_DNS *dns_ptr, UINT index, NXD_ADDRESS *dns_server_address) { @@ -2066,14 +1856,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_dns_server_get(NX_DNS *dns_ptr, UINT index, NXD_ADDRESS *dns_server_address) { @@ -2118,14 +1900,6 @@ UINT _nxd_dns_server_get(NX_DNS *dns_ptr, UINT index, NXD_ADDRESS *dns_server_a /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_server_get_internal(NX_DNS *dns_ptr, UINT index, NXD_ADDRESS *server_address) { @@ -2244,14 +2018,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_host_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, ULONG *host_address_ptr, ULONG wait_option) { @@ -2316,14 +2082,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_host_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, ULONG *host_address_ptr, ULONG wait_option) { @@ -2383,14 +2141,6 @@ UINT record_count = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_dns_host_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, NXD_ADDRESS *host_address_ptr, ULONG wait_option, UINT lookup_type) @@ -2456,14 +2206,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_dns_host_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, NXD_ADDRESS *host_address_ptr, ULONG wait_option, UINT lookup_type) @@ -2566,14 +2308,6 @@ UINT record_count = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_info_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, ULONG *host_address_ptr, USHORT *host_port_ptr, ULONG wait_option) { @@ -2636,14 +2370,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_info_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, ULONG *host_address_ptr, USHORT *host_port_ptr, ULONG wait_option) @@ -2713,14 +2439,6 @@ UCHAR temp_buffer[TEMP_SRV_BUFFER_SIZE]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_ipv4_address_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name_ptr, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -2794,14 +2512,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_ipv4_address_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name_ptr, VOID *buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -2855,14 +2565,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_dns_ipv6_address_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name_ptr, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -2937,14 +2639,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_dns_ipv6_address_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name_ptr, VOID *buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -2998,14 +2692,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_cname_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_option) @@ -3075,14 +2761,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_cname_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_option) @@ -3142,14 +2820,6 @@ UINT record_count = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_domain_name_server_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -3230,14 +2900,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_domain_name_server_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -3291,14 +2953,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_host_text_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_option) @@ -3368,14 +3022,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_host_text_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_option) @@ -3434,14 +3080,6 @@ UINT record_count = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_domain_mail_exchange_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -3520,14 +3158,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_domain_mail_exchange_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -3587,14 +3217,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_domain_service_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -3674,14 +3296,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_domain_service_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -3737,14 +3351,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_authority_zone_start_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_option) @@ -3821,14 +3427,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_authority_zone_start_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_option) @@ -3891,22 +3489,6 @@ UINT record_count = 0; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), corrected*/ -/* the timeout of first query, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), and */ -/* randomized the source port, */ -/* resulting in version 6.1.4 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* receiving dns response, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ static UINT _nx_dns_host_resource_data_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *buffer, UINT buffer_size, @@ -3982,7 +3564,7 @@ UINT i; for (retries = 0; retries < dns_ptr -> nx_dns_retries; retries++) { - /* The client should try other servers and server addresses before repeating a query to a specific address of a server. + /* The client should try other servers and server addresses before repeating a query to a specific address of a server. RFC1035, Section4.2.1 UDP usage, Page32. */ /* Attempt host name resolution from each DNS server till one if found. */ for (i = 0; (i < NX_DNS_MAX_SERVERS) && (dns_ptr -> nx_dns_server_ip_array[i].nxd_ip_version != 0); i ++) @@ -4101,23 +3683,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), updated */ -/* resource get function and */ -/* status check to improve */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* improved id generation, */ -/* improved the logic of */ -/* receiving dns response, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_send_query_by_address(NX_DNS *dns_ptr, NXD_ADDRESS *dns_server, UCHAR *ip_question, UCHAR *host_name_ptr, UINT host_name_buffer_size, ULONG wait_option) @@ -4246,7 +3811,7 @@ ULONG rr_ttl; and is successful and has a response record. */ status = _nx_dns_network_to_short_convert(receive_packet_ptr -> nx_packet_prepend_ptr + NX_DNS_FLAGS_OFFSET); - /* Check for indication of DNS server error (cannot authenticate answer or authority portion + /* Check for indication of DNS server error (cannot authenticate answer or authority portion of the DNS data. */ if ((status & NX_DNS_ERROR_MASK) == NX_DNS_ERROR_MASK) { @@ -4503,23 +4068,6 @@ ULONG rr_ttl; /* _nx_dns_host_resource_data_by_name_get */ /* Get the resource data by name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* improved the logic of */ -/* receiving dns response, */ -/* resulting in version 6.1.4 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* receiving dns response, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ static UINT _nx_dns_send_query_get_rdata_by_name(NX_DNS *dns_ptr, NXD_ADDRESS *dns_server_address, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, @@ -4642,12 +4190,6 @@ NX_PACKET *receive_packet_ptr; /* */ /* _nx_dns_send_query_get_rdata_by_name Get the resource data by name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-02-2021 Yuxin Zhou Initial Version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_dns_response_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, UINT *record_count, ULONG wait_option) @@ -4733,16 +4275,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_dns_send_query_get_rdata_by_name Get the resource data by name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 02-02-2021 Yuxin Zhou Initial Version 6.1.4 */ -/* 10-31-2023 Bo Chen Modified comment(s), and */ -/* reset the status to avoid */ -/* processing null packet, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_dns_response_receive(NX_DNS *dns_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -4877,20 +4409,6 @@ ULONG time_remaining; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* receiving dns response, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ static UINT _nx_dns_response_process(NX_DNS *dns_ptr, UCHAR *host_name, NX_PACKET *packet_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_count) @@ -4941,7 +4459,7 @@ UINT host_name_size; /* Check that the packet has a valid response record. */ status = _nx_dns_network_to_short_convert(packet_ptr -> nx_packet_prepend_ptr + NX_DNS_FLAGS_OFFSET); - /* Check for indication of DNS server error (cannot authenticate answer or authority portion + /* Check for indication of DNS server error (cannot authenticate answer or authority portion of the DNS data. */ if ((status & NX_DNS_ERROR_MASK) == NX_DNS_ERROR_MASK) { @@ -5223,20 +4741,6 @@ UINT host_name_size; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_a_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR **buffer_prepend_ptr, UCHAR **buffer_append_ptr, @@ -5304,7 +4808,7 @@ ULONG rr_ttl; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -5717,19 +5221,6 @@ ULONG rr_ttl; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_aaaa_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR **buffer_prepend_ptr, @@ -5797,7 +5288,7 @@ ULONG rr_ttl; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -5946,16 +5437,6 @@ ULONG rr_ttl; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_cname_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_count) @@ -6077,8 +5558,8 @@ ULONG rr_ttl; else if (dns_ptr -> nx_dns_lookup_type == NX_DNS_RR_TYPE_A) { - /* Only get the A type message, skip the CNAME answer process, - and return success to process next A type answer. + /* Only get the A type message, skip the CNAME answer process, + and return success to process next A type answer. The CNAME record to be implemented. */ return(NX_SUCCESS); } @@ -6133,20 +5614,6 @@ ULONG rr_ttl; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_txt_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_count) @@ -6200,7 +5667,7 @@ ULONG rr_ttl; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -6325,21 +5792,6 @@ ULONG rr_ttl; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), updated */ -/* input parameter of the API */ -/* to get the real size of */ -/* resource name, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_ns_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR **buffer_prepend_ptr, UCHAR **buffer_append_ptr, @@ -6393,7 +5845,7 @@ ULONG rr_ttl; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -6533,25 +5985,6 @@ ULONG rr_ttl; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), updated */ -/* input parameter of the API */ -/* to get the real size of */ -/* resource name, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_mx_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR **buffer_prepend_ptr, UCHAR **buffer_append_ptr, @@ -6607,7 +6040,7 @@ UINT size; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -6772,25 +6205,6 @@ UINT size; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), updated */ -/* input parameter of the API */ -/* to get the real size of */ -/* resource name, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_srv_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR **buffer_prepend_ptr, UCHAR **buffer_append_ptr, UINT *record_count) @@ -6847,7 +6261,7 @@ UINT size; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -7028,21 +6442,6 @@ UINT size; /* */ /* _nx_dns_response_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* and verified buffer size, */ -/* updated resource get APIs to*/ -/* improve buffer bound check, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_process_soa_type(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_count) @@ -7098,7 +6497,7 @@ ULONG rr_ttl; if (response_type != dns_ptr -> nx_dns_lookup_type) { - /* No, this was not what the Client requested. Return error status. + /* No, this was not what the Client requested. Return error status. This should not happen so return error to the host application, might be a problem with the query or the server. */ return NX_DNS_MISMATCHED_RESPONSE; @@ -7327,14 +6726,6 @@ ULONG rr_ttl; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_host_by_address_get(NX_DNS *dns_ptr, ULONG host_address, UCHAR *host_name, UINT host_name_buffer_size, ULONG wait_option) { @@ -7397,14 +6788,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_host_by_address_get(NX_DNS *dns_ptr, ULONG dns_address, UCHAR *host_name, UINT host_name_buffer_size, ULONG wait_option) { @@ -7473,14 +6856,6 @@ NXD_ADDRESS host_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_dns_host_by_address_get(NX_DNS *dns_ptr, NXD_ADDRESS *host_address, UCHAR *host_name_ptr, UINT host_name_buffer_size, ULONG wait_option) { @@ -7548,14 +6923,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_dns_host_by_address_get(NX_DNS *dns_ptr, NXD_ADDRESS *host_address_ptr, UCHAR *host_name_ptr, UINT host_name_buffer_size, ULONG wait_option) @@ -7609,19 +6976,6 @@ UINT _nxd_dns_host_by_address_get(NX_DNS *dns_ptr, NXD_ADDRESS *host_address_pt /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), corrected*/ -/* the timeout of first query, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), and */ -/* randomized the source port, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_host_by_address_get_internal(NX_DNS *dns_ptr, NXD_ADDRESS *host_address_ptr, UCHAR *host_name_ptr, UINT host_name_buffer_size, ULONG wait_option) @@ -7793,7 +7147,7 @@ UINT length, index; for (retries = 0; retries < dns_ptr -> nx_dns_retries; retries++) { - /* The client should try other servers and server addresses before repeating a query to a specific address of a server. + /* The client should try other servers and server addresses before repeating a query to a specific address of a server. RFC1035, Section4.2.1 UDP usage, Page32. */ /* Attempt host name resolution from each DNS server till one if found. */ for (i = 0; (i < NX_DNS_MAX_SERVERS) && (dns_ptr -> nx_dns_server_ip_array[i].nxd_ip_version != 0); i ++) @@ -7875,17 +7229,6 @@ UINT length, index; /* _nx_dns_host_by_name_get Get IP address with name */ /* _nx_host_by_address_get Get name from IP address */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved id generation, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_new_packet_create(NX_DNS *dns_ptr, NX_PACKET *packet_ptr, UCHAR *name, USHORT type) { @@ -7963,14 +7306,6 @@ UINT size; /* */ /* _nx_dns_new_packet_create Create new DNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_header_create(UCHAR *buffer_ptr, USHORT id, USHORT flags) { @@ -8028,14 +7363,6 @@ static UINT _nx_dns_header_create(UCHAR *buffer_ptr, USHORT id, USHORT flags) /* */ /* _nx_dns_new_packet_create Create new DNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_question_add(NX_PACKET *packet_ptr, UCHAR *name, USHORT type) { @@ -8128,15 +7455,6 @@ USHORT value; /* */ /* _nxd_dns_host_by_address_get Lookup host by address service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_dns_build_an_ipv6_question_string(NXD_ADDRESS *ip_address, UCHAR *buffer, UINT len) { @@ -8205,14 +7523,6 @@ ULONG temp; /* */ /* _nx_dns_question_add Add question to DNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_name_string_encode(UCHAR *ptr, UCHAR *name) { @@ -8305,22 +7615,6 @@ UINT count = 1; /* */ /* _nx_dns_send_query_by_address Send reverse lookup query */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* compression pointer check, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), prevented*/ -/* infinite loop in name */ -/* compression, resulting in */ -/* version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_name_string_unencode(NX_PACKET *packet_ptr, UCHAR *data, UCHAR *buffer, UINT buffer_size) { @@ -8337,7 +7631,7 @@ UINT pointer_count = 0; message_start = packet_ptr -> nx_packet_prepend_ptr; length = 0; - /* As long as there is space in the buffer and we haven't + /* As long as there is space in the buffer and we haven't found a zero terminating label */ while (1) { @@ -8493,15 +7787,6 @@ UINT pointer_count = 0; /* _nx_host_by_address_get Get name from IP address */ /* _nx_dns_resource_type_get Get resource type */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_name_size_calculate(UCHAR *name, NX_PACKET *packet_ptr) { @@ -8583,23 +7868,6 @@ UINT size = 0; /* */ /* _nx_dns_send_query_by_name Send reverse lookup query */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* compression pointer check, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* pointer check, prevented */ -/* infinite loop in name */ -/* compression, resulting in */ -/* version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_dns_resource_name_real_size_calculate(UCHAR *data, UINT start, UINT data_length) { @@ -8610,7 +7878,7 @@ UINT offset; UINT pointer_count = 0; UINT labelSize; - /* As long as there is space in the buffer and we haven't + /* As long as there is space in the buffer and we haven't found a zero terminating label */ while (1) { @@ -8750,15 +8018,6 @@ UINT labelSize; /* _nx_dns_name_size_calculate Calculate name's size */ /* _nx_dns_network_to_short_convert Convert network to short */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_resource_type_get(UCHAR *resource, NX_PACKET *packet_ptr, UINT *resource_type) { @@ -8817,15 +8076,6 @@ UINT name_size; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_resource_time_to_live_get(UCHAR *resource, NX_PACKET *packet_ptr, ULONG *rr_ttl) { @@ -8891,15 +8141,6 @@ UINT name_size; /* _nx_host_by_address_get Get name from IP address */ /* _nx_dns_resource_size_get Get size of resource */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_resource_data_length_get(UCHAR *resource, NX_PACKET *packet_ptr, UINT *length) { @@ -8961,15 +8202,6 @@ UINT name_size; /* _nx_dns_host_by_name_get Get IP address with name */ /* _nx_host_by_address_get Get name from IP address */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UCHAR *_nx_dns_resource_data_address_get(UCHAR *resource, NX_PACKET *packet_ptr) { @@ -9028,15 +8260,6 @@ UINT name_size; /* */ /* _nx_host_by_address_get Get name from IP address */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer bound check, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_resource_size_get(UCHAR *resource, NX_PACKET *packet_ptr, UINT *resource_size) { @@ -9052,7 +8275,7 @@ UINT name_size; return(status); } - /* Resource size is + /* Resource size is name size + data size + 2 bytes for type, 2 for class, 4 for time to live and 2 for data length i.e. name size + data size + 10 bytes overhead */ @@ -9102,14 +8325,6 @@ UINT name_size; /* */ /* DNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static void _nx_dns_short_to_network_convert(UCHAR *ptr, USHORT value) { @@ -9149,14 +8364,6 @@ static void _nx_dns_short_to_network_convert(UCHAR *ptr, USHORT value) /* */ /* DNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static USHORT _nx_dns_network_to_short_convert(UCHAR *ptr) { @@ -9200,14 +8407,6 @@ USHORT value = *ptr++; /* */ /* DNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_dns_network_to_long_convert(UCHAR *ptr) { @@ -9256,14 +8455,6 @@ ULONG value = *ptr++; /* */ /* _nx_dns_host_by_address_get Send PTR query to DNS server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_number_to_ascii_convert(UINT number, CHAR *buffstring) { @@ -9340,14 +8531,6 @@ UINT index = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_cache_initialize(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size) { @@ -9421,14 +8604,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_cache_initialize(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size) { @@ -9501,14 +8676,6 @@ ALIGN_TYPE *tail; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_cache_notify_set(NX_DNS *dns_ptr, VOID (*cache_full_notify_cb)(NX_DNS *dns_ptr)) { @@ -9568,14 +8735,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_cache_notify_set(NX_DNS *dns_ptr, VOID (*cache_full_notify_cb)(NX_DNS *dns_ptr)) { @@ -9628,14 +8787,6 @@ UINT _nx_dns_cache_notify_set(NX_DNS *dns_ptr, VOID (*cache_full_notify_cb)(NX_D /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_dns_cache_notify_clear(NX_DNS *dns_ptr) { @@ -9694,14 +8845,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_dns_cache_notify_clear(NX_DNS *dns_ptr) { @@ -9749,15 +8892,6 @@ UINT _nx_dns_cache_notify_clear(NX_DNS *dns_ptr) /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_cache_add_rr(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size, NX_DNS_RR *record_ptr, NX_DNS_RR **insert_ptr) { @@ -9916,15 +9050,6 @@ ULONG max_elapsed_time; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_cache_find_answer(NX_DNS *dns_ptr, VOID *cache_ptr, UCHAR *query_name, USHORT query_type, UCHAR *buffer, UINT buffer_size, UINT *record_count) { @@ -10303,14 +9428,6 @@ UINT mname_string_length; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_cache_delete_rr(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size, NX_DNS_RR *record_ptr) { @@ -10380,17 +9497,6 @@ ALIGN_TYPE *head; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ static UINT _nx_dns_cache_delete_rr_string(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size, NX_DNS_RR *record_ptr) { @@ -10521,15 +9627,6 @@ UINT size; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_cache_add_string(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size, VOID *string_ptr, UINT string_size, VOID **insert_ptr) { @@ -10603,7 +9700,7 @@ UCHAR *p, *available, *start; if(available == (UCHAR*)tail) { - /* Make sure the service cache still has room to add this string + /* Make sure the service cache still has room to add this string (without overwriting the RR area.) */ if(((UCHAR*)tail - string_len) < (UCHAR*)head) { @@ -10690,14 +9787,6 @@ UCHAR *p, *available, *start; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_cache_delete_string(NX_DNS *dns_ptr, VOID *cache_ptr, UINT cache_size, VOID *string_ptr, UINT string_len) { @@ -10840,14 +9929,6 @@ USHORT cnt; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_dns_name_match(UCHAR *src, UCHAR *dst, UINT length) { diff --git a/addons/dns/nxd_dns.h b/addons/dns/nxd_dns.h index 367d8970..35b66964 100644 --- a/addons/dns/nxd_dns.h +++ b/addons/dns/nxd_dns.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,22 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), prevented*/ -/* infinite loop in name */ -/* compression, resulting in */ -/* version 6.1.3 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* receiving dns response, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ #ifndef NXD_DNS_H @@ -208,14 +192,14 @@ extern "C" { /* Set the IP instance gateway server to be the DNS server if the gateway address is non zero. */ /* -#define NX_DNS_IP_GATEWAY_AND_DNS_SERVER +#define NX_DNS_IP_GATEWAY_AND_DNS_SERVER */ /* Determine if the Client will create its own packet pool or let the host application create one. See nx_dns_packet_pool_set for how to set the DNS packet pool from the host application. */ /* -#define NX_DNS_CLIENT_USER_CREATE_PACKET_POOL +#define NX_DNS_CLIENT_USER_CREATE_PACKET_POOL */ /* Enable the feature to clear off old DNS packets before sending a fresh query. */ @@ -290,7 +274,7 @@ extern "C" { #define NX_DNS_MAX_SERVERS 5 #endif -/* Define the maximum amount of time to retransmit a DNS query. The default wait time is 64 seconds. +/* Define the maximum amount of time to retransmit a DNS query. The default wait time is 64 seconds. the retransmission policy are recommended in RFC1035 page 32. */ #ifndef NX_DNS_MAX_RETRANS_TIMEOUT #define NX_DNS_MAX_RETRANS_TIMEOUT (64 * NX_IP_PERIODIC_RATE) @@ -344,20 +328,20 @@ typedef struct NX_IP_DNS_STRUCT /* A RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| | ADDRESS | |-------------------------------------------------------------| */ /* The host name may have multiple addresses,so we need a buffer to record the all addresses. - return_buffer must be 4-byte aligned. This return buffer is used to store IP addresses returned from the server. + return_buffer must be 4-byte aligned. This return buffer is used to store IP addresses returned from the server. record_number stores the number of entries in the buffer. If the server returns more entries than the buffer can hold, the entries exceeding the buffer size are dropped. */ /* Layout of the buffer - |-------------------------------------------------------------------------------------| + |-------------------------------------------------------------------------------------| |ip.address.0|ip.address.1|ip.address.2|....... |ip.address.n| - |-------------------------------------------------------------------------------------| + |-------------------------------------------------------------------------------------| */ /********************************************************************************/ @@ -365,14 +349,14 @@ typedef struct NX_IP_DNS_STRUCT /********************************************************************************/ /* AAAA RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| | ADDRESS | - |-------------------------------------------------------------| + |-------------------------------------------------------------| | ADDRESS | - |-------------------------------------------------------------| + |-------------------------------------------------------------| | ADDRESS | - |-------------------------------------------------------------| + |-------------------------------------------------------------| | ADDRESS | |-------------------------------------------------------------| */ @@ -388,18 +372,18 @@ typedef struct NX_DNS_IPV6_ADDRESS_STRUCT can hold, the entries exceeding the buffer size are dropped. */ /* Layout of the buffer - |---------------------------------------------------------------| + |---------------------------------------------------------------| |ip.address.0[0]|ip.address.0[1]|ip.address.0[2]|ip.address.0[3]| - |---------------------------------------------------------------| + |---------------------------------------------------------------| |ip.address.1[0]|ip.address.1[1]|ip.address.1[2]|ip.address.1[3]| |---------------------------------------------------------------| | | | .......................................... | | | - |---------------------------------------------------------------| + |---------------------------------------------------------------| |ip.address.n[0]|ip.address.n[1]|ip.address.n[2]|ip.address.n[3]| |---------------------------------------------------------------| - + */ /********************************************************************************/ @@ -407,7 +391,7 @@ typedef struct NX_DNS_IPV6_ADDRESS_STRUCT /********************************************************************************/ /* PTR RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| / PTRDNAME / / / @@ -422,7 +406,7 @@ typedef struct NX_DNS_IPV6_ADDRESS_STRUCT /********************************************************************************/ /* NS RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| / NSDNAME / / / @@ -437,23 +421,23 @@ typedef struct NX_DNS_NS_ENTRY_STRUCT /* Store the message in one buffer. Layout of the buffer: - record_buffer |---------------------------------------------------------------| + record_buffer |---------------------------------------------------------------| entry 0 |xx.xx.xx.xx |Pointer to the host name string | - record_buffer + 8 |---------------------------------------------------------------| + record_buffer + 8 |---------------------------------------------------------------| entry 1 |xx.xx.xx.xx |Pointer to the host name string | record_buffer + 16 |---------------------------------------------------------------| - entry 2 |xx.xx.xx.xx |Pointer to the host name string | + entry 2 |xx.xx.xx.xx |Pointer to the host name string | record_buffer + 24 |---------------------------------------------------------------| - entry 3 |xx.xx.xx.xx |Pointer to the host name string | - record_buffer + 32 |---------------------------------------------------------------| + entry 3 |xx.xx.xx.xx |Pointer to the host name string | + record_buffer + 32 |---------------------------------------------------------------| entry 4 |xx.xx.xx.xx |Pointer to the host name string | record_buffer + 40 |---------------------------------------------------------------| - |xx.xx.xx.xx |Pointer to the host name string | + |xx.xx.xx.xx |Pointer to the host name string | |---------------------------------------------------------------| | | ns_hostname 4 | |ns_hostname 3 | ns_hostname 2 | |ns_hostname 1 | ns_hostname 0 | - record_buffer + max |---------------------------------------------------------------| + record_buffer + max |---------------------------------------------------------------| */ /********************************************************************************/ @@ -461,7 +445,7 @@ typedef struct NX_DNS_NS_ENTRY_STRUCT /********************************************************************************/ /* CNAME RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| / CNAME / / / @@ -473,8 +457,8 @@ typedef struct NX_DNS_NS_ENTRY_STRUCT /* MX */ /********************************************************************************/ /* MX RDATA format - 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |-----------------------------| | PREFERECE | |-----------------------------| @@ -493,15 +477,15 @@ typedef struct NX_DNS_MAIL_EXCHANGE_ENTRY_STRUCT } NX_DNS_MX_ENTRY; /* Layout of the buffer - record_buffer |---------------------------------------------------------| + record_buffer |---------------------------------------------------------| entry 0 |xx.xx.xx.xx|preference|res|pointer to host name string | - record_buffer + 12 |---------------------------------------------------------| + record_buffer + 12 |---------------------------------------------------------| entry 1 |xx.xx.xx.xx|preference|res|pointer to host name string | record_buffer + 24 |---------------------------------------------------------| entry 2 |xx.xx.xx.xx|preference|res|pointer to host name string | record_buffer + 36 |---------------------------------------------------------| entry 3 |xx.xx.xx.xx|preference|res|pointer to host name string | - record_buffer + 48 |---------------------------------------------------------| + record_buffer + 48 |---------------------------------------------------------| entry 4 |xx.xx.xx.xx|preference|res|pointer to host name string | record_buffer + 60 |---------------------------------------------------------| |xx.xx.xx.xx|preference|res|pointer to host name string | @@ -509,7 +493,7 @@ typedef struct NX_DNS_MAIL_EXCHANGE_ENTRY_STRUCT | | mx_hostname 4 | |mx_hostname 3 | mx_hostname 2 | |mx_hostname 1 | mx_hostname 0 | - record_buffer + max |---------------------------------------------------------| + record_buffer + max |---------------------------------------------------------| */ /********************************************************************************/ @@ -529,22 +513,22 @@ typedef struct NX_DNS_SERVICE_ENTRY_STRUCT /* Layout of the buffer: - record_buffer |-------------------------------------------------------------------| + record_buffer |-------------------------------------------------------------------| entry 0 |xx.xx.xx.xx|priority|weight|port|res|pointer to host name string | - record_buffer + 16 |-------------------------------------------------------------------| + record_buffer + 16 |-------------------------------------------------------------------| entry 1 |xx.xx.xx.xx|priority|weight|port|res|pointer to host name string | record_buffer + 32 |-------------------------------------------------------------------| entry 2 |xx.xx.xx.xx|priority|weight|port|res|pointer to host name string | record_buffer + 48 |-------------------------------------------------------------------| entry 3 |xx.xx.xx.xx|priority|weight|port|res|pointer to host name string | - record_buffer + 64 |-------------------------------------------------------------------| + record_buffer + 64 |-------------------------------------------------------------------| entry 4 |xx.xx.xx.xx|priority|weight|port|res|pointer to host name string | record_buffer + 80 |-------------------------------------------------------------------| |xx.xx.xx.xx|priority|weight|port|res|pointer to host name string | | | srv_hostname 4 | |srv_hostname 3 | srv_hostname 2 | |srv_hostname 1 | srv_hostname 0 | - record_buffer + max |-------------------------------------------------------------------| + record_buffer + max |-------------------------------------------------------------------| */ /********************************************************************************/ @@ -552,7 +536,7 @@ typedef struct NX_DNS_SERVICE_ENTRY_STRUCT /********************************************************************************/ /* TXT RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| / TXT-DATA / / / @@ -564,23 +548,23 @@ typedef struct NX_DNS_SERVICE_ENTRY_STRUCT /********************************************************************************/ /* SOA RDATA format 1 2 3 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |-------------------------------------------------------------| / MNAME / / / - |-------------------------------------------------------------| + |-------------------------------------------------------------| / RNAME / - / / - |-------------------------------------------------------------| - | SERIAL | - |-------------------------------------------------------------| - | REFRESH | - |-------------------------------------------------------------| - | RETRY | - |-------------------------------------------------------------| - | EXPIRE | - |-------------------------------------------------------------| - | MINMUM | + / / + |-------------------------------------------------------------| + | SERIAL | + |-------------------------------------------------------------| + | REFRESH | + |-------------------------------------------------------------| + | RETRY | + |-------------------------------------------------------------| + | EXPIRE | + |-------------------------------------------------------------| + | MINMUM | |-------------------------------------------------------------| */ @@ -599,15 +583,15 @@ typedef struct NX_DNS_SOA_ENTRY_STRUCT } NX_DNS_SOA_ENTRY; /* Layout of the buffer - record_buffer - - |-------------------------------------------------------------------| + record_buffer + + |-------------------------------------------------------------------| | pointer to primary name server| pointer to responsible mailbox | - |-------------------------------------------------------------------| + |-------------------------------------------------------------------| | serial | refresh | retry | expire | minmum | - |-------------------------------------------------------------------| + |-------------------------------------------------------------------| | soa_host_mname | soa_host_rname | - |-------------------------------------------------------------------| + |-------------------------------------------------------------------| */ /********************************************************************************/ @@ -632,7 +616,7 @@ typedef struct NX_DNS_SOA_ENTRY_STRUCT /* A RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | ADDRESS | | | @@ -646,7 +630,7 @@ typedef struct NX_DNS_RR_A_STRUCT /* AAAA RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | | | | @@ -667,7 +651,7 @@ typedef struct NX_DNS_RR_AAAA_STRUCT /* PTR RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / PTRDNAME / |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -681,7 +665,7 @@ typedef struct NX_DNS_RR_PTR_STRUCT /* NS RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / NSDNAME / / / @@ -695,7 +679,7 @@ typedef struct NX_DNS_RR_NS_STRUCT /* CNMAE RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / CNAME / / / @@ -710,9 +694,9 @@ typedef struct NX_DNS_RR_CNAME_STRUCT /* MX RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| - | PREFERENCE | + | PREFERENCE | |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / NEWNAME / / / @@ -726,7 +710,7 @@ typedef struct NX_DNS_RR_MX_STRUCT /* TXT RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / TXT-DATA / |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -739,7 +723,7 @@ typedef struct NX_DNS_RR_TXT_STRUCT /* SRV RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | PRIORITY | |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -759,7 +743,7 @@ typedef struct NX_DNS_RR_SRV_STRUCT /* SOA RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / MNAME / / / @@ -785,7 +769,7 @@ typedef struct NX_DNS_RR_SRV_STRUCT typedef struct NX_DNS_RR_SOA_STRUCT { - UCHAR* nx_dns_rr_soa_rdata; /* Keep the same resource record structure size, store the rdata information into cache with string. + UCHAR* nx_dns_rr_soa_rdata; /* Keep the same resource record structure size, store the rdata information into cache with string. "Mname, Rname, Serial, Refresh, Retry, Expire, Minmum" */ } NX_DNS_RR_SOA; @@ -825,9 +809,9 @@ typedef struct NX_DNS_RR_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/ftp/nxd_ftp_client.c b/addons/ftp/nxd_ftp_client.c index 857c7bae..b5bb1a18 100644 --- a/addons/ftp/nxd_ftp_client.c +++ b/addons/ftp/nxd_ftp_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -29,9 +29,9 @@ #define NX_DISABLE_ERROR_CHECKING #endif -/* If FileX is not used in your application, define this option. Then define the - services declared in filex_stub.h elsewhere. -#define NX_FTP_NO_FILEX +/* If FileX is not used in your application, define this option. Then define the + services declared in filex_stub.h elsewhere. +#define NX_FTP_NO_FILEX */ /* Include necessary system files. */ @@ -89,14 +89,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_connect(NX_FTP_CLIENT *ftp_client_ptr, ULONG server_ip, CHAR *username, CHAR *password, ULONG wait_option) @@ -173,14 +165,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_connect(NX_FTP_CLIENT *ftp_client_ptr, ULONG server_ip, CHAR *username, CHAR *password, ULONG wait_option) @@ -245,14 +229,6 @@ NXD_ADDRESS server_ipduo; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ftp_client_connect(NX_FTP_CLIENT *ftp_client_ptr, NXD_ADDRESS *server_ipduo, CHAR *username, CHAR *password, ULONG wait_option) @@ -317,14 +293,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ftp_client_connect(NX_FTP_CLIENT *ftp_client_ptr, NXD_ADDRESS *server_ipduo, CHAR *username, CHAR *password, ULONG wait_option) @@ -375,17 +343,6 @@ UINT _nxd_ftp_client_connect(NX_FTP_CLIENT *ftp_client_ptr, NXD_ADDRESS *server /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* corrected length of buffer, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_connect_internal(NX_FTP_CLIENT *ftp_client_ptr, NXD_ADDRESS *server_ip, CHAR *username, CHAR *password, ULONG wait_option) @@ -853,14 +810,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_create(NX_FTP_CLIENT *ftp_client_ptr, CHAR *ftp_client_name, NX_IP *ip_ptr, ULONG window_size, NX_PACKET_POOL *pool_ptr) @@ -919,14 +868,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_create(NX_FTP_CLIENT *ftp_client_ptr, CHAR *ftp_client_name, NX_IP *ip_ptr, ULONG window_size, NX_PACKET_POOL *pool_ptr) @@ -1027,14 +968,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ftp_client_data_disconnect(NX_TCP_SOCKET *data_socket_ptr) { @@ -1075,14 +1008,6 @@ void _nx_ftp_client_data_disconnect(NX_TCP_SOCKET *data_socket_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_delete(NX_FTP_CLIENT *ftp_client_ptr) { @@ -1137,17 +1062,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Wenhui Xie Modified comment(s), */ -/* cleared the client ID, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_delete(NX_FTP_CLIENT *ftp_client_ptr) { @@ -1208,14 +1122,6 @@ UINT _nx_ftp_client_delete(NX_FTP_CLIENT *ftp_client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_directory_create(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_name, ULONG wait_option) { @@ -1277,14 +1183,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_directory_create(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_name, ULONG wait_option) { @@ -1444,14 +1342,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_directory_default_set(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_path, ULONG wait_option) { @@ -1513,14 +1403,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_directory_default_set(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_path, ULONG wait_option) { @@ -1681,14 +1563,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_directory_delete(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_name, ULONG wait_option) { @@ -1750,14 +1624,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_directory_delete(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_name, ULONG wait_option) { @@ -1920,14 +1786,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_directory_listing_get(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_path, NX_PACKET **packet_ptr, ULONG wait_option) @@ -1998,14 +1856,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_directory_listing_get(NX_FTP_CLIENT *ftp_client_ptr, CHAR *directory_path, NX_PACKET **packet_ptr, ULONG wait_option) @@ -2184,7 +2034,7 @@ UINT status; /* We have a packet, setup pointer to the buffer area. */ buffer_ptr = new_packet_ptr -> nx_packet_prepend_ptr; - /* Check for 1xx message, signaling the data port was connected properly and ready for + /* Check for 1xx message, signaling the data port was connected properly and ready for transfer. */ if ((new_packet_ptr -> nx_packet_length < 3) || (buffer_ptr[0] != '1')) { @@ -2274,14 +2124,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_directory_listing_continue(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -2344,14 +2186,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_directory_listing_continue(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -2459,14 +2293,6 @@ UCHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_disconnect(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -2526,14 +2352,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_disconnect(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -2696,14 +2514,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_close(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -2764,14 +2574,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_close(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -2862,14 +2664,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_delete(NX_FTP_CLIENT *ftp_client_ptr, CHAR *file_name, ULONG wait_option) { @@ -2931,14 +2725,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_delete(NX_FTP_CLIENT *ftp_client_ptr, CHAR *file_name, ULONG wait_option) { @@ -3097,14 +2883,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_passive_mode_set(NX_FTP_CLIENT *ftp_client_ptr, UINT passive_mode_enabled) { @@ -3162,14 +2940,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_passive_mode_set(NX_FTP_CLIENT *ftp_client_ptr, UINT passive_mode_enabled) { @@ -3213,14 +2983,6 @@ UINT _nx_ftp_client_passive_mode_set(NX_FTP_CLIENT *ftp_client_ptr, UINT passiv /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_transfer_mode_set(NX_FTP_CLIENT *ftp_client_ptr, UINT transfer_mode) { @@ -3276,14 +3038,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_transfer_mode_set(NX_FTP_CLIENT *ftp_client_ptr, UINT transfer_mode) { @@ -3339,14 +3093,6 @@ UINT _nx_ftp_client_transfer_mode_set(NX_FTP_CLIENT *ftp_client_ptr, UINT trans /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_open(NX_FTP_CLIENT *ftp_client_ptr, CHAR *file_name, UINT open_type, ULONG wait_option) { @@ -3418,14 +3164,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_open(NX_FTP_CLIENT *ftp_client_ptr, CHAR *file_name, UINT open_type, ULONG wait_option) { @@ -3786,14 +3524,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_read(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -3851,14 +3581,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_read(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -3934,14 +3656,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_rename(NX_FTP_CLIENT *ftp_client_ptr, CHAR *filename, CHAR *new_filename, ULONG wait_option) { @@ -4005,14 +3719,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_rename(NX_FTP_CLIENT *ftp_client_ptr, CHAR *filename, CHAR *new_filename, ULONG wait_option) { @@ -4265,14 +3971,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_size_set(NX_FTP_CLIENT *ftp_client_ptr, ULONG file_size) { @@ -4331,14 +4029,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_size_set(NX_FTP_CLIENT *ftp_client_ptr, ULONG file_size) { @@ -4415,14 +4105,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_client_file_write(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -4481,17 +4163,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* fixed packet double release,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_file_write(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -4584,15 +4255,6 @@ ULONG file_size = 0; /* */ /* _nx_ftp_client_file_open FTP Client file open service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_utility_convert_IPv6_to_ascii(NX_TCP_SOCKET *socket_ptr, CHAR *buffer, UINT buffer_length, UINT *size) @@ -4693,14 +4355,6 @@ CHAR number_buf[10]; /* 0x20010000 -> "2001:0000:" */ /* _nx_ftp_utility_convert_IPv6_to_ascii */ /* Convert IPv6 address to ASCII */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_utility_convert_number_ascii(ULONG number, CHAR *numstring) @@ -4781,14 +4435,6 @@ UCHAR c; /* _nx_ftp_client_file_open Processes the FTP file open service */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_utility_convert_portnumber_ascii(UINT number, CHAR *numstring, UINT *numstring_length) @@ -4884,14 +4530,6 @@ UINT digit; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_packet_allocate(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -4971,16 +4609,6 @@ UINT status; /* _nx_ftp_client_file_open Open a file for read or write */ /* _nx_ftp_client_directory_listing_get Get directory list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* fixed packet leak, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_active_transfer_setup(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -5047,7 +4675,7 @@ UINT ipduo_size; CHAR ipduo_buffer[NX_FTP_IPV6_ADDRESS_BUFSIZE]; UINT index; - /* EPRT command: EPRT |2|1080::8:800:200C:417A|5282| + /* EPRT command: EPRT |2|1080::8:800:200C:417A|5282| RFC2428, Section2, Page3. */ /* Check if out of boundary. @@ -5284,14 +4912,6 @@ UINT ipduo_size; /* _nx_ftp_client_file_open Open a file for read or write */ /* _nx_ftp_client_directory_listing_get Get directory list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_passive_transfer_setup(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -5520,7 +5140,7 @@ ULONG temp = 0; return(NX_FTP_EXPECTED_2XX_CODE); } - /* Now parse the address and port for the Client to connect to on the data socket. + /* Now parse the address and port for the Client to connect to on the data socket. IP address and port are comma delimited and port number is the last two numbers, PASV port = (p1 * 256) + p2. */ @@ -5725,14 +5345,6 @@ ULONG temp = 0; /* _nx_ftp_client_directory_listing_continue */ /* Continue to get directory list*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_client_data_socket_cleanup(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -5797,14 +5409,6 @@ VOID _nx_ftp_client_data_socket_cleanup(NX_FTP_CLIENT *ftp_client_ptr, ULONG wa /* _nx_ftp_client_file_open Open a file for read or write */ /* _nx_ftp_client_directory_listing_get Get directory list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_block_mode_send(NX_FTP_CLIENT *ftp_client_ptr, ULONG wait_option) { @@ -5928,14 +5532,6 @@ UCHAR *buffer_ptr; /* _nx_ftp_client_file_size_set Set the file size for writing */ /* _nx_ftp_client_file_write Send data packet to server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_block_header_send(NX_FTP_CLIENT *ftp_client_ptr, ULONG block_size) { @@ -6040,14 +5636,6 @@ UCHAR *buffer_ptr; /* _nx_ftp_client_directory_listing_continue */ /* Continue to get directory list*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_client_block_header_retrieve(NX_FTP_CLIENT *ftp_client_ptr, NX_PACKET *packet_ptr) { diff --git a/addons/ftp/nxd_ftp_client.h b/addons/ftp/nxd_ftp_client.h index 56813e9e..4c3b65b7 100644 --- a/addons/ftp/nxd_ftp_client.h +++ b/addons/ftp/nxd_ftp_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,17 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_FTP_CLIENT_H @@ -181,7 +170,7 @@ extern "C" { /* Define the size for buffer to store an IPv6 address represented in ASCII. */ #define NX_FTP_IPV6_ADDRESS_BUFSIZE 60 -/* Define the FTP basic commands. The ASCII command will be parsed and converted to the numerical +/* Define the FTP basic commands. The ASCII command will be parsed and converted to the numerical representation shown below. */ #define NX_FTP_NOOP 0 @@ -234,9 +223,9 @@ typedef struct NX_FTP_CLIENT_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/ftp/nxd_ftp_server.c b/addons/ftp/nxd_ftp_server.c index 7463f9b4..0075f1f6 100644 --- a/addons/ftp/nxd_ftp_server.c +++ b/addons/ftp/nxd_ftp_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -30,7 +30,7 @@ #endif /* If FileX is not used in this application, define this option and define the FileX services - declared in filex_stub.h elsewhere. + declared in filex_stub.h elsewhere. #define NX_FTP_NO_FILEX */ @@ -123,14 +123,6 @@ static VOID _nx_ftp_server_number_to_ascii(UCHAR *buffer_ptr, UINT buffer_size, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_server_create(NX_FTP_SERVER *ftp_server_ptr, CHAR *ftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*ftp_login)(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info), @@ -208,14 +200,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_create(NX_FTP_SERVER *ftp_server_ptr, CHAR *ftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*ftp_login_ipv4)(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info), @@ -293,14 +277,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ftp_server_create(NX_FTP_SERVER *ftp_server_ptr, CHAR *ftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*ftp_login)(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, NXD_ADDRESS *client_ipduo_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info), @@ -366,14 +342,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ftp_server_create(NX_FTP_SERVER *ftp_server_ptr, CHAR *ftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*ftp_login)(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, NXD_ADDRESS *client_ipduo_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info), @@ -442,14 +410,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_create_internal(NX_FTP_SERVER *ftp_server_ptr, CHAR *ftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*ftp_login)(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, NXD_ADDRESS *client_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info), @@ -625,14 +585,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_server_delete(NX_FTP_SERVER *ftp_server_ptr) { @@ -698,18 +650,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of clearing */ -/* data socket, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_delete(NX_FTP_SERVER *ftp_server_ptr) { @@ -806,14 +746,6 @@ NX_FTP_CLIENT_REQUEST *client_request_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_server_start(NX_FTP_SERVER *ftp_server_ptr) { @@ -867,14 +799,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_start(NX_FTP_SERVER *ftp_server_ptr) { @@ -941,14 +865,6 @@ ULONG events; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ftp_server_stop(NX_FTP_SERVER *ftp_server_ptr) { @@ -1004,18 +920,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* removed deletion of control */ -/* socket, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_stop(NX_FTP_SERVER *ftp_server_ptr) { @@ -1120,14 +1024,6 @@ NX_FTP_CLIENT_REQUEST *client_request_ptr; /* */ /* NetX FTP Routines */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_response(NX_TCP_SOCKET *socket, NX_PACKET *packet_ptr, CHAR *reply_code, CHAR *message) { @@ -1229,14 +1125,6 @@ UINT status; /* */ /* NetX FTP Routines */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_directory_response(NX_TCP_SOCKET *socket, NX_PACKET *packet_ptr, CHAR *reply_code, CHAR *message, CHAR *directory) { @@ -1404,14 +1292,6 @@ UINT status; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_thread_entry(ULONG ftp_server_address) { @@ -1570,39 +1450,6 @@ ULONG events; /* */ /* _nx_ftp_server_thread_entry FTP server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.3 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* corrected the pad character,*/ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of clearing */ -/* data socket and processing */ -/* disconnection event, */ -/* improved the PASV response, */ -/* fixed the bug of processing */ -/* STOR in passive mode, */ -/* reset the packet prepend */ -/* pointer for alignment, */ -/* resulting in version 6.1.9 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* fixed duplicate packet */ -/* release issue, avoided */ -/* duplicate creation for data */ -/* socket, fixed data length */ -/* underflow, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_command_process(NX_FTP_SERVER *ftp_server_ptr) { @@ -4420,14 +4267,6 @@ ULONG block_size; /* */ /* _nx_ftp_server_thread_entry FTP server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_connect_process(NX_FTP_SERVER *ftp_server_ptr) { @@ -4574,14 +4413,6 @@ NX_FTP_CLIENT_REQUEST *client_req_ptr; /* */ /* NetX NetX receive packet callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_command_present(NX_TCP_SOCKET *control_socket_ptr) { @@ -4630,14 +4461,6 @@ NX_FTP_SERVER *server_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_connection_present(NX_TCP_SOCKET *control_socket_ptr, UINT port) { @@ -4687,14 +4510,6 @@ NX_FTP_SERVER *server_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_data_disconnect(NX_TCP_SOCKET *data_socket_ptr) { @@ -4744,18 +4559,6 @@ NX_FTP_SERVER *server_ptr; /* */ /* _nx_ftp_server_thread_entry FTP server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), fixed */ -/* the issue of processing */ -/* disconnection event, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_data_disconnect_process(NX_FTP_SERVER *ftp_server_ptr) { @@ -4873,14 +4676,6 @@ NX_FTP_CLIENT_REQUEST *client_req_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_data_present(NX_TCP_SOCKET *data_socket_ptr) { @@ -4931,14 +4726,6 @@ NX_FTP_SERVER *server_ptr; /* */ /* _nx_ftp_server_thread_entry FTP server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_data_process(NX_FTP_SERVER *ftp_server_ptr) { @@ -5082,17 +4869,6 @@ NX_FTP_CLIENT_REQUEST *client_req_ptr; /* */ /* _nx_ftp_server_command_process FTP command process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_parse_command(NX_PACKET *packet_ptr) { @@ -5308,14 +5084,6 @@ char *buffer_ptr; /* */ /* ThreadX ThreadX timer callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_timeout(ULONG ftp_server_address) { @@ -5370,22 +5138,6 @@ NX_FTP_SERVER *server_ptr; /* */ /* _nx_ftp_server_thread_entry FTP server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of clearing */ -/* data socket, */ -/* resulting in version 6.1.9 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* fixed duplicate packet */ -/* release issue, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_timeout_processing(NX_FTP_SERVER *ftp_server_ptr) { @@ -5492,14 +5244,6 @@ NX_FTP_CLIENT_REQUEST *client_req_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_control_disconnect(NX_TCP_SOCKET *control_socket_ptr) { @@ -5553,22 +5297,6 @@ NX_FTP_SERVER *server_ptr; /* */ /* _nx_ftp_server_thread_entry FTP server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of clearing */ -/* data socket, */ -/* resulting in version 6.1.9 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* fixed duplicate packet */ -/* release issue, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_control_disconnect_processing(NX_FTP_SERVER *ftp_server_ptr) { @@ -5711,14 +5439,6 @@ NX_FTP_CLIENT_REQUEST *client_req_ptr; /* Client disconnect handler */ /* _nx_ftp_server_connect_process Client Connect request handler*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_packet_allocate(NX_PACKET_POOL *pool_ptr, NX_FTP_CLIENT_REQUEST *client_request_ptr, NX_PACKET **packet_ptr, UINT packet_type, UINT wait_option) @@ -5793,17 +5513,6 @@ UINT status; /* _nx_ftp_server_command_process Parse a received FTP command */ /* packet service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* colons count verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ftp_utility_parse_IPv6_address(CHAR *buffer_ptr, UINT buffer_length, NXD_ADDRESS *ipduo_address) { @@ -6022,7 +5731,7 @@ ULONG temp; while (number_consecutive_zeros_to_add) { - /* Determine where to add the 16 bits depending + /* Determine where to add the 16 bits depending on odd or even number colon we're on. */ /* Are we in the middle of the current v6 ULONG?*/ @@ -6086,7 +5795,7 @@ ULONG temp; return NX_FTP_INVALID_ADDRESS; } - /* Is there a parsed number to apply to the last ULONG e.g. no terminating '|' + /* Is there a parsed number to apply to the last ULONG e.g. no terminating '|' in the buffer? */ if (temp) { @@ -6145,14 +5854,6 @@ ULONG temp; /* _nx_ftp_server_command_process Parse a received FTP command */ /* packet service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_utility_parse_port_number(CHAR *buffer_ptr, UINT buffer_length, UINT *portnumber) @@ -6296,14 +5997,6 @@ UINT digits = 0; /* _nx_ftp_server_command_process Processes FTP commands */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_utility_fill_port_number(CHAR *buffer_ptr, UINT port_number) { @@ -6392,14 +6085,6 @@ UINT size; /* */ /* _nx_ftp_server_command_process Process command */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_block_size_get(NX_FTP_SERVER *ftp_server_ptr, UINT ftp_command, CHAR *filename, ULONG *block_size) { @@ -6501,14 +6186,6 @@ UINT status; /* */ /* _nx_ftp_server_command_process Process command */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_block_header_send(NX_PACKET_POOL *pool_ptr, NX_FTP_CLIENT_REQUEST *client_request_ptr, ULONG block_size) { @@ -6609,14 +6286,6 @@ UCHAR *buffer_ptr; /* */ /* _nx_ftp_server_data_process Process client write data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ftp_server_block_header_retrieve(NX_FTP_CLIENT_REQUEST *ftp_client_ptr, NX_PACKET *packet_ptr) { @@ -6795,20 +6464,6 @@ NX_PACKET *last_packet; /* _nx_ftp_server_command_process */ /* Process command */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Yuxin Zhou Modified comment(s), and */ -/* corrected the size check, */ -/* resulting in version 6.1.7 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* corrected the pad character,*/ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ static VOID _nx_ftp_server_number_to_ascii(UCHAR *buffer_ptr, UINT buffer_size, UINT number, UCHAR pad) { @@ -6882,12 +6537,6 @@ UINT size; /* _nx_ftp_server_data_disconnect_process */ /* Disconnect data socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-15-2021 Yuxin Zhou Initial Version 6.1.9 */ -/* */ /**************************************************************************/ VOID _nx_ftp_server_data_socket_cleanup(NX_FTP_SERVER *ftp_server_ptr, NX_FTP_CLIENT_REQUEST *client_req_ptr) { diff --git a/addons/ftp/nxd_ftp_server.h b/addons/ftp/nxd_ftp_server.h index a9a3f06b..e0cb85b9 100644 --- a/addons/ftp/nxd_ftp_server.h +++ b/addons/ftp/nxd_ftp_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,19 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of clearing */ -/* data socket, included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_FTP_SERVER_H @@ -166,7 +153,7 @@ extern "C" { #define NX_FTP_SERVER_RETRY_SHIFT 1 /* Every retry is twice as long */ #endif -/* The minimum FTP Server packet size must accomodate the largest expected packet sent e.g. the LIST command: +/* The minimum FTP Server packet size must accomodate the largest expected packet sent e.g. the LIST command: The filename can be up to 256 bytes, plus file info (which has a fixed size of 52 bytes). Note the 256 value is the assumed max size of a filename, defined by FX_MAX_LONG_NAME_LEN. . @@ -243,7 +230,7 @@ extern "C" { /* Define the size for buffer to store an IPv6 address represented in ASCII. */ #define NX_FTP_IPV6_ADDRESS_BUFSIZE 60 -/* Define the FTP basic commands. The ASCII command will be parsed and converted to the numerical +/* Define the FTP basic commands. The ASCII command will be parsed and converted to the numerical representation shown below. */ #define NX_FTP_NOOP 0 @@ -342,9 +329,9 @@ typedef struct NX_FTP_SERVER_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/http/nxd_http_client.c b/addons/http/nxd_http_client.c index 74b5c24c..6a7364e6 100644 --- a/addons/http/nxd_http_client.c +++ b/addons/http/nxd_http_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,14 +83,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_create(NX_HTTP_CLIENT *client_ptr, CHAR *client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, ULONG window_size, UINT http_client_size) { @@ -157,14 +149,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_create(NX_HTTP_CLIENT *client_ptr, CHAR *client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, ULONG window_size) { @@ -243,14 +227,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_delete(NX_HTTP_CLIENT *client_ptr) { @@ -305,14 +281,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_delete(NX_HTTP_CLIENT *client_ptr) { @@ -378,14 +346,6 @@ UINT _nx_http_client_delete(NX_HTTP_CLIENT *client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_set_connect_port(NX_HTTP_CLIENT *client_ptr, UINT port) { @@ -444,14 +404,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_set_connect_port(NX_HTTP_CLIENT *client_ptr, UINT port) { @@ -500,14 +452,6 @@ UINT _nx_http_client_set_connect_port(NX_HTTP_CLIENT *client_ptr, UINT port) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_get_start(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, CHAR *input_ptr, UINT input_size, CHAR *username, CHAR *password, ULONG wait_option) @@ -585,14 +529,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_get_start_extended(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, UINT resource_length, CHAR *input_ptr, UINT input_size, CHAR *username, UINT username_length, @@ -675,14 +611,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_get_start(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, CHAR *input_ptr, UINT input_size, CHAR *username, CHAR *password, ULONG wait_option) @@ -762,14 +690,6 @@ NXD_ADDRESS server_ip_addr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_get_start_extended(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, UINT resource_length, CHAR *input_ptr, UINT input_size, CHAR *username, UINT username_length, @@ -847,14 +767,6 @@ NXD_ADDRESS server_ip_addr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_http_client_get_start(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *ip_address, CHAR *resource, CHAR *input_ptr, UINT input_size, CHAR *username, CHAR *password, @@ -922,14 +834,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_http_client_get_start_extended(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *ip_address, CHAR *resource, UINT resource_length, CHAR *input_ptr, UINT input_size, CHAR *username, UINT username_length, @@ -998,14 +902,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_http_client_get_start(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, CHAR *resource, CHAR *input_ptr, UINT input_size, CHAR *username, CHAR *password, ULONG wait_option) @@ -1103,23 +999,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* correted the status when */ -/* received error code, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nxd_http_client_get_start_extended(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, CHAR *resource, UINT resource_length, CHAR *input_ptr, UINT input_size, CHAR *username, UINT username_length, @@ -1521,14 +1400,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_get_packet(NX_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -1588,14 +1459,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_get_packet(NX_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -1731,14 +1594,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_put_start(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, @@ -1823,14 +1678,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_put_start_extended(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, @@ -1918,14 +1765,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_put_start(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -2004,14 +1843,6 @@ NXD_ADDRESS server_ip_addr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_put_start_extended(NX_HTTP_CLIENT *client_ptr, ULONG ip_address, CHAR *resource, UINT resource_length, CHAR *username, UINT username_length, @@ -2086,14 +1917,6 @@ NXD_ADDRESS server_ip_addr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_http_client_put_start(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, CHAR *resource, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -2164,14 +1987,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_http_client_put_start_extended(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, CHAR *resource, UINT resource_length, CHAR *username, UINT username_length, @@ -2244,14 +2059,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_http_client_put_start(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, CHAR *resource, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -2348,19 +2155,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxd_http_client_put_start_extended(NX_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, CHAR *resource, UINT resource_length, CHAR *username, UINT username_length, @@ -2627,14 +2421,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_client_put_packet(NX_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -2704,14 +2490,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_put_packet(NX_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -2892,14 +2670,6 @@ UINT status; /* */ /* _nx_http_client_put_start_extended Start the PUT process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_type_get(CHAR *name, CHAR *http_type_string) { @@ -2914,7 +2684,7 @@ UINT i; i++; } - /* Now look backwards to find the last period that signals the + /* Now look backwards to find the last period that signals the file extension. */ while ((i) && (name[i] != '.')) { @@ -3072,14 +2842,6 @@ UINT i; /* */ /* _nx_http_client_get_start Start the GET operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_content_length_get(NX_PACKET *packet_ptr) { @@ -3202,14 +2964,6 @@ UINT found = NX_FALSE; /* */ /* _nx_http_client_get_start Start GET processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_calculate_content_offset(NX_PACKET *packet_ptr) { @@ -3228,7 +2982,7 @@ CHAR *buffer_ptr; while (((buffer_ptr+3) < (CHAR *) packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != (CHAR) 0)) { - /* Check for the token. This signals a blank line, which also + /* Check for the token. This signals a blank line, which also specifies the start of the content. */ if ((*buffer_ptr == (CHAR) 13) && (*(buffer_ptr+1) == (CHAR) 10) && @@ -3286,14 +3040,6 @@ CHAR *buffer_ptr; /* _nx_http_client_get_start_extended Start GET processing */ /* _nx_http_client_put_start_extended Start PUT processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_client_number_convert(UINT number, CHAR *string) { diff --git a/addons/http/nxd_http_client.h b/addons/http/nxd_http_client.h index dd985020..1ecbec3d 100644 --- a/addons/http/nxd_http_client.h +++ b/addons/http/nxd_http_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,18 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ #ifndef NXD_HTTP_CLIENT_H diff --git a/addons/http/nxd_http_server.c b/addons/http/nxd_http_server.c index 7d8edd31..f11ee62a 100644 --- a/addons/http/nxd_http_server.c +++ b/addons/http/nxd_http_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -107,14 +107,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_content_get(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) { @@ -179,14 +171,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_content_get(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) { @@ -383,14 +367,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_packet_content_find(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, ULONG *content_length) { @@ -447,14 +423,6 @@ UINT _nxe_http_server_packet_content_find(NX_HTTP_SERVER *server_ptr, NX_PACKET /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_packet_content_find(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, ULONG *content_length) { @@ -528,14 +496,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_packet_get(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr) { @@ -586,14 +546,6 @@ UINT _nxe_http_server_packet_get(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_packet_get(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr) { @@ -650,14 +602,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_content_length_get(NX_PACKET *packet_ptr) { @@ -709,14 +653,6 @@ UINT length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_content_length_get(NX_PACKET *packet_ptr) { @@ -824,14 +760,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_content_get_extended(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) @@ -907,14 +835,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_content_get_extended(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) @@ -1123,14 +1043,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_content_length_get_extended(NX_PACKET *packet_ptr, ULONG *content_length) @@ -1187,14 +1099,6 @@ UINT status; /* */ /* Threads */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_content_length_get_extended(NX_PACKET *packet_ptr, ULONG *length) { @@ -1307,14 +1211,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_create(NX_HTTP_SERVER *http_server_ptr, CHAR *http_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*authentication_check)(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm), @@ -1395,14 +1291,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_create(NX_HTTP_SERVER *http_server_ptr, CHAR *http_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*authentication_check)(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm), @@ -1503,14 +1391,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_delete(NX_HTTP_SERVER *http_server_ptr) { @@ -1571,17 +1451,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_delete(NX_HTTP_SERVER *http_server_ptr) { @@ -1648,14 +1517,6 @@ UINT _nx_http_server_delete(NX_HTTP_SERVER *http_server_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_param_get(NX_PACKET *packet_ptr, UINT param_number, CHAR *param_ptr, UINT max_param_size) { @@ -1714,14 +1575,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_param_get(NX_PACKET *packet_ptr, UINT param_number, CHAR *param_ptr, UINT max_param_size) { @@ -1867,14 +1720,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_query_get(NX_PACKET *packet_ptr, UINT query_number, CHAR *query_ptr, UINT max_query_size) { @@ -1933,14 +1778,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_query_get(NX_PACKET *packet_ptr, UINT query_number, CHAR *query_ptr, UINT max_query_size) { @@ -2082,14 +1919,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_start(NX_HTTP_SERVER *http_server_ptr) { @@ -2142,14 +1971,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_start(NX_HTTP_SERVER *http_server_ptr) { @@ -2210,14 +2031,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_stop(NX_HTTP_SERVER *http_server_ptr) { @@ -2274,17 +2087,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_stop(NX_HTTP_SERVER *http_server_ptr) { @@ -2336,12 +2138,6 @@ UINT _nx_http_server_stop(NX_HTTP_SERVER *http_server_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_disconnect(NX_HTTP_SERVER *http_server_ptr, UINT wait_option) { @@ -2404,14 +2200,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_callback_data_send(NX_HTTP_SERVER *server_ptr, VOID *data_ptr, ULONG data_length) { @@ -2471,14 +2259,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_callback_data_send(NX_HTTP_SERVER *server_ptr, VOID *data_ptr, ULONG data_length) { @@ -2574,14 +2354,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_callback_response_send(NX_HTTP_SERVER *server_ptr, CHAR *header, CHAR *information, CHAR *additional_info) { @@ -2642,14 +2414,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_callback_response_send(NX_HTTP_SERVER *server_ptr, CHAR *header, CHAR *information, CHAR *additional_info) { @@ -2715,14 +2479,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_callback_response_send_extended(NX_HTTP_SERVER *server_ptr, CHAR *header, UINT header_length, CHAR *information, UINT information_length, CHAR *additional_info, UINT additional_info_length) @@ -2793,14 +2549,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_callback_response_send_extended(NX_HTTP_SERVER *server_ptr, CHAR *header, UINT header_length, CHAR *information, UINT information_length, CHAR *additional_info, UINT additional_info_length) @@ -2868,14 +2616,6 @@ UINT temp_additional_info_length = 0; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_http_server_connection_present(NX_TCP_SOCKET *socket_ptr, UINT port) { @@ -2938,17 +2678,6 @@ NX_HTTP_SERVER *server_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_http_server_thread_entry(ULONG http_server) { @@ -3206,14 +2935,6 @@ UINT loop_endlessly = NX_TRUE; /* */ /* _nx_http_server_thread_entry HTTP Server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_get_client_request(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr) { @@ -3453,14 +3174,6 @@ NX_PACKET *tmp_ptr; /* */ /* _nx_http_server_thread_entry HTTP Server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_http_server_get_process(NX_HTTP_SERVER *server_ptr, UINT request_type, NX_PACKET *packet_ptr) { @@ -3662,7 +3375,7 @@ UINT temp_realm_length = 0; complete. */ /* If the HTTP server receives an empty POST request (no message body, content length = 0, it is the - responsibility of the request notify callback to send a response (if any) to the HTTP Client. + responsibility of the request notify callback to send a response (if any) to the HTTP Client. The HTTP server will process the request no further. */ /* Determine if a user supplied get function has been specified. */ @@ -3776,7 +3489,7 @@ UINT temp_realm_length = 0; /* Get length of packet */ temp = new_packet_ptr -> nx_packet_length; - /* Now, loop to send the data contents. If the request type is "HEAD", skip this loop to output the + /* Now, loop to send the data contents. If the request type is "HEAD", skip this loop to output the file contents. */ while ((length) && (request_type != NX_HTTP_SERVER_HEAD_REQUEST)) { @@ -3907,14 +3620,6 @@ UINT temp_realm_length = 0; /* _nx_http_server_get_process GET request processing */ /* _nx_http_server_put_process PUT request processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_http_server_put_process(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -4067,7 +3772,7 @@ UINT temp_realm_length = 0; /* At this point, either there isn't any required authentication for this resource or the authentication is complete. */ - /* If the request is empty (content-length = 0) the request notify callback is where a response is generated + /* If the request is empty (content-length = 0) the request notify callback is where a response is generated to return to the Client. NetX HTTP Server will not process an empty request further. */ /* Determine if a user supplied get function has been specified. */ @@ -4376,14 +4081,6 @@ UINT temp_realm_length = 0; /* */ /* _nx_http_server_thread_entry HTTP Server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_http_server_delete_process(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -4595,14 +4292,6 @@ UINT temp_realm_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_invalid_userpassword_notify_set(NX_HTTP_SERVER *http_server_ptr, UINT (*invalid_username_password_callback)(CHAR *resource, NXD_ADDRESS *client_nxd_address, UINT request_type)) @@ -4656,14 +4345,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_invalid_userpassword_notify_set(NX_HTTP_SERVER *http_server_ptr, UINT (*invalid_username_password_callback)(CHAR *resource, NXD_ADDRESS *client_nxd_address, UINT request_type)) @@ -4724,14 +4405,6 @@ UINT _nx_http_server_invalid_userpassword_notify_set(NX_HTTP_SERVER *http_server /* _nx_http_server_put_process Process PUT request */ /* _nx_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_response_send(NX_HTTP_SERVER *server_ptr, CHAR *status_code, UINT status_code_length, CHAR *information, UINT information_length, CHAR *additional_information, UINT additional_info_length) @@ -4860,22 +4533,6 @@ NX_PACKET *packet_ptr; /* _nx_http_server_put_process Process PUT request */ /* _nx_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the issue of processing */ -/* empty password, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_basic_authenticate(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *name_ptr, CHAR *password_ptr, CHAR *realm_ptr, UINT realm_length, UINT *auth_request_present) { @@ -5076,18 +4733,6 @@ UINT authorization_decoded_size; /* */ /* _nx_http_server_basic_authenticate Basic authenticate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the HTTP Server state issue */ -/* with basic authorization, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_http_server_retrieve_basic_authorization(NX_PACKET *packet_ptr, CHAR *authorization_request_ptr) { @@ -5254,14 +4899,6 @@ CHAR *buffer_ptr; /* _nx_http_server_put_process Process PUT request */ /* _nx_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_retrieve_resource(NX_PACKET *packet_ptr, CHAR *destination, UINT max_size) { @@ -5439,14 +5076,6 @@ CHAR *buffer_ptr; /* _nx_http_server_get_process Process GET request */ /* _nx_http_server_put_process Process PUT request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_calculate_content_offset(NX_PACKET *packet_ptr) { @@ -5522,14 +5151,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_type_get(NX_HTTP_SERVER *server_ptr, CHAR *name, CHAR *http_type_string) { @@ -5576,14 +5197,6 @@ UINT _nxe_http_server_type_get(NX_HTTP_SERVER *server_ptr, CHAR *name, CHAR *ht /* _nx_http_server_get_process Process GET request */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_type_get(NX_HTTP_SERVER *server_ptr, CHAR *name, CHAR *http_type_string) { @@ -5634,14 +5247,6 @@ UINT name_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_type_get_extended(NX_HTTP_SERVER *server_ptr, CHAR *name, UINT name_length, CHAR *http_type_string, UINT http_type_string_max_size) { @@ -5700,15 +5305,6 @@ UINT _nxe_http_server_type_get_extended(NX_HTTP_SERVER *server_ptr, CHAR *name, /* _nx_http_server_get_process Process GET request */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_type_get_extended(NX_HTTP_SERVER *server_ptr, CHAR *name, UINT name_length, CHAR *http_type_string, UINT http_type_string_max_size) { @@ -5750,7 +5346,7 @@ UINT temp_name_length; /* No extension is found. Return the default mime type. */ if(http_type_string_max_size < (sizeof(NX_HTTP_SERVER_DEFAULT_MIME))) { - /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into + /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into the caller-supplied http_type_string. */ return (0); } @@ -5819,7 +5415,7 @@ UINT temp_name_length; /* No extension matches. Return the default mime type. */ if(http_type_string_max_size < (sizeof(NX_HTTP_SERVER_DEFAULT_MIME))) { - /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into + /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into the caller-supplied http_type_string. */ return (0); } @@ -5861,12 +5457,6 @@ UINT temp_name_length; /* */ /* _nx_http_server_digest_authenticate Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_nonce_allocate(NX_HTTP_SERVER *server_ptr, NX_HTTP_SERVER_NONCE **nonce_ptr) { @@ -5973,17 +5563,6 @@ NX_HTTP_SERVER_NONCE *nonces_list = server_ptr -> nx_http_server_nonces; /* _nx_http_server_put_process Process PUT request */ /* _nx_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_digest_authenticate(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *name_ptr, UINT name_length, CHAR *password_ptr, UINT password_length, CHAR *realm_ptr, UINT realm_length, UINT *auth_request_present) { @@ -6073,7 +5652,7 @@ NX_HTTP_SERVER_NONCE *nonce_ptr = NX_NULL; nonce_ptr -> nonce_state = NX_HTTP_SERVER_NONCE_INVALID; } - /* If digest authenticate callback function returns non-success value, the request is + /* If digest authenticate callback function returns non-success value, the request is considered unauthenticated. */ if(callback_status != NX_SUCCESS) status = NX_HTTP_DIGEST_AUTHENTICATE; @@ -6268,17 +5847,6 @@ NX_HTTP_SERVER_NONCE *nonce_ptr = NX_NULL; /* */ /* _nx_http_server_digest_authenticate Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_http_server_digest_response_calculate(NX_HTTP_SERVER *server_ptr, CHAR *username, UINT username_length, CHAR *realm, UINT realm_length, CHAR *password, UINT password_length, CHAR *nonce, CHAR *method, CHAR *uri, CHAR *nc, CHAR *cnonce, CHAR *result) { @@ -6386,17 +5954,6 @@ UINT cnonce_length; /* */ /* _nx_http_server_digest_authenticate Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_server_retrieve_digest_authorization(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *response, CHAR *uri, CHAR *nc, CHAR *cnonce, NX_HTTP_SERVER_NONCE **nonce_ptr) { @@ -6863,14 +6420,6 @@ UINT i; /* */ /* _nx_http_server_digest_response_calculate Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_http_server_hex_ascii_convert(CHAR *source, UINT source_length, CHAR *destination) { @@ -6944,14 +6493,6 @@ CHAR digit; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_get_entity_header(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, UCHAR *entity_header_buffer, ULONG buffer_size) { @@ -7016,18 +6557,6 @@ UINT _nxe_http_server_get_entity_header(NX_HTTP_SERVER *server_ptr, NX_PACKET * /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed write underflow, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* verified memmove use cases, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_http_server_get_entity_header(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, UCHAR *entity_header_buffer, ULONG buffer_size) { @@ -7354,14 +6883,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_get_entity_content(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, ULONG *available_offset, ULONG *available_length) { @@ -7421,14 +6942,6 @@ UINT _nxe_http_server_get_entity_content(NX_HTTP_SERVER *server_ptr, NX_PACKET /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_get_entity_content(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, ULONG *available_offset, ULONG *available_length) { @@ -7496,14 +7009,6 @@ UINT status; /* _nx_http_server_get_entity_header */ /* _nx_http_server_get_entity_content */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_boundary_find(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr) { @@ -7753,14 +7258,6 @@ UINT boundary_length; /* */ /* _nx_http_server_boundary_find */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_match_string(UCHAR *src_start, UCHAR *src_end, UCHAR *target, ULONG target_length, ULONG *match_count, UCHAR **match_end_ptr) { @@ -7882,14 +7379,6 @@ ULONG remain_match; /* _nx_http_server_get_process */ /* _nx_http_server_get_entity_header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_field_value_get(NX_PACKET *packet_ptr, UCHAR *field_name, ULONG name_length, UCHAR *field_value, ULONG field_value_size) { @@ -7998,14 +7487,6 @@ UINT index; /* _nx_http_server_get_entity_header */ /* _nx_http_server_field_value_get */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_memicmp(UCHAR *src, ULONG src_length, UCHAR *dest, ULONG dest_length) { @@ -8094,18 +7575,6 @@ UCHAR ch; /* _nx_http_server_response_send */ /* _nx_http_server_callback_generate_response_header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_http_server_generate_response_header(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT status_code_length, UINT content_length, CHAR *content_type, @@ -8336,14 +7805,6 @@ CHAR status_code_not_modified; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_callback_generate_response_header(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT content_length, CHAR *content_type, @@ -8403,14 +7864,6 @@ UINT _nxe_http_server_callback_generate_response_header(NX_HTTP_SERVER *server_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_callback_generate_response_header_extended(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT status_code_length, UINT content_length, CHAR *content_type, @@ -8469,14 +7922,6 @@ UINT _nxe_http_server_callback_generate_response_header_extended(NX_HTTP_SERVER /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_callback_generate_response_header(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT content_length, CHAR *content_type, @@ -8547,14 +7992,6 @@ UINT additional_header_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_callback_generate_response_header_extended(NX_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT status_code_length, UINT content_length, CHAR *content_type, @@ -8618,14 +8055,6 @@ UINT temp_add_header_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_callback_packet_send(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -8669,14 +8098,6 @@ UINT _nxe_http_server_callback_packet_send(NX_HTTP_SERVER *server_ptr, NX_PACKE /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_callback_packet_send(NX_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -8718,14 +8139,6 @@ UINT _nx_http_server_callback_packet_send(NX_HTTP_SERVER *server_ptr, NX_PACKET /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_gmt_callback_set(NX_HTTP_SERVER *server_ptr, VOID (*gmt_get)(NX_HTTP_SERVER_DATE *)) { @@ -8770,14 +8183,6 @@ UINT _nxe_http_server_gmt_callback_set(NX_HTTP_SERVER *server_ptr, VOID (*gmt_g /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_gmt_callback_set(NX_HTTP_SERVER *server_ptr, VOID (*gmt_get)(NX_HTTP_SERVER_DATE *)) { @@ -8829,14 +8234,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_cache_info_callback_set(NX_HTTP_SERVER *server_ptr, UINT (*cache_info_get)(CHAR *, UINT *, NX_HTTP_SERVER_DATE *)) { @@ -8884,14 +8281,6 @@ UINT _nxe_http_server_cache_info_callback_set(NX_HTTP_SERVER *server_ptr, UINT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_cache_info_callback_set(NX_HTTP_SERVER *server_ptr, UINT (*cache_info_get)(CHAR *, UINT *, NX_HTTP_SERVER_DATE *)) { @@ -8943,14 +8332,6 @@ TX_INTERRUPT_SAVE_AREA /* _nx_http_server_get_process */ /* _nx_http_server_generate_response_header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_date_to_string(NX_HTTP_SERVER_DATE *date, CHAR *string) { @@ -9034,14 +8415,6 @@ UINT index = 0; /* */ /* _nx_http_server_date_to_string */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_http_server_date_convert(UINT date, UINT count, CHAR *string) { @@ -9101,14 +8474,6 @@ UINT digit; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_mime_maps_additional_set(NX_HTTP_SERVER *server_ptr, NX_HTTP_SERVER_MIME_MAP *mime_maps, UINT mime_maps_num) { @@ -9153,14 +8518,6 @@ UINT _nxe_http_server_mime_maps_additional_set(NX_HTTP_SERVER *server_ptr, NX_H /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_mime_maps_additional_set(NX_HTTP_SERVER *server_ptr, NX_HTTP_SERVER_MIME_MAP *mime_maps, UINT mime_maps_num) { @@ -9215,14 +8572,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_digest_authenticate_notify_set(NX_HTTP_SERVER *http_server_ptr, UINT (*digest_authenticate_callback)(NX_HTTP_SERVER *server_ptr, CHAR *name_ptr, @@ -9278,14 +8627,6 @@ UINT _nxe_http_server_digest_authenticate_notify_set(NX_HTTP_SERVER *http_server /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_digest_authenticate_notify_set(NX_HTTP_SERVER *http_server_ptr, UINT (*digest_authenticate_callback)(NX_HTTP_SERVER *server_ptr, CHAR *name_ptr, @@ -9341,14 +8682,6 @@ UINT _nx_http_server_digest_authenticate_notify_set(NX_HTTP_SERVER *http_server_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_http_server_authentication_check_set(NX_HTTP_SERVER *http_server_ptr, UINT (*authentication_check_extended)(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, UINT *name_length, CHAR **password, UINT *password_length, CHAR **realm, UINT *realm_length)) @@ -9409,14 +8742,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_http_server_authentication_check_set(NX_HTTP_SERVER *http_server_ptr, UINT (*authentication_check_extended)(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, UINT *name_length, CHAR **password, UINT *password_length, CHAR **realm, UINT *realm_length)) diff --git a/addons/http/nxd_http_server.h b/addons/http/nxd_http_server.h index d9cf5792..d47493c5 100644 --- a/addons/http/nxd_http_server.h +++ b/addons/http/nxd_http_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,26 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ -/* */ /**************************************************************************/ #ifndef NXD_HTTP_SERVER_H @@ -92,7 +72,7 @@ extern "C" { /* Define the HTTP version. */ #define NX_HTTP_VERSION "HTTP/1.0" -/* Enable Digest authentication. +/* Enable Digest authentication. #define NX_HTTP_DIGEST_ENABLE */ diff --git a/addons/mdns/nxd_mdns.c b/addons/mdns/nxd_mdns.c index 8946bb3f..1b6a4afd 100644 --- a/addons/mdns/nxd_mdns.c +++ b/addons/mdns/nxd_mdns.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -199,14 +199,6 @@ static NXD_ADDRESS NX_MDNS_IPV6_MULTICAST_ADDRESS; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_create(NX_MDNS *mdns_ptr, NX_IP *ip_ptr, NX_PACKET_POOL *packet_pool, UINT priority, VOID *stack_ptr, ULONG stack_size, UCHAR *host_name, @@ -353,20 +345,6 @@ UCHAR *ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* used internal ip address */ -/* change notification, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_mdns_create(NX_MDNS *mdns_ptr, NX_IP *ip_ptr, NX_PACKET_POOL *packet_pool, UINT priority, VOID *stack_ptr, ULONG stack_size, UCHAR *host_name, @@ -379,8 +357,8 @@ UINT status; UINT host_name_size; - /* Check the size of the host name string. The last four characters in the - host_name are reserved so DNS-SD is able to append " (2)" during the conflict + /* Check the size of the host name string. The last four characters in the + host_name are reserved so DNS-SD is able to append " (2)" during the conflict resolution process. */ #if (NX_MDNS_HOST_NAME_MAX >= NX_MDNS_LABEL_MAX) if (_nx_utility_string_length_check((CHAR *)host_name, &host_name_size, (NX_MDNS_LABEL_MAX - 4))) @@ -644,14 +622,6 @@ UINT host_name_size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_delete(NX_MDNS *mdns_ptr) { @@ -716,14 +686,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_delete(NX_MDNS *mdns_ptr) { @@ -800,14 +762,6 @@ UINT _nx_mdns_delete(NX_MDNS *mdns_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_cache_notify_set(NX_MDNS *mdns_ptr, VOID (*cache_full_notify_cb)(NX_MDNS *mdns_ptr, UINT, UINT)) { @@ -866,14 +820,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_notify_set(NX_MDNS *mdns_ptr, VOID (*cache_full_notify_cb)(NX_MDNS *mdns_ptr, UINT, UINT)) { @@ -925,14 +871,6 @@ UINT _nx_mdns_cache_notify_set(NX_MDNS *mdns_ptr, VOID (*cache_full_notify_cb)(N /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_cache_notify_clear(NX_MDNS *mdns_ptr) { @@ -991,14 +929,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_notify_clear(NX_MDNS *mdns_ptr) { @@ -1050,14 +980,6 @@ UINT _nx_mdns_cache_notify_clear(NX_MDNS *mdns_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_ignore_set(NX_MDNS *mdns_ptr, ULONG service_mask) { @@ -1117,14 +1039,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_ignore_set(NX_MDNS *mdns_ptr, ULONG service_mask) { @@ -1177,14 +1091,6 @@ UINT _nx_mdns_service_ignore_set(NX_MDNS *mdns_ptr, ULONG service_mask) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_notify_set(NX_MDNS *mdns_ptr, ULONG service_mask, VOID (*service_change_notify)(NX_MDNS *mdns_ptr, NX_MDNS_SERVICE *service_ptr, UINT state)) @@ -1246,14 +1152,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_notify_set(NX_MDNS *mdns_ptr, ULONG service_mask, VOID (*service_change_notify)(NX_MDNS *mdns_ptr, NX_MDNS_SERVICE *service_ptr, UINT state)) @@ -1308,14 +1206,6 @@ UINT _nx_mdns_service_notify_set(NX_MDNS *mdns_ptr, ULONG service_mask, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_notify_clear(NX_MDNS *mdns_ptr) { @@ -1376,14 +1266,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_notify_clear(NX_MDNS *mdns_ptr) { @@ -1447,14 +1329,6 @@ UINT _nx_mdns_service_notify_clear(NX_MDNS *mdns_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_announcement_timing_set(NX_MDNS *mdns_ptr, UINT t, UINT p, UINT k, UINT retrans_interval, ULONG period_interval, UINT max_time) { @@ -1520,14 +1394,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_announcement_timing_set(NX_MDNS *mdns_ptr, UINT t, UINT p, UINT k, UINT retrans_interval, ULONG period_interval, UINT max_time) { @@ -1593,14 +1459,6 @@ UINT _nx_mdns_service_announcement_timing_set(NX_MDNS *mdns_ptr, UINT t, UINT p, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_enable(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -1665,14 +1523,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_enable(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -1893,14 +1743,6 @@ NXD_IPV6_ADDRESS *ipv6_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_disable(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -1965,14 +1807,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_disable(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -1988,7 +1822,7 @@ NX_MDNS_RR *p; return(NX_MDNS_PARAM_ERROR); } - /* Check to see if mDNS is not enabled on this interface. + /* Check to see if mDNS is not enabled on this interface. Note: Only support one interface yet. */ if (mdns_ptr -> nx_mdns_interface_enabled[interface_index] == NX_FALSE) { @@ -2136,14 +1970,6 @@ NX_MDNS_RR *p; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_domain_name_set(NX_MDNS *mdns_ptr, UCHAR *domain_name) { @@ -2203,15 +2029,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_domain_name_set(NX_MDNS *mdns_ptr, UCHAR *domain_name) { @@ -2291,14 +2108,6 @@ UINT domain_name_size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_add(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UCHAR *txt, ULONG ttl, USHORT priority, USHORT weights, USHORT port, UCHAR is_unique, UINT interface_index) @@ -2319,8 +2128,8 @@ UINT status; return(NX_MDNS_PARAM_ERROR); } - /* Check the size of the service name string. The last four characters in the - service name are reserved so DNS-SD is able to append " (2)" during the conflict + /* Check the size of the service name string. The last four characters in the + service name are reserved so DNS-SD is able to append " (2)" during the conflict resolution process. */ #if (NX_MDNS_SERVICE_NAME_MAX >= NX_MDNS_LABEL_MAX) if (_nx_utility_string_length_check((CHAR *)name, NX_NULL, (NX_MDNS_LABEL_MAX - 4))) @@ -2417,14 +2226,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_add(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UCHAR *txt, ULONG ttl, USHORT priority, USHORT weights, USHORT port, UCHAR is_unique, UINT interface_index) @@ -2687,14 +2488,6 @@ UINT string_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_delete(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type) { @@ -2760,14 +2553,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_delete(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type) { @@ -2837,14 +2622,6 @@ UINT service_delete_success = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_interface_delete(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UINT interface_index) { @@ -3031,14 +2808,6 @@ UINT rr_ptr_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_one_shot_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, NX_MDNS_SERVICE *service, UINT timeout) { @@ -3135,18 +2904,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_one_shot_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, NX_MDNS_SERVICE *service, UINT timeout) { @@ -3322,18 +3079,6 @@ UINT name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_one_shot_query(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, NX_MDNS_RR **out_rr, ULONG wait_option, UINT interface_index) { @@ -3414,7 +3159,7 @@ UINT name_length; return(status); } - /* A multicast DNS querier should also delay the first query of the series by + /* A multicast DNS querier should also delay the first query of the series by a randomly chosen amount in the range 20-120ms. */ insert_rr -> nx_mdns_rr_timer_count = (ULONG)(NX_MDNS_QUERY_DELAY_MIN + (((ULONG)NX_RAND()) % NX_MDNS_QUERY_DELAY_RANGE)); insert_rr -> nx_mdns_rr_retransmit_lifetime = NX_MDNS_TIMER_COUNT_RANGE; @@ -3485,14 +3230,6 @@ UINT name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_continuous_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type) { @@ -3616,14 +3353,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_continuous_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type) { @@ -3758,18 +3487,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_continuous_query(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, UINT interface_index) { @@ -3839,7 +3556,7 @@ UINT name_length; return(status); } - /* A multicast DNS querier should also delay the first query of the series by + /* A multicast DNS querier should also delay the first query of the series by a randomly chosen amount in the range 20-120ms. */ insert_rr -> nx_mdns_rr_timer_count = (ULONG)(NX_MDNS_QUERY_DELAY_MIN + (((ULONG)NX_RAND()) % NX_MDNS_QUERY_DELAY_RANGE)); insert_rr -> nx_mdns_rr_retransmit_lifetime = NX_MDNS_TIMER_COUNT_RANGE; @@ -3886,14 +3603,6 @@ UINT name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_query_stop(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type) { @@ -3969,14 +3678,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_query_stop(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type) { @@ -4150,14 +3851,6 @@ UINT rr_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_service_lookup(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UINT service_index, NX_MDNS_SERVICE *service) { @@ -4237,18 +3930,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_mdns_service_lookup(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UINT service_index, NX_MDNS_SERVICE *service) { @@ -4582,14 +4263,6 @@ UINT target_string_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_peer_cache_clear(NX_MDNS *mdns_ptr) { @@ -4649,14 +4322,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_peer_cache_clear(NX_MDNS *mdns_ptr) { @@ -4714,15 +4379,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_host_address_get(NX_MDNS *mdns_ptr, UCHAR *host_name, ULONG *ipv4_address, ULONG *ipv6_address, UINT timeout) { @@ -4792,15 +4448,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_host_address_get(NX_MDNS *mdns_ptr, UCHAR *host_name, ULONG *ipv4_address, ULONG *ipv6_address, UINT timeout) { @@ -4999,14 +4646,6 @@ UINT domain_name_length; /* */ /* _nx_mdns_host_name_register Register the host name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_a_aaaa_add(NX_MDNS *mdns_ptr, UCHAR *name, ULONG *address, UINT addr_length, UCHAR type, UINT interface_index) { @@ -5107,14 +4746,6 @@ NX_MDNS_RR temp_resource_record; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_ptr_add(NX_MDNS *mdns_ptr, UCHAR *name, ULONG ttl, UCHAR set, UCHAR *ptr_name, UCHAR is_valid, NX_MDNS_RR **insert_rr, UINT interface_index) { @@ -5241,14 +4872,6 @@ UINT ptr_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_srv_add(NX_MDNS *mdns_ptr, UCHAR *name, ULONG ttl, UCHAR set, USHORT priority, USHORT weights, USHORT port, UCHAR *target, NX_MDNS_RR **insert_rr, UINT interface_index) @@ -5377,14 +5000,6 @@ UINT target_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_txt_add(NX_MDNS *mdns_ptr, UCHAR *name, ULONG ttl, UCHAR set, UCHAR *txt, NX_MDNS_RR **insert_rr, UINT interface_index) { @@ -5527,14 +5142,6 @@ UINT txt_length; /* */ /* _nx_mdns_host_name_register Register the host name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_nsec_add(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR add_a, UCHAR add_aaaa, UCHAR type, UINT interface_index) { @@ -5701,17 +5308,6 @@ UINT name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_parameter_set(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, ULONG ttl, UINT rdata_length, UCHAR set, UCHAR is_register, UCHAR is_valid, NX_MDNS_RR *rr_record, UINT interface_index) @@ -5841,14 +5437,6 @@ UINT name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_delete(NX_MDNS *mdns_ptr, NX_MDNS_RR *record_rr) { @@ -6024,14 +5612,6 @@ NX_MDNS_RR *p; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_mdns_local_cache_clear(NX_MDNS *mdns_ptr) { @@ -6091,14 +5671,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_local_cache_clear(NX_MDNS *mdns_ptr) { @@ -6168,14 +5740,6 @@ NX_MDNS_RR *p; /* */ /* mDNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_service_name_resolve(UCHAR *srv_name, UCHAR **name, UCHAR **type, UCHAR **domain) { @@ -6201,9 +5765,9 @@ UINT protocol_length; pointer = srv_name; /* Service Instance name, */ - /* .._tcp. : + /* .._tcp. : name: - type: ._tcp + type: ._tcp domain: . */ while (*srv_name != '\0') { @@ -6232,7 +5796,7 @@ UINT protocol_length; /* Get the pointer. */ /* EL-PC.Test._http._tcp.local - type index pointer to the _http._tcp, + type index pointer to the _http._tcp, domain_index pointer to the local. */ domain_index = append_index; @@ -6318,16 +5882,6 @@ UINT protocol_length; /* */ /* mDNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_service_name_assemble(UCHAR *name, UCHAR *type, UCHAR *sub_type, UCHAR *domain, UCHAR *record_buffer, UINT buffer_size, UINT *type_index) { @@ -6489,15 +6043,6 @@ UINT length; /* _nx_mdns_enable Enable mDNS */ /* _nx_mdns_address_change_process Process address change */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_host_name_register(NX_MDNS *mdns_ptr, UCHAR type, UINT interface_index) { @@ -6644,14 +6189,6 @@ NXD_IPV6_ADDRESS *ipv6_address_ptr; /* */ /* ThreadX system timer thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_timer_entry(ULONG mdns_value) { @@ -6714,14 +6251,6 @@ NX_MDNS *mdns_ptr; /* _nx_mdns_packet_process Process mDNS packet */ /* _nx_mdns_conflict_process Process the conflict */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_timer_set(NX_MDNS *mdns_ptr, NX_MDNS_RR *record_rr, ULONG timer_count) { @@ -6816,19 +6345,6 @@ UINT active; /* */ /* _nx_mdns_thread_entry Processing thread for mDNS */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_timer_event_process(NX_MDNS *mdns_ptr) { @@ -7456,14 +6972,6 @@ UINT rr_name_length; /* */ /* UDP receive callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_udp_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -7514,14 +7022,6 @@ static VOID _nx_mdns_udp_receive_notify(NX_UDP_SOCKET *socket_ptr) /* */ /* UDP receive callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_ip_address_change_notify(NX_IP *ip_ptr, VOID *additional_info) { @@ -7573,14 +7073,6 @@ static VOID _nx_mdns_ip_address_change_notify(NX_IP *ip_ptr, VOID *additional_in /* */ /* UDP receive callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_MDNS_ENABLE_IPV6 static VOID _nx_mdns_ipv6_address_change_notify(NX_IP *ip_ptr, UINT method, UINT interface_index, UINT index, ULONG *ipv6_address) @@ -7648,14 +7140,6 @@ static VOID _nx_mdns_ipv6_address_change_notify(NX_IP *ip_ptr, UINT method, UINT /* */ /* ThreadX Scheduler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_thread_entry(ULONG mdns_value) { @@ -7742,7 +7226,7 @@ UINT interface_index; for (interface_index = 0; interface_index < NX_MAX_PHYSICAL_INTERFACES; interface_index++) { - /* Check if this interface is enabled. + /* Check if this interface is enabled. Exception: Goodbye message can be sent out after disable. */ if ((!mdns_ptr -> nx_mdns_interface_enabled[interface_index]) && (!(mdns_events & NX_MDNS_ANNOUNCING_SEND_EVENT))) @@ -7852,21 +7336,6 @@ UINT interface_index; /* */ /* _nx_mdns_thread_entry Processing thread for mDNS */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_process(NX_MDNS *mdns_ptr, NX_PACKET *packet_ptr, UINT interface_index) { @@ -7939,7 +7408,7 @@ NX_MDNS_RR *nsec_rr; if ((mdns_flags & NX_MDNS_RESPONSE_FLAG) == NX_MDNS_RESPONSE_FLAG) { - /* Multicast DNS responses MUST NOT contain any question in the Question Section, + /* Multicast DNS responses MUST NOT contain any question in the Question Section, Any questions in the Question Section of a received Multicast DNS response MUST be silently ignored. RFC6762, Section6, Page14. */ data_ptr += (_nx_mdns_name_size_calculate(data_ptr, packet_ptr) + 4); } @@ -8026,7 +7495,7 @@ NX_MDNS_RR *nsec_rr; /* Check whether the same record it is. RFC6762, Section6, Page13. */ /* The rules: rrname must match the question name. - rrtype must match the question qtype unless the qtype is "ANY" or the rrtype is "CNAME". + rrtype must match the question qtype unless the qtype is "ANY" or the rrtype is "CNAME". rrclass must match the question qclass unless the qclass is "ANY". */ if (p -> nx_mdns_rr_name != temp_resource_record.nx_mdns_rr_name) continue; @@ -8063,9 +7532,9 @@ NX_MDNS_RR *nsec_rr; if (p -> nx_mdns_rr_send_flag) { - /* Set the flag to send this Resource records via multicast. - Store the old flag into the top bits. - Store the new flag into the low bits. + /* Set the flag to send this Resource records via multicast. + Store the old flag into the top bits. + Store the new flag into the low bits. Format: 0001 0001 */ p -> nx_mdns_rr_send_flag = ((NX_MDNS_RR_SEND_MULTICAST << 4) | NX_MDNS_RR_SEND_MULTICAST); } @@ -8085,7 +7554,7 @@ NX_MDNS_RR *nsec_rr; else { - /* A mDNS responder is only required to delay its transmission as necessary to ensure an interval of at least 250ms + /* A mDNS responder is only required to delay its transmission as necessary to ensure an interval of at least 250ms since the last time the record was multicast on that interface. RFC6762, Section6, Page16 */ if (authority_count) { @@ -8190,7 +7659,7 @@ NX_MDNS_RR *nsec_rr; _nx_mdns_timer_set(mdns_ptr, rr_search, rr_search -> nx_mdns_rr_timer_count); } - /* Duplicate Answer Suppression, RFC6762, Section7.4,Page24. + /* Duplicate Answer Suppression, RFC6762, Section7.4,Page24. The TTL in that record is not less than the TTL this host would have given. Host should not send this response again. */ if (temp_resource_record.nx_mdns_rr_ttl >= rr_search -> nx_mdns_rr_ttl) { @@ -8298,7 +7767,7 @@ NX_MDNS_RR *nsec_rr; ((temp_resource_record.nx_mdns_rr_ttl << 1) >= rr_search -> nx_mdns_rr_ttl)) { - /* Top four bit is zero and this resource reocrd is Known answer. + /* Top four bit is zero and this resource reocrd is Known answer. Clear the send flag. */ rr_search -> nx_mdns_rr_send_flag = NX_MDNS_RR_SEND_FLAG_CLEAR; } @@ -8344,14 +7813,6 @@ NX_MDNS_RR *nsec_rr; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_probing_send(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -8581,14 +8042,6 @@ UINT rr_name_length; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_announcing_send(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -8734,14 +8187,6 @@ UCHAR resend_flag = NX_FALSE; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_response_send(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -8904,14 +8349,6 @@ UCHAR resend_flag = NX_FALSE; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_query_send(NX_MDNS *mdns_ptr, UINT interface_index) { @@ -9107,14 +8544,6 @@ UINT i; /* _nx_mdns_query_send Send query message */ /* _nx_mdns_response_send Send response message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_create(NX_MDNS *mdns_ptr, NX_PACKET **packet_ptr, UCHAR is_query) { @@ -9217,14 +8646,6 @@ USHORT flags; /* _nx_mdns_query_send Send query message */ /* _nx_mdns_response_send Send response message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_packet_send(NX_MDNS *mdns_ptr, NX_PACKET *packet_ptr, UINT interface_index) { @@ -9336,15 +8757,6 @@ UINT address_index = mdns_ptr -> nx_mdns_ipv6_address_index[inter /* _nx_mdns_query_send Send query message */ /* _nx_mdns_response_send Send response message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_rr_add(NX_PACKET *packet_ptr, NX_MDNS_RR *rr, UINT op, UINT packet_type) { @@ -9693,23 +9105,6 @@ UINT rr_name_length; /* */ /* _nx_mdns_packet_process Process mDNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), improved */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_rr_set(NX_MDNS *mdns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, NX_MDNS_RR *rr_ptr, UINT op, UINT interface_index) { @@ -9856,25 +9251,6 @@ UINT temp_string_length; /* */ /* _nx_mdns_packet_process Process mDNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_rr_process(NX_MDNS *mdns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UINT interface_index) { @@ -10093,8 +9469,8 @@ UINT rr_name_length; else { - /* There is no need for the querier to continue issuing a stream of queries when a mDNS response - is received containing a unique answer. mDNS querier should send the next query at 80%-82% of the + /* There is no need for the querier to continue issuing a stream of queries when a mDNS response + is received containing a unique answer. mDNS querier should send the next query at 80%-82% of the record's TTL. RFC6762, Section5.2,Page11. */ if ((insert_ptr -> nx_mdns_rr_word & NX_MDNS_RR_FLAG_UNIQUE) && (insert_ptr -> nx_mdns_rr_ttl)) { @@ -10178,20 +9554,6 @@ UINT rr_name_length; /* */ /* _nx_mdns_packet_process Process mDNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_rr_data_set(NX_MDNS *mdns_ptr, NX_PACKET *packet_ptr, UCHAR *data_ptr, NX_MDNS_RR *rr_ptr, UINT op) { @@ -10455,17 +9817,6 @@ UINT temp_string_length; /* */ /* _nx_mdns_packet_process Process mDNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_packet_address_check(NX_PACKET *packet_ptr) { @@ -10681,14 +10032,6 @@ NX_IPV6_HEADER *ipv6_header; /* */ /* _nx_mdns_thread_entry Processing thread for mDNS */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_address_change_process(NX_MDNS *mdns_ptr) { @@ -10795,16 +10138,6 @@ UINT i; /* */ /* _nx_mdns_packet_process Process mDNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_conflict_process(NX_MDNS *mdns_ptr, NX_MDNS_RR *record_rr) { @@ -11035,15 +10368,6 @@ UINT rr_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_service_change_notify_process(NX_MDNS *mdns_ptr, NX_MDNS_RR *new_rr, UCHAR is_present) { @@ -11203,15 +10527,6 @@ UINT rr_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_service_addition_info_get(NX_MDNS *mdns_ptr, UCHAR *srv_name, NX_MDNS_SERVICE *service, UINT interface_index) { @@ -11410,14 +10725,6 @@ UINT temp_length; /* _nx_mdns_disable Disable the mDNS function */ /* _nx_mdns_peer_cache_clear Clear the peer cache */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_initialize(NX_MDNS *mdns_ptr, VOID *local_cache_ptr, UINT local_cache_size, VOID *peer_cache_ptr, UINT peer_cache_size) @@ -11532,15 +10839,6 @@ ULONG *tail; /* _nx_mdns_cache_delete_rr_string Delete the rr string */ /* _nx_mdns_packet_rr_process Process resource record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_add_resource_record(NX_MDNS *mdns_ptr, UINT cache_type, NX_MDNS_RR *record_ptr, NX_MDNS_RR **insert_ptr, UCHAR *is_present) { @@ -11775,14 +11073,6 @@ ULONG min_elapsed_time; /* _nx_mdns_packet_process Process mDNS packet */ /* _nx_mdns_cache_delete_rr_string Delete the rr string */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_delete_resource_record(NX_MDNS *mdns_ptr, UINT cache_type, NX_MDNS_RR *record_ptr) { @@ -11877,14 +11167,6 @@ ULONG *head; /* _nx_mdns_packet_process Process mDNS packet */ /* _nx_mdns_cache_add_resource_record Add the resource record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_find_resource_record(NX_MDNS *mdns_ptr, UINT cache_type, NX_MDNS_RR *record_ptr, UINT match_type, NX_MDNS_RR **search_rr) { @@ -11923,7 +11205,7 @@ UINT same_rdata; /* Check whether the same record it is. RFC6762, Section6, Page13. */ /* The rules: rrname must match the question name. - rrtype must match the question qtype unless the qtype is "ANY" or the rrtype is "CNAME". + rrtype must match the question qtype unless the qtype is "ANY" or the rrtype is "CNAME". rrclass must match the question qclass unless the qclass is "ANY". */ if (p -> nx_mdns_rr_name != record_ptr -> nx_mdns_rr_name) continue; @@ -12105,15 +11387,6 @@ UINT same_rdata; /* _nx_mdns_conflict_process Process the conflict */ /* _nx_mdns_packet_rr_process Process resource record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_add_string(NX_MDNS *mdns_ptr, UINT cache_type, VOID *memory_ptr, UINT memory_size, VOID **insert_ptr, UCHAR find_string, UCHAR add_name) { @@ -12214,7 +11487,7 @@ UCHAR *p, *available, *start; if(available == (UCHAR*)tail) { - /* Make sure the service cache still has room to add this string + /* Make sure the service cache still has room to add this string (without overwriting the RR area.) */ if(((UCHAR*)tail - memory_len) < (UCHAR*)head ) { @@ -12338,14 +11611,6 @@ UCHAR *p, *available, *start; /* _nx_mdns_cache_delete_resource_record Delete the resource record */ /* _nx_mdns_packet_rr_process Process resource record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_cache_delete_string(NX_MDNS *mdns_ptr, UINT cache_type, VOID *string_ptr, UINT string_len) { @@ -12525,14 +11790,6 @@ USHORT cnt; /* _nx_mdns_cache_add_resource_record Add the resource record */ /* _nx_mdns_cache_delete_resource_record Delete the resource record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_mdns_cache_delete_rr_string(NX_MDNS *mdns_ptr, UINT cache_type, NX_MDNS_RR *record_rr) { @@ -12600,14 +11857,6 @@ VOID _nx_mdns_cache_delete_rr_string(NX_MDNS *mdns_ptr, UINT cache_type, NX_MDNS /* */ /* _nx_mdns_response_send Send response message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_mdns_additional_resource_record_find(NX_MDNS *mdns_ptr, NX_MDNS_RR *record_ptr) { @@ -12753,14 +12002,6 @@ NX_MDNS_RR *p; /* _nx_mdns_additional_resource_record_find */ /* Find additional record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_mdns_additional_a_aaaa_find(NX_MDNS *mdns_ptr, UCHAR *name, UINT interface_index) { @@ -12832,14 +12073,6 @@ NX_MDNS_RR *p; /* _nx_mdns_query_send Send query message */ /* _nx_mdns_packet_process Process mDNS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_known_answer_find(NX_MDNS *mdns_ptr, NX_MDNS_RR *record_ptr) { @@ -12950,17 +12183,6 @@ UINT cache_count = 1; /* */ /* _nx_mdns_query Send the query */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_query_check(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, UINT one_shot, NX_MDNS_RR **search_rr, UINT interface_index) { @@ -13041,7 +12263,7 @@ UINT name_length; if (same_query == NX_TRUE) { - /* A multicast DNS querier should also delay the first query of the series by + /* A multicast DNS querier should also delay the first query of the series by a randomly chosen amount in the range 20-120ms. */ rr -> nx_mdns_rr_timer_count = (ULONG)(NX_MDNS_QUERY_DELAY_MIN + (((ULONG)NX_RAND()) % NX_MDNS_QUERY_DELAY_RANGE)); rr -> nx_mdns_rr_retransmit_lifetime = NX_MDNS_TIMER_COUNT_RANGE; @@ -13091,14 +12313,6 @@ UINT name_length; /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_mdns_query_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { @@ -13170,8 +12384,8 @@ NX_MDNS *mdns_ptr; /* Restore interrupts. */ TX_RESTORE - /* Resume the thread! Check for preemption even though we are executing - from the system timer thread right now which normally executes at the + /* Resume the thread! Check for preemption even though we are executing + from the system timer thread right now which normally executes at the highest priority. */ _tx_thread_system_resume(thread_ptr); @@ -13218,14 +12432,6 @@ NX_MDNS *mdns_ptr; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_mdns_query_thread_suspend(TX_THREAD **suspension_list_head, VOID (*suspend_cleanup)(TX_THREAD * NX_CLEANUP_PARAMETER), NX_MDNS *mdns_ptr, NX_MDNS_RR **rr, ULONG wait_option) @@ -13330,14 +12536,6 @@ TX_THREAD *thread_ptr; /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_mdns_query_thread_resume(TX_THREAD **suspension_list_head, NX_MDNS *mdns_ptr, NX_MDNS_RR *rr) { @@ -13448,14 +12646,6 @@ TX_THREAD *thread_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_service_mask_match(NX_MDNS *mdns_ptr, UCHAR *service_type, ULONG service_mask) { @@ -13541,14 +12731,6 @@ UINT type_length; /* */ /* _nx_mdns_packet_rr_add Add the RR into packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_name_match(UCHAR *src, UCHAR *dst, UINT length) { @@ -13621,14 +12803,6 @@ UINT index = 0; /* */ /* _nx_mdns_packet_rr_add Add the RR into packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_txt_string_encode(UCHAR *ptr, UCHAR *txt) { @@ -13717,17 +12891,6 @@ UINT count = 1; /* _nx_mdns_packet_process Process mDNS packet */ /* _nx_mdns_packet_rr_process Process resource record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_txt_string_decode(UCHAR *data, UINT data_length, UCHAR *buffer, UINT size) { @@ -13813,17 +12976,6 @@ static UINT _nx_mdns_txt_string_decode(UCHAR *data, UINT data_length, UCHAR *buf /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_name_size_calculate(UCHAR *name, NX_PACKET *packet_ptr) { @@ -13905,14 +13057,6 @@ UINT size = 0; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_name_string_encode(UCHAR *ptr, UCHAR *name) { @@ -14005,22 +13149,6 @@ UINT count = 1; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* prevented infinite loop in */ -/* name compression, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_name_string_decode(UCHAR *data, UINT start, UINT data_length, UCHAR *buffer, UINT size) { @@ -14032,7 +13160,7 @@ UINT pointer_count = 0; UINT labelSize; - /* As long as there is space in the buffer and we haven't + /* As long as there is space in the buffer and we haven't found a zero terminating label */ while (1) { @@ -14155,17 +13283,6 @@ UINT labelSize; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_mdns_rr_size_get(UCHAR *resource, NX_PACKET *packet_ptr) { @@ -14173,7 +13290,7 @@ static UINT _nx_mdns_rr_size_get(UCHAR *resource, NX_PACKET *packet_ptr) UINT name_size; UINT data_size; - /* Resource size is + /* Resource size is name size + data size + 2 bytes for type, 2 for class, 4 for time to live and 2 for data length i.e. name size + data size + 10 bytes overhead. */ @@ -14222,14 +13339,6 @@ UINT data_size; /* */ /* DNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static void _nx_mdns_short_to_network_convert(UCHAR *ptr, USHORT value) { @@ -14271,14 +13380,6 @@ static void _nx_mdns_short_to_network_convert(UCHAR *ptr, USHORT value) /* */ /* DNS component */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static void _nx_mdns_long_to_network_convert(UCHAR *ptr, ULONG value) { diff --git a/addons/mdns/nxd_mdns.h b/addons/mdns/nxd_mdns.h index 32f4f2b2..e255228a 100644 --- a/addons/mdns/nxd_mdns.h +++ b/addons/mdns/nxd_mdns.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,25 +37,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), */ -/* prevented infinite loop in */ -/* name compression, */ -/* resulting in version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of timer, */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Bo Chen Modified comment(s), and */ -/* corrected the symbols check,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NXD_MDNS_H @@ -89,14 +70,14 @@ extern "C" { #define NX_MDNS_GET_ULONG_DATA(data) (ULONG)((*(data) << 24) | (*(data + 1) << 16) | (*(data + 2) << 8) | (*(data + 3))) /* Disable the mDNS Server functionality. By default mDNS server - function is enabled. To remove the mDNS server function from + function is enabled. To remove the mDNS server function from the mDNS library, uncomment the following line. */ /* -#define NX_MDNS_DISABLE_SERVER +#define NX_MDNS_DISABLE_SERVER */ /* Disable the mDNS Client functionality. By default mDNS client - function is enabled. To remove the mDNS client function from + function is enabled. To remove the mDNS client function from the mDNS library, uncomment the following line. */ /* #define NX_MDNS_DISABLE_CLIENT @@ -115,7 +96,7 @@ extern "C" { /* Enable the feature for Server to generate the Negative Responses. By default is enabled. To remove it from the mDNS library, - comment the following line. + comment the following line. Note: This will have no effect if NX_MDNS_DISABLE_SERVER is defined. */ #define NX_MDNS_ENABLE_SERVER_NEGATIVE_RESPONSES @@ -163,10 +144,10 @@ extern "C" { /* Define the mDNS's host name cache size. Keep four-byte alignment. */ /* Note: The real host name size plus conflict size (4) - must not exceed NX_MDNS_LABEL_MAX and NX_MDNS_HOST_NAME_MAX. + must not exceed NX_MDNS_LABEL_MAX and NX_MDNS_HOST_NAME_MAX. such as: the real host name: "NETX-MDNS-HOST" - the conflict name: " (2)" + the conflict name: " (2)" the final name: "NETX-MDNS-HOST (2)". */ #ifndef NX_MDNS_HOST_NAME_MAX #define NX_MDNS_HOST_NAME_MAX 64 @@ -178,7 +159,7 @@ extern "C" { must not exceed NX_MDNS_LABEL_MAX and NX_MDNS_SERVICE_NAME_MAX. such as: the real service name: "NETX-MDNS-SERVICE" - the conflict name: " (2)" + the conflict name: " (2)" the final service name: "NETX-MDNS-SERVICE (2)". */ #ifndef NX_MDNS_SERVICE_NAME_MAX #define NX_MDNS_SERVICE_NAME_MAX 64 @@ -201,7 +182,7 @@ extern "C" { #endif /* Define the conflict count of service name or host name. */ -/* Note: the confilict count should be less than 8, since we just append " (x)" +/* Note: the confilict count should be less than 8, since we just append " (x)" between " (2)" and " (9)" during the conflict resolution process. */ #ifndef NX_MDNS_CONFLICT_COUNT #define NX_MDNS_CONFLICT_COUNT 8 @@ -298,7 +279,7 @@ extern "C" { /* Define the mDNS's response delay time interval for multicast query. */ -/* The time interval, in ticks, in responding to a query to ensure an interval of at least 1s +/* The time interval, in ticks, in responding to a query to ensure an interval of at least 1s since the last time the record was multicast. The default value is NX_IP_PERIODIC_RATE ticks. */ #ifndef NX_MDNS_RESPONSE_INTERVAL #define NX_MDNS_RESPONSE_INTERVAL NX_IP_PERIODIC_RATE @@ -306,7 +287,7 @@ extern "C" { /* Define the mDNS's response delay time interval for probe message. */ -/* The time interval, in ticks, in responding to a probe queries to ensure an interval of +/* The time interval, in ticks, in responding to a probe queries to ensure an interval of at least 250ms since the last time the record was multicast. The default value is (250 * NX_IP_PERIODIC_RATE / 1000) ticks. */ #ifndef NX_MDNS_RESPONSE_PROBING_TIMER_COUNT #define NX_MDNS_RESPONSE_PROBING_TIMER_COUNT (250 * NX_IP_PERIODIC_RATE / 1000) @@ -363,10 +344,10 @@ extern "C" { If a host sees queries, for which a record in its cache would be expected to be given as an answer in a multicast response, but no such answer is seen, then the host may take this as an indication - that the record may no longer be valid. + that the record may no longer be valid. After seesing NX_MDNS_POOF_MIN_COUNT of these queries, and seeing no multicast response containing the expected answer with in - NX_MDNS_POOF_TIMER_COUNT, delete the RR from the cache. + NX_MDNS_POOF_TIMER_COUNT, delete the RR from the cache. RFC6762, Section10.5, Page38. */ /* Define the Passive Observation Of Failures min count. The defaul value is 2. */ @@ -624,7 +605,7 @@ extern "C" { /* A RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | ADDRESS | | | @@ -639,7 +620,7 @@ typedef struct NX_MDNS_RR_A_STRUCT /* NS RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / NSDNAME / / / @@ -653,7 +634,7 @@ typedef struct NX_MDNS_RR_NS_STRUCT /* MD RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / MADNAME / / / @@ -667,7 +648,7 @@ typedef struct NX_MDNS_RR_MD_STRUCT /* MF RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / MADNAME / / / @@ -681,7 +662,7 @@ typedef struct NX_MDNS_RR_MF_STRUCT /* CNMAE RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / CNAME / / / @@ -695,7 +676,7 @@ typedef struct NX_MDNS_RR_CNAME_STRUCT /* SOA RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / MNAME / / / @@ -732,7 +713,7 @@ typedef struct NX_MDNS_RR_SOA_STRUCT /* MB RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / MADNAME / / / @@ -746,7 +727,7 @@ typedef struct NX_MDNS_RR_MB_STRUCT /* MG RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / MGMNAME / / / @@ -760,7 +741,7 @@ typedef struct NX_MDNS_RR_MG_STRUCT /* MR RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / NEWNAME / / / @@ -774,7 +755,7 @@ typedef struct NX_MDNS_RR_MR_STRUCT /* NULL RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / / / / @@ -788,7 +769,7 @@ typedef struct NX_MDNS_RR_NULL_STRUCT /* WKS RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | ADDRESS | | | @@ -810,7 +791,7 @@ typedef struct NX_MDNS_RR_WKS_STRUCT /* PTR RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / PTRDNAME / |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -823,7 +804,7 @@ typedef struct NX_MDNS_RR_PTR_STRUCT /* HINFO RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / CPU / |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -839,7 +820,7 @@ typedef struct NX_MDNS_RR_HINFO_STRUCT /* MINFO RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / RMAILBX / |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -855,9 +836,9 @@ typedef struct NX_MDNS_RR_MINFO_STRUCT /* MX RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| - | PREFERENCE | + | PREFERENCE | |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / NEWNAME / / / @@ -873,7 +854,7 @@ typedef struct NX_MDNS_RR_MX_STRUCT /* TXT RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / TXT-DATA / |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| @@ -886,7 +867,7 @@ typedef struct NX_MDNS_RR_TXT_STRUCT /* AAAA RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | | | | @@ -930,7 +911,7 @@ typedef struct NX_MDNS_RR_SRV_STRUCT /* NSEC RDATA format 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / Next Domain Name / / / @@ -950,9 +931,9 @@ typedef struct NX_MDNS_RR_NSEC_STRUCT /* RR definitions. RFC1035. */ -/* RR Format. +/* RR Format. 0 1 - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 + 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| | | / NAME / @@ -984,7 +965,7 @@ typedef struct NX_MDNS_RR_STRUCT USHORT nx_mdns_rr_class; /* RR CLASS. */ - ULONG nx_mdns_rr_ttl; /* The time interval that the RR may be cached before the source of + ULONG nx_mdns_rr_ttl; /* The time interval that the RR may be cached before the source of the information should again be consulted. */ USHORT nx_mdns_rr_rdata_length; /* The length of rdata. nx_mdns_rr_rdata */ @@ -1020,19 +1001,19 @@ typedef struct NX_MDNS_RR_STRUCT /* Define the state, owner, flag, set of the resource records. This word contains the following information: - bits 0 RR Owner, the owner of resource record, + bits 0 RR Owner, the owner of resource record, 0 indicates local RR, 1 indicates peer RR. bits 1 RR Set, the set of resource record, 0 indicates shared RR, 1 indicates unique RR. - bits 2 RR query type, the query type of resource record, + bits 2 RR query type, the query type of resource record, 0 indicates query the RR use One-shot method, 1 indicates query the RR use Continuous method. bits 3 RR additional flag, send this resource record as the additional RR. bits 4 RR query duplicate flag, this resource record is the duplicate quesiton. - bits 5 RR updating flag, this resource record need to be maintenance. + bits 5 RR updating flag, this resource record need to be maintenance. bits 6 RR delete flag, this resource record need to be deleted. bits 7 RR answer flag, this resource record has been added in answer section. - bits 8 RR known answer flag, send this resource record as the known answer. - bits 9 RR authority answer flag, send this resource record as the authority answer. + bits 8 RR known answer flag, send this resource record as the known answer. + bits 9 RR authority answer flag, send this resource record as the authority answer. */ /* Union that holds resource record data. */ @@ -1059,11 +1040,11 @@ typedef struct NX_MDNS_RR_STRUCT /* Buffer usage. */ /* - + |-----------+-----------+-----------+-----------+-----------+------------+-----------+------------+------------| | HEAD |NX_MDNS_RR |NX_MDNS_RR | ..........| STRING | CNT | LEN | STRING | CNT | LEN | TAIL | |-----------+-----------+-----------+-----------+-----------+------------+-----------+------------+------------| - + HEAD: First unused memory at the front of cache. The size is 4 bytes. NX_MDNS_RR: The Resource Record struct, the size is sizeof(NX_MDNS_RR). TAIL: It points to the last used memory at the back of cache. Its size is 4 bytes. @@ -1136,7 +1117,7 @@ typedef struct NX_MDNS_STRUCT UINT nx_mdns_ipv6_address_index[NX_MAX_PHYSICAL_INTERFACES]; /* IPv6 link local address index. */ #endif /* NX_MDNS_ENABLE_IPV6 */ - /* Define the UDP receive suspension list head associated with a count of + /* Define the UDP receive suspension list head associated with a count of how many threads are suspended attempting to receive from the same TCP port. */ TX_THREAD* nx_mdns_rr_receive_suspension_list; /* The suspended thread. */ @@ -1197,9 +1178,9 @@ typedef struct NX_MDNS_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map mDNS API functions +/* Determine if error checking is desired. If so, map mDNS API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/mqtt/nxd_mqtt_client.c b/addons/mqtt/nxd_mqtt_client.c index 4016e86b..3f8e8567 100644 --- a/addons/mqtt/nxd_mqtt_client.c +++ b/addons/mqtt/nxd_mqtt_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -101,14 +101,6 @@ static UINT _nxd_mqtt_client_connect_packet_send(NXD_MQTT_CLIENT *client_ptr, UL /* _nxd_mqtt_client_connect */ /* _nxd_mqtt_client_publish */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_set_fixed_header(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, UCHAR control_header, UINT length, UINT wait_option) { @@ -183,14 +175,6 @@ UINT ret; /* _nxd_mqtt_client_message_get */ /* _nxd_mqtt_process_sub_unsub_ack */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_read_remaining_length(NX_PACKET *packet_ptr, UINT *remaining_length, ULONG *offset_ptr) { @@ -292,26 +276,6 @@ ULONG bytes_copied; /* _nxd_mqtt_client_subscribe */ /* _nxd_mqtt_client_unsubscribe */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), and */ -/* added packet id parameter, */ -/* resulting in version 6.1.2 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_sub_unsub(NXD_MQTT_CLIENT *client_ptr, UINT op, CHAR *topic_name, UINT topic_name_length, @@ -529,23 +493,6 @@ UCHAR temp_data[2]; /* _nxd_mqtt_client_unsubscribe */ /* _nxd_mqtt_client_send_simple_message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_packet_allocate(NXD_MQTT_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -563,7 +510,7 @@ UINT status = NXD_MQTT_SUCCESS; #ifdef NX_SECURE_ENABLE if (client_ptr -> nxd_mqtt_client_use_tls) { - /* Use TLS packet allocate. The TLS packet allocate is able to count for + /* Use TLS packet allocate. The TLS packet allocate is able to count for TLS-related header space including crypto initial vector area. */ status = nx_secure_tls_packet_allocate(&client_ptr -> nxd_mqtt_tls_session, client_ptr -> nxd_mqtt_client_packet_pool_ptr, packet_ptr, wait_option); @@ -628,12 +575,6 @@ UINT status = NXD_MQTT_SUCCESS; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_packet_send(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT wait_option) { @@ -695,12 +636,6 @@ UINT status = NXD_MQTT_SUCCESS; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_packet_receive(NXD_MQTT_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT wait_option) { @@ -768,14 +703,6 @@ UINT op_code = 0; /* _nxd_mqtt_thread_entry */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_tcp_establish_notify(NX_TCP_SOCKET *socket_ptr) { @@ -831,14 +758,6 @@ NXD_MQTT_CLIENT *client_ptr; /* _nxd_mqtt_thread_entry */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_receive_callback(NX_TCP_SOCKET *socket_ptr) { @@ -899,18 +818,6 @@ NXD_MQTT_CLIENT *client_ptr; /* _nxd_mqtt_client_sub_unsub */ /* _nxd_mqtt_process_publish */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* supported maximum transmit */ -/* queue depth, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_copy_transmit_packet(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PACKET **new_packet_ptr, USHORT packet_id, UCHAR set_duplicate_flag, UINT wait_option) @@ -992,18 +899,6 @@ UINT status; /* _nxd_mqtt_thread_entry */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* supported maximum transmit */ -/* queue depth, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_release_transmit_packet(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PACKET *previous_packet_ptr) { @@ -1067,14 +962,6 @@ static VOID _nxd_mqtt_release_transmit_packet(NXD_MQTT_CLIENT *client_ptr, NX_PA /* _nxd_mqtt_thread_entry */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_release_receive_packet(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PACKET *previous_packet_ptr) { @@ -1135,14 +1022,6 @@ static VOID _nxd_mqtt_release_receive_packet(NXD_MQTT_CLIENT *client_ptr, NX_PAC /* */ /* _nxd_mqtt_packet_receive_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_process_connack(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -1275,14 +1154,6 @@ MQTT_PACKET_CONNACK *connack_packet_ptr = (MQTT_PACKET_CONNACK *)(packet_ptr -> /* */ /* _nxd_mqtt_process_publish */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_process_publish_packet(NX_PACKET *packet_ptr, ULONG *topic_offset_ptr, USHORT *topic_length_ptr, ULONG *message_offset_ptr, ULONG *message_length_ptr) @@ -1387,20 +1258,6 @@ ULONG bytes_copied; /* */ /* _nxd_mqtt_packet_receive_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_process_publish(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -1643,21 +1500,6 @@ ULONG bytes_copied; /* */ /* _nxd_mqtt_packet_receive_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* added ack receive notify, */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_process_publish_response(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -1835,15 +1677,6 @@ USHORT transmit_packet_id; /* */ /* _nxd_mqtt_packet_receive_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* added ack receive notify, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_process_sub_unsub_ack(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -1978,14 +1811,6 @@ ULONG bytes_copied; /* */ /* _nxd_mqtt_packet_receive_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_process_pingresp(NXD_MQTT_CLIENT *client_ptr) { @@ -2039,14 +1864,6 @@ static VOID _nxd_mqtt_process_pingresp(NXD_MQTT_CLIENT *client_ptr) /* */ /* _nxd_mqtt_packet_receive_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_process_disconnect(NXD_MQTT_CLIENT *client_ptr) { @@ -2190,17 +2007,6 @@ UCHAR fixed_header; /* */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_packet_receive_process(NXD_MQTT_CLIENT *client_ptr) { @@ -2289,7 +2095,7 @@ ULONG packet_length; if (status == NXD_MQTT_PARTIAL_PACKET) { - /* We only have partial MQTT message. + /* We only have partial MQTT message. * Put it to waiting list for more packets. */ client_ptr -> nxd_mqtt_client_processing_packet = packet_ptr; packet_consumed = NX_TRUE; @@ -2453,17 +2259,6 @@ ULONG packet_length; /* */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_tcp_establish_process(NXD_MQTT_CLIENT *client_ptr) { @@ -2583,17 +2378,6 @@ UINT status; /* */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_tls_establish_process(NXD_MQTT_CLIENT *client_ptr) { @@ -2693,14 +2477,6 @@ UINT status; /* _nxd_mqtt_client_connect */ /* _nxd_mqtt_client_publish */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_append_message(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, CHAR *message, UINT length, ULONG wait_option) { @@ -2765,17 +2541,6 @@ UCHAR len[2]; /* _nxd_mqtt_client_connect */ /* _nxd_mqtt_process_disconnect */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nxd_mqtt_client_connection_end(NXD_MQTT_CLIENT *client_ptr, ULONG wait_option) { @@ -2853,14 +2618,6 @@ static UINT _nxd_mqtt_send_simple_message(NXD_MQTT_CLIENT *client_ptr, UCHAR hea /* */ /* TCP socket disconnect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_periodic_timer_entry(ULONG client) { @@ -2942,15 +2699,6 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)client; /* */ /* _nxd_mqtt_client_create */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected mqtt client state,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_client_event_process(VOID *mqtt_client, ULONG common_events, ULONG module_own_events) { @@ -3087,14 +2835,6 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)mqtt_client; /* */ /* _nxd_mqtt_client_create */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nxd_mqtt_thread_entry(ULONG mqtt_client) { @@ -3155,14 +2895,6 @@ ULONG events; /* */ /* TCP socket disconnect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _mqtt_client_disconnect_callback(NX_TCP_SOCKET *socket_ptr) { @@ -3222,15 +2954,6 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)(socket_ptr -> nx_tcp_socket_re /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected mqtt client state,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_create(NXD_MQTT_CLIENT *client_ptr, CHAR *client_name, CHAR *client_id, UINT client_id_length, @@ -3351,18 +3074,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected mqtt client state,*/ -/* resulting in version 6.1 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_client_create_internal(NXD_MQTT_CLIENT *client_ptr, CHAR *client_name, CHAR *client_id, UINT client_id_length, @@ -3491,14 +3202,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_login_set(NXD_MQTT_CLIENT *client_ptr, CHAR *username, UINT username_length, CHAR *password, UINT password_length) @@ -3568,14 +3271,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_will_message_set(NXD_MQTT_CLIENT *client_ptr, const UCHAR *will_topic, UINT will_topic_length, const UCHAR *will_message, @@ -3657,14 +3352,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_will_message_set(NXD_MQTT_CLIENT *client_ptr, const UCHAR *will_topic, UINT will_topic_length, const UCHAR *will_message, @@ -3735,14 +3422,6 @@ UINT _nxde_mqtt_client_will_message_set(NXD_MQTT_CLIENT *client_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_login_set(NXD_MQTT_CLIENT *client_ptr, CHAR *username, UINT username_length, CHAR *password, UINT password_length) @@ -3802,17 +3481,6 @@ UINT _nxde_mqtt_client_login_set(NXD_MQTT_CLIENT *client_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_client_retransmit_message(NXD_MQTT_CLIENT *client_ptr, ULONG wait_option) { @@ -3931,29 +3599,6 @@ UCHAR fixed_header; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed return value when it */ -/* is set in CONNACK, corrected*/ -/* mqtt client state, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* corrected the logic for */ -/* non-blocking mode, */ -/* resulting in version 6.1.8 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_connect(NXD_MQTT_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, UINT keepalive, UINT clean_session, ULONG wait_option) @@ -4276,23 +3921,6 @@ UINT old_priority; /* _nxd_mqtt_tcp_establish_process */ /* _nxd_mqtt_tls_establish_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_connect_packet_send(NXD_MQTT_CLIENT *client_ptr, ULONG wait_option) { @@ -4527,14 +4155,6 @@ UINT keepalive = (client_ptr -> nxd_mqtt_keepalive/NX_IP_PERIODI /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE UINT _nxd_mqtt_client_secure_connect(NXD_MQTT_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, @@ -4600,17 +4220,6 @@ UINT ret; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_delete(NXD_MQTT_CLIENT *client_ptr) { @@ -4692,21 +4301,6 @@ UINT _nxd_mqtt_client_delete(NXD_MQTT_CLIENT *client_ptr) /* */ /* _nxd_mqtt_client_publish */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* supported maximum transmit */ -/* queue depth, */ -/* resulting in version 6.1.8 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_publish_packet_send(NXD_MQTT_CLIENT *client_ptr, NX_PACKET *packet_ptr, USHORT packet_id, UINT QoS, ULONG wait_option) @@ -4828,20 +4422,6 @@ UINT ret = NXD_MQTT_SUCCESS; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_publish(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UINT topic_name_length, CHAR *message, UINT message_length, UINT retain, UINT QoS, ULONG wait_option) @@ -4969,7 +4549,7 @@ UINT ret = NXD_MQTT_SUCCESS; { /* Use nx_packet_data_append to move user-supplied message data into the packet. - nx_packet_data_append uses chained packet if the additional storage space is + nx_packet_data_append uses chained packet if the additional storage space is needed. */ ret = nx_packet_data_append(packet_ptr, message, message_length, client_ptr -> nxd_mqtt_client_packet_pool_ptr, wait_option); @@ -5034,17 +4614,6 @@ UINT ret = NXD_MQTT_SUCCESS; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), and */ -/* added packet id parameter, */ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_subscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UINT topic_name_length, UINT QoS) { @@ -5096,17 +4665,6 @@ UINT _nxd_mqtt_client_subscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, U /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), and */ -/* added packet id parameter, */ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_unsubscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UINT topic_name_length) { @@ -5153,23 +4711,6 @@ UINT _nxd_mqtt_client_unsubscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, /* _nxd_mqtt_client_ping */ /* _nxd_mqtt_client_disconnect */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Spencer McDonough Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Bo Chen Modified comment(s), improved */ -/* the logic of sending packet,*/ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nxd_mqtt_send_simple_message(NXD_MQTT_CLIENT *client_ptr, UCHAR header_value) { @@ -5272,14 +4813,6 @@ UCHAR *byte; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_disconnect(NXD_MQTT_CLIENT *client_ptr) { @@ -5349,14 +4882,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_receive_notify_set(NXD_MQTT_CLIENT *client_ptr, VOID (*receive_notify)(NXD_MQTT_CLIENT *client_ptr, UINT message_count)) @@ -5417,15 +4942,6 @@ UINT _nxd_mqtt_client_receive_notify_set(NXD_MQTT_CLIENT *client_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed uninitialized value, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_message_get(NXD_MQTT_CLIENT *client_ptr, UCHAR *topic_buffer, UINT topic_buffer_size, UINT *actual_topic_length, UCHAR *message_buffer, UINT message_buffer_size, UINT *actual_message_length) @@ -5523,14 +5039,6 @@ ULONG message_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_create(NXD_MQTT_CLIENT *client_ptr, CHAR *client_name, CHAR *client_id, UINT client_id_length, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, @@ -5591,15 +5099,6 @@ UINT _nxde_mqtt_client_create(NXD_MQTT_CLIENT *client_ptr, CHAR *client_name, CH /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected mqtt client state,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_connect(NXD_MQTT_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, UINT keepalive, UINT clean_session, ULONG wait_option) @@ -5674,15 +5173,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected mqtt client state,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE @@ -5749,14 +5239,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_delete(NXD_MQTT_CLIENT *client_ptr) { @@ -5815,14 +5297,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_publish(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UINT topic_name_length, CHAR *message, UINT message_length, UINT retain, UINT QoS, ULONG wait_option) @@ -5895,14 +5369,6 @@ UINT _nxde_mqtt_client_publish(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UI /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_subscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UINT topic_name_length, UINT QoS) { @@ -5966,14 +5432,6 @@ UINT _nxde_mqtt_client_subscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_unsubscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name, UINT topic_name_length) { @@ -6025,14 +5483,6 @@ UINT _nxde_mqtt_client_unsubscribe(NXD_MQTT_CLIENT *client_ptr, CHAR *topic_name /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_disconnect(NXD_MQTT_CLIENT *client_ptr) { @@ -6088,14 +5538,6 @@ UINT _nxde_mqtt_client_disconnect(NXD_MQTT_CLIENT *client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_message_get(NXD_MQTT_CLIENT *client_ptr, UCHAR *topic_buffer, UINT topic_buffer_size, UINT *actual_topic_length, UCHAR *message_buffer, UINT message_buffer_size, UINT *actual_message_length) @@ -6157,14 +5599,6 @@ UINT _nxde_mqtt_client_message_get(NXD_MQTT_CLIENT *client_ptr, UCHAR *topic_buf /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_receive_notify_set(NXD_MQTT_CLIENT *client_ptr, VOID (*receive_notify)(NXD_MQTT_CLIENT *client_ptr, UINT message_count)) @@ -6219,14 +5653,6 @@ UINT _nxde_mqtt_client_receive_notify_set(NXD_MQTT_CLIENT *client_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_disconnect_notify_set(NXD_MQTT_CLIENT *client_ptr, VOID (*disconnect_notify)(NXD_MQTT_CLIENT *)) { @@ -6271,14 +5697,6 @@ UINT _nxd_mqtt_client_disconnect_notify_set(NXD_MQTT_CLIENT *client_ptr, VOID (* /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_disconnect_notify_set(NXD_MQTT_CLIENT *client_ptr, VOID (*disconnect_notify)(NXD_MQTT_CLIENT *)) { @@ -6331,15 +5749,6 @@ UINT _nxde_mqtt_client_disconnect_notify_set(NXD_MQTT_CLIENT *client_ptr, VOID ( /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected mqtt client state,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_cloud_create(NXD_MQTT_CLIENT *client_ptr, CHAR *client_name, CHAR *client_id, UINT client_id_length, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, NX_CLOUD *cloud_ptr) @@ -6429,12 +5838,6 @@ UINT status; /* */ /* _nxd_mqtt_client_event_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nxd_mqtt_client_websocket_connection_status_callback(NX_WEBSOCKET_CLIENT *websocket_client_ptr, VOID *context, UINT status) { @@ -6499,12 +5902,6 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)context; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxd_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length, UCHAR *bearer, UINT bearer_length) { @@ -6579,12 +5976,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length, UCHAR *bearer, UINT bearer_length) { diff --git a/addons/mqtt/nxd_mqtt_client.h b/addons/mqtt/nxd_mqtt_client.h index 7a00915a..1eb7b91c 100644 --- a/addons/mqtt/nxd_mqtt_client.h +++ b/addons/mqtt/nxd_mqtt_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,32 +37,6 @@ /* data types and external references. It is assumed that nx_api.h */ /* and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* added ack receive notify, */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), and */ -/* added packet id parameter, */ -/* resulting in version 6.1.2 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported maximum transmit */ -/* queue depth, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* 10-31-2022 Bo Chen Modified comment(s), supported*/ -/* mqtt over websocket, */ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), added */ -/* the function prototype for */ -/* packet allocation, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef _NXD_MQTT_CLIENT_H_ diff --git a/addons/nat/nx_nat.c b/addons/nat/nx_nat.c index 5aa72c1f..775a134b 100644 --- a/addons/nat/nx_nat.c +++ b/addons/nat/nx_nat.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -114,14 +114,6 @@ static VOID _nx_nat_checksum_adjust(UCHAR *checksum, UCHAR *old_data, INT old /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_create(NX_NAT_DEVICE *nat_ptr, NX_IP *ip_ptr, UINT global_interface_index, VOID *dynamic_cache_memory, UINT dynamic_cache_size) { @@ -216,14 +208,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_create(NX_NAT_DEVICE *nat_ptr, NX_IP *ip_ptr, UINT global_interface_index, VOID *dynamic_cache_memory, UINT dynamic_cache_size) { @@ -309,14 +293,6 @@ NX_NAT_TRANSLATION_ENTRY *entry_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_delete(NX_NAT_DEVICE *nat_ptr) { @@ -369,14 +345,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_delete(NX_NAT_DEVICE *nat_ptr) { @@ -420,14 +388,6 @@ UINT _nx_nat_delete(NX_NAT_DEVICE *nat_ptr) /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_enable(NX_NAT_DEVICE *nat_ptr) { @@ -477,14 +437,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_enable(NX_NAT_DEVICE *nat_ptr) { @@ -537,14 +489,6 @@ UINT _nx_nat_enable(NX_NAT_DEVICE *nat_ptr) /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_disable(NX_NAT_DEVICE *nat_ptr) { @@ -595,14 +539,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_disable(NX_NAT_DEVICE *nat_ptr) { @@ -653,14 +589,6 @@ UINT _nx_nat_disable(NX_NAT_DEVICE *nat_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_cache_notify_set(NX_NAT_DEVICE *nat_ptr, VOID (*cache_full_notify_cb)(NX_NAT_DEVICE *nat_ptr)) { @@ -720,14 +648,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_cache_notify_set(NX_NAT_DEVICE *nat_ptr, VOID (*cache_full_notify_cb)(NX_NAT_DEVICE *nat_ptr)) { @@ -783,14 +703,6 @@ UINT _nx_nat_cache_notify_set(NX_NAT_DEVICE *nat_ptr, VOID (*cache_full_notify_c /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_inbound_entry_create(NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr, ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol) @@ -864,14 +776,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_inbound_entry_create(NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr, ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol) @@ -966,14 +870,6 @@ UINT bound; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_nat_inbound_entry_delete( NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY *delete_entry_ptr) { @@ -1036,14 +932,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nat_inbound_entry_delete(NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY *delete_entry_ptr) { @@ -1157,17 +1045,6 @@ NX_NAT_TRANSLATION_ENTRY *next_entry_ptr; /* _nx_ipv4_packet_receive NetX forwards packet to NAT first */ /* if forwarding is enabled. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* fixed packet double release,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_packet(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT packet_process) { @@ -1396,14 +1273,6 @@ NX_INTERFACE *interface_ptr; /* */ /* _nx_nat_process_packet Process packet from external host */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_inbound_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr) { @@ -1490,14 +1359,6 @@ NX_NAT_TRANSLATION_ENTRY translation_entry; /* */ /* _nx_nat_process_inbound_packet Process inbound packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_inbound_TCP_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -1693,14 +1554,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* */ /* _nx_nat_process_inbound_packet Process inbound packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_inbound_UDP_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -1768,7 +1621,7 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; if (record_entry -> external_port != record_entry -> local_port) { - /* Translate the destination UDP port to the private host port. If translation + /* Translate the destination UDP port to the private host port. If translation does not involve port number this will essentially be the original port number. */ udp_header_ptr -> nx_udp_header_word_0 = ((ULONG) (udp_header_ptr -> nx_udp_header_word_0 & ~NX_LOWER_16_MASK)) | ((ULONG) record_entry -> local_port); @@ -1897,14 +1750,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* */ /* _nx_nat_process_inbound_packet Process inbound packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_inbound_ICMP_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -1985,7 +1830,7 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; return NX_SUCCESS; } - /* Now we have to translate the packet destination for private host address and + /* Now we have to translate the packet destination for private host address and update packet header checksum. */ if ((type == NX_ICMP_ECHO_REPLY_TYPE) && (record_entry -> external_port != record_entry -> local_port)) { @@ -2035,7 +1880,7 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; } } - /* If NX_LITTLE_ENDIAN is defined, the headers need to be swapped to match + /* If NX_LITTLE_ENDIAN is defined, the headers need to be swapped to match that of the data area. */ NX_CHANGE_ULONG_ENDIAN(icmp_header_ptr -> nx_icmp_header_word_0); NX_CHANGE_ULONG_ENDIAN(icmp_header_ptr -> nx_icmp_header_word_1); @@ -2104,14 +1949,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* _nx_nat_packet_process Process packets forwarded to NAT by*/ /* Netx */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_outbound_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr) { @@ -2210,14 +2047,6 @@ NX_NAT_TRANSLATION_ENTRY translation_entry; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_outbound_TCP_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -2380,14 +2209,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_outbound_UDP_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -2501,7 +2322,7 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; } #endif /* NX_ENABLE_INTERFACE_CAPABILITY */ - /* If NX_LITTLE_ENDIAN is defined, the headers need to be swapped to match + /* If NX_LITTLE_ENDIAN is defined, the headers need to be swapped to match that of the data area. */ NX_CHANGE_ULONG_ENDIAN(udp_header_ptr -> nx_udp_header_word_0); NX_CHANGE_ULONG_ENDIAN(udp_header_ptr -> nx_udp_header_word_1); @@ -2554,14 +2375,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_process_outbound_ICMP_packet(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -2632,8 +2445,8 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; return status; } - /* Update the ICMP Query ID ("port") if the NAT device mapped it to another Query ID - but not if this is a local host responding to a REQUEST ICMP packet, in which case + /* Update the ICMP Query ID ("port") if the NAT device mapped it to another Query ID + but not if this is a local host responding to a REQUEST ICMP packet, in which case it must keep the same Query ID. */ if ((type != NX_ICMP_ECHO_REPLY_TYPE) && (record_entry -> external_port != record_entry -> local_port)) { @@ -2682,7 +2495,7 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; #endif /* NX_ENABLE_INTERFACE_CAPABILITY */ } - /* If NX_LITTLE_ENDIAN is defined, the headers need to be swapped to match + /* If NX_LITTLE_ENDIAN is defined, the headers need to be swapped to match that of the data area. */ NX_CHANGE_ULONG_ENDIAN(icmp_header_ptr -> nx_icmp_header_word_0); NX_CHANGE_ULONG_ENDIAN(icmp_header_ptr -> nx_icmp_header_word_1); @@ -2744,14 +2557,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* _nx_nat_process_inbound_UDP_packet Process outbound UDP packet */ /* _nx_nat_process_inbound_ICMP_packet Process outbound ICMP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_nat_ip_packet_send(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr, UCHAR packet_type, ULONG next_hop_address) { @@ -2933,14 +2738,6 @@ NX_IPV4_HEADER *ip_header_ptr; /* _nx_nat_process_inbound_UDP_packet Process outbound UDP packet */ /* _nx_nat_process_inbound_ICMP_packet Process outbound ICMP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_inbound_entry_find(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr, NX_NAT_TRANSLATION_ENTRY **matched_entry_ptr, ULONG *next_hop_address) @@ -2981,7 +2778,7 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; if (record_entry) { - /* We found a matching server entry in the table. Now create an + /* We found a matching server entry in the table. Now create an entry specifically for this packet. */ /* Get the private IP address from the entry we just found, and apply to the new entry we're creating. */ @@ -3106,14 +2903,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* _nx_nat_process_outbound_UDP_packet Process outbound UDP packet */ /* _nx_nat_process_outbound_ICMP_packet Process outbound ICMP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_outbound_entry_find(NX_NAT_DEVICE *nat_ptr, NX_PACKET *packet_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr, NX_NAT_TRANSLATION_ENTRY **matched_entry_ptr, ULONG *next_hop_address) @@ -3253,14 +3042,6 @@ NX_NAT_TRANSLATION_ENTRY *record_entry; /* _nx_nat_inbound_entry_find Find inbound entry in entry list */ /* _nx_nat_outbound_entry_find Find outbound entry in entry list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_entry_create(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, ULONG local_ip_address, ULONG peer_ip_address, @@ -3456,14 +3237,6 @@ NX_NAT_TRANSLATION_ENTRY *previous_ptr = NX_NULL; /* _nx_nat_entry_create Create and add entry to NAT table */ /* after starting the NAT server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_entry_add(NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY *entry_ptr) { @@ -3530,14 +3303,6 @@ static UINT _nx_nat_entry_add(NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY /* _nx_nat_inbound_entry_find Find inbound entry in entry list */ /* _nx_nat_outbound_entry_find Find outbound entry in entry list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_nat_entry_find(NX_NAT_DEVICE *nat_ptr, NX_NAT_TRANSLATION_ENTRY *entry_to_match, NX_NAT_TRANSLATION_ENTRY **match_entry_ptr, UCHAR direction, UINT skip_static_entries) @@ -3684,7 +3449,7 @@ NX_NAT_TRANSLATION_ENTRY *previous_ptr; } } - /* If we got this far, all criteria matched up. Set a pointer to + /* If we got this far, all criteria matched up. Set a pointer to this entry in the table. */ *match_entry_ptr = entry_ptr; @@ -3738,14 +3503,6 @@ NX_NAT_TRANSLATION_ENTRY *previous_ptr; /* _nx_nat_inbound_entry_find Find inbound entry in entry list */ /* _nx_nat_outbound_entry_find Find outbound entry in entry list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_nat_entry_timeout_check(NX_NAT_DEVICE *nat_ptr) { @@ -3867,14 +3624,6 @@ NX_NAT_TRANSLATION_ENTRY *next_entry_ptr; /* _nx_nat_inbound_entry_find Find inbound entry in entry list */ /* _nx_nat_outbound_entry_find Find outbound entry in entry list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_utility_get_destination_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *peer_port) { @@ -3977,14 +3726,6 @@ UINT is_icmp_error_msg; /* _nx_nat_inbound_entry_find Find inbound entry in entry list */ /* _nx_nat_outbound_entry_find Find outbound entry in entry list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_utility_get_source_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *source_port) { @@ -4080,14 +3821,6 @@ UINT is_icmp_error_msg; /* */ /* _nx_nat_outbound_entry_find Find outbound entry in entry list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_find_available_port(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, USHORT *port) { @@ -4214,14 +3947,6 @@ NX_NAT_TRANSLATION_ENTRY *entry_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_entry_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port) { @@ -4300,14 +4025,6 @@ NX_NAT_TRANSLATION_ENTRY *entry_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_socket_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port) { @@ -4432,14 +4149,6 @@ NX_UDP_SOCKET *udp_end_ptr; /* _nx_nat_utility_get_destination_port Extract destination port from */ /* header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_nat_packet_is_icmp_error_message(NX_PACKET *packet_ptr, UINT *is_icmp_error_msg) { @@ -4527,14 +4236,6 @@ NX_ICMP_HEADER *icmp_header_ptr; /* _nx_nat_process_outbound_UDP_packet Send UDP packet to external host */ /* _nx_nat_process_outbound_ICMP_packet Send ICMP packet to external host*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_nat_checksum_adjust(UCHAR *checksum, UCHAR *old_data, INT old_data_length, UCHAR *new_data, INT new_data_length) { diff --git a/addons/nat/nx_nat.h b/addons/nat/nx_nat.h index 2e6e6bea..8dfffb7c 100644 --- a/addons/nat/nx_nat.h +++ b/addons/nat/nx_nat.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,14 +37,6 @@ /* It is assumed that tx_api.h, tx_port.h, nx_api.h, and nx_port.h, */ /* have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_NAT_H @@ -133,8 +125,8 @@ extern "C" { /* Set the ICMP query identifier/port for assigning to outbound ICMP/UDP/TCP packets - on NAT devices configured for port overloading (sharing a single global IP - address). Note this number must be high enough not to exceed with the local host + on NAT devices configured for port overloading (sharing a single global IP + address). Note this number must be high enough not to exceed with the local host ICMP, UDP, TCP packet query IDs/port. */ /* Set the minimum TCP port for assigning to outbound TCP packets. */ @@ -183,7 +175,7 @@ typedef struct NX_NAT_TRANSLATION_ENTRY_STRUCT /* Local Network External Network |----------------| - | | external port> peer port> | | @@ -228,7 +220,7 @@ typedef struct NX_NAT_DEVICE_STRUCT #ifndef NX_NAT_SOURCE_CODE -/* Define the system API mappings based on the error checking +/* Define the system API mappings based on the error checking selected by the user. */ /* Determine if error checking is desired. If so, map API functions diff --git a/addons/pop3/nxd_pop3_client.c b/addons/pop3/nxd_pop3_client.c index 3f97d164..bf27064d 100644 --- a/addons/pop3/nxd_pop3_client.c +++ b/addons/pop3/nxd_pop3_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* It is assumed that tx_api.h, tx_port.h, nx_api.h, and nx_port.h, */ /* have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #define NX_POP3_CLIENT_SOURCE_CODE @@ -106,14 +98,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_create(NX_POP3_CLIENT *client_ptr, UINT APOP_authentication, NX_IP *ip_ptr, NX_PACKET_POOL *packet_pool_ptr, ULONG server_ip_address, ULONG server_port, CHAR *client_name, @@ -203,14 +187,6 @@ UINT status; /* */ /* _nxd_pop3_client_create Duo Client POP3 create service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_create(NX_POP3_CLIENT *client_ptr, UINT APOP_authentication, NX_IP *ip_ptr, NX_PACKET_POOL *packet_pool_ptr, ULONG server_ip_address, ULONG server_port, CHAR *client_name, @@ -288,14 +264,6 @@ NXD_ADDRESS server_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_pop3_client_create(NX_POP3_CLIENT *client_ptr, UINT APOP_authentication, NX_IP *ip_ptr, NX_PACKET_POOL *packet_pool_ptr, NXD_ADDRESS *server_ip_address, ULONG server_port, CHAR *client_name, @@ -375,15 +343,6 @@ UINT status; /* nx_tcp_socket_create NetX TCP socket create service */ /* _nxd_pop3_client_connect Connect POP3 Client to Server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_pop3_client_create(NX_POP3_CLIENT *client_ptr, UINT APOP_authentication, NX_IP *ip_ptr, NX_PACKET_POOL *packet_pool_ptr, NXD_ADDRESS *server_ip_address, ULONG server_port, CHAR *client_name, @@ -474,14 +433,6 @@ UINT client_password_length; /* */ /* _nx_pop3_client_delete Actual Client delete service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_delete(NX_POP3_CLIENT *client_ptr) { @@ -538,14 +489,6 @@ UINT status; /* nx_tcp_client_socket_unbind Releases (unbinds) the TCP port */ /* nx_tcp_socket_delete Deletes unbound TCP socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_delete(NX_POP3_CLIENT *client_ptr) { @@ -606,14 +549,6 @@ UINT _nx_pop3_client_delete(NX_POP3_CLIENT *client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_mail_items_get(NX_POP3_CLIENT *client_ptr, UINT *number_mail_items, ULONG *maildrop_total_size) { @@ -674,15 +609,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_mail_items_get(NX_POP3_CLIENT *client_ptr, UINT *number_mail_items, ULONG *maildrop_total_size) { @@ -862,14 +788,6 @@ UINT packet_type; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_mail_item_size_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *size) { @@ -941,15 +859,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_mail_item_size_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *size) { @@ -1144,14 +1053,6 @@ UINT packet_type; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_mail_item_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *item_size) { @@ -1219,15 +1120,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_mail_item_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *item_size) { @@ -1443,14 +1335,6 @@ UINT packet_type; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_mail_item_message_get(NX_POP3_CLIENT *client_ptr, NX_PACKET **recv_packet_ptr, ULONG *bytes_retrieved, UINT *final_packet) { @@ -1515,14 +1399,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_mail_item_message_get(NX_POP3_CLIENT *client_ptr, NX_PACKET **recv_packet_ptr, ULONG *bytes_retrieved, UINT *final_packet) { @@ -1637,14 +1513,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_mail_item_delete(NX_POP3_CLIENT *client_ptr, UINT mail_index) { @@ -1714,15 +1582,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_mail_item_delete(NX_POP3_CLIENT *client_ptr, UINT mail_index) { @@ -1880,14 +1739,6 @@ UINT packet_type; /* */ /* _nx_pop3_client_quit Actual send QUIT command service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pop3_client_quit(NX_POP3_CLIENT *client_ptr) { @@ -1940,15 +1791,6 @@ UINT status; /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_quit(NX_POP3_CLIENT *client_ptr) { @@ -2098,14 +1940,6 @@ UINT packet_type; /* */ /* _nx_pop3_client_apop Send APOP cmd to Server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_digest_authenticate(NX_POP3_CLIENT *client_ptr, CHAR *process_ID_ptr, UINT process_ID_length, CHAR *result) { @@ -2163,14 +1997,6 @@ CHAR md5_binary[NX_POP3_MAX_BINARY_MD5]; /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pop3_parse_process_id(NX_POP3_CLIENT *client_ptr, CHAR *buffer, UINT buffer_length) { @@ -2268,17 +2094,6 @@ UINT pid_index; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ void _nx_pop3_parse_response(CHAR *buffer, UINT argument_index, UINT buffer_length, CHAR *argument, UINT argument_length, UINT convert_to_uppercase, UINT crlf_are_word_breaks) @@ -2457,14 +2272,6 @@ UINT argument_char_count; /* _nx_pop3_utility_digest_authenticate Create digest for */ /* authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pop3_hex_ascii_convert(CHAR *source, UINT source_length, CHAR *destination) { @@ -2539,14 +2346,6 @@ CHAR digit; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_server_number_convert(UINT number, CHAR *string_to_convert) { @@ -2651,17 +2450,6 @@ UINT size; /* _nx_pop3_client_apop Send Authenticated user/pass */ /* _nx_pop3_client_user_pass Send User Pass in clear text */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* corrected the client port, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxd_pop3_client_connect(NX_POP3_CLIENT *client_ptr, NXD_ADDRESS *server_ip_address, ULONG server_port) { @@ -2812,15 +2600,6 @@ CHAR argument[10]; /* */ /* nxd_pop3_client_connect Connect with POP3 server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_apop(NX_POP3_CLIENT *client_ptr) { @@ -3039,15 +2818,6 @@ UINT md5_digest_buffer_length; /* */ /* nxd_pop3_client_connect Connect with POP3 server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pop3_client_user_pass(NX_POP3_CLIENT *client_ptr) { diff --git a/addons/pop3/nxd_pop3_client.h b/addons/pop3/nxd_pop3_client.h index ade98420..e34f7698 100644 --- a/addons/pop3/nxd_pop3_client.h +++ b/addons/pop3/nxd_pop3_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* It is assumed that tx_api.h, tx_port.h, nx_api.h, nx_port.h, */ /* fx_api.h and fx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_POP3_CLIENT_H diff --git a/addons/ppp/nx_ppp.c b/addons/ppp/nx_ppp.c index 9fa84234..2f7afea7 100644 --- a/addons/ppp/nx_ppp.c +++ b/addons/ppp/nx_ppp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,7 +54,7 @@ NX_PPP *_nx_ppp_created_ptr = NX_NULL; ULONG _nx_ppp_created_count = 0; -/* Define the CRC lookup table. This is used to improve the +/* Define the CRC lookup table. This is used to improve the CRC calculation performance. */ const USHORT _nx_ppp_crc_table[256] = @@ -143,14 +143,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_thread_entry(ULONG ppp_addr) { @@ -399,7 +391,7 @@ ULONG count; /* Move the state to the new challenge state. */ ppp_ptr -> nx_ppp_chap_state = NX_PPP_CHAP_COMPLETED_NEW_STATE; - /* Now update the CHAP state machine in order to force the + /* Now update the CHAP state machine in order to force the new CHAP challenge out. */ _nx_ppp_chap_state_machine_update(ppp_ptr, NX_NULL); } @@ -534,14 +526,6 @@ ULONG count; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_driver(NX_IP_DRIVER *driver_req_ptr) { @@ -564,7 +548,7 @@ UINT i; /* Default to successful return. */ driver_req_ptr -> nx_ip_driver_status = NX_SUCCESS; - /* Process according to the driver request type in the driver control + /* Process according to the driver request type in the driver control block. */ switch (driver_req_ptr -> nx_ip_driver_command) { @@ -572,9 +556,9 @@ UINT i; case NX_LINK_INTERFACE_ATTACH: { - /* First, we need to find the PPP instance that is mapped to + /* First, we need to find the PPP instance that is mapped to this IP instance and that doesn't have its interface attach - complete yet. This requires that PPP is created prior to + complete yet. This requires that PPP is created prior to IP creation. */ ppp_ptr = _nx_ppp_created_ptr; i = 0; @@ -657,7 +641,7 @@ UINT i; /* Setup the link maximum transfer unit. */ interface_ptr -> nx_interface_ip_mtu_size = NX_PPP_MRU; - /* Clear the hardware physical address, since there is no + /* Clear the hardware physical address, since there is no such thing in PPP. */ interface_ptr -> nx_interface_physical_address_msw = 0; interface_ptr -> nx_interface_physical_address_lsw = 0; @@ -813,18 +797,6 @@ UINT i; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Wenhui Xie Modified comment(s), and */ -/* supported processing */ -/* compressed data, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ void _nx_ppp_receive_packet_get(NX_PPP *ppp_ptr, NX_PACKET **return_packet_ptr) { @@ -942,7 +914,7 @@ UINT status; /* Timeout count has been exceeded. */ - /* Determine if the packet is non-PPP. If so, we should dispatch it to + /* Determine if the packet is non-PPP. If so, we should dispatch it to the non-PPP packet handler. */ if ((buffer_size) && (packet_head_ptr -> nx_packet_prepend_ptr[0] != 0x7e)) { @@ -1257,7 +1229,7 @@ UINT status; /* Return the pointer. */ *return_packet_ptr = packet_head_ptr; - /* Set the receive packet to NULL to indicate there is no partial packet being + /* Set the receive packet to NULL to indicate there is no partial packet being processed. */ ppp_ptr -> nx_ppp_receive_partial_packet = NX_NULL; @@ -1376,7 +1348,7 @@ UINT status; else { - /* At this point we know we have a buffer full of non-PPP characters, in + /* At this point we know we have a buffer full of non-PPP characters, in most cases this is simply noise. */ /* Determine if there is a non-PPP handler. */ @@ -1479,22 +1451,6 @@ UINT status; /* */ /* _nx_ppp_thread_entry PPP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* improved packet length */ -/* verification, */ -/* resulting in version 6.1.2 */ -/* 10-31-2023 Wenhui Xie Modified comment(s), and */ -/* supported processing */ -/* compressed data, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ void _nx_ppp_receive_packet_process(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -1821,14 +1777,6 @@ UINT length; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_timeout(NX_PPP *ppp_ptr) { @@ -1908,14 +1856,6 @@ void _nx_ppp_timeout(NX_PPP *ppp_ptr) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_timer_entry(ULONG id) { @@ -1968,19 +1908,6 @@ NX_PPP *ppp_ptr; /* */ /* _nx_ppp_receive_packet_process Receive packet processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Wenhui Xie Modified comment(s), and */ -/* supported processing */ -/* compressed data, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ void _nx_ppp_netx_packet_transfer(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -2072,14 +1999,6 @@ ULONG offset; /* */ /* _nx_ppp_thread_entry PPP processing thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_process_deferred_raw_string_send(NX_PPP *ppp_ptr) { @@ -2202,14 +2121,6 @@ UINT release_packet; /* */ /* _nx_ppp_thread_entry PPP processing thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_process_deferred_ip_packet_send(NX_PPP *ppp_ptr) { @@ -2339,21 +2250,6 @@ NX_PACKET *packet_ptr; /* _nx_ppp_receive_packet_process Receive packet processing */ /* _nx_ppp_timeout PPP timeout */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* improved packet length */ -/* verification, */ -/* resulting in version 6.1.2 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), fixed */ -/* the logic of retransmission,*/ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_state_machine_update(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -2551,7 +2447,7 @@ UINT status; return; } - /* The peer has ACKed our configuration request. Move to the + /* The peer has ACKed our configuration request. Move to the configure request ACKed state. */ ppp_ptr -> nx_ppp_lcp_state = NX_PPP_LCP_CONFIGURE_REQUEST_ACKED_STATE; @@ -2710,7 +2606,7 @@ UINT status; case NX_PPP_LCP_PEER_CONFIGURE_REQUEST_ACKED_STATE: { - /* In this state, we have sent our configuration request, but haven't received an ACK. We have also received + /* In this state, we have sent our configuration request, but haven't received an ACK. We have also received a peer configuration request and have ACKed that request. */ /* Process relative to the incoming code. */ @@ -2731,7 +2627,7 @@ UINT status; return; } - /* The peer has ACKed our configuration request. Move to the + /* The peer has ACKed our configuration request. Move to the LCP completed state. */ ppp_ptr -> nx_ppp_lcp_state = NX_PPP_LCP_COMPLETED_STATE; @@ -3042,14 +2938,6 @@ UINT status; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_code_reject(NX_PPP *ppp_ptr, UCHAR *lcp_ptr) { @@ -3159,14 +3047,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_configure_reply_send(NX_PPP *ppp_ptr, UINT configure_status, UCHAR *lcp_ptr, UCHAR *naked_list, UCHAR *rejected_list) { @@ -3370,18 +3250,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Wenhui Xie Modified comment(s), and */ -/* supported processing */ -/* compressed data, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_configure_request_send(NX_PPP *ppp_ptr) { @@ -3517,18 +3385,6 @@ UINT length_index = 0; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* improved packet length */ -/* verification, */ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ UINT _nx_ppp_lcp_configuration_retrieve(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr, UCHAR *naked_list, UCHAR *rejected_list, UINT *configure_status) { @@ -3645,7 +3501,7 @@ UCHAR *option_data; if ((rejected_list_index + len) > NX_PPP_OPTION_MESSAGE_LENGTH) break; - /* No authentication is supported, simply include requested authentication + /* No authentication is supported, simply include requested authentication option in the rejected list. */ rejected_list[rejected_list_index++] = (UCHAR)type; rejected_list[rejected_list_index++] = (UCHAR)len; @@ -3802,14 +3658,6 @@ UCHAR *option_data; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_nak_configure_list(NX_PPP *ppp_ptr, UCHAR *naked_list) { @@ -3859,14 +3707,6 @@ UINT i; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_terminate_ack_send(NX_PPP *ppp_ptr) { @@ -3949,14 +3789,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_lcp_state_machine_update LCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_terminate_request_send(NX_PPP *ppp_ptr) { @@ -4044,14 +3876,6 @@ NX_PACKET *packet_ptr; /* _nx_ppp_receive_packet_process Receive PPP packet processing */ /* _nx_ppp_timeout PPP timeout */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_pap_state_machine_update(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -4171,7 +3995,7 @@ UINT valid; case NX_PPP_PAP_AUTHENTICATE_REQUEST_SENT_STATE: { - /* In this state, this peer has sent an authentication request and is waiting for + /* In this state, this peer has sent an authentication request and is waiting for an ACK or NAK from the peer. */ if ((code == NX_PPP_PAP_AUTHENTICATE_REQUEST) && (packet_ptr)) { @@ -4393,14 +4217,6 @@ UINT valid; /* */ /* _nx_ppp_pap_state_machine_update PPP state machine update */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_pap_authentication_request(NX_PPP *ppp_ptr) { @@ -4539,14 +4355,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_pap_state_machine_update PAP state machine update */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_pap_login_valid(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -4675,14 +4483,6 @@ UINT status; /* */ /* _nx_ppp_pap_state_machine_update PPP state machine update */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_pap_authentication_ack(NX_PPP *ppp_ptr) { @@ -4770,14 +4570,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_pap_state_machine_update PPP state machine update */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_pap_authentication_nak(NX_PPP *ppp_ptr) { @@ -4871,14 +4663,6 @@ NX_PACKET *packet_ptr; /* _nx_ppp_timeout PPP timeout */ /* _nx_ppp_thread_entry PPP processing thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_chap_state_machine_update(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -5012,7 +4796,7 @@ UINT valid; case NX_PPP_CHAP_CHALLENGE_REQUEST_SENT_STATE: { - /* In this state, this peer has sent a challenge request and is waiting for + /* In this state, this peer has sent a challenge request and is waiting for response from the peer. */ if ((code == NX_PPP_CHAP_CHALLENGE_REQUEST) && (packet_ptr)) { @@ -5129,7 +4913,7 @@ UINT valid; case NX_PPP_CHAP_CHALLENGE_REQUEST_SENT_BOTH_STATE: { - /* In this state, this peer has sent a challenge request and a challenge response and is waiting for + /* In this state, this peer has sent a challenge request and a challenge response and is waiting for response from the peer. */ if (code == NX_PPP_CHAP_CHALLENGE_SUCCESS) { @@ -5339,7 +5123,7 @@ UINT valid; case NX_PPP_CHAP_CHALLENGE_REQUEST_WAIT_STATE: { - /* In this state we only need the challenge from peer, either this peer doesn't challenge or + /* In this state we only need the challenge from peer, either this peer doesn't challenge or the initial challenge has already successfully completed. */ if ((code == NX_PPP_CHAP_CHALLENGE_REQUEST) && (packet_ptr)) { @@ -5364,7 +5148,7 @@ UINT valid; case NX_PPP_CHAP_CHALLENGE_RESPONSE_WAIT_STATE: { - /* In this state, this peer has sent a challenge response and is waiting for + /* In this state, this peer has sent a challenge response and is waiting for response from the peer. */ if (code == NX_PPP_CHAP_CHALLENGE_SUCCESS) { @@ -5630,14 +5414,6 @@ UINT valid; /* */ /* _nx_ppp_chap_state_machine_update Update CHAP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_chap_challenge_send(NX_PPP *ppp_ptr) { @@ -5784,14 +5560,6 @@ UINT status; /* */ /* _nx_ppp_chap_state_machine_update Update CHAP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_chap_challenge_respond(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -5995,14 +5763,6 @@ UINT name_length; /* */ /* _nx_ppp_chap_state_machine_update Update CHAP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_chap_challenge_validate(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -6236,18 +5996,6 @@ UINT name_length; /* _nx_ppp_receive_packet_process Receive PPP packet processing */ /* _nx_ppp_timeout PPP timeout */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* corrected the NAKed list */ -/* pointer, */ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ void _nx_ppp_ipcp_state_machine_update(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -6410,7 +6158,7 @@ UCHAR code; return; } - /* The peer has ACKed our configuration request. Move to the + /* The peer has ACKed our configuration request. Move to the configure request ACKed state. */ ppp_ptr -> nx_ppp_ipcp_state = NX_PPP_IPCP_CONFIGURE_REQUEST_ACKED_STATE; @@ -6435,7 +6183,7 @@ UCHAR code; return; } - /* Set the NAK option list, just to indicate to the configure request that + /* Set the NAK option list, just to indicate to the configure request that the IPCP request without DNS option is what we want. */ ppp_ptr -> nx_ppp_naked_list[0] = 1; @@ -6632,7 +6380,7 @@ UCHAR code; case NX_PPP_IPCP_PEER_CONFIGURE_REQUEST_ACKED_STATE: { - /* In this state, we have sent our configuration request, but haven't received an ACK. We have also received + /* In this state, we have sent our configuration request, but haven't received an ACK. We have also received a peer configuration request and have ACKed that request. */ /* Process relative to the incoming code. */ @@ -6653,7 +6401,7 @@ UCHAR code; return; } - /* The peer has ACKed our configuration request. Move to the + /* The peer has ACKed our configuration request. Move to the IPCP completed state. */ ppp_ptr -> nx_ppp_ipcp_state = NX_PPP_IPCP_COMPLETED_STATE; @@ -6691,7 +6439,7 @@ UCHAR code; return; } - /* Set the NAK option list, just to indicate to the configure request that + /* Set the NAK option list, just to indicate to the configure request that the IPCP request without DNS option is what we want. */ ppp_ptr -> nx_ppp_naked_list[0] = 1; @@ -6925,18 +6673,6 @@ UCHAR code; /* */ /* _nx_ppp_ipcp_state_machine_update IPCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* improved packet length */ -/* verification, */ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ UINT _nx_ppp_ipcp_configure_check(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr, UCHAR *naked_list, UCHAR *rejected_list, UCHAR *good_data) { @@ -7059,7 +6795,7 @@ UCHAR option; case NX_PPP_IP_COMPRESSION_OPTION: { - /* IP Compression Option. Since this is the receiver telling us what they + /* IP Compression Option. Since this is the receiver telling us what they support it is not important to us since we don't support compression. */ /* Simply adjust the main index into the option list. */ @@ -7294,14 +7030,6 @@ UCHAR option; /* */ /* _nx_ppp_ipcp_state_machine_update IPCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_ipcp_configure_request_send(NX_PPP *ppp_ptr, UCHAR *negotiate_list) { @@ -7441,18 +7169,6 @@ UINT index; /* */ /* _nx_ppp_ipcp_state_machine_update IPCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* improved packet length */ -/* verification, */ -/* resulting in version 6.1.2 */ -/* */ /**************************************************************************/ void _nx_ppp_ipcp_response_extract(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -7583,14 +7299,6 @@ ULONG length; /* */ /* _nx_ppp_ipcp_state_machine_update IPCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_ipcp_response_send(NX_PPP *ppp_ptr, UCHAR type, UCHAR *data, UCHAR length, NX_PACKET *cfg_packet_ptr) { @@ -7629,7 +7337,7 @@ NX_PACKET *packet_ptr; return; } - /* Yes, an ACK is requested. Simply copy the config packet into the new packet and change + /* Yes, an ACK is requested. Simply copy the config packet into the new packet and change the type. */ for (i = 0; i < cfg_packet_ptr -> nx_packet_length; i++) { @@ -7758,14 +7466,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_ipcp_state_machine_update IPCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_ipcp_terminate_send(NX_PPP *ppp_ptr) { @@ -7849,14 +7549,6 @@ NX_PACKET *packet_ptr; /* */ /* _nx_ppp_ipcp_state_machine_update IPCP state machine processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_ipcp_terminate_ack_send(NX_PPP *ppp_ptr) { @@ -7958,14 +7650,6 @@ NX_PACKET *packet_ptr; /* _nx_ppp_ipcp_terminate_send Send IPCP terminate */ /* _nx_ppp_ipcp_terminate_ack_send Send IPCP terminate ACK */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_packet_transmit(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -8210,14 +7894,6 @@ UINT release_packet = NX_TRUE; /* */ /* _nx_ppp_receive_packet_get Receive PPP packet processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_check_crc(NX_PACKET *packet_ptr) { @@ -8316,14 +7992,6 @@ USHORT crc_value; /* */ /* _nx_ppp_packet_transmit PPP packet transmit routine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_crc_append(NX_PACKET *packet_ptr, UCHAR crc[2]) { @@ -8444,14 +8112,6 @@ UCHAR control = 0x03; /* _nx_ppp_packet_transmit Transmit packet processing */ /* _nx_ppp_thread_entry Receive thread processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_debug_log_capture(NX_PPP *ppp_ptr, UCHAR packet_type, NX_PACKET *packet_ptr) { @@ -8588,14 +8248,6 @@ NX_PPP_DEBUG_ENTRY *entry_ptr; /* */ /* _nx_ppp_thread_entry PPP event processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_debug_log_capture_protocol(NX_PPP *ppp_ptr) { @@ -8687,14 +8339,6 @@ void _nx_ppp_debug_log_capture_protocol(NX_PPP *ppp_ptr) /* _nx_ppp_chap_challenge_respond CHAP challenge response */ /* _nx_ppp_chap_challenge_validate CHAP validate response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_hash_generator(unsigned char *hvalue, unsigned char id, unsigned char *secret, unsigned char *rand_value, UINT length) @@ -8767,14 +8411,6 @@ NX_MD5 context; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_byte_receive(NX_PPP *ppp_ptr, UCHAR byte) { @@ -8826,14 +8462,6 @@ UINT status; /* */ /* Application Code (Including ISRs) */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_byte_receive(NX_PPP *ppp_ptr, UCHAR byte) { @@ -8967,14 +8595,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_create(NX_PPP *ppp_ptr, CHAR *name, NX_IP *ip_ptr, VOID *stack_memory_ptr, ULONG stack_size, UINT thread_priority, @@ -9047,14 +8667,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_create(NX_PPP *ppp_ptr, CHAR *name, NX_IP *ip_ptr, VOID *stack_memory_ptr, ULONG stack_size, UINT thread_priority, @@ -9187,14 +8799,6 @@ NX_PPP *tail_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_delete(NX_PPP *ppp_ptr) { @@ -9253,14 +8857,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_delete(NX_PPP *ppp_ptr) { @@ -9280,7 +8876,7 @@ TX_INTERRUPT_SAVE_AREA /* Set the event to close the PPP thread. */ tx_event_flags_set(&(ppp_ptr -> nx_ppp_event), NX_PPP_EVENT_STOP, TX_OR); - /* Now wait until the PPP thread goes to a closed state before proceeding with the delete. + /* Now wait until the PPP thread goes to a closed state before proceeding with the delete. This will give PPP the opportunity to properly release all packets being worked on. */ while (ppp_ptr -> nx_ppp_state != NX_PPP_STOPPED) { @@ -9378,14 +8974,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_link_up_notify(NX_PPP *ppp_ptr, VOID (*ppp_link_up_callback)(NX_PPP *ppp_ptr)) { @@ -9440,14 +9028,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_link_up_notify(NX_PPP *ppp_ptr, VOID (*ppp_link_up_callback)(NX_PPP *ppp_ptr)) { @@ -9495,14 +9075,6 @@ UINT _nx_ppp_link_up_notify(NX_PPP *ppp_ptr, VOID (*ppp_link_up_callback)(NX_PP /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_link_down_notify(NX_PPP *ppp_ptr, VOID (*ppp_link_down_callback)(NX_PPP *ppp_ptr)) { @@ -9557,14 +9129,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_link_down_notify(NX_PPP *ppp_ptr, VOID (*ppp_link_down_callback)(NX_PPP *ppp_ptr)) { @@ -9615,14 +9179,6 @@ UINT _nx_ppp_link_down_notify(NX_PPP *ppp_ptr, VOID (*ppp_link_down_callback)(N /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_pap_enable(NX_PPP *ppp_ptr, UINT (*generate_login)(CHAR *name, CHAR *password), UINT (*verify_login)(CHAR *name, CHAR *password)) @@ -9688,14 +9244,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_pap_enable(NX_PPP *ppp_ptr, UINT (*generate_login)(CHAR *name, CHAR *password), UINT (*verify_login)(CHAR *name, CHAR *password)) @@ -9774,14 +9322,6 @@ UINT _nx_ppp_pap_enable(NX_PPP *ppp_ptr, UINT (*generate_login)(CHAR *name, CHA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_chap_challenge(NX_PPP *ppp_ptr) { @@ -9835,14 +9375,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_chap_challenge(NX_PPP *ppp_ptr) { @@ -9860,7 +9392,7 @@ UINT _nx_ppp_chap_challenge(NX_PPP *ppp_ptr) (ppp_ptr -> nx_ppp_chap_get_verification_values)) { - /* Check for the appropriate CHAP state. If the initial CHAP has not yet + /* Check for the appropriate CHAP state. If the initial CHAP has not yet completed, simply discard this request. */ if (ppp_ptr -> nx_ppp_chap_state == NX_PPP_CHAP_COMPLETED_STATE) { @@ -9931,14 +9463,6 @@ UINT _nx_ppp_chap_challenge(NX_PPP *ppp_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_chap_enable(NX_PPP *ppp_ptr, UINT (*get_challenge_values)(CHAR *rand_value, CHAR *id, CHAR *name), @@ -10010,14 +9534,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_chap_enable(NX_PPP *ppp_ptr, UINT (*get_challenge_values)(CHAR *rand_value, CHAR *id, CHAR *name), @@ -10101,14 +9617,6 @@ UINT _nx_ppp_chap_enable(NX_PPP *ppp_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_dns_address_get(NX_PPP *ppp_ptr, ULONG *dns_address_ptr) { @@ -10162,14 +9670,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_dns_address_get(NX_PPP *ppp_ptr, ULONG *dns_address_ptr) { @@ -10234,14 +9734,6 @@ UINT _nx_ppp_dns_address_get(NX_PPP *ppp_ptr, ULONG *dns_address_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_dns_address_set(NX_PPP *ppp_ptr, ULONG dns_address) { @@ -10300,14 +9792,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_dns_address_set(NX_PPP *ppp_ptr, ULONG dns_address) { @@ -10353,14 +9837,6 @@ UINT _nx_ppp_dns_address_set(NX_PPP *ppp_ptr, ULONG dns_address) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_secondary_dns_address_get(NX_PPP *ppp_ptr, ULONG *secondary_dns_address_ptr) { @@ -10415,14 +9891,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_secondary_dns_address_get(NX_PPP *ppp_ptr, ULONG *secondary_dns_address_ptr) { @@ -10487,14 +9955,6 @@ UINT _nx_ppp_secondary_dns_address_get(NX_PPP *ppp_ptr, ULONG *secondary_dns_ad /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_secondary_dns_address_set(NX_PPP *ppp_ptr, ULONG secondary_dns_address) { @@ -10553,14 +10013,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_secondary_dns_address_set(NX_PPP *ppp_ptr, ULONG secondary_dns_address) { @@ -10606,14 +10058,6 @@ UINT _nx_ppp_secondary_dns_address_set(NX_PPP *ppp_ptr, ULONG secondary_dns_add /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_interface_index_get(NX_PPP *ppp_ptr, UINT *index_ptr) { @@ -10667,14 +10111,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_interface_index_get(NX_PPP *ppp_ptr, UINT *index_ptr) { @@ -10732,14 +10168,6 @@ UINT _nx_ppp_interface_index_get(NX_PPP *ppp_ptr, UINT *index_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_ip_address_assign(NX_PPP *ppp_ptr, ULONG local_ip_address, ULONG peer_ip_address) { @@ -10795,14 +10223,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_ip_address_assign(NX_PPP *ppp_ptr, ULONG local_ip_address, ULONG peer_ip_address) { @@ -10875,14 +10295,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_nak_authentication_notify(NX_PPP *ppp_ptr, void (*nak_authentication_notify)(void)) { @@ -10937,14 +10349,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_nak_authentication_notify(NX_PPP *ppp_ptr, void (*nak_authentication_notify)(void)) { @@ -10993,14 +10397,6 @@ UINT _nx_ppp_nak_authentication_notify(NX_PPP *ppp_ptr, void (*nak_authenticati /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_raw_string_send(NX_PPP *ppp_ptr, CHAR *string_ptr) { @@ -11061,14 +10457,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_raw_string_send(NX_PPP *ppp_ptr, CHAR *string_ptr) { @@ -11184,14 +10572,6 @@ NX_PACKET *packet_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_start(NX_PPP *ppp_ptr) { @@ -11244,14 +10624,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_start(NX_PPP *ppp_ptr) { @@ -11305,14 +10677,6 @@ UINT _nx_ppp_start(NX_PPP *ppp_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_stop(NX_PPP *ppp_ptr) { @@ -11364,14 +10728,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_stop(NX_PPP *ppp_ptr) { @@ -11458,14 +10814,6 @@ UINT _nx_ppp_stop(NX_PPP *ppp_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_restart(NX_PPP *ppp_ptr) { @@ -11519,14 +10867,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_restart(NX_PPP *ppp_ptr) { @@ -11574,14 +10914,6 @@ UINT _nx_ppp_restart(NX_PPP *ppp_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_status_get(NX_PPP *ppp_ptr, UINT *status_ptr) { @@ -11635,14 +10967,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_status_get(NX_PPP *ppp_ptr, UINT *status_ptr) { @@ -11786,14 +11110,6 @@ UINT _nx_ppp_status_get(NX_PPP *ppp_ptr, UINT *status_ptr) /* _nx_ppp_lcp_state_machine_update Processes events and updates */ /* the PPP in the LCP state */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_ping_reply(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -11858,14 +11174,6 @@ void _nx_ppp_lcp_ping_reply(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) /* */ /* _nx_ppp_lcp_state_machine_update Processes events and updates */ /* the PPP in the LCP state */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_ppp_lcp_ping_process_echo_reply(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -11880,7 +11188,7 @@ void _nx_ppp_lcp_ping_process_echo_reply(NX_PPP *ppp_ptr, NX_PACKET *packet_pt ppp_ptr -> nx_ppp_lcp_echo_replies_received++; #endif - /* Clear the echo ID to indicate we received an LCP echo reply + /* Clear the echo ID to indicate we received an LCP echo reply matching the one we just sent out. */ ppp_ptr -> nx_ppp_lcp_echo_reply_id = 0; } @@ -11924,14 +11232,6 @@ void _nx_ppp_lcp_ping_process_echo_reply(NX_PPP *ppp_ptr, NX_PACKET *packet_pt /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_ping_request(NX_PPP *ppp_ptr, CHAR *data_ptr, ULONG data_size, ULONG wait_option) { @@ -11992,14 +11292,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_ping_request(NX_PPP *ppp_ptr, CHAR *data_ptr, ULONG data_size, ULONG wait_option) { @@ -12125,14 +11417,6 @@ NX_PACKET *packet_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_packet_receive(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -12188,14 +11472,6 @@ UINT status; /* */ /* Application Code (Including ISRs) */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_packet_receive(NX_PPP *ppp_ptr, NX_PACKET *packet_ptr) { @@ -12298,14 +11574,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ppp_packet_send_set(NX_PPP *ppp_ptr, VOID (*nx_ppp_packet_send)(NX_PACKET *packet_ptr)) { @@ -12360,14 +11628,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ppp_packet_send_set(NX_PPP *ppp_ptr, VOID (*nx_ppp_packet_send)(NX_PACKET *packet_ptr)) { diff --git a/addons/ppp/nx_ppp.h b/addons/ppp/nx_ppp.h index a9c17c36..a5db73f7 100644 --- a/addons/ppp/nx_ppp.h +++ b/addons/ppp/nx_ppp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,25 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 11-09-2020 Yuxin Zhou Modified comment(s), */ -/* improved packet length */ -/* verification, */ -/* resulting in version 6.1.2 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* 10-31-2023 Wenhui Xie Modified comment(s), and */ -/* supported processing */ -/* compressed data, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NX_PPP_H @@ -85,7 +66,7 @@ extern "C" { #define NX_PPP_PPPOE_ENABLE */ -/* If defined, this removes logic for compiling PPP transmit and receive statistics. +/* If defined, this removes logic for compiling PPP transmit and receive statistics. #define NX_PPP_DISABLE_INFO */ @@ -93,19 +74,19 @@ extern "C" { #define NX_PPP_DEBUG_LOG_ENABLE */ -/* If defined, this enables data saved to the PPP log to be printed out (printf). +/* If defined, this enables data saved to the PPP log to be printed out (printf). #define NX_PPP_DEBUG_LOG_PRINT_ENABLE */ -/* If defined, this disables CHAP authentication. +/* If defined, this disables CHAP authentication. #define NX_PPP_DISABLE_CHAP */ -/* If defined, this disables PAP authentication. +/* If defined, this disables PAP authentication. #define NX_PPP_DISABLE_PAP */ -/* If defined, the primary DNS address request option is not set in NAKed list. +/* If defined, the primary DNS address request option is not set in NAKed list. #define NX_PPP_DNS_OPTION_DISABLE */ @@ -202,19 +183,19 @@ extern "C" { #define NX_PPP_OPTION_MESSAGE_LENGTH 64 #endif -/* Number of instances the PPP instance resends another LCP configure request message without a response. +/* Number of instances the PPP instance resends another LCP configure request message without a response. When this number is reached, the PPP instance aborts the PPP handshake, and the link status is down. */ #ifndef NX_PPP_MAX_LCP_PROTOCOL_RETRIES #define NX_PPP_MAX_LCP_PROTOCOL_RETRIES 20 #endif -/* Number of instances the PPP instance resends another PAP authentication request message without a response. +/* Number of instances the PPP instance resends another PAP authentication request message without a response. When this number is reached, the PPP instance aborts the PPP handshake, and the link status is down. */ #ifndef NX_PPP_MAX_PAP_PROTOCOL_RETRIES #define NX_PPP_MAX_PAP_PROTOCOL_RETRIES 20 #endif -/* Number of instances the PPP instance resends another CHAP challenge message without a response. +/* Number of instances the PPP instance resends another CHAP challenge message without a response. When this number is reached, the PPP instance aborts the PPP handshake, and the link status is down. */ #ifndef NX_PPP_MAX_CHAP_PROTOCOL_RETRIES #define NX_PPP_MAX_CHAP_PROTOCOL_RETRIES 20 @@ -619,9 +600,9 @@ typedef struct NX_PPP_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/pppoe/nx_pppoe_client.c b/addons/pppoe/nx_pppoe_client.c index 7ae0dadc..692a3080 100644 --- a/addons/pppoe/nx_pppoe_client.c +++ b/addons/pppoe/nx_pppoe_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -113,14 +113,6 @@ static VOID _nx_pppoe_client_session_thread_suspend(TX_THREAD **suspension_li /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_create(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *name, NX_IP *ip_ptr, UINT interface_index, NX_PACKET_POOL *pool_ptr, VOID *stack_ptr, ULONG stack_size, UINT priority, @@ -210,14 +202,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_create(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *name, NX_IP *ip_ptr, UINT interface_index, NX_PACKET_POOL *pool_ptr, VOID *stack_ptr, ULONG stack_size, UINT priority, @@ -311,14 +295,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_delete(NX_PPPOE_CLIENT *pppoe_client_ptr) { @@ -370,14 +346,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_delete(NX_PPPOE_CLIENT *pppoe_client_ptr) { @@ -455,14 +423,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_service_name_set(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *service_name) { @@ -516,14 +476,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_service_name_set(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *service_name) { @@ -581,14 +533,6 @@ UINT service_name_length = 0; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_service_name_set_extended(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *service_name, UINT service_name_length) { @@ -646,17 +590,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* string length verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_service_name_set_extended(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *service_name, UINT service_name_length) { @@ -723,14 +656,6 @@ UINT temp_service_name_length = 0; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_host_uniq_set(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *host_uniq) { @@ -784,14 +709,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_host_uniq_set(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *host_uniq) { @@ -847,14 +764,6 @@ UINT host_uniq_length = 0; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_host_uniq_set_extended(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *host_uniq, UINT host_uniq_length) { @@ -912,17 +821,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* string length verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_host_uniq_set_extended(NX_PPPOE_CLIENT *pppoe_client_ptr, UCHAR *host_uniq, UINT host_uniq_length) { @@ -985,14 +883,6 @@ UINT temp_host_uniq_length = 0; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_session_connect(NX_PPPOE_CLIENT *pppoe_client_ptr, ULONG wait_option) { @@ -1042,14 +932,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_session_connect(NX_PPPOE_CLIENT *pppoe_client_ptr, ULONG wait_option) { @@ -1143,14 +1025,6 @@ UINT _nx_pppoe_client_session_connect(NX_PPPOE_CLIENT *pppoe_client_ptr, ULONG /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_session_packet_send(NX_PPPOE_CLIENT *pppoe_client_ptr, NX_PACKET *packet_ptr) { @@ -1234,14 +1108,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_session_packet_send(NX_PPPOE_CLIENT *pppoe_client_ptr, NX_PACKET *packet_ptr) { @@ -1297,11 +1163,11 @@ UCHAR *work_ptr; /* Added the PPPoE header. */ /* - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | VER | TYPE | CODE | SESSION_ID | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | LENGTH | payload + * | LENGTH | payload * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -1364,14 +1230,6 @@ UCHAR *work_ptr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_session_terminate(NX_PPPOE_CLIENT *pppoe_client_ptr) { @@ -1424,14 +1282,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_session_terminate(NX_PPPOE_CLIENT *pppoe_client_ptr) { @@ -1506,14 +1356,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_client_session_get(NX_PPPOE_CLIENT *pppoe_client_ptr, ULONG *client_mac_msw, ULONG *client_mac_lsw, ULONG *session_id) { @@ -1568,14 +1410,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_client_session_get(NX_PPPOE_CLIENT *pppoe_client_ptr, ULONG *server_mac_msw, ULONG *server_mac_lsw, ULONG *session_id) { @@ -1647,14 +1481,6 @@ UINT _nx_pppoe_client_session_get(NX_PPPOE_CLIENT *pppoe_client_ptr, ULONG *ser /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_client_packet_deferred_receive(NX_PACKET *packet_ptr) { @@ -1758,14 +1584,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* ThreadX Scheduler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_thread_entry(ULONG pppoe_client_ptr_value) { @@ -2021,14 +1839,6 @@ ULONG timeout = 0; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_timer_entry(ULONG pppoe_client_address) { @@ -2081,14 +1891,6 @@ NX_PPPOE_CLIENT *pppoe_client_ptr; /* */ /* _nx_pppoe_client_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_client_packet_receive(NX_PPPOE_CLIENT *pppoe_client_ptr, NX_PACKET *packet_ptr) { @@ -2119,7 +1921,7 @@ UINT ethernet_type; return; } - /* Check if it is a broadcast message. + /* Check if it is a broadcast message. Only PADI packet with the destination address set to the broadcast address, and PADI only can be sent from PPPoE Client. */ if ((dest_mac_msw == 0xFFFF) && (dest_mac_lsw == 0xFFFFFFFF)) { @@ -2209,19 +2011,6 @@ UINT ethernet_type; /* */ /* _nx_pppoe_client_packet_receive Receive the PPPoE packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* string length verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_client_discovery_packet_process(NX_PPPOE_CLIENT *pppoe_client_ptr, NX_PACKET *packet_ptr, ULONG server_mac_msw, ULONG server_mac_lsw) { @@ -2284,7 +2073,7 @@ UINT tag_host_uniq_valid = NX_FALSE; /* Pickup the session id. */ session_id = _nx_pppoe_client_data_get(pppoe_header_ptr + NX_PPPOE_CLIENT_OFFSET_SESSION_ID, 2); - /* Check the session id. + /* Check the session id. Session ID must be zero for PADO, Session ID must be not zero for PADS and PADT. Session ID must be same value for PADT. */ @@ -2644,14 +2433,6 @@ UINT tag_host_uniq_valid = NX_FALSE; /* */ /* _nx_pppoe_client_packet_receive Receive the PPPoE packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_session_packet_process(NX_PPPOE_CLIENT *pppoe_client_ptr, NX_PACKET *packet_ptr, ULONG server_mac_msw, ULONG server_mac_lsw) { @@ -2754,7 +2535,7 @@ NX_PPPOE_SERVER_SESSION *server_session_ptr; if (pppoe_client_ptr -> nx_pppoe_packet_receive) { - /* Call the function to receive the data frame. + /* Call the function to receive the data frame. Notice: the receive function must release this packet. */ pppoe_client_ptr -> nx_pppoe_packet_receive(packet_ptr); } @@ -2809,17 +2590,6 @@ NX_PPPOE_SERVER_SESSION *server_session_ptr; /* _nx_pppoe_client_discovery_packet_process */ /* Process PPPoE Discovery packet*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* string length verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_client_discovery_send(NX_PPPOE_CLIENT *pppoe_client_ptr, UINT code) { @@ -2851,11 +2621,11 @@ UINT index = 0; /* The PPPoE payload contains zero or more TAGs. A TAG is a TLV (type-length-value) construct and is defined as follows. */ /* 1 2 3 - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | TAG_TYPE | TAG_LENGTH | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | TAG_VALUE ... + * | TAG_VALUE ... * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -2990,11 +2760,11 @@ UINT index = 0; /* Add the PPPoE header. */ /* - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | VER | TYPE | CODE | SESSION_ID | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | LENGTH | payload + * | LENGTH | payload * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -3067,14 +2837,6 @@ UINT index = 0; /* _nx_pppoe_client_discovery_send Send PPPoE Discovery packet */ /* _nx_pppoe_client_session_send Send PPPoE Session packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_packet_send(NX_PPPOE_CLIENT *pppoe_client_ptr, NX_PACKET *packet_ptr, UINT command) { @@ -3146,14 +2908,6 @@ NX_IP_DRIVER driver_request; /* Process PPPoE Session packet */ /* _nx_pppoe_client_tag_process Process PPPoE TAGs */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_pppoe_client_data_get(UCHAR *data, UINT size) { @@ -3208,14 +2962,6 @@ ULONG value = 0; /* _nx_pppoe_client_session_send Send PPPoE Session packet */ /* _nx_pppoe_client_tag_string_add Add PPPoE string TAG */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_data_add(UCHAR *data, UINT size, ULONG value) { @@ -3286,14 +3032,6 @@ static VOID _nx_pppoe_client_data_add(UCHAR *data, UINT size, ULONG value) /* */ /* _nx_pppoe_client_tag_string_add Add PPPoE string TAG */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_string_add(UCHAR *dest, UCHAR *source, UINT size) { @@ -3344,14 +3082,6 @@ static VOID _nx_pppoe_client_string_add(UCHAR *dest, UCHAR *source, UINT size) /* */ /* _nx_pppoe_client_discovery_send Send PPPoE Discovery packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_client_tag_string_add(UCHAR *data_ptr, UINT tag_type, UINT tag_length, UCHAR *tag_value_string, UINT *index) { @@ -3405,14 +3135,6 @@ static UINT _nx_pppoe_client_tag_string_add(UCHAR *data_ptr, UINT tag_type, UIN /* _nx_pppoe_client_session_packet_process */ /* Process PPPoE Session packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_client_session_cleanup(NX_PPPOE_CLIENT *client_ptr) { @@ -3468,14 +3190,6 @@ static UINT _nx_pppoe_client_session_cleanup(NX_PPPOE_CLIENT *client_ptr) /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_session_thread_suspend(TX_THREAD **suspension_list_head, VOID (*suspend_cleanup)(TX_THREAD * NX_CLEANUP_PARAMETER), NX_PPPOE_CLIENT *pppoe_client_ptr, TX_MUTEX *mutex_ptr, ULONG wait_option) @@ -3573,14 +3287,6 @@ TX_THREAD *thread_ptr; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_client_session_thread_resume(TX_THREAD **suspension_list_head, UINT status) { @@ -3682,14 +3388,6 @@ TX_THREAD *thread_ptr; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_client_session_connect_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/addons/pppoe/nx_pppoe_client.h b/addons/pppoe/nx_pppoe_client.h index fdced62c..77a6f21d 100644 --- a/addons/pppoe/nx_pppoe_client.h +++ b/addons/pppoe/nx_pppoe_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,20 +37,6 @@ /* componet, including all data types and external references. It is */ /* assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* string length verification, */ -/* resulting in version 6.1.3 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_PPPOE_CLIENT_H @@ -268,9 +254,9 @@ typedef struct NX_PPPOE_CLIENT_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/pppoe/nx_pppoe_server.c b/addons/pppoe/nx_pppoe_server.c index 03f80c04..bc49cadc 100644 --- a/addons/pppoe/nx_pppoe_server.c +++ b/addons/pppoe/nx_pppoe_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -110,14 +110,6 @@ static UCHAR *nx_pppoe_service_name[1]; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_create(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR *name, NX_IP *ip_ptr, UINT interface_index, VOID (*pppoe_link_driver)(struct NX_IP_DRIVER_STRUCT *), NX_PACKET_POOL *pool_ptr, @@ -204,14 +196,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_create(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR *name, NX_IP *ip_ptr, UINT interface_index, VOID (*pppoe_link_driver)(struct NX_IP_DRIVER_STRUCT *), NX_PACKET_POOL *pool_ptr, @@ -319,14 +303,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_ac_name_set(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR *ac_name, UINT ac_name_length) { @@ -380,14 +356,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_ac_name_set(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR *ac_name, UINT ac_name_length) { @@ -450,14 +418,6 @@ UINT temp_name_length = 0; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_delete(NX_PPPOE_SERVER *pppoe_server_ptr) { @@ -509,14 +469,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_delete(NX_PPPOE_SERVER *pppoe_server_ptr) { @@ -591,14 +543,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_enable(NX_PPPOE_SERVER *pppoe_server_ptr) { @@ -609,7 +553,7 @@ UINT status; if ((pppoe_server_ptr == NX_NULL) || (pppoe_server_ptr -> nx_pppoe_id != NX_PPPOE_SERVER_ID)) return(NX_PPPOE_SERVER_PTR_ERROR); - /* Make sure the data receive callback function is set before enable. + /* Make sure the data receive callback function is set before enable. Setting this function by nx_pppoe_server_callback_notify_set() API. */ if (pppoe_server_ptr -> nx_pppoe_data_receive_notify == NX_NULL) return(NX_PPPOE_SERVER_PTR_ERROR); @@ -654,14 +598,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_enable(NX_PPPOE_SERVER *pppoe_server_ptr) { @@ -714,14 +650,6 @@ UINT _nx_pppoe_server_enable(NX_PPPOE_SERVER *pppoe_server_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_disable(NX_PPPOE_SERVER *pppoe_server_ptr) { @@ -772,14 +700,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_disable(NX_PPPOE_SERVER *pppoe_server_ptr) { @@ -845,14 +765,6 @@ UINT _nx_pppoe_server_disable(NX_PPPOE_SERVER *pppoe_server_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_callback_notify_set(NX_PPPOE_SERVER *pppoe_server_ptr, VOID (* pppoe_discover_initiation_notify)(UINT session_index), @@ -926,14 +838,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_callback_notify_set(NX_PPPOE_SERVER *pppoe_server_ptr, VOID (* pppoe_discover_initiation_notify)(UINT session_index), @@ -1000,14 +904,6 @@ UINT _nx_pppoe_server_callback_notify_set(NX_PPPOE_SERVER *pppoe_server_ptr, /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_service_name_set(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR **service_name, UINT service_name_count) { @@ -1062,14 +958,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_service_name_set(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR **service_name, UINT service_name_count) { @@ -1127,14 +1015,6 @@ UINT _nx_pppoe_server_service_name_set(NX_PPPOE_SERVER *pppoe_server_ptr, UCHAR /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_session_send(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index, UCHAR *data_ptr, UINT data_length) { @@ -1211,14 +1091,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_session_send(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index, UCHAR *data_ptr, UINT data_length) { @@ -1251,11 +1123,11 @@ UINT status; /* Added the PPPoE header. */ /* - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | VER | TYPE | CODE | SESSION_ID | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | LENGTH | payload + * | LENGTH | payload * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -1348,14 +1220,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_session_packet_send(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index, NX_PACKET *packet_ptr) { @@ -1482,14 +1346,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_session_packet_send(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index, NX_PACKET *packet_ptr) { @@ -1528,11 +1384,11 @@ UCHAR *work_ptr; /* Added the PPPoE header. */ /* - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | VER | TYPE | CODE | SESSION_ID | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | LENGTH | payload + * | LENGTH | payload * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -1595,14 +1451,6 @@ UCHAR *work_ptr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_session_terminate(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index) { @@ -1668,14 +1516,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_session_terminate(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index) { @@ -1752,14 +1592,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_pppoe_server_session_get(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index, ULONG *client_mac_msw, ULONG *client_mac_lsw, ULONG *session_id) { @@ -1818,14 +1650,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_pppoe_server_session_get(NX_PPPOE_SERVER *pppoe_server_ptr, UINT session_index, ULONG *client_mac_msw, ULONG *client_mac_lsw, ULONG *session_id) { @@ -1898,14 +1722,6 @@ UINT _nx_pppoe_server_session_get(NX_PPPOE_SERVER *pppoe_server_ptr, UINT sessi /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_server_packet_deferred_receive(NX_PACKET *packet_ptr) { @@ -2009,14 +1825,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* ThreadX Scheduler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_server_thread_entry(ULONG pppoe_server_ptr_value) { @@ -2251,14 +2059,6 @@ UINT i; /* */ /* _nx_pppoe_server_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_server_packet_receive(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PACKET *packet_ptr) { @@ -2382,15 +2182,6 @@ UINT is_broadcast = NX_FALSE; /* */ /* _nx_pppoe_server_packet_receive Receive the PPPoE packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_pppoe_server_discovery_packet_process(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PACKET *packet_ptr, ULONG client_mac_msw, ULONG client_mac_lsw, UINT is_broadcast) { @@ -2435,7 +2226,7 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr = NX_NULL; return; } - /* For PADI, the destination address should be broadcast. + /* For PADI, the destination address should be broadcast. For PADR and PART, the destination address should be unicast. */ if (((code == NX_PPPOE_SERVER_CODE_PADI) && (is_broadcast != NX_TRUE)) || ((code != NX_PPPOE_SERVER_CODE_PADI) && (is_broadcast == NX_TRUE))) @@ -2449,7 +2240,7 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr = NX_NULL; /* Pickup the session id. */ session_id = _nx_pppoe_server_data_get(pppoe_header_ptr + NX_PPPOE_SERVER_OFFSET_SESSION_ID, 2); - /* Check the session id. + /* Check the session id. Session ID must be zero for PADI and PADR, Session ID must be not zero for PADT. */ if (((code != NX_PPPOE_SERVER_CODE_PADT) && (session_id != 0)) || @@ -2498,7 +2289,7 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr = NX_NULL; if (status) { - /* If the Access Concentrator does not like the Service-Name in the PADR, + /* If the Access Concentrator does not like the Service-Name in the PADR, then it MUST reply with a PADS containing a TAG of TAG_TYPE Service-Name-Error (and any number of other TAG types). In this case the SESSION_ID MUST be set to 0x0000. RFC2516, Section5.4, Page6. */ if ((status == NX_PPPOE_SERVER_SERVICE_NAME_ERROR) && (code == NX_PPPOE_SERVER_CODE_PADR)) @@ -2544,7 +2335,7 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr = NX_NULL; if (client_session_ptr -> nx_pppoe_session_id == 0) { - /* The Session ID should not be zero and 0xFFFF. + /* The Session ID should not be zero and 0xFFFF. RFC2516, Section4, Page4. */ if ((pppoe_server_ptr -> nx_pppoe_session_id == 0) || (pppoe_server_ptr -> nx_pppoe_session_id == 0xFFFF)) @@ -2637,14 +2428,6 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr = NX_NULL; /* */ /* _nx_pppoe_server_packet_receive Receive the PPPoE packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_server_session_packet_process(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PACKET *packet_ptr, ULONG client_mac_msw, ULONG client_mac_lsw) { @@ -2830,17 +2613,6 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr = NX_NULL; /* _nx_pppoe_server_discovery_packet_process */ /* Process PPPoE Discovery packet*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_server_discovery_send(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PPPOE_CLIENT_SESSION *client_session_ptr, UINT code) { @@ -2882,11 +2654,11 @@ UCHAR *service_name_ptr; /* The PPPoE payload contains zero or more TAGs. A TAG is a TLV (type-length-value) construct and is defined as follows. */ /* 1 2 3 - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | TAG_TYPE | TAG_LENGTH | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | TAG_VALUE ... + * | TAG_VALUE ... * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -2909,7 +2681,7 @@ UCHAR *service_name_ptr; _nx_pppoe_server_tag_string_add(work_ptr, NX_PPPOE_SERVER_TAG_TYPE_AC_NAME, pppoe_server_ptr -> nx_pppoe_name_length, (UCHAR *)(pppoe_server_ptr -> nx_pppoe_name), &index); } - /* The PADO packet MUST contain a Service-Name TAG identical to the one in the PADI, + /* The PADO packet MUST contain a Service-Name TAG identical to the one in the PADI, and any number of other Service-Name TAGs indicating other services. RFC2516, Section 5.2, Page6. */ /* Added a Service-Name TAG identical to the one in the PADI. */ @@ -2983,7 +2755,7 @@ UCHAR *service_name_ptr; } #endif - /* If the Access Concentrator receives this Host-Uniq TAG, it MUST include the TAG unmodified in associated PADO or PADS response. + /* If the Access Concentrator receives this Host-Uniq TAG, it MUST include the TAG unmodified in associated PADO or PADS response. RFC2516, Appendix A, Host-Uniq. */ if (client_session_ptr -> nx_pppoe_host_uniq_size) { @@ -2992,7 +2764,7 @@ UCHAR *service_name_ptr; _nx_pppoe_server_tag_string_add(work_ptr, NX_PPPOE_SERVER_TAG_TYPE_HOST_UNIQ, client_session_ptr -> nx_pppoe_host_uniq_size, client_session_ptr -> nx_pppoe_host_uniq, &index); } - /* If either the Host or Access Concentrator receives this Relay-Session-Id TAG, they MUST include it unmodified in any discovery packet they send as a response. + /* If either the Host or Access Concentrator receives this Relay-Session-Id TAG, they MUST include it unmodified in any discovery packet they send as a response. RFC2516, Appendix A, Relay-Session-Id. */ if (client_session_ptr -> nx_pppoe_relay_session_id_size) { @@ -3035,7 +2807,7 @@ UCHAR *service_name_ptr; _nx_pppoe_server_tag_string_add(work_ptr, NX_PPPOE_SERVER_TAG_TYPE_SERVICE_NAME, 0, NX_NULL, &index); } - /* If the Access Concentrator receives this Host-Uniq TAG, it MUST include the TAG unmodified in associated PADO or PADS response. + /* If the Access Concentrator receives this Host-Uniq TAG, it MUST include the TAG unmodified in associated PADO or PADS response. RFC2516, Appendix A, Host-Uniq. */ if (client_session_ptr -> nx_pppoe_host_uniq_size) { @@ -3044,7 +2816,7 @@ UCHAR *service_name_ptr; _nx_pppoe_server_tag_string_add(work_ptr, NX_PPPOE_SERVER_TAG_TYPE_HOST_UNIQ, client_session_ptr -> nx_pppoe_host_uniq_size, client_session_ptr -> nx_pppoe_host_uniq, &index); } - /* If either the Host or Access Concentrator receives this Relay-Session-Id TAG, they MUST include it unmodified in any discovery packet they send as a response. + /* If either the Host or Access Concentrator receives this Relay-Session-Id TAG, they MUST include it unmodified in any discovery packet they send as a response. RFC2516, Appendix A, Relay-Session-Id. */ if (client_session_ptr -> nx_pppoe_relay_session_id_size) { @@ -3077,11 +2849,11 @@ UCHAR *service_name_ptr; /* Add the PPPoE header. */ /* - * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 + * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * | VER | TYPE | CODE | SESSION_ID | * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * | LENGTH | payload + * | LENGTH | payload * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ @@ -3154,14 +2926,6 @@ UCHAR *service_name_ptr; /* _nx_pppoe_server_discovery_send Send PPPoE Discovery packet */ /* _nx_pppoe_server_session_send Send PPPoE Session packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_server_packet_send(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PPPOE_CLIENT_SESSION *client_session_ptr, NX_PACKET *packet_ptr, UINT command) { @@ -3217,20 +2981,6 @@ NX_IP_DRIVER driver_request; /* _nx_pppoe_server_discovery_packet_process */ /* Process PPPoE Discovery packet*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* string length verification, */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_server_tag_process(NX_PPPOE_SERVER *pppoe_server_ptr, NX_PPPOE_CLIENT_SESSION *client_session_ptr, UINT code, UCHAR *tag_ptr, ULONG length) { @@ -3544,14 +3294,6 @@ UCHAR *service_name_ptr; /* Process PPPoE Session packet */ /* _nx_pppoe_server_tag_process Process PPPoE TAGs */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static ULONG _nx_pppoe_server_data_get(UCHAR *data, UINT size) { @@ -3606,14 +3348,6 @@ ULONG value = 0; /* _nx_pppoe_server_session_send Send PPPoE Session packet */ /* _nx_pppoe_server_tag_string_add Add PPPoE string TAG */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_server_data_add(UCHAR *data, UINT size, ULONG value) { @@ -3684,14 +3418,6 @@ static VOID _nx_pppoe_server_data_add(UCHAR *data, UINT size, ULONG value) /* */ /* _nx_pppoe_server_tag_string_add Add PPPoE string TAG */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_pppoe_server_string_add(UCHAR *dest, UCHAR *source, UINT size) { @@ -3742,14 +3468,6 @@ static VOID _nx_pppoe_server_string_add(UCHAR *dest, UCHAR *source, UINT size) /* */ /* _nx_pppoe_server_discovery_send Send PPPoE Discovery packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_server_tag_string_add(UCHAR *data_ptr, UINT tag_type, UINT tag_length, UCHAR *tag_value_string, UINT *index) { @@ -3813,14 +3531,6 @@ static UINT _nx_pppoe_server_tag_string_add(UCHAR *data_ptr, UINT tag_type, UIN /* _nx_pppoe_server_session_packet_process */ /* Process PPPoE Session packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_server_session_find(NX_PPPOE_SERVER *pppoe_server_ptr, ULONG client_mac_msw, ULONG client_mac_lsw, ULONG session_id, UINT *session_index, NX_PPPOE_CLIENT_SESSION **client_session_ptr) @@ -3932,14 +3642,6 @@ UINT available_index; /* _nx_pppoe_server_session_packet_process */ /* Process PPPoE Session packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_pppoe_server_session_cleanup(NX_PPPOE_CLIENT_SESSION *client_session_ptr) { @@ -4018,17 +3720,6 @@ NX_PACKET *current_packet; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ VOID PppInitInd(UINT length, UCHAR *aData) { @@ -4091,14 +3782,6 @@ VOID PppInitInd(UINT length, UCHAR *aData) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID PppDiscoverCnf(UINT length, UCHAR *aData, UINT interfaceHandle) { @@ -4186,14 +3869,6 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID PppOpenCnf(UCHAR accept, UINT interfaceHandle) { @@ -4275,17 +3950,6 @@ NX_PPPOE_CLIENT_SESSION *client_session_ptr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ VOID PppCloseInd(UINT interfaceHandle, UCHAR *causeCode) { @@ -4354,14 +4018,6 @@ VOID PppCloseInd(UINT interfaceHandle, UCHAR *causeCode) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID PppCloseCnf(UINT interfaceHandle) { @@ -4418,17 +4074,6 @@ VOID PppCloseCnf(UINT interfaceHandle) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ VOID PppTransmitDataCnf(UINT interfaceHandle, UCHAR *data_ptr, UINT packet_id) { @@ -4502,17 +4147,6 @@ NX_PACKET *packet_ptr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* */ /**************************************************************************/ VOID PppReceiveDataInd(UINT interfaceHandle, UINT data_length, UCHAR *data_ptr) { diff --git a/addons/pppoe/nx_pppoe_server.h b/addons/pppoe/nx_pppoe_server.h index 58fd2a70..ae61b273 100644 --- a/addons/pppoe/nx_pppoe_server.h +++ b/addons/pppoe/nx_pppoe_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,20 +37,6 @@ /* componet, including all data types and external references. It is */ /* assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 02-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the compiler errors, */ -/* resulting in version 6.1.4 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_PPPOE_SERVER_H @@ -261,9 +247,9 @@ typedef struct NX_PPPOE_SERVER_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/ptp/nxd_ptp_client.c b/addons/ptp/nxd_ptp_client.c index a22a0756..f1a0689d 100644 --- a/addons/ptp/nxd_ptp_client.c +++ b/addons/ptp/nxd_ptp_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -34,16 +34,6 @@ /* This file defines the NetX Precision Time Protocol (PTP) */ /* Client component, including all data types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ @@ -272,12 +262,6 @@ static VOID _nx_ptp_utility_32_unsigned_write(UCHAR *dest_ptr, ULONG value) /* _nx_ptp_client_sync_received Process Sync message */ /* _nx_ptp_client_delay_resp_received Process delay response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_msg_parse_timestamp(UCHAR *ptr, NX_PTP_TIME *time_ptr) { @@ -323,15 +307,6 @@ ULONG nanoseconds = (ULONG)time_ptr -> nanosecond; /* _nx_ptp_client_process_event_packet Process PTP event packet */ /* _nx_ptp_client_process_general_packet Process PTP general packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static UINT _nx_ptp_msg_parse_hdr(NX_PTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PTP_MSG_HEADER *hdr) { @@ -468,12 +443,6 @@ UINT interface_index; /* */ /* _nx_ptp_client_init_packet_received Process Announce message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_msg_parse_announce(UCHAR *ptr, NX_PTP_CLIENT_MASTER *master) { @@ -524,12 +493,6 @@ static VOID _nx_ptp_msg_parse_announce(UCHAR *ptr, NX_PTP_CLIENT_MASTER *master) /* */ /* _nx_ptp_client_init_packet_received Process PTP announce message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ static INT _nx_ptp_client_master_clock_compare(NX_PTP_CLIENT_MASTER *master1, NX_PTP_CLIENT_MASTER *master2) { @@ -619,12 +582,6 @@ INT gm_compare; /* */ /* _nx_ptp_client_soft_clock_callback Soft PTP clock */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_soft_clock_adjust(VOID *ptp_instance, LONG offset_ns) { @@ -690,12 +647,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* ThreadX Timer */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_timer_handler(ULONG ptp_instance) { @@ -742,12 +693,6 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)ptp_instance; /* */ /* NetX UDP */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_socket_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -790,12 +735,6 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)(socket_ptr -> nx_udp_socket_reserv /* */ /* NetX link layer */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static UINT _nx_ptp_client_ethernet_receive_notify(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, ULONG physical_address_msw, ULONG physical_address_lsw, @@ -888,15 +827,6 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)context; /* */ /* _nx_ptp_client_delay_resp_received Process delay response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_clock_adjust(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *offset_ptr) { @@ -990,16 +920,6 @@ NX_PTP_TIME current; /* */ /* _nx_ptp_client_sync_received Process Sync message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_delay_req(NX_PTP_CLIENT *client_ptr) { @@ -1165,16 +1085,6 @@ NX_INTERFACE *if_ptr; /* _nx_ptp_client_process_event_packet Process PTP event packet */ /* _nx_ptp_client_process_general_packet Process PTP general packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_sync_received(NX_PTP_CLIENT *client_ptr, VOID *ts_ptr, NX_PTP_MSG_HEADER *hdr) { @@ -1217,7 +1127,7 @@ ULONG64 correctionNS = (hdr -> cFieldHigh << 16) | (hdr -> cFieldLow >> 16); } #if defined(NX_PTP_DEBUG) || defined(NX_PTP_DEBUG_OFFSET) - /* Compute neighbor rate ratio. + /* Compute neighbor rate ratio. neighborRateRatio = (t1 - prev_t1) / (t2 - prev_t2) */ _nx_ptp_client_utility_time_diff(&client_ptr -> nx_ptp_client_sync, &client_ptr -> nx_ptp_client_prev_sync, &delta_t1); @@ -1337,18 +1247,6 @@ ULONG64 correctionNS = (hdr -> cFieldHigh << 16) | (hdr -> cFieldLow >> 16); /* */ /* _nx_ptp_client_process_general_packet Process PTP general packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.5 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* simplified debug output, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_delay_resp_received(NX_PTP_CLIENT *client_ptr, VOID *ts_ptr) { @@ -1470,16 +1368,6 @@ NX_PTP_CLIENT_SYNC sync; /* _nx_ptp_client_process_general_packet Process PTP general packet */ /* _nx_ptp_client_master_clock_compare Compare two master clocks */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_init_packet_received(NX_PTP_CLIENT *client_ptr, NX_PTP_MSG_HEADER *hdr, @@ -1663,12 +1551,6 @@ INT compare_result; /* */ /* _nx_ptp_client_thread_entry PTP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_pdelay_req(NX_PTP_CLIENT *client_ptr) { @@ -1855,12 +1737,6 @@ NX_INTERFACE *if_ptr; /* _nx_ptp_client_process_general_packet Process PTP general packet */ /* _nx_ptp_client_process_event_packet Process PTP event packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_pdelay_resp_received(NX_PTP_CLIENT *client_ptr, VOID *ts_ptr) { @@ -1872,27 +1748,27 @@ NX_PTP_TIME a, b, c, d, t3; * t2 = nx_ptp_client_pdelay_req_receipt_ts (within pdelay_resp) * t3 = nx_ptp_client_pdelay_resp_origin_ts (within pdelay_resp_follow_up or ts_ptr) * t4 = (onestep: nx_ptp_client_pdelay_req_receipt_ts)/(twostep:nx_ptp_client_pdelay_resp_ts) - * + * * C = t2 - t1 * D = t4 - t3 - * + * * = [(t2 – t1) + (t4 – t3)]/2 - * + * * A = t1 - t2 * B = t3 - t4 - * - * offset = [(t1 - t2) - (t3 - t4)]/2 + * + * offset = [(t1 - t2) - (t3 - t4)]/2 * = [B - A]/2 - * - * + * + * * onestep: = [(t4 − t1) − ]/2 * correctedPDelayRespCorrectionField = t3-t2 (turnaround time) - * + * * onestep offset = (t4 + t1 - (nx_ptp_client_pdelay_req_receipt_ts * 2))/2 * - the multiply by 2 is here because we are not yet parsing the correction field - * + * * twostep offset = (t4 + t1 - (nx_ptp_client_pdelay_req_receipt_ts + ts_ptr))/2 - * + * * We will set to 0 unless a value is provided by the user * * delay_asymmetry = 0; @@ -1989,12 +1865,6 @@ NX_PTP_TIME a, b, c, d, t3; /* */ /* _nx_ptp_client_thread_entry PTP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_pdelay_resp_follow_up(NX_PTP_CLIENT *client_ptr) { @@ -2171,12 +2041,6 @@ NX_INTERFACE *if_ptr; /* _nx_ptp_client_thread_entry PTP thread entry */ /* _nx_ptp_client_process_event_packet Process PTP event packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_pdelay_resp(NX_PTP_CLIENT *client_ptr) { @@ -2364,12 +2228,6 @@ NX_INTERFACE *if_ptr; /* */ /* _nx_ptp_client_thread_entry PTP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_follow_up(NX_PTP_CLIENT *client_ptr) { @@ -2556,12 +2414,6 @@ NX_INTERFACE *if_ptr; /* */ /* _nx_ptp_client_thread_entry PTP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_sync(NX_PTP_CLIENT *client_ptr) { @@ -2723,12 +2575,6 @@ NX_INTERFACE *if_ptr; /* */ /* _nx_ptp_client_thread_entry PTP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_send_announce(NX_PTP_CLIENT *client_ptr) { @@ -2920,16 +2766,6 @@ NX_INTERFACE *if_ptr; /* _nx_ptp_client_thread_entry PTP thread entry */ /* _nx_ptp_client_send_pdelay_resp Send pdelay response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_process_event_packet(NX_PTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PTP_MSG_HEADER *hdr) @@ -3064,16 +2900,6 @@ static VOID _nx_ptp_client_process_event_packet(NX_PTP_CLIENT *client_ptr, NX_PA /* */ /* _nx_ptp_client_thread_entry PTP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_process_general_packet(NX_PTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PTP_MSG_HEADER *hdr) @@ -3183,16 +3009,6 @@ static VOID _nx_ptp_client_process_general_packet(NX_PTP_CLIENT *client_ptr, NX_ /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static VOID _nx_ptp_client_thread_entry(ULONG ptp_instance) { @@ -3503,12 +3319,6 @@ NX_PTP_MSG_HEADER hdr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_create(NX_PTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT interface_index, NX_PACKET_POOL *packet_pool_ptr, UINT thread_priority, UCHAR *thread_stack, UINT stack_size, @@ -3585,15 +3395,6 @@ UINT _nxe_ptp_client_create(NX_PTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT inter /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_create(NX_PTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT interface_index, NX_PACKET_POOL *packet_pool_ptr, UINT thread_priority, UCHAR *thread_stack, UINT stack_size, @@ -3742,12 +3543,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_delete(NX_PTP_CLIENT *client_ptr) { @@ -3804,15 +3599,6 @@ UINT _nxe_ptp_client_delete(NX_PTP_CLIENT *client_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_delete(NX_PTP_CLIENT *client_ptr) { @@ -3886,12 +3672,6 @@ UINT _nx_ptp_client_delete(NX_PTP_CLIENT *client_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_start(NX_PTP_CLIENT *client_ptr, UCHAR *client_port_identity_ptr, UINT client_port_identity_length, UINT domain, UINT transport_specific, NX_PTP_CLIENT_EVENT_CALLBACK event_callback, @@ -3965,16 +3745,6 @@ UINT _nxe_ptp_client_start(NX_PTP_CLIENT *client_ptr, UCHAR *client_port_identit /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_start(NX_PTP_CLIENT *client_ptr, UCHAR *client_port_identity_ptr, UINT client_port_identity_length, UINT domain, UINT transport_specific, NX_PTP_CLIENT_EVENT_CALLBACK event_callback, @@ -4209,12 +3979,6 @@ NXD_ADDRESS maddr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_stop(NX_PTP_CLIENT *client_ptr) { @@ -4270,15 +4034,6 @@ UINT _nxe_ptp_client_stop(NX_PTP_CLIENT *client_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_stop(NX_PTP_CLIENT *client_ptr) { @@ -4406,12 +4161,6 @@ NXD_ADDRESS maddr; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_master_enable(NX_PTP_CLIENT *client_ptr, UCHAR role, UCHAR priority1, UCHAR priority2, UCHAR clock_class, UCHAR clock_accuracy, USHORT clock_variance, @@ -4481,28 +4230,22 @@ UINT _nxe_ptp_client_master_enable(NX_PTP_CLIENT *client_ptr, UCHAR role, UCHAR /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_master_enable(NX_PTP_CLIENT *client_ptr, UCHAR role, UCHAR priority1, UCHAR priority2, UCHAR clock_class, UCHAR clock_accuracy, USHORT clock_variance, USHORT steps_removed, UCHAR time_source) { - /* + /* * nx_ptp_master_priority1: 0 is reserved. Set at 1 for highest priority - * nx_ptp_master_priority2: AS2020: 8.6.2.5 The default value for a PTP Relay Instance should be 247. + * nx_ptp_master_priority2: AS2020: 8.6.2.5 The default value for a PTP Relay Instance should be 247. * The default value for a PTP End Instance should be 248. - * nx_ptp_master_clock_class: AS2020: 8.6.2.2 If the value that reflects the LocalClock and ClockSource entities is - * not specified or not known, clockClass is set to 248 - * nx_ptp_master_clock_accuracy: User input. - * AS2020:8.6.2.3 If the value that reflects the LocalClock and ClockSource entities is + * nx_ptp_master_clock_class: AS2020: 8.6.2.2 If the value that reflects the LocalClock and ClockSource entities is + * not specified or not known, clockClass is set to 248 + * nx_ptp_master_clock_accuracy: User input. + * AS2020:8.6.2.3 If the value that reflects the LocalClock and ClockSource entities is * not specified or unknown, clockAccuracy is set to 254 (FE16). - * 1588-2019: 7.6.2.6 clockAccuracy reference Table 5 enumerations + * 1588-2019: 7.6.2.6 clockAccuracy reference Table 5 enumerations * nx_ptp_master_offset_scaled_log_variance: AS2020:8.6.2.4 If the value that reflects these entities is not specified or not known, * offsetScaledLogVariance is set to 17258 (436A16) * nx_ptp_master_sequenceId Sequence ID for master starts at 0 @@ -4559,12 +4302,6 @@ UINT _nx_ptp_client_master_enable(NX_PTP_CLIENT *client_ptr, UCHAR role, UCHAR p /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_time_get(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) { @@ -4616,12 +4353,6 @@ UINT _nxe_ptp_client_time_get(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_time_get(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) { @@ -4667,12 +4398,6 @@ UINT _nx_ptp_client_time_get(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_time_set(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) { @@ -4724,12 +4449,6 @@ UINT _nxe_ptp_client_time_set(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_time_set(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *time_ptr) { @@ -4802,12 +4521,6 @@ UINT state; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_master_info_get(NX_PTP_CLIENT_MASTER *master_ptr, NXD_ADDRESS *address, UCHAR **port_identity, UINT *port_identity_length, UCHAR *priority1, UCHAR *priority2, UCHAR *clock_class, @@ -4874,12 +4587,6 @@ UINT _nxe_ptp_client_master_info_get(NX_PTP_CLIENT_MASTER *master_ptr, NXD_ADDRE /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_master_info_get(NX_PTP_CLIENT_MASTER *master_ptr, NXD_ADDRESS *address, UCHAR **port_identity, UINT *port_identity_length, UCHAR *priority1, UCHAR *priority2, UCHAR *clock_class, @@ -4976,12 +4683,6 @@ UINT _nx_ptp_client_master_info_get(NX_PTP_CLIENT_MASTER *master_ptr, NXD_ADDRES /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_sync_info_get(NX_PTP_CLIENT_SYNC *sync_ptr, USHORT *flags, SHORT *utc_offset) { @@ -5031,12 +4732,6 @@ UINT _nxe_ptp_client_sync_info_get(NX_PTP_CLIENT_SYNC *sync_ptr, USHORT *flags, /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_sync_info_get(NX_PTP_CLIENT_SYNC *sync_ptr, USHORT *flags, SHORT *utc_offset) { @@ -5088,16 +4783,6 @@ UINT _nx_ptp_client_sync_info_get(NX_PTP_CLIENT_SYNC *sync_ptr, USHORT *flags, S /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_packet_timestamp_notify(NX_PTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_PTP_TIME *timestamp_ptr) { @@ -5198,12 +4883,6 @@ VOID _nx_ptp_client_packet_timestamp_notify(NX_PTP_CLIENT *client_ptr, NX_PACKET /* */ /* PTP internal */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_soft_clock_callback(NX_PTP_CLIENT *client_ptr, UINT operation, NX_PTP_TIME *time_ptr, NX_PACKET *packet_ptr, @@ -5307,12 +4986,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_utility_time_diff(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time2_ptr, NX_PTP_TIME *result_ptr) { @@ -5364,12 +5037,6 @@ UINT _nxe_ptp_client_utility_time_diff(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_utility_time_sum(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time2_ptr, NX_PTP_TIME *result_ptr) { @@ -5425,12 +5092,6 @@ UINT _nxe_ptp_client_utility_time_sum(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time2 /* Application */ /* _nx_ptp_client_delay_resp_received Process delay response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_utility_time_diff(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time2_ptr, NX_PTP_TIME *result_ptr) { @@ -5524,12 +5185,6 @@ LONG ns; /* Application */ /* _nx_ptp_client_pdelay_resp_received Process pdelay response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_utility_time_sum(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time2_ptr, NX_PTP_TIME *result_ptr) { @@ -5621,12 +5276,6 @@ LONG ns; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nxe_ptp_client_utility_convert_time_to_date(NX_PTP_TIME *time_ptr, LONG offset, NX_PTP_DATE_TIME *date_time_ptr) { @@ -5680,12 +5329,6 @@ UINT _nxe_ptp_client_utility_convert_time_to_date(NX_PTP_TIME *time_ptr, LONG of /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ptp_client_utility_convert_time_to_date(NX_PTP_TIME *time_ptr, LONG offset, NX_PTP_DATE_TIME *date_time_ptr) { @@ -5824,12 +5467,6 @@ UINT is_leap; /* _nx_ptp_client_utility_convert_time_to_date */ /* Convert time to date */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_utility_add64(LONG *a_hi, ULONG *a_lo, LONG b_hi, ULONG b_lo) { @@ -5880,12 +5517,6 @@ ULONG r_lo; /* */ /* _nx_ptp_client_utility_time_diff Diff two PTP times */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_utility_sub64(LONG *a_hi, ULONG *a_lo, LONG b_hi, ULONG b_lo) { @@ -5937,12 +5568,6 @@ ULONG r_lo; /* _nx_ptp_client_utility_time_diff Diff two PTP times */ /* _nx_ptp_client_soft_clock_callback Soft PTP clock */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_utility_inc64(LONG *a_hi, ULONG *a_lo) { @@ -5990,12 +5615,6 @@ ULONG r_lo; /* _nx_ptp_client_clock_adjust Adjust PTP clock */ /* _nx_ptp_client_utility_time_diff Diff two PTP times */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_utility_dec64(LONG *a_hi, ULONG *a_lo) { @@ -6041,12 +5660,6 @@ ULONG r_lo; /* */ /* _nx_ptp_client_utility_time_div_by_2 Divide a PTP time by 2 */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_utility_neg64(LONG *a_hi, ULONG *a_lo) { @@ -6092,12 +5705,6 @@ LONG r_hi; /* */ /* _nx_ptp_client_delay_resp_received Process delay response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ VOID _nx_ptp_client_utility_time_div_by_2(NX_PTP_TIME *time_ptr) { diff --git a/addons/ptp/nxd_ptp_client.h b/addons/ptp/nxd_ptp_client.h index 20405b26..d8ef3c79 100644 --- a/addons/ptp/nxd_ptp_client.h +++ b/addons/ptp/nxd_ptp_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -34,16 +34,6 @@ /* This file defines the NetX Precision Time Protocol (PTP) */ /* Client component, including all data types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ -/* supported gPTP profile, */ -/* supported master clock, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NXD_PTP_CLIENT_H @@ -235,7 +225,7 @@ extern "C" { /* Define the default clock class for local PTP clock running as master mode. */ #define NX_PTP_CLIENT_MASTER_CLOCK_CLASS 248 -/* Define the default accuracy for local PTP clock running as master mode. +/* Define the default accuracy for local PTP clock running as master mode. The default value 0x22 means the time is accurate to within 250ns. */ #define NX_PTP_CLIENT_MASTER_ACCURACY 0x22 diff --git a/addons/rtp/nx_rtp_sender.c b/addons/rtp/nx_rtp_sender.c index c7bb79a2..5e43952d 100644 --- a/addons/rtp/nx_rtp_sender.c +++ b/addons/rtp/nx_rtp_sender.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -104,12 +104,6 @@ static VOID _nx_rtcp_packet_receive_notify(NX_UDP_SOCKET *socket_ptr); /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_create(NX_RTP_SENDER *rtp_sender, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, CHAR *cname, UCHAR cname_length) { @@ -177,12 +171,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_create(NX_RTP_SENDER *rtp_sender, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, CHAR *cname, UCHAR cname_length) { @@ -355,12 +343,6 @@ UINT free_port; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_delete(NX_RTP_SENDER *rtp_sender) { @@ -414,12 +396,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_delete(NX_RTP_SENDER *rtp_sender) { @@ -483,12 +459,6 @@ UINT _nx_rtp_sender_delete(NX_RTP_SENDER *rtp_sender) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_port_get(NX_RTP_SENDER *rtp_sender, UINT *rtp_port, UINT *rtcp_port) { @@ -543,12 +513,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_port_get(NX_RTP_SENDER *rtp_sender, UINT *rtp_port, UINT *rtcp_port) { @@ -600,12 +564,6 @@ UINT _nx_rtp_sender_port_get(NX_RTP_SENDER *rtp_sender, UINT *rtp_port, UINT *rt /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_create(NX_RTP_SENDER *rtp_sender, NX_RTP_SESSION *session, ULONG payload_type, UINT interface_index, NXD_ADDRESS *receiver_ip_address, @@ -681,15 +639,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* 12-31-2023 Haiqing Zhao Modified comments(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_create(NX_RTP_SENDER *rtp_sender, NX_RTP_SESSION *session, ULONG payload_type, UINT interface_index, NXD_ADDRESS *receiver_ip_address, @@ -805,12 +754,6 @@ UINT _nx_rtp_sender_session_create(NX_RTP_SENDER *rtp_sender, NX_RTP_SESSION *se /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_delete(NX_RTP_SESSION *session) { @@ -864,12 +807,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_delete(NX_RTP_SESSION *session) { @@ -922,12 +859,6 @@ UINT _nx_rtp_sender_session_delete(NX_RTP_SESSION *session) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_rtcp_receiver_report_callback_set(NX_RTP_SENDER *rtp_sender, UINT (*rtcp_rr_cb)(NX_RTP_SESSION *, NX_RTCP_RECEIVER_REPORT *)) { @@ -983,12 +914,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_rtcp_receiver_report_callback_set(NX_RTP_SENDER *rtp_sender, UINT (*rtcp_rr_cb)(NX_RTP_SESSION *, NX_RTCP_RECEIVER_REPORT *)) { @@ -1030,12 +955,6 @@ UINT _nx_rtp_sender_rtcp_receiver_report_callback_set(NX_RTP_SENDER *rtp_sender, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_rtcp_sdes_callback_set(NX_RTP_SENDER *rtp_sender, UINT (*rtcp_sdes_cb)(NX_RTCP_SDES_INFO *)) { @@ -1091,12 +1010,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_rtcp_sdes_callback_set(NX_RTP_SENDER *rtp_sender, UINT (*rtcp_sdes_cb)(NX_RTCP_SDES_INFO *)) { @@ -1140,12 +1053,6 @@ UINT _nx_rtp_sender_rtcp_sdes_callback_set(NX_RTP_SENDER *rtp_sender, UINT (*rtc /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_packet_allocate(NX_RTP_SESSION *session, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -1199,12 +1106,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_packet_allocate(NX_RTP_SESSION *session, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -1258,12 +1159,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_packet_send(NX_RTP_SESSION *session, NX_PACKET *packet_ptr, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) { @@ -1331,15 +1226,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* 12-31-2023 Haiqing Zhao Modified comments(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_packet_send(NX_RTP_SESSION *session, NX_PACKET *packet_ptr, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) { @@ -1584,12 +1470,6 @@ UINT fragmentation = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_sequence_number_get(NX_RTP_SESSION *session, UINT *sequence_number) { @@ -1641,12 +1521,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_sequence_number_get(NX_RTP_SESSION *session, UINT *sequence_number) { @@ -1691,12 +1565,6 @@ UINT _nx_rtp_sender_session_sequence_number_get(NX_RTP_SESSION *session, UINT *s /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_sample_factor_set(NX_RTP_SESSION *session, UINT factor) { @@ -1760,12 +1628,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_sample_factor_set(NX_RTP_SESSION *session, UINT factor) { @@ -1809,12 +1671,6 @@ UINT _nx_rtp_sender_session_sample_factor_set(NX_RTP_SESSION *session, UINT fact /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_ssrc_get(NX_RTP_SESSION *session, ULONG *ssrc) { @@ -1866,12 +1722,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_ssrc_get(NX_RTP_SESSION *session, ULONG *ssrc) { @@ -1916,12 +1766,6 @@ UINT _nx_rtp_sender_session_ssrc_get(NX_RTP_SESSION *session, ULONG *ssrc) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Haiqing Zhao Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_vlan_priority_set(NX_RTP_SESSION *session, UINT vlan_priority) { @@ -1983,12 +1827,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Haiqing Zhao Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_vlan_priority_set(NX_RTP_SESSION *session, UINT vlan_priority) { @@ -2039,12 +1877,6 @@ UINT _nx_rtp_sender_session_vlan_priority_set(NX_RTP_SESSION *session, UINT vlan /* _nx_rtp_sender_create Create RTP sender */ /* _nx_rtp_sender_delete Delete RTP sender */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_cleanup(NX_RTP_SENDER *rtp_sender) { @@ -2094,12 +1926,6 @@ UINT _nx_rtp_sender_cleanup(NX_RTP_SENDER *rtp_sender) /* */ /* _nx_rtcp_packet_rr_process Handle RTCP RR packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_find(NX_RTP_SENDER *rtp_sender, UINT ssrc, NX_RTP_SESSION **session) { @@ -2151,12 +1977,6 @@ NX_RTP_SESSION *start = rtp_sender -> nx_rtp_sender_session_created_ptr; /* */ /* _nx_rtp_sender_session_create Create RTP session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_rtp_sender_session_link(NX_RTP_SENDER *rtp_sender, NX_RTP_SESSION *session) { @@ -2218,12 +2038,6 @@ NX_RTP_SESSION *tail; /* */ /* _nx_rtp_sender_session_delete Delete RTP session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_unlink(NX_RTP_SENDER *rtp_sender, NX_RTP_SESSION *session) { @@ -2291,12 +2105,6 @@ NX_RTP_SESSION *pre; /* _nx_rtcp_packet_receive_notify RTCP packet receive notify */ /* service */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtcp_packet_process(NX_RTP_SENDER *rtp_sender, NX_PACKET *packet_ptr) { @@ -2417,12 +2225,6 @@ UCHAR *end; /* */ /* _nx_rtcp_packet_process Handle RTCP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtcp_packet_rr_process(NX_RTP_SENDER *rtp_sender, NX_RTCP_HEADER *header) { @@ -2519,12 +2321,6 @@ NX_RTP_SESSION *session; /* */ /* _nx_rtcp_packet_process Handle RTCP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtcp_packet_sdes_process(NX_RTP_SENDER *rtp_sender, NX_RTCP_HEADER *header) { @@ -2627,12 +2423,6 @@ INT count; /* */ /* _nx_rtcp_packet_send Send RTCP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtcp_sr_data_append(NX_RTP_SESSION *session, NX_PACKET *packet_ptr) { @@ -2699,12 +2489,6 @@ NX_RTCP_SR rtcp_sr; /* */ /* _nx_rtcp_packet_send Send RTCP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtcp_sdes_data_append(NX_RTP_SESSION *session, NX_PACKET *packet_ptr) { @@ -2834,12 +2618,6 @@ SDES item format for CNAME: /* */ /* _nx_rtp_sender_session_packet_send Send rtp packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtcp_packet_send(NX_RTP_SESSION *session) { @@ -2926,12 +2704,6 @@ UINT current_time = tx_time_get(); /* */ /* _nx_rtp_sender_create Create RTP sender */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Ting Zhu Initial Version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_rtcp_packet_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -3001,12 +2773,6 @@ NX_RTP_SENDER *rtp_sender; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_jpeg_send(NX_RTP_SESSION *session, UCHAR *frame_data, ULONG frame_data_size, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) @@ -3080,12 +2846,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_jpeg_send(NX_RTP_SESSION *session, UCHAR *frame_data, ULONG frame_data_size, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) @@ -3530,12 +3290,6 @@ NX_PACKET *send_packet = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_h264_send(NX_RTP_SESSION *session, UCHAR *frame_data, ULONG frame_data_size, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) @@ -3613,12 +3367,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_h264_send(NX_RTP_SESSION *session, UCHAR *frame_data, ULONG frame_data_size, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) @@ -3952,12 +3700,6 @@ NX_PACKET *send_packet = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtp_sender_session_aac_send(NX_RTP_SESSION *session, UCHAR *frame_data, ULONG frame_data_size, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) @@ -4030,12 +3772,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtp_sender_session_aac_send(NX_RTP_SESSION *session, UCHAR *frame_data, ULONG frame_data_size, ULONG timestamp, ULONG ntp_msw, ULONG ntp_lsw, UINT marker) diff --git a/addons/rtp/nx_rtp_sender.h b/addons/rtp/nx_rtp_sender.h index 596aabfe..0c2acd7c 100644 --- a/addons/rtp/nx_rtp_sender.h +++ b/addons/rtp/nx_rtp_sender.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,15 +36,6 @@ /* This file defines the NetX RTP Sender component, including all */ /* data types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* 12-31-2023 Haiqing Zhao Modified comments(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef _NX_RTP_SENDER_H_ diff --git a/addons/rtsp/nx_rtsp_server.c b/addons/rtsp/nx_rtsp_server.c index 194a14c5..cd1765c1 100644 --- a/addons/rtsp/nx_rtsp_server.c +++ b/addons/rtsp/nx_rtsp_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -165,12 +165,6 @@ const NX_RTSP_RESPONSE nx_rtsp_server_response_description_table[] = /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_create(NX_RTSP_SERVER *rtsp_server_ptr, CHAR *server_name, UINT server_name_length, NX_IP *ip_ptr, NX_PACKET_POOL *rtsp_packet_pool, @@ -240,12 +234,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_create(NX_RTSP_SERVER *rtsp_server_ptr, CHAR *server_name, UINT server_name_length, NX_IP *ip_ptr, NX_PACKET_POOL *rtsp_packet_pool, @@ -349,12 +337,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_delete(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -409,12 +391,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_delete(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -474,12 +450,6 @@ UINT _nx_rtsp_server_delete(NX_RTSP_SERVER *rtsp_server_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_start(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -534,12 +504,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_start(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -656,12 +620,6 @@ int i, j; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_stop(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -716,12 +674,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_stop(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -814,12 +766,6 @@ UINT client_index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_sdp_set(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *sdp_string, UINT sdp_length) { @@ -875,12 +821,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_sdp_set(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *sdp_string, UINT sdp_length) { @@ -961,12 +901,6 @@ NX_PACKET *response_packet_ptr = rtsp_client_ptr -> nx_rtsp_client_response_pack /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_rtp_info_set(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *track_id, UINT track_id_len, UINT rtp_seq, UINT rtp_time) { @@ -1024,12 +958,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_rtp_info_set(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *track_id, UINT track_id_len, UINT rtp_seq, UINT rtp_time) { @@ -1111,12 +1039,6 @@ NX_PACKET *response_packet_ptr = rtsp_client_ptr -> nx_rtsp_client_response_pack /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_range_npt_set(NX_RTSP_CLIENT *rtsp_client_ptr, UINT npt_start, UINT npt_end) { @@ -1172,12 +1094,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_range_npt_set(NX_RTSP_CLIENT *rtsp_client_ptr, UINT npt_start, UINT npt_end) { @@ -1233,12 +1149,6 @@ UINT _nx_rtsp_server_range_npt_set(NX_RTSP_CLIENT *rtsp_client_ptr, UINT npt_sta /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_error_response_send(NX_RTSP_CLIENT *rtsp_client_ptr, UINT status_code) { @@ -1294,12 +1204,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_error_response_send(NX_RTSP_CLIENT *rtsp_client_ptr, UINT status_code) { @@ -1423,12 +1327,6 @@ NX_PACKET_POOL *pool_ptr = rtsp_client_ptr -> nx_rtsp_client_server_ptr -> nx_rt /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_keepalive_update(NX_RTSP_CLIENT *rtsp_client_ptr) { @@ -1480,12 +1378,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_keepalive_update(NX_RTSP_CLIENT *rtsp_client_ptr) { @@ -1530,12 +1422,6 @@ UINT _nx_rtsp_server_keepalive_update(NX_RTSP_CLIENT *rtsp_client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_describe_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length)) @@ -1588,12 +1474,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_describe_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length)) @@ -1636,12 +1516,6 @@ UINT _nx_rtsp_server_describe_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_setup_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, NX_RTSP_TRANSPORT *transport_ptr)) @@ -1694,12 +1568,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_setup_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, NX_RTSP_TRANSPORT *transport_ptr)) @@ -1742,12 +1610,6 @@ UINT _nx_rtsp_server_setup_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_play_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, UCHAR *range_ptr, UINT range_length)) @@ -1800,12 +1662,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_play_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, UCHAR *range_ptr, UINT range_length)) @@ -1848,12 +1704,6 @@ UINT _nx_rtsp_server_play_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_teardown_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length)) @@ -1906,12 +1756,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_teardown_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length)) @@ -1954,12 +1798,6 @@ UINT _nx_rtsp_server_teardown_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_pause_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, UCHAR *range_ptr, UINT range_length)) @@ -2012,12 +1850,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_pause_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, UCHAR *range_ptr, UINT range_length)) @@ -2062,12 +1894,6 @@ UINT _nx_rtsp_server_pause_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_rtsp_server_set_parameter_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, UCHAR *parameter_ptr, ULONG parameter_length)) @@ -2121,12 +1947,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_rtsp_server_set_parameter_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, UINT (*callback)(NX_RTSP_CLIENT *rtsp_client_ptr, UCHAR *uri, UINT uri_length, UCHAR *parameter_ptr, ULONG parameter_length)) @@ -2172,12 +1992,6 @@ UINT _nx_rtsp_server_set_parameter_callback_set(NX_RTSP_SERVER *rtsp_server_ptr, /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_thread_entry(ULONG rtsp_server_address) { @@ -2275,12 +2089,6 @@ ULONG events; /* */ /* _nx_rtsp_server_request_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_request_receive(NX_RTSP_SERVER *rtsp_server_ptr, NX_RTSP_CLIENT *rtsp_client_ptr) { @@ -2534,12 +2342,6 @@ UINT status = NX_SUCCESS; /* */ /* _nx_rtsp_server_request_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_request_parse(NX_RTSP_CLIENT *rtsp_client_ptr, NX_RTSP_CLIENT_REQUEST *rtsp_client_request_ptr) { @@ -2641,12 +2443,6 @@ NX_PACKET *rtsp_client_request_packet = rtsp_client_ptr -> nx_rtsp_client_reques /* */ /* _nx_rtsp_server_request_parse */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_request_line_parse(NX_RTSP_CLIENT_REQUEST *rtsp_client_request_ptr, UCHAR **request_buffer, UCHAR *request_buffer_end) { @@ -2859,12 +2655,6 @@ UINT temp_length = 0; /* */ /* _nx_rtsp_server_request_parse */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_request_header_parse(NX_RTSP_CLIENT *rtsp_client_ptr, NX_RTSP_CLIENT_REQUEST *rtsp_client_request_ptr, UCHAR **request_buffer, UCHAR *request_buffer_end) { @@ -3182,12 +2972,6 @@ NXD_ADDRESS *receiver_ip_address; /* _nx_rtsp_server_request_receive */ /* _nx_rtsp_server_strstr */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_memicmp(UCHAR *src, ULONG src_length, UCHAR *dest, ULONG dest_length) { @@ -3257,12 +3041,6 @@ UCHAR ch; /* */ /* _nx_rtsp_server_request_header_parse */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UCHAR *_nx_rtsp_server_strstr(UCHAR *src, ULONG src_length, UCHAR *dest, ULONG dest_length) { @@ -3328,12 +3106,6 @@ UINT index = 0; /* */ /* _nx_rtsp_server_request_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_response_create(NX_RTSP_SERVER *rtsp_server_ptr, NX_RTSP_CLIENT *rtsp_client_ptr, NX_RTSP_CLIENT_REQUEST *rtsp_client_request_ptr) { @@ -3429,12 +3201,6 @@ UINT temp_length; /* */ /* _nx_rtsp_server_response_send */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_ipv6_address_to_string(ULONG *ipv6_addr, CHAR *buffer, UINT buffer_length, UINT *size) { @@ -3540,12 +3306,6 @@ CHAR *cur_pos = buffer; /* */ /* _nx_rtsp_server_request_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static UINT _nx_rtsp_server_response_send(NX_RTSP_SERVER *rtsp_server_ptr, NX_RTSP_CLIENT *rtsp_client_ptr, NX_RTSP_CLIENT_REQUEST *rtsp_client_request_ptr) { @@ -3860,12 +3620,6 @@ NXD_ADDRESS *source_ip_address; /* */ /* _nx_rtsp_server_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_request_process(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -4316,12 +4070,6 @@ NX_RTSP_SERVER_METHOD_CALLBACKS method_callbacks = rtsp_server_ptr -> nx_rtsp_se /* */ /* _nx_rtsp_server_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_connect_process(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -4439,12 +4187,6 @@ NX_RTSP_CLIENT *client_ptr; /* */ /* _nx_rtsp_server_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_disconnect_process(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -4504,12 +4246,6 @@ NX_RTSP_CLIENT *rtsp_client_ptr; /* */ /* _nx_rtsp_server_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_timeout_process(NX_RTSP_SERVER *rtsp_server_ptr) { @@ -4581,12 +4317,6 @@ NX_RTSP_CLIENT *rtsp_client_ptr; /* */ /* NetX NetX receive packet callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_request_present(NX_TCP_SOCKET *request_socket_ptr) { @@ -4634,12 +4364,6 @@ NX_RTSP_SERVER *server_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_connect_present(NX_TCP_SOCKET *request_socket_ptr, UINT port) { @@ -4687,12 +4411,6 @@ NX_RTSP_SERVER *server_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_disconnect_present(NX_TCP_SOCKET *request_socket_ptr) { @@ -4738,12 +4456,6 @@ NX_RTSP_SERVER *server_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_timeout(ULONG rtsp_server_address) { @@ -4790,12 +4502,6 @@ NX_RTSP_SERVER *rtsp_server_ptr = (NX_RTSP_SERVER *)rtsp_server_address; /* _nx_rtsp_server_disconnect_process */ /* _nx_rtsp_server_timeout_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ static VOID _nx_rtsp_server_disconnect(NX_RTSP_SERVER *rtsp_server_ptr, NX_RTSP_CLIENT *rtsp_client_ptr) { diff --git a/addons/rtsp/nx_rtsp_server.h b/addons/rtsp/nx_rtsp_server.h index 7054296b..a51b2b34 100644 --- a/addons/rtsp/nx_rtsp_server.h +++ b/addons/rtsp/nx_rtsp_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file defines the NetX RTSP Server component, including all */ /* data types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Wenhui Xie Initial Version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NX_RTSP_SERVER_H diff --git a/addons/smtp/nxd_smtp_client.c b/addons/smtp/nxd_smtp_client.c index 5c434b03..dbadbac7 100644 --- a/addons/smtp/nxd_smtp_client.c +++ b/addons/smtp/nxd_smtp_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -157,14 +157,6 @@ static NX_SMTP_CLIENT_STATES protocol_states[] = /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_smtp_client_create(NX_SMTP_CLIENT *client_ptr, NX_IP *ip_ptr, NX_PACKET_POOL *client_packet_pool_ptr, CHAR *username, CHAR *password, CHAR *from_address, @@ -258,15 +250,6 @@ UINT status; /* memcpy Copy data to area of memory */ /* nx_tcp_socket_create Create a NetX TCP socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_smtp_client_create(NX_SMTP_CLIENT *client_ptr, NX_IP *ip_ptr, NX_PACKET_POOL *client_packet_pool_ptr, CHAR *username, CHAR *password, CHAR *from_address, @@ -402,14 +385,6 @@ NX_SMTP_CLIENT_MAIL *mail_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_smtp_client_delete(NX_SMTP_CLIENT *client_ptr) { @@ -465,14 +440,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_client_delete(NX_SMTP_CLIENT *client_ptr) { @@ -544,14 +511,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_smtp_mail_send(NX_SMTP_CLIENT *client_ptr, CHAR *recipient_address, UINT priority, CHAR *subject, CHAR *mail_body, UINT mail_body_length) @@ -631,14 +590,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_mail_send(NX_SMTP_CLIENT *client_ptr, CHAR *recipient_address, @@ -743,14 +694,6 @@ NX_SMTP_CLIENT_MAIL *mail_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_smtp_client_process(NX_SMTP_CLIENT *client_ptr) { @@ -825,7 +768,7 @@ UINT close_connection = NX_FALSE; if (status != NX_SUCCESS) { - /* This is likely an internal error and we need to break off the connection, reset the Client state + /* This is likely an internal error and we need to break off the connection, reset the Client state to an idle state. */ /* Set the status to close the connection down. */ @@ -836,7 +779,7 @@ UINT close_connection = NX_FALSE; /* Reset server reply to null. */ client_ptr -> nx_smtp_client_reply_code_status = 0; - /* Wait for a response unless we are closing the connection, or have + /* Wait for a response unless we are closing the connection, or have encountered an internal error (packet allocation error for example). */ if (close_connection == NX_FALSE) { @@ -848,7 +791,7 @@ UINT close_connection = NX_FALSE; if (status != NX_SUCCESS) { - /* This is an internal error or invalid server reply of some kind. Just shut down the + /* This is an internal error or invalid server reply of some kind. Just shut down the connection, notify the host application and set the Client to idle. */ /* Set the status to close the connection down. */ @@ -872,11 +815,11 @@ UINT close_connection = NX_FALSE; UINT timeout = 0; /* We do. Depending on the reason for closing the connection, set the timeout. If we experienced - an internal error, e.g. packet allocation error, we probably won't be able to send - a fin or rst packet anyway, so set the timeout to zero and close down the connection. + an internal error, e.g. packet allocation error, we probably won't be able to send + a fin or rst packet anyway, so set the timeout to zero and close down the connection. RFC 2821 Section 3.9: if client must abort processing due to internal conditions or socket reset, - it should handle as error code 451 from the server which is to abort processing immediately. + it should handle as error code 451 from the server which is to abort processing immediately. */ if (status != NX_SUCCESS) { @@ -948,14 +891,6 @@ UINT close_connection = NX_FALSE; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_greeting(NX_SMTP_CLIENT *client_ptr) { @@ -999,14 +934,6 @@ UINT _nx_smtp_cmd_greeting(NX_SMTP_CLIENT *client_ptr) /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_idle(NX_SMTP_CLIENT *client_ptr) { @@ -1050,14 +977,6 @@ UINT _nx_smtp_cmd_idle(NX_SMTP_CLIENT *client_ptr) /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_idle(NX_SMTP_CLIENT *client_ptr) { @@ -1102,14 +1021,6 @@ UINT _nx_smtp_rsp_idle(NX_SMTP_CLIENT *client_ptr) /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_greeting(NX_SMTP_CLIENT *client_ptr) { @@ -1190,15 +1101,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_helo(NX_SMTP_CLIENT *client_ptr) { @@ -1287,14 +1189,6 @@ UINT domain_length; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_helo(NX_SMTP_CLIENT *client_ptr) { @@ -1378,15 +1272,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_ehlo(NX_SMTP_CLIENT *client_ptr) { @@ -1476,14 +1361,6 @@ UINT domain_length; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_ehlo(NX_SMTP_CLIENT *client_ptr) { @@ -1574,14 +1451,6 @@ UINT status; /* _nx_smtp_rsp_ehlo Session server HELO reply handler */ /* _nx_smtp_rsp_helo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_hello_command(NX_SMTP_CLIENT* client_ptr) { @@ -1656,15 +1525,6 @@ UINT first_digit_server_reply; /* */ /* _nx_smtp_client_process Runs the SMTP session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_auth(NX_SMTP_CLIENT *client_ptr) { @@ -1780,17 +1640,6 @@ UINT index; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_auth(NX_SMTP_CLIENT *client_ptr) { @@ -1862,7 +1711,7 @@ UINT auth_length; if (client_ptr -> nx_smtp_client_reply_code_status != NX_SMTP_CODE_AUTHENTICATION_TYPE_ACCEPTED) { - /* It did not. Or we may be out of synch with the SMTP Server, if we get a + /* It did not. Or we may be out of synch with the SMTP Server, if we get a 354 message for example. Abort the mail session. */ client_ptr -> nx_smtp_client_rsp_state = NX_SMTP_CLIENT_STATE_QUIT; @@ -1987,20 +1836,6 @@ UINT auth_length; /* */ /* _nx_smtp_client_process Runs the SMTP session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_auth_challenge(NX_SMTP_CLIENT *client_ptr) { @@ -2141,14 +1976,6 @@ UINT password_length; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_auth_challenge(NX_SMTP_CLIENT *client_ptr) { @@ -2197,15 +2024,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_mail(NX_SMTP_CLIENT *client_ptr) { @@ -2306,14 +2124,6 @@ NX_SMTP_CLIENT_MAIL *mail_ptr = &client_ptr -> nx_smtp_client_mail; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_mail(NX_SMTP_CLIENT *client_ptr) { @@ -2391,15 +2201,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_rcpt(NX_SMTP_CLIENT *client_ptr) { @@ -2491,14 +2292,6 @@ NX_SMTP_CLIENT_MAIL *mail_ptr; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_rcpt(NX_SMTP_CLIENT *client_ptr) { @@ -2574,15 +2367,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_data(NX_SMTP_CLIENT *client_ptr) { @@ -2649,14 +2433,6 @@ UINT index; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_data(NX_SMTP_CLIENT *client_ptr) { @@ -2733,14 +2509,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_message(NX_SMTP_CLIENT *client_ptr) { @@ -2883,14 +2651,6 @@ NX_SMTP_CLIENT_MAIL *mail_ptr; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_message(NX_SMTP_CLIENT *client_ptr) { @@ -2967,15 +2727,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_quit(NX_SMTP_CLIENT *client_ptr) { @@ -3043,14 +2794,6 @@ UINT index; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_quit(NX_SMTP_CLIENT *client_ptr) { @@ -3114,15 +2857,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_rset(NX_SMTP_CLIENT *client_ptr) { @@ -3195,14 +2929,6 @@ UINT index; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_rset(NX_SMTP_CLIENT *client_ptr) { @@ -3233,7 +2959,7 @@ UINT status; else { - /* Yes, session accepted the RSET command with the 250 code. + /* Yes, session accepted the RSET command with the 250 code. Reset session state back to MAIL. */ client_ptr -> nx_smtp_client_rsp_state = NX_SMTP_CLIENT_STATE_MAIL; @@ -3276,15 +3002,6 @@ UINT status; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_cmd_noop(NX_SMTP_CLIENT *client_ptr) { @@ -3354,14 +3071,6 @@ UINT index; /* */ /* _nx_smtp_client_process Runs the SMTP state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_rsp_noop(NX_SMTP_CLIENT *client_ptr) { @@ -3440,17 +3149,6 @@ UINT first_digit_server_reply; /* Session server reply handlers Handle server replies to SMTP */ /* commands in the session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* avoided invalid release, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_smtp_utility_read_server_code(NX_SMTP_CLIENT *client_ptr, ULONG timeout, UINT receive_all_lines) { @@ -3466,8 +3164,8 @@ UINT buffer_length; /* Initialize argument to NULL. */ memset(server_code, 0, NX_SMTP_SERVER_REPLY_CODE_SIZE + 1); - /* Process all packets received as part of server reply. A server response may - have several 'lines' in it e.g. 250-EHLO\r\n250-AUTH LOGIN\r\n250 HELP, + /* Process all packets received as part of server reply. A server response may + have several 'lines' in it e.g. 250-EHLO\r\n250-AUTH LOGIN\r\n250 HELP, and this may be spread over multiple packets. */ /* Wait to receive the next packet. */ @@ -3582,14 +3280,6 @@ UINT buffer_length; /* Session server reply handlers Handle server reply so SMTP command */ /* Session SMTP command services Send SMTP commands to server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_utility_send_to_server(NX_SMTP_CLIENT *client_ptr, CHAR *buffer_ptr, UINT buffer_length, ULONG timeout) { @@ -3708,14 +3398,6 @@ UINT packet_type; /* Session server reply handlers Handle server reply so SMTP command */ /* Session SMTP command services Send SMTP commands to server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_utility_send_header_to_server(NX_SMTP_CLIENT *client_ptr, ULONG timeout) { @@ -3866,18 +3548,6 @@ UINT subject_length; /* */ /* _nx_smtp_rsp_auth AUTH server reply handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_smtp_utility_authentication_challenge(NX_SMTP_CLIENT *client_ptr, UCHAR *server_challenge, UINT length) { @@ -4002,17 +3672,6 @@ UINT decoded_server_prompt_size; /* */ /* _nx_smtp_rsp_ehlo EHLO server reply handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved boundary check, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ VOID _nx_smtp_utility_parse_server_services(NX_SMTP_CLIENT *client_ptr) { @@ -4239,17 +3898,6 @@ UINT found = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved boundary check, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_smtp_parse_response(NX_SMTP_CLIENT *client_ptr, UCHAR *buffer, UINT argument_index, UINT buffer_length, UCHAR *argument, @@ -4273,12 +3921,12 @@ UINT is_last_code; work_ptr = argument; - /* Is this the first word? + /* Is this the first word? The first word is the reply code, not an SMTP command parameter */ if (argument_index == 1) { - /* Yes, search each character up to the end of the buffer for + /* Yes, search each character up to the end of the buffer for the first separator. */ while (i < buffer_length) { @@ -4323,7 +3971,7 @@ UINT is_last_code; /* No, we're not parsing the first argument. This is a special case for parsing the server authentication challenge, not just the reply code. */ - /* Mark the start of the argument at the separator after + /* Mark the start of the argument at the separator after the end of the previous argument. */ while ((j < argument_index) && (i < buffer_length)) { @@ -4342,7 +3990,7 @@ UINT is_last_code; if (crlf_are_word_breaks == NX_FALSE) { - /* No, this is the end of the search buffer. + /* No, this is the end of the search buffer. Argument not parsed from buffer, return error. */ return NX_SMTP_INVALID_SERVER_REPLY; } @@ -4355,7 +4003,7 @@ UINT is_last_code; else if ((*buffer == ' ') || ((*buffer == '-') && (j == 0))) { - /* Yes; these are counted as separators (note that dashes found in arguments + /* Yes; these are counted as separators (note that dashes found in arguments after the first argument are NOT considered separators. */ j++; } @@ -4455,21 +4103,13 @@ UINT is_last_code; /* */ /* _nx_smtp_parse_response Parse (any) code in server message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_smtp_parse_250_response(UCHAR *buffer_ptr, UINT buffer_length, UINT *is_last_code) { *is_last_code = NX_FALSE; - /* Are there more 250 codes in this buffer? Advance the buffer + /* Are there more 250 codes in this buffer? Advance the buffer pointer and search for a 250 followed by a space. */ while (buffer_length > 3) @@ -4530,14 +4170,6 @@ UINT _nx_smtp_parse_250_response(UCHAR *buffer_ptr, UINT buffer_length, UINT *is /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_smtp_find_crlf(UCHAR *buffer, UINT length, UCHAR **CRLF, UINT in_reverse) { diff --git a/addons/smtp/nxd_smtp_client.h b/addons/smtp/nxd_smtp_client.h index da53aa7b..bf7ce461 100644 --- a/addons/smtp/nxd_smtp_client.h +++ b/addons/smtp/nxd_smtp_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,17 +36,6 @@ /* It is assumed that tx_api.h, tx_port.h, nx_api.h, and nx_port.h, */ /* have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_SMTP_CLIENT_H #define NXD_SMTP_CLIENT_H @@ -131,7 +120,7 @@ extern "C" { -/* Define size of the buffer to extract the server challenge for authentication. +/* Define size of the buffer to extract the server challenge for authentication. There is no specific size here so 200 bytes is sufficient to cover all digest string handling. */ #ifndef NX_SMTP_SERVER_CHALLENGE_MAX_STRING #define NX_SMTP_SERVER_CHALLENGE_MAX_STRING 200 @@ -139,8 +128,8 @@ extern "C" { /* Define size for handling data for authentication (LOGIN, PLAIN): - PLAIN requires rooms for authorization-id\0authentication-id\0passwd'. - The two bytes are for the NULL byte between the first two auth id and + PLAIN requires rooms for authorization-id\0authentication-id\0passwd'. + The two bytes are for the NULL byte between the first two auth id and between auth id and password. */ #define NX_SMTP_CLIENT_AUTH_CHALLENGE_SIZE (NX_SMTP_CLIENT_MAX_USERNAME + NX_SMTP_CLIENT_MAX_USERNAME + NX_SMTP_CLIENT_MAX_PASSWORD + 2) @@ -229,7 +218,7 @@ extern "C" { "\r\n" -/* Enumerated states of the protocol state machine. These MUST be in the +/* Enumerated states of the protocol state machine. These MUST be in the same order as the list of protocol states in NX_SMTP_CLIENT_STATES.*/ typedef enum NX_SMTP_CLIENT_STATE_ENUM @@ -364,7 +353,7 @@ typedef struct NX_SMTP_CLIENT_STATES_STRUCT #ifndef NX_SMTP_SOURCE_CODE -/* Define the system API mappings based on the error checking +/* Define the system API mappings based on the error checking selected by the user. */ /* Determine if error checking is desired. If so, map API functions diff --git a/addons/snmp/nx_des.c b/addons/snmp/nx_des.c index f5e48906..64831eef 100644 --- a/addons/snmp/nx_des.c +++ b/addons/snmp/nx_des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -27,7 +27,7 @@ /* Define macros for the DES transform function. */ -/* Define the eight S-box data structures used in the permutation. Keep them static, since there is no +/* Define the eight S-box data structures used in the permutation. Keep them static, since there is no reason to have these symbols referenced outside this file. */ static ULONG sb1[64] = @@ -191,14 +191,6 @@ static ULONG right_half_bit_swap[16] = /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_des_key_set(NX_DES *context, UCHAR key[8]) { @@ -342,14 +334,6 @@ UINT round; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_des_encrypt(NX_DES *context, UCHAR source[8], UCHAR destination[8]) { @@ -400,14 +384,6 @@ UINT _nx_des_encrypt(NX_DES *context, UCHAR source[8], UCHAR destination[8]) /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_des_decrypt(NX_DES *context, UCHAR source[8], UCHAR destination[8]) { @@ -459,14 +435,6 @@ UINT _nx_des_decrypt(NX_DES *context, UCHAR source[8], UCHAR destination[8]) /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_des_process_block(UCHAR source[8], UCHAR destination[8], ULONG keys[32]) { diff --git a/addons/snmp/nx_des.h b/addons/snmp/nx_des.h index b3d94151..ace439b6 100644 --- a/addons/snmp/nx_des.h +++ b/addons/snmp/nx_des.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -43,14 +43,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_DES_H diff --git a/addons/snmp/nx_sha1.c b/addons/snmp/nx_sha1.c index 6758758e..5692852d 100644 --- a/addons/snmp/nx_sha1.c +++ b/addons/snmp/nx_sha1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,7 +68,7 @@ #define LEFT_SHIFT_CIRCULAR(x, n) (((x) << (n)) | ((x) >> (32-(n)))) -/* Define the padding array. This is used to pad the message such that its length is +/* Define the padding array. This is used to pad the message such that its length is 64 bits shy of being a multiple of 512 bits long. */ static UCHAR _nx_sha1_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; @@ -105,14 +105,6 @@ static UCHAR _nx_sha1_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sha1_initialize(NX_SHA1 *context) { @@ -171,15 +163,6 @@ UINT _nx_sha1_initialize(NX_SHA1 *context) /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sha1_update(NX_SHA1 *context, UCHAR *input_ptr, UINT input_length) { @@ -196,7 +179,7 @@ ULONG needed_fill_bytes; if (input_length == 0) return(NX_SUCCESS); - /* Calculate the current byte count mod 64. Note the reason for the + /* Calculate the current byte count mod 64. Note the reason for the shift by 3 is to account for the 8 bits per byte. */ current_bytes = (context -> nx_sha1_bit_count[0] >> 3) & 0x3F; @@ -223,7 +206,7 @@ ULONG needed_fill_bytes; /* Yes, we can complete the buffer and transform it. */ - /* Copy the appropriate portion of the input buffer into the internal + /* Copy the appropriate portion of the input buffer into the internal buffer of the context. */ memcpy((void *) &(context -> nx_sha1_buffer[current_bytes]), (void *) input_ptr, needed_fill_bytes); /* Use case of memcpy is verified. */ @@ -298,14 +281,6 @@ ULONG needed_fill_bytes; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sha1_digest_calculate(NX_SHA1 *context, UCHAR digest[20]) { @@ -396,14 +371,6 @@ ULONG padding_bytes; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sha1_process_buffer(NX_SHA1 *context, UCHAR buffer[64]) { @@ -417,7 +384,7 @@ ULONG a, b, c, d, e; /* Setup pointers to the word array. */ w = context -> nx_sha1_word_array; - /* Initialize the first 16 words of the word array, taking care of the + /* Initialize the first 16 words of the word array, taking care of the endian issues at the same time. */ for (t = 0; t < 16; t++) { diff --git a/addons/snmp/nx_sha1.h b/addons/snmp/nx_sha1.h index 56f7e0c7..9638ae73 100644 --- a/addons/snmp/nx_sha1.h +++ b/addons/snmp/nx_sha1.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SHA1_H diff --git a/addons/snmp/nxd_snmp.c b/addons/snmp/nxd_snmp.c index ac8fd4eb..f30cefbf 100644 --- a/addons/snmp/nxd_snmp.c +++ b/addons/snmp/nxd_snmp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,7 +38,7 @@ extern void COPY_NXD_ADDRESS(NXD_ADDRESS *copy_from, NXD_ADDRESS *copy_to); #endif -/* To enable debug output, define this option. +/* To enable debug output, define this option. #define NX_SNMPV3_PRINT_DEBUG_MESSAGE */ @@ -87,7 +87,7 @@ UCHAR *_nx_snmp_v3_trap_ids[] = { (UCHAR *) "1.3.6.1.6.3.1.1.5.1.0" /* (coldSt created. Note that this information isn't used for SNMP v1 and v2. Note the host application should use the nx_snmp_agent_context_engine_set() service to set its own IPv4 (or MAC address depending on format type) when creating the Engine ID. The engine size must match the total engine - data including the input context engine data as well. See documentation for more details. + data including the input context engine data as well. See documentation for more details. Note that this information isn't used for SNMP v1 and v2. */ @@ -108,7 +108,7 @@ CHAR _nx_snmp_default_initial_user_name[] = "initial"; #define NX_SNMP_DISCOVERY_RESPONSE_UNKNOWN_ENGINEID "1.3.6.1.6.3.15.1.1.4.0" #define NX_SNMP_DISCOVERY_RESPONSE_UNKNOWN_ENGINEID_NUM 4 -/* Define the maximum difference between local time (in seconds) and browser notion of +/* Define the maximum difference between local time (in seconds) and browser notion of local time recommended by RFC 3413. */ #define NX_SNMP_TIME_WINDOW 150 @@ -153,14 +153,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_authenticate_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -225,14 +217,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_authenticate_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -285,14 +269,6 @@ UINT _nx_snmp_agent_authenticate_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECU /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_auth_trap_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -357,14 +333,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_auth_trap_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -419,14 +387,6 @@ UINT _nx_snmp_agent_auth_trap_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECUR /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_community_get(NX_SNMP_AGENT *agent_ptr, UCHAR **community_string_ptr) { @@ -479,14 +439,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_community_get(NX_SNMP_AGENT *agent_ptr, UCHAR **community_string_ptr) { @@ -535,14 +487,6 @@ UINT _nx_snmp_agent_community_get(NX_SNMP_AGENT *agent_ptr, UCHAR **community_s /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_context_engine_set(NX_SNMP_AGENT *agent_ptr, UCHAR *context_engine, UINT context_engine_size) { @@ -600,14 +544,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_context_engine_set(NX_SNMP_AGENT *agent_ptr, UCHAR *context_engine, UINT context_engine_size) { @@ -680,14 +616,6 @@ UINT i; /* */ /* Initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_context_name_set(NX_SNMP_AGENT *agent_ptr, UCHAR *context_name, UINT context_name_size) { @@ -745,14 +673,6 @@ UINT status; /* */ /* Initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_context_name_set(NX_SNMP_AGENT *agent_ptr, UCHAR *context_name, UINT context_name_size) { @@ -818,14 +738,6 @@ UINT i; /* */ /* Initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_v3_context_boots_set(NX_SNMP_AGENT *agent_ptr, UINT boots) { @@ -878,14 +790,6 @@ UINT status; /* */ /* Initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_v3_context_boots_set(NX_SNMP_AGENT *agent_ptr, UINT boots) { @@ -941,14 +845,6 @@ UINT _nx_snmp_agent_v3_context_boots_set(NX_SNMP_AGENT *agent_ptr, UINT boots) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_create(NX_SNMP_AGENT *agent_ptr, CHAR *snmp_agent_name, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*snmp_agent_username_process)(struct NX_SNMP_AGENT_STRUCT *agent_ptr, UCHAR *username), @@ -1028,14 +924,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_create(NX_SNMP_AGENT *agent_ptr, CHAR *snmp_agent_name, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*snmp_agent_username_process)(struct NX_SNMP_AGENT_STRUCT *agent_ptr, UCHAR *username), @@ -1099,12 +987,12 @@ UINT i; /* Default the SNMP network interface to the primary interface. */ agent_ptr -> nx_snmp_agent_interface_index = 0; - /* Initialize the agent as configured for all versions. + /* Initialize the agent as configured for all versions. - Note that the #define options for disabling version support override dynamic version status. + Note that the #define options for disabling version support override dynamic version status. - For example if NX_SNMP_DISABLE_V2 is disabled, setting nx_snmp_agent_v2_enabled - to NX_TRUE has no effect. If NX_SNMP_DISABLE_V2 is not disabled, then + For example if NX_SNMP_DISABLE_V2 is disabled, setting nx_snmp_agent_v2_enabled + to NX_TRUE has no effect. If NX_SNMP_DISABLE_V2 is not disabled, then nx_snmp_agent_v2_enabled determines at run time if the SNMP is enabled for V2.*/ agent_ptr -> nx_snmp_agent_v1_enabled = NX_TRUE; @@ -1177,14 +1065,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_request_get_type_test(NX_SNMP_AGENT *agent_ptr, UINT *is_get_type) { @@ -1235,14 +1115,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_request_get_type_test(NX_SNMP_AGENT *agent_ptr, UINT *is_get_type) { @@ -1283,14 +1155,6 @@ UINT _nx_snmp_agent_request_get_type_test(NX_SNMP_AGENT *agent_ptr, UINT *is_ge /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_delete(NX_SNMP_AGENT *agent_ptr) { @@ -1343,14 +1207,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_delete(NX_SNMP_AGENT *agent_ptr) { @@ -1408,14 +1264,6 @@ UINT _nx_snmp_agent_delete(NX_SNMP_AGENT *agent_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_current_version_get(NX_SNMP_AGENT *agent_ptr, UINT *version) { @@ -1463,14 +1311,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_current_version_get(NX_SNMP_AGENT *agent_ptr, UINT *version) { @@ -1517,14 +1357,6 @@ UINT _nx_snmp_agent_current_version_get(NX_SNMP_AGENT *agent_ptr, UINT *version) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_version_set(NX_SNMP_AGENT *agent_ptr, UINT enabled_v1, UINT enable_v2, UINT enable_v3) { @@ -1585,14 +1417,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_version_set(NX_SNMP_AGENT *agent_ptr, UINT enabled_v1, UINT enable_v2, UINT enable_v3) { @@ -1639,17 +1463,6 @@ UINT _nx_snmp_agent_version_set(NX_SNMP_AGENT *agent_ptr, UINT enabled_v1, UINT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), */ -/* checked the interface index,*/ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_set_interface(NX_SNMP_AGENT *agent_ptr, UINT if_index) { @@ -1703,14 +1516,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_set_interface(NX_SNMP_AGENT *agent_ptr, UINT if_index) { @@ -1756,14 +1561,6 @@ UINT _nx_snmp_agent_set_interface(NX_SNMP_AGENT *agent_ptr, UINT if_index) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_md5_key_create(NX_SNMP_AGENT *agent_ptr, UCHAR *password, NX_SNMP_SECURITY_KEY *destination_key) { @@ -1820,14 +1617,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_md5_key_create(NX_SNMP_AGENT *agent_ptr, UCHAR *password, NX_SNMP_SECURITY_KEY *destination_key) { @@ -1904,14 +1693,6 @@ UINT password_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_md5_key_create_extended(NX_SNMP_AGENT *agent_ptr, UCHAR *password, UINT password_length, NX_SNMP_SECURITY_KEY *destination_key) { @@ -1970,15 +1751,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_md5_key_create_extended(NX_SNMP_AGENT *agent_ptr, UCHAR *password, UINT password_length, NX_SNMP_SECURITY_KEY *destination_key) { @@ -2020,7 +1792,7 @@ UINT temp_password_length; for (i = 0; i < 64; i++) { - /* Take the next octet of the password, wrapping + /* Take the next octet of the password, wrapping to the beginning of the password as necessary. */ *cp++ = password[password_index++ % password_length]; } @@ -2029,9 +1801,9 @@ UINT temp_password_length; } _nx_md5_digest_calculate(&MD, destination_key -> nx_snmp_security_key); /* tell MD5 we're done */ - /* Now localize the key with the engineID and pass - through MD5 to produce final key - May want to ensure that engineLength <= 32, + /* Now localize the key with the engineID and pass + through MD5 to produce final key + May want to ensure that engineLength <= 32, otherwise need to use a buffer larger than 64 */ if(agent_ptr -> nx_snmp_agent_v3_context_engine_size > 32) return(NX_SNMP_FAILED); @@ -2089,14 +1861,6 @@ UINT temp_password_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_privacy_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -2160,14 +1924,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_privacy_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -2222,14 +1978,6 @@ UINT _nx_snmp_agent_privacy_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_priv_trap_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -2294,14 +2042,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_priv_trap_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURITY_KEY *key) { @@ -2354,14 +2094,6 @@ UINT _nx_snmp_agent_priv_trap_key_use(NX_SNMP_AGENT *agent_ptr, NX_SNMP_SECURIT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_sha_key_create(NX_SNMP_AGENT *agent_ptr, UCHAR *password, NX_SNMP_SECURITY_KEY *destination_key) { @@ -2419,14 +2151,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_sha_key_create(NX_SNMP_AGENT *agent_ptr, UCHAR *password, NX_SNMP_SECURITY_KEY *destination_key) { @@ -2503,14 +2227,6 @@ UINT password_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_sha_key_create_extended(NX_SNMP_AGENT *agent_ptr, UCHAR *password, UINT password_length, NX_SNMP_SECURITY_KEY *destination_key) { @@ -2569,15 +2285,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_sha_key_create_extended(NX_SNMP_AGENT *agent_ptr, UCHAR *password, UINT password_length, NX_SNMP_SECURITY_KEY *destination_key) { @@ -2623,7 +2330,7 @@ UINT temp_password_length; for (i = 0; i < 64; i++) { - /* Take the next octet of the password, wrapping + /* Take the next octet of the password, wrapping to the beginning of the password as necessary. */ *cp++ = password[password_index++ % password_length]; } @@ -2632,8 +2339,8 @@ UINT temp_password_length; } _nx_sha1_digest_calculate(&SH, destination_key -> nx_snmp_security_key); /* tell SHA we're done */ - /* Now localize the key with the engineID and pass - through SHA to produce final key + /* Now localize the key with the engineID and pass + through SHA to produce final key May want to ensure that engineLength <= 32, otherwise need to use a buffer larger than 72. */ if(agent_ptr -> nx_snmp_agent_v3_context_engine_size > 32) @@ -2692,14 +2399,6 @@ UINT temp_password_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_public_string_test(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string, UINT *is_public) { @@ -2753,14 +2452,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_public_string_test(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string, UINT *is_public) { @@ -2834,14 +2525,6 @@ UINT string_length1, string_length2; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_private_string_test(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string, UINT *is_private) { @@ -2897,14 +2580,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_private_string_test(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string, UINT *is_private) { @@ -2974,14 +2649,6 @@ UINT string_length1, string_length2; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_private_string_set(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string) { @@ -3037,14 +2704,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_private_string_set(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string) { @@ -3105,14 +2764,6 @@ UINT length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_public_string_set(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string) { @@ -3165,14 +2816,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_public_string_set(NX_SNMP_AGENT *agent_ptr, UCHAR *community_string) { @@ -3231,14 +2874,6 @@ UINT length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_start(NX_SNMP_AGENT *agent_ptr) { @@ -3288,14 +2923,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_start(NX_SNMP_AGENT *agent_ptr) { @@ -3356,14 +2983,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_stop(NX_SNMP_AGENT *agent_ptr) { @@ -3413,14 +3032,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_stop(NX_SNMP_AGENT *agent_ptr) { @@ -3474,14 +3085,6 @@ UINT _nx_snmp_agent_stop(NX_SNMP_AGENT *agent_ptr) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_snmp_agent_thread_entry(ULONG snmp_agent_address) { @@ -3775,14 +3378,6 @@ NX_PACKET *new_packet_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_trap_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *community, UCHAR *enterprise, UINT trap_type, UINT trap_code, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -3868,14 +3463,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_trap_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *community, UCHAR *enterprise, @@ -3951,14 +3538,6 @@ NXD_ADDRESS ip_netxduo_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_snmp_agent_trap_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ip_address, UCHAR *community, UCHAR *enterprise, UINT trap_type, UINT trap_code, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -4036,17 +3615,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), */ -/* checked the interface index,*/ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxd_snmp_agent_trap_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ip_address, UCHAR *community, UCHAR *enterprise, UINT trap_type, UINT trap_code, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -4120,7 +3688,7 @@ UINT packet_type; update it later with the actual length of the trap. */ trap_sequence_ptr = trap_buffer_ptr; - /* First, write the sequence in the trap packet. A zero is written for now. This will be + /* First, write the sequence in the trap packet. A zero is written for now. This will be updated later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -4389,7 +3957,7 @@ UINT packet_type; /* Remember the start of the trap's variable list field. */ trap_variable_list_ptr = trap_buffer_ptr; - /* Set up the variable list. For now, the length will be zero. We + /* Set up the variable list. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -4448,7 +4016,7 @@ UINT packet_type; /* Remember the start of the variable. */ trap_variable_ptr = trap_buffer_ptr; - /* Setup the variable trap sequence. For now, the length will be zero. We + /* Setup the variable trap sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -4654,14 +4222,6 @@ UINT packet_type; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_trapv2_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *community, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -4738,14 +4298,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_trapv2_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *community, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -4814,14 +4366,6 @@ NXD_ADDRESS ip_nxduo_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_snmp_agent_trapv2_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ip_address, UCHAR *community, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -4898,14 +4442,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_snmp_agent_trapv2_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ip_address, UCHAR *community, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -4979,7 +4515,7 @@ UINT packet_type; update it later with the actual length of the trap. */ trap_sequence_ptr = trap_buffer_ptr; - /* First, write the sequence in the trap packet. A zero is written for now. This will be + /* First, write the sequence in the trap packet. A zero is written for now. This will be updated later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -5128,7 +4664,7 @@ UINT packet_type; /* Remember the start of the trap's variable list field. */ trap_variable_list_ptr = trap_buffer_ptr; - /* Setup the variable list. For now, the length will be zero. We + /* Setup the variable list. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -5158,7 +4694,7 @@ UINT packet_type; /* Remember the start of the variable. */ trap_variable_ptr = trap_buffer_ptr; - /* Setup the variable trap sequence. For now, the length will be zero. We + /* Setup the variable trap sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -5290,7 +4826,7 @@ UINT packet_type; if (trap_type <= TRAP_ID_MAX) { - /* Set up the variable trap sequence. For now, the length will be zero. We + /* Set up the variable trap sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -5422,7 +4958,7 @@ UINT packet_type; /* Remember the start of the variable. */ trap_variable_ptr = trap_buffer_ptr; - /* Setup the variable trap sequence. For now, the length will be zero. We + /* Setup the variable trap sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -5627,14 +5163,6 @@ UINT packet_type; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_trapv2_oid_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *community, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -5709,14 +5237,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_trapv2_oid_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *community, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -5784,14 +5304,6 @@ NXD_ADDRESS ipduo_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_snmp_agent_trapv2_oid_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ipduo_address, UCHAR *community, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -5871,14 +5383,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_snmp_agent_trapv2_oid_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ipduo_address, UCHAR *community, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -6556,14 +6060,6 @@ UINT packet_type = NX_UDP_PACKET; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_trapv3_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *username, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -6641,14 +6137,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_trapv3_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *username, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -6718,14 +6206,6 @@ NXD_ADDRESS ip_nxduo_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_snmp_agent_trapv3_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ip_address, UCHAR *username, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -6810,14 +6290,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_snmp_agent_trapv3_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ip_address, UCHAR *username, UINT trap_type, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -6905,7 +6377,7 @@ UINT username_length; update it later with the actual length of the response. */ trap_sequence_ptr = trap_buffer_ptr; - /* First, write the sequence in the trap packet. A zero is written for now. This will be + /* First, write the sequence in the trap packet. A zero is written for now. This will be updated later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -6957,7 +6429,7 @@ UINT username_length; NX_SNMPV3_DBG_PRINTF("Starting trap3 header header at 0x%x\n", trap_header_ptr); #endif - /* Write the sequence for the global header in the trap packet. A zero is written for now. + /* Write the sequence for the global header in the trap packet. A zero is written for now. This will be updated later. */ trap_length = _nx_snmp_utility_sequence_set_1byte(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -7102,7 +6574,7 @@ UINT username_length; /************************** Start the security parameters field. ************************/ - /* First set up the octet string field. For now just put in zeros... we will update when + /* First set up the octet string field. For now just put in zeros... we will update when the actual size is known. */ trap_buffer_ptr[0] = NX_SNMP_ANS1_OCTET_STRING; trap_buffer_ptr[1] = 0; @@ -7571,7 +7043,7 @@ UINT username_length; #ifdef NX_SNMPV3_PRINT_DEBUG_MESSAGE NX_SNMPV3_DBG_PRINTF("Starting trap_variable_list_ptr: 0x%x\n", trap_variable_list_ptr); #endif - /* Setup the variable list. For now, the length will be zero. We + /* Setup the variable list. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -7771,7 +7243,7 @@ UINT username_length; if (trap_type <= TRAP_ID_MAX) { - /* Setup the variable trap sequence. For now, the length will be zero. We + /* Setup the variable trap sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set_1byte(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -7911,7 +7383,7 @@ UINT username_length; /* Remember the start of the variable. */ trap_variable_ptr = trap_buffer_ptr; - /* Setup the variable trap sequence. For now, the length will be zero. We + /* Setup the variable trap sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ trap_length = _nx_snmp_utility_sequence_set_1byte(trap_buffer_ptr, 0, trap_packet_ptr -> nx_packet_data_end); @@ -8296,7 +7768,7 @@ UINT username_length; return(NX_SNMP_ERROR); } - /* At this point, key2 contains the computed digest of the message. This needs to be + /* At this point, key2 contains the computed digest of the message. This needs to be place in the outgoing message. */ /* Loop to setup the outgoing digest. */ @@ -8372,14 +7844,6 @@ UINT username_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_agent_trapv3_oid_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *username, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -8453,14 +7917,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_trapv3_oid_send(NX_SNMP_AGENT *agent_ptr, ULONG ip_address, UCHAR *username, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -8529,14 +7985,6 @@ NXD_ADDRESS ipduo_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_snmp_agent_trapv3_oid_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ipduo_address, UCHAR *username, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) { @@ -8621,14 +8069,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_snmp_agent_trapv3_oid_send(NX_SNMP_AGENT *agent_ptr, NXD_ADDRESS *ipduo_address, UCHAR *username, UCHAR *oid, ULONG elapsed_time, NX_SNMP_TRAP_OBJECT *object_list_ptr) @@ -10089,14 +9529,6 @@ UINT username_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_compare(UCHAR *requested_object, UCHAR *actual_object) { @@ -10149,14 +9581,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_compare(UCHAR *requested_object, UCHAR *actual_object) { @@ -10216,14 +9640,6 @@ UINT actual_object_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_compare_extended(UCHAR *requested_object, UINT requested_object_length, UCHAR *actual_object, UINT actual_object_length) { @@ -10274,14 +9690,6 @@ UINT _nxe_snmp_object_compare_extended(UCHAR *requested_object, UINT requested_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_compare_extended(UCHAR *requested_object, UINT requested_object_length, UCHAR *actual_object, UINT actual_object_length) { @@ -10413,14 +9821,6 @@ UINT temp_actual_object_lenght; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_copy(UCHAR *source_object_name, UCHAR *destination_object_name) { @@ -10475,14 +9875,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_copy(UCHAR *source_object_name, UCHAR *destination_object_name) { @@ -10551,14 +9943,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_copy_extended(UCHAR *source_object_name, UINT source_object_name_length, UCHAR *destination_object_name_buffer, UINT destination_object_name_buffer_size) @@ -10612,15 +9996,6 @@ UINT _nxe_snmp_object_copy_extended(UCHAR *source_object_name, UINT source_obje /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_copy_extended(UCHAR *source_object_name, UINT source_object_name_length, UCHAR *destination_object_name_buffer, UINT destination_object_name_buffer_size) @@ -10682,14 +10057,6 @@ UINT temp_object_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_counter_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -10741,14 +10108,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_counter_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -10803,14 +10162,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_counter_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -10862,14 +10213,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_counter_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -10929,14 +10272,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_counter64_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -10988,14 +10323,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_counter64_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11051,14 +10378,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_counter64_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11110,14 +10429,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_counter64_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11210,14 +10521,6 @@ LONG temp = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_end_of_mib(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11269,14 +10572,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_end_of_mib(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11325,14 +10620,6 @@ UINT _nx_snmp_object_end_of_mib(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_gauge_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11384,14 +10671,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_gauge_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11446,14 +10725,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_gauge_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11505,14 +10776,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_gauge_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11572,14 +10835,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_id_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11631,15 +10886,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_id_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11711,14 +10957,6 @@ CHAR *copy_source = (CHAR*)source_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_id_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11770,14 +11008,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_id_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11831,14 +11061,6 @@ UINT _nx_snmp_object_id_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_integer_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11890,14 +11112,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_integer_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -11952,14 +11166,6 @@ LONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_integer_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12011,14 +11217,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_integer_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12078,14 +11276,6 @@ LONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_ipv6_address_set(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12140,17 +11330,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), */ -/* optimized boundary check, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_ipv6_address_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12220,14 +11399,6 @@ UCHAR *string_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_ipv6_address_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12281,17 +11452,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), */ -/* optimized boundary check, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_ipv6_address_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12360,14 +11520,6 @@ UCHAR *source_string; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_ip_address_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12419,14 +11571,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_ip_address_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12482,14 +11626,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_ip_address_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12542,14 +11678,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_ip_address_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12609,14 +11737,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_no_instance(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12668,14 +11788,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_no_instance(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12724,14 +11836,6 @@ UINT _nx_snmp_object_no_instance(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *objec /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_not_found(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12783,14 +11887,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_not_found(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -12840,14 +11936,6 @@ UINT _nx_snmp_object_not_found(VOID *not_used_ptr, NX_SNMP_OBJECT_DATA *object_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_octet_string_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data, UINT length) { @@ -12904,14 +11992,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_octet_string_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data, UINT length) { @@ -12941,7 +12021,7 @@ UCHAR *source_string; object_data -> nx_snmp_object_octet_string[i] = source_string[i]; } - /* The length input is deprecated. The caller sets the length from the MIB table + /* The length input is deprecated. The caller sets the length from the MIB table entry to the object_data instance before calling this function. */ /* Return success. */ @@ -12983,14 +12063,6 @@ UCHAR *source_string; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_octet_string_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13044,17 +12116,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), */ -/* optimized boundary check, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_octet_string_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13125,14 +12186,6 @@ UCHAR *string_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_string_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13184,14 +12237,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_string_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13270,14 +12315,6 @@ UCHAR *source_string; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_string_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13330,17 +12367,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), */ -/* optimized boundary check, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_string_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13415,14 +12441,6 @@ UCHAR *string_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_timetics_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13474,14 +12492,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_timetics_get(VOID *source_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13537,14 +12547,6 @@ ULONG *value_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_snmp_object_timetics_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13597,14 +12599,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_object_timetics_set(VOID *destination_ptr, NX_SNMP_OBJECT_DATA *object_data) { @@ -13666,14 +12660,6 @@ ULONG *value_ptr; /* */ /* _nx_snmp_version_1_and_2_process SNMP v1, v2 request processing*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_community_get(UCHAR *buffer_ptr, UCHAR *community_string, INT buffer_length) { @@ -13836,14 +12822,6 @@ UINT total; /* _nx_snmp_agent_trapv2_send Send SNMP v2 trap */ /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_community_set(UCHAR *buffer_ptr, UCHAR *community_string, UCHAR *buffer_end) { @@ -13951,14 +12929,6 @@ UINT length; /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_error_info_get(UCHAR *buffer_ptr, UINT *error_code, UINT *error_index, INT buffer_length) { @@ -14045,14 +13015,6 @@ UINT _nx_snmp_utility_error_info_get(UCHAR *buffer_ptr, UINT *error_code, UINT /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_error_info_set(UCHAR *buffer_ptr, UINT error_code, UINT error_index, UCHAR *buffer_end) { @@ -14120,22 +13082,6 @@ UINT _nx_snmp_utility_error_info_set(UCHAR *buffer_ptr, UINT error_code, UINT e /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), */ -/* initialized the sequence */ -/* byte value, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_object_id_get(UCHAR *buffer_ptr, UCHAR *object_string, INT buffer_length) { @@ -14327,7 +13273,7 @@ UINT string_length; /* Increment the length. */ length++; - /* Determine if the next byte has the additional bytes + /* Determine if the next byte has the additional bytes bit set (BIT 7). */ if ((byte & NX_SNMP_ANS1_MULTI_BYTES) == 0) { @@ -14338,7 +13284,7 @@ UINT string_length; else { - /* Otherwise, we have a more complicated value that we must loop through + /* Otherwise, we have a more complicated value that we must loop through to calculate. */ /* Loop to calculate how many bytes there are representing the value. */ @@ -14504,17 +13450,6 @@ UINT string_length; /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_object_id_set(UCHAR *buffer_ptr, UCHAR *object_string, UCHAR *buffer_end) { @@ -14686,7 +13621,7 @@ UINT object_string_length; /* Increment the length. */ length++; - /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the + /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the next 128 divisor. */ encoding_started = NX_TRUE; } @@ -14718,7 +13653,7 @@ UINT object_string_length; /* Increment the length. */ length++; - /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the + /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the next 128 divisor. */ encoding_started = NX_TRUE; } @@ -14751,7 +13686,7 @@ UINT object_string_length; length++; - /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the + /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the next 128 divisor. */ encoding_started = NX_TRUE; } @@ -14847,14 +13782,6 @@ UINT object_string_length; /* */ /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_object_id_set_1byte(UCHAR *buffer_ptr, UCHAR *object_string, UCHAR *buffer_end) { @@ -15018,7 +13945,7 @@ UCHAR encoding_started; /* Increment the length. */ length++; - /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the + /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the next 128 divisor. */ encoding_started = NX_TRUE; } @@ -15050,7 +13977,7 @@ UCHAR encoding_started; /* Increment the length. */ length++; - /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the + /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the next 128 divisor. */ encoding_started = NX_TRUE; } @@ -15083,7 +14010,7 @@ UCHAR encoding_started; length++; - /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the + /* Set the encoding started flag so that we put 0 bytes below in cases where value is less than the next 128 divisor. */ encoding_started = NX_TRUE; } @@ -15174,17 +14101,6 @@ UCHAR encoding_started; /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_object_data_get(UCHAR *buffer_ptr, NX_SNMP_OBJECT_DATA *object_data, INT buffer_length) { @@ -15421,14 +14337,6 @@ UINT status; /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_object_data_set(UCHAR *buffer_ptr, NX_SNMP_OBJECT_DATA *object_data, UCHAR *buffer_end) { @@ -15788,14 +14696,6 @@ UINT data_lsw; /* */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_octet_get(UCHAR *buffer_ptr, UCHAR *octet_string, UINT max_octet_length, UINT *octet_length, INT buffer_length) { @@ -15957,14 +14857,6 @@ UINT total; /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_octet_set(UCHAR *buffer_ptr, UCHAR *octet_string, UINT octet_length, UCHAR *buffer_end) { @@ -16072,14 +14964,6 @@ UINT header_size; /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_sequence_get(UCHAR *buffer_ptr, UINT *sequence_value, INT buffer_length) { @@ -16117,7 +15001,7 @@ UCHAR byte; /* Initialize the length of the sequence field to 2. */ length = 2; - /* Determine if the next byte has the additional bytes + /* Determine if the next byte has the additional bytes bit set (BIT 7). */ if ((byte & NX_SNMP_ANS1_MULTI_BYTES) == 0) { @@ -16129,7 +15013,7 @@ UCHAR byte; return(length); } - /* Otherwise, we have a more complicated sequence length that we must loop through + /* Otherwise, we have a more complicated sequence length that we must loop through to calculate the actual sequence length. */ /* Pickup the number of bytes required to represent the sequence length. */ @@ -16205,14 +15089,6 @@ UCHAR byte; /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_sequence_set(UCHAR *buffer_ptr, UINT sequence_value, UCHAR *buffer_end) { @@ -16274,14 +15150,6 @@ UINT _nx_snmp_utility_sequence_set(UCHAR *buffer_ptr, UINT sequence_value, UCHA /* */ /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_sequence_set_1byte(UCHAR *buffer_ptr, UINT sequence_value, UCHAR *buffer_end) @@ -16338,14 +15206,6 @@ UINT _nx_snmp_utility_sequence_set_1byte(UCHAR *buffer_ptr, UINT sequence_value /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_request_id_get(UCHAR *buffer_ptr, ULONG *request_id, INT buffer_length) { @@ -16453,14 +15313,6 @@ UCHAR byte; /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_request_id_set(UCHAR *buffer_ptr, ULONG request_id, UCHAR *buffer_end) { @@ -16590,14 +15442,6 @@ UINT length; /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_request_type_get(UCHAR *buffer_ptr, UINT *request_type, UINT *request_length, INT buffer_length) { @@ -16639,7 +15483,7 @@ UCHAR byte; /* Initialize the length of the request field to 2. */ length = 2; - /* Determine if the next byte has the additional bytes + /* Determine if the next byte has the additional bytes bit set (BIT 7). */ if ((byte & NX_SNMP_ANS1_MULTI_BYTES) == 0) { @@ -16651,7 +15495,7 @@ UCHAR byte; return(length); } - /* Otherwise, we have a more complicated request length that we must loop through + /* Otherwise, we have a more complicated request length that we must loop through to calculate the actual length. */ /* Pickup the number of bytes required to represent the request length. */ @@ -16730,14 +15574,6 @@ UCHAR byte; /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_request_type_set_1byte(UCHAR *buffer_ptr, UINT request_type, UINT request_length, UCHAR *buffer_end) { @@ -16796,14 +15632,6 @@ UINT _nx_snmp_utility_request_type_set_1byte(UCHAR *buffer_ptr, UINT request_ty /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_request_type_set_multibyte(UCHAR *buffer_ptr, UINT request_type, UINT request_length, UCHAR *buffer_end) { @@ -16866,14 +15694,6 @@ UINT _nx_snmp_utility_request_type_set_multibyte(UCHAR *buffer_ptr, UINT reques /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_version_get(UCHAR *buffer_ptr, UINT *snmp_version, INT buffer_length) { @@ -16955,14 +15775,6 @@ UINT _nx_snmp_utility_version_get(UCHAR *buffer_ptr, UINT *snmp_version, INT bu /* _nx_snmp_version_3_report_send Send SNMP v3 report */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_version_set(UCHAR *buffer_ptr, UINT snmp_version, UCHAR *buffer_end) { @@ -17027,17 +15839,6 @@ UINT _nx_snmp_utility_version_set(UCHAR *buffer_ptr, UINT snmp_version, UCHAR * /* _nx_snmp_version_1_and_2_process Process SNMP v1 and v2 request*/ /* _nx_snmp_version_3_process SNMP v3 message processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* verification of encryption, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ VOID _nx_snmp_version_error_response(NX_SNMP_AGENT *agent_ptr, NX_PACKET *packet_ptr, UCHAR *request_type_ptr, UCHAR *error_string_ptr, UINT error_code, UINT error_index) @@ -17208,12 +16009,6 @@ ULONG temp; /* */ /* _nx_snmp_agent_thread_entry SNMP Agent thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2023 Bo Chen Initial Version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_snmp_version_1_and_2_process(NX_SNMP_AGENT *agent_ptr, NX_PACKET *packet_ptr) { @@ -17496,7 +16291,7 @@ INT buffer_length; /* The buffer pointer is moved by the length. Update buffer size */ buffer_length -= (INT)length; - /* At this point we have parsed the incoming SNMP request up to the first + /* At this point we have parsed the incoming SNMP request up to the first variable. */ /* Now prepare response message so we can process the variables one by one. */ @@ -17559,7 +16354,7 @@ INT buffer_length; update it later with the actual length of the response. */ response_sequence_ptr = response_buffer_ptr; - /* First, write the sequence in the response packet. A zero is written for now. This will be + /* First, write the sequence in the response packet. A zero is written for now. This will be updated later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -17725,7 +16520,7 @@ INT buffer_length; /* Remember the start of the response's variable list field. */ response_variable_list_ptr = response_buffer_ptr; - /* Setup the variable list response. For now, the length will be zero. We + /* Setup the variable list response. For now, the length will be zero. We will overwrite this with the actual length later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -17755,7 +16550,7 @@ INT buffer_length; /* Adjust the response request type length. */ response_type_length = response_type_length + response_length; - /* At this point the response buffer is setup to exactly the same position the + /* At this point the response buffer is setup to exactly the same position the SNMP Manager's input buffer is - right before the first variable. We can now walk through the variable list to process each request and place the result in the response buffer. */ @@ -17777,7 +16572,7 @@ INT buffer_length; /* Calculate the total variable size. */ total_variable_length = variable_length + length; - /* Determine if this variable will fit in the remaining length of the + /* Determine if this variable will fit in the remaining length of the variable list, buffer length, and if there is integer overflow. */ if ((length == 0) || (total_variable_length > variable_list_length) || (total_variable_length < variable_length) || (total_variable_length > (UINT)buffer_length)) @@ -17872,7 +16667,7 @@ INT buffer_length; } } - /* At this point, we are ready to call the appropriate application request handling routine. + /* At this point, we are ready to call the appropriate application request handling routine. It is responsible for extracting or placing information in the object data structure. */ if (request_type == NX_SNMP_ANS1_GET_REQUEST) { @@ -18101,7 +16896,7 @@ INT buffer_length; return; } - /* Setup the variable response sequence. For now, the length will be zero. We + /* Setup the variable response sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -18322,23 +17117,6 @@ INT buffer_length; /* */ /* _nx_snmp_agent_thread_entry SNMP Agent thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved boundary check, */ -/* checked NULL pointer, */ -/* resulting in version 6.1.6 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* buffer length verification, */ -/* fixed packet double release,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_snmp_version_3_process(NX_SNMP_AGENT *agent_ptr, NX_PACKET *packet_ptr) { @@ -19091,7 +17869,7 @@ INT buffer_length; /* Mark the location in the request buffer. */ pdu_auth_parm_ptr = request_authentication_ptr; - /* Clear the authentication field in the message. To calculate the + /* Clear the authentication field in the message. To calculate the digest this must be cleared. Also position past the string and length. */ for (i = 0; i < agent_ptr -> nx_snmp_agent_v3_security_authentication_size; i++) { @@ -19308,7 +18086,7 @@ INT buffer_length; update it later with the actual length of the response. */ response_sequence_ptr = response_buffer_ptr; - /* First, write the sequence in the response packet. A zero is written for now. This will be + /* First, write the sequence in the response packet. A zero is written for now. This will be updated later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -19363,7 +18141,7 @@ INT buffer_length; /* Save the pointer to the global header. */ response_header_ptr = response_buffer_ptr; - /* Write the sequence for the global header in the response packet. A zero is written for now. + /* Write the sequence for the global header in the response packet. A zero is written for now. This will be updated later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -19516,7 +18294,7 @@ INT buffer_length; /* Adjust the header sequence length. */ response_header_length = response_header_length + response_length; - /* At this point, we have successfully built the security header. Now, we need to build + /* At this point, we have successfully built the security header. Now, we need to build the security parameters field. */ /* First setup the octet string field. */ @@ -20111,9 +18889,9 @@ INT buffer_length; /* SET the PDU Sequence Header if the response is encrypted. */ /******************************************************************************/ - /* If the message is encrypted we have to insert an PDU "inner" sequence header. Because + /* If the message is encrypted we have to insert an PDU "inner" sequence header. Because we will use the multibyte sequence 0x30 82 xx yy format, we have to update the enclosing - sequences (total response length and pdu length and their respective pointers accordingly. + sequences (total response length and pdu length and their respective pointers accordingly. */ if (encrypt_message) { @@ -20194,8 +18972,8 @@ INT buffer_length; /* The browser uses the context name from the SNMP Agent to confirm - the response is coming from the SNMP Agent it sent the request to. They must match. - The request ID only matches the request with response. A user may have multiple + the response is coming from the SNMP Agent it sent the request to. They must match. + The request ID only matches the request with response. A user may have multiple requests. There may be circumstances where the SNMP Agent only responds with one context name. Don't know what that would be. */ @@ -20524,13 +19302,13 @@ INT buffer_length; /* The buffer pointer is moved by the length. Update buffer size */ buffer_length -= (INT)length; - /* At this point we have parsed the incoming SNMP request up to the first + /* At this point we have parsed the incoming SNMP request up to the first variable. */ /* Remember the start of the response's variable list field. */ response_variable_list_ptr = response_buffer_ptr; - /* Setup the variable list response. For now, the length will be zero. We + /* Setup the variable list response. For now, the length will be zero. We will overwrite this with the actual length later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -20567,7 +19345,7 @@ INT buffer_length; NX_SNMPV3_DBG_PRINTF("Process the variable binding list, line %d \n\r", __LINE__); #endif - /* At this point the response buffer is setup to exactly the same position the + /* At this point the response buffer is setup to exactly the same position the SNMP Manager's input buffer is - right before the first variable. We can now walk through the variable list to process each request and place the result in the response buffer. */ @@ -20680,7 +19458,7 @@ INT buffer_length; } } - /* At this point, we are ready to call the appropriate application request handling routine. + /* At this point, we are ready to call the appropriate application request handling routine. It is responsible for extracting or placing information in the object data structure. */ if (request_type == NX_SNMP_ANS1_GET_REQUEST) { @@ -20867,7 +19645,7 @@ INT buffer_length; return; } - /* Setup the variable response sequence. For now, the length will be zero. We + /* Setup the variable response sequence. For now, the length will be zero. We will overwrite this with the actual length later. */ response_length = _nx_snmp_utility_sequence_set(response_buffer_ptr, 0, response_packet_ptr -> nx_packet_data_end); @@ -21143,18 +19921,6 @@ INT buffer_length; /* */ /* _nx_snmp_version_3_process Process SNMP v3 request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_snmp_version_3_report_send(NX_SNMP_AGENT *agent_ptr, UCHAR *buffer_ptr, UINT report_respond, INT buffer_length) { @@ -21366,7 +20132,7 @@ UCHAR report_security_level; update it later with the actual length of the report. */ report_sequence_ptr = report_buffer_ptr; - /* First, write the sequence in the report packet. A zero is written for now. This will be + /* First, write the sequence in the report packet. A zero is written for now. This will be updated later. */ report_length = _nx_snmp_utility_sequence_set(report_buffer_ptr, 0, report_packet_ptr -> nx_packet_data_end); @@ -21415,7 +20181,7 @@ UCHAR report_security_level; /* Save the pointer to the global header. */ report_header_ptr = report_buffer_ptr; - /* Write the sequence for the global header in the report packet. A zero is written for now. + /* Write the sequence for the global header in the report packet. A zero is written for now. This will be updated later. */ report_length = _nx_snmp_utility_sequence_set(report_buffer_ptr, 0, report_packet_ptr -> nx_packet_data_end); @@ -21557,7 +20323,7 @@ UCHAR report_security_level; /* Adjust the header sequence length. */ report_header_length = report_header_length + report_length; - /* At this point, we have successfully built the security header. Now, we need to build + /* At this point, we have successfully built the security header. Now, we need to build the security parameters field. */ /* First setup the octet string field. */ @@ -21933,7 +20699,7 @@ UCHAR report_security_level; /********************************************************/ /* Set PDU request ID */ /********************************************************/ - /* Set the PDU request to zero instead of matching the request if the request is encrypted. + /* Set the PDU request to zero instead of matching the request if the request is encrypted. Otherwise the request ID must match the request specified by the browser request. */ if (encryption) { @@ -22334,7 +21100,7 @@ UCHAR report_security_level; /* Increment the sent packet counter. */ agent_ptr -> nx_snmp_agent_packets_sent++; - /* Set the authentication parameter if we have determined it needs to be set, and only if we + /* Set the authentication parameter if we have determined it needs to be set, and only if we have a valid user name. (Otherwise there would be no shared key for the other side to check our authentication.)*/ if ((authenticate == NX_TRUE) && (report_respond != NX_SNMP_DISCOVERY_RESPONSE_UNKNOWN_USERNAME_NUM)) @@ -22424,17 +21190,6 @@ UCHAR report_security_level; /* _nx_snmp_version_3_process Process SNMP v3 request reply */ /* _nx_snmp_version_3_report_send Process SNMP v3 report */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), */ -/* checked NULL pointer, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_add_auth_parameter(NX_SNMP_AGENT *agent_ptr, NX_PACKET *response_packet_ptr, UCHAR *response_authentication_ptr) { @@ -22555,7 +21310,7 @@ UCHAR key2[NX_SNMP_DIGEST_WORKING_SIZE]; return NX_SNMP_UNSUPPORTED_AUTHENTICATION; } - /* At this point, key2 contains the computed digest of the message. This needs to be + /* At this point, key2 contains the computed digest of the message. This needs to be placed in the outgoing message. */ /* Loop to setup the outgoing digest. */ @@ -22612,20 +21367,6 @@ UCHAR key2[NX_SNMP_DIGEST_WORKING_SIZE]; /* */ /* _nx_snmp_version_3_process Process SNMP v3 request reply */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), improved */ -/* verification of encryption, */ -/* resulting in version 6.1.6 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_encrypt_pdu(NX_SNMP_AGENT *agent_ptr, UINT *response_pdu_length, UINT *response_sequence_length, UCHAR *response_encryption_size_ptr, @@ -22684,7 +21425,7 @@ UINT adjusted_pdu_length; adjusted_pdu_length = pdu_length; } - /* If this is not for our outgoing response e.g. we are re-encrypting the received packet as part + /* If this is not for our outgoing response e.g. we are re-encrypting the received packet as part of an error message, use the length from that packet. */ if ((response_encryption_size_ptr == NX_NULL) || (response_pdu_length == NX_NULL)) { @@ -22704,7 +21445,7 @@ UINT adjusted_pdu_length; if ((response_encryption_size_ptr != NX_NULL) && (response_pdu_length != NX_NULL)) { - /* Now we set the PDU "inner" sequence header. Use the multibyte sequence 0x30 82 xx yy format. + /* Now we set the PDU "inner" sequence header. Use the multibyte sequence 0x30 82 xx yy format. Note that calling function has already set the pointer for writing encyrpted PDU data past this inner header. */ response_encryption_size_ptr[2] = 0x30; @@ -22841,17 +21582,6 @@ UINT adjusted_pdu_length; /* _nx_snmp_version_3_process Process SNMP v3 request reply */ /* _nx_snmp_version_3_report_send PRocess SNMP v3 report */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_snmp_agent_decrypt_pdu(NX_SNMP_AGENT *agent_ptr, UCHAR **buffer_ptr, UCHAR *response_buffer_ptr, @@ -23070,14 +21800,6 @@ UCHAR key2[NX_SNMP_DIGEST_WORKING_SIZE]; /* */ /* _nx_snmp_version_3_report_send PRocess SNMP v3 report */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_snmp_agent_security_response_status(NX_SNMP_AGENT *agent_ptr, UINT *authenticate, UINT *encryption, UINT *send_reply) { @@ -23123,7 +21845,7 @@ VOID _nx_snmp_agent_security_response_status(NX_SNMP_AGENT *agent_ptr, UINT *aut } - /* Now if the incoming message security level is set for authentication regardless + /* Now if the incoming message security level is set for authentication regardless of matching privacy levels. */ if ((agent_ptr -> nx_snmp_agent_v3_message_security_options & NX_SNMP_SECURITY_AUTHORIZE) >= 1) { @@ -23182,15 +21904,6 @@ VOID _nx_snmp_agent_security_response_status(NX_SNMP_AGENT *agent_ptr, UINT *aut /* */ /* _nx_snmp_utility_object_get Extract data from sender */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_snmp_utility_tlv_block_parse(UCHAR *buffer, INT buffer_length, USHORT *tlv_type, USHORT *tlv_tag_class, ULONG *tlv_length, diff --git a/addons/snmp/nxd_snmp.h b/addons/snmp/nxd_snmp.h index c3da127e..06822b9d 100644 --- a/addons/snmp/nxd_snmp.h +++ b/addons/snmp/nxd_snmp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,18 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), and */ -/* combined the functions of */ -/* processing snmp v1 and v2, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NXD_SNMP_H @@ -75,24 +63,24 @@ extern "C" { #endif -/* Disable SNMP V1 message processing. +/* Disable SNMP V1 message processing. #define NX_SNMP_DISABLE_V1 */ -/* Disable SNMP V2 message processing. +/* Disable SNMP V2 message processing. #define NX_SNMP_DISABLE_V2 */ -/* Disable SNMP V3 message processing. +/* Disable SNMP V3 message processing. #define NX_SNMP_DISABLE_V3 */ -/* Default support of SNMP V2 to only V2C. +/* Default support of SNMP V2 to only V2C. #define NX_SNMP_V2C_ONLY */ /* By default support for security (authentication and encryption) is enabled. To disable - it define this option. + it define this option. #define NX_SNMP_NO_SECURITY */ @@ -375,7 +363,7 @@ typedef struct NX_SNMP_OBJECT_DATA_STRUCT } NX_SNMP_OBJECT_DATA; -/* Define the SNMP Agent object list type that defines application objects to be included in the +/* Define the SNMP Agent object list type that defines application objects to be included in the trap calls. */ typedef struct NX_SNMP_TRAP_OBJECT_STRUCT @@ -488,9 +476,9 @@ typedef struct NX_SNMP_AGENT_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/sntp/nxd_sntp_client.c b/addons/sntp/nxd_sntp_client.c index 61ad0206..60d0fc8b 100644 --- a/addons/sntp/nxd_sntp_client.c +++ b/addons/sntp/nxd_sntp_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* It is assumed that tx_api.h, tx_port.h, nx_api.h, and nx_port.h, */ /* have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #define NX_SNTP_SOURCE_CODE @@ -73,7 +65,7 @@ extern volatile ULONG _tx_thread_system_state; TX_EVENT_FLAGS_GROUP nx_sntp_client_events; /* Define internal time variables for offsets between - receipt of SNTP packet and application to + receipt of SNTP packet and application to SNTP Client local time. */ static ULONG send_timerticks = 0; static ULONG receive_timerticks = 0; @@ -119,17 +111,6 @@ static ULONG process_timerticks = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Wenhui Xie Modified comment(s), */ -/* checked the client ID, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_create(NX_SNTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT iface_index, NX_PACKET_POOL *packet_pool_ptr, UINT (*leap_second_handler)(NX_SNTP_CLIENT *client_ptr, UINT indicator), @@ -220,14 +201,6 @@ UINT status; /* nx_udp_socket_delete Delete the SNTP Client socket */ /* nx_udp_socket_bind Bind the SNTP Client to SNTP port */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_create(NX_SNTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT iface_index, NX_PACKET_POOL *packet_pool_ptr, UINT (*leap_second_handler)(NX_SNTP_CLIENT *client_ptr, UINT indicator), @@ -303,7 +276,7 @@ UINT status; /* Set callback for kiss of death server packet handler (optional). */ client_ptr -> kiss_of_death_handler = kiss_of_death_handler; - /* Set callback for random number generator (Only applicable for unicast clients + /* Set callback for random number generator (Only applicable for unicast clients configured for random wait on startup). */ client_ptr -> random_number_generator = random_number_generator; @@ -421,14 +394,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_delete(NX_SNTP_CLIENT *client_ptr) { @@ -493,17 +458,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Wenhui Xie Modified comment(s), */ -/* cleared the client ID, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_delete(NX_SNTP_CLIENT *client_ptr) { @@ -574,14 +528,6 @@ UINT _nx_sntp_client_delete(NX_SNTP_CLIENT *client_ptr) /* */ /* ThreadX ThreadX timer callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sntp_client_update_timeout_entry(ULONG info) { @@ -660,14 +606,6 @@ NX_SNTP_CLIENT *client_ptr; /* */ /* _nx_sntp_client_send_unicast_request Send unicast request to server */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_create_time_request_packet(NX_SNTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, NX_SNTP_TIME_MESSAGE *time_message_ptr) @@ -741,14 +679,6 @@ UINT _nx_sntp_client_create_time_request_packet(NX_SNTP_CLIENT *client_ptr, NX_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_sntp_client_initialize_unicast(NX_SNTP_CLIENT *client_ptr, NXD_ADDRESS *unicast_time_server) { @@ -812,14 +742,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_sntp_client_initialize_unicast(NX_SNTP_CLIENT *client_ptr, NXD_ADDRESS *unicast_time_server) { @@ -899,14 +821,6 @@ UINT _nxd_sntp_client_initialize_unicast(NX_SNTP_CLIENT *client_ptr, NXD_ADDRES /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_initialize_unicast(NX_SNTP_CLIENT *client_ptr, ULONG unicast_time_server) { @@ -978,14 +892,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_initialize_unicast(NX_SNTP_CLIENT *client_ptr, ULONG unicast_time_server) { @@ -1041,14 +947,6 @@ NXD_ADDRESS duo_unicast_time_server; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_run_unicast(NX_SNTP_CLIENT *client_ptr) { @@ -1110,14 +1008,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_run_unicast(NX_SNTP_CLIENT *client_ptr) { @@ -1283,14 +1173,6 @@ ULONG startup_ticks; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sntp_client_process_unicast(NX_SNTP_CLIENT *client_ptr) { @@ -1422,14 +1304,6 @@ ULONG sntp_events; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_sntp_client_initialize_broadcast(NX_SNTP_CLIENT *client_ptr, NXD_ADDRESS *multicast_server_address, NXD_ADDRESS *broadcast_server_address) { @@ -1502,14 +1376,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_sntp_client_initialize_broadcast(NX_SNTP_CLIENT *client_ptr, NXD_ADDRESS *multicast_server_address, NXD_ADDRESS *broadcast_server_address) { @@ -1614,14 +1480,6 @@ UINT _nxd_sntp_client_initialize_broadcast(NX_SNTP_CLIENT *client_ptr, NXD_ADDR /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_initialize_broadcast(NX_SNTP_CLIENT *client_ptr, ULONG multicast_server_address, ULONG broadcast_server_address) { @@ -1697,14 +1555,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_initialize_broadcast(NX_SNTP_CLIENT *client_ptr, ULONG multicast_server_address, ULONG broadcast_server_address) { @@ -1776,14 +1626,6 @@ NXD_ADDRESS server_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_stop(NX_SNTP_CLIENT *client_ptr) { @@ -1841,14 +1683,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_stop(NX_SNTP_CLIENT *client_ptr) { @@ -1958,14 +1792,6 @@ UINT current_preemption; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_run_broadcast(NX_SNTP_CLIENT *client_ptr) { @@ -2028,14 +1854,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_run_broadcast(NX_SNTP_CLIENT *client_ptr) { @@ -2173,14 +1991,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sntp_client_process_broadcast(NX_SNTP_CLIENT *client_ptr) { @@ -2291,14 +2101,6 @@ ULONG sntp_events; /* */ /* _nx_sntp_client_run_unicast Send and receive unicast time data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_send_unicast_request(NX_SNTP_CLIENT *client_ptr) { @@ -2488,22 +2290,6 @@ NX_SNTP_TIME local_time; /* _nx_sntp_client_run_unicast Send and receive server time updates*/ /* _nx_sntp_client_run_broadcast Listen for server update broadcasts */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* added support for disabling */ -/* message check, */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the port check, */ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), and */ -/* fixed packet chain issue, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_receive_time_update(NX_SNTP_CLIENT *client_ptr, ULONG timeout) { @@ -2788,18 +2574,6 @@ NXD_ADDRESS source_ip_address, destination_ip_address; /* */ /* _nx_sntp_client_receive_time_update Process SNTP server packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), corrected*/ -/* the Reference Identifier, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_extract_time_message_from_packet(NX_SNTP_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -2957,15 +2731,6 @@ NX_SNTP_TIME_MESSAGE *time_message_ptr; /* */ /* _nx_sntp_client_receive_time_update Process received update packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_reset_current_time_message(NX_SNTP_CLIENT *client_ptr) { @@ -3030,14 +2795,6 @@ UINT _nx_sntp_client_reset_current_time_message(NX_SNTP_CLIENT *client_ptr) /* _nx_sntp_client_process_unicast Process unicast SNTP data */ /* _nx_sntp_client_process_broadcast Process broadcast SNTP data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_process_update_packet(NX_SNTP_CLIENT *client_ptr) { @@ -3058,7 +2815,7 @@ UINT status; return status; } - /* Check server clock dispersion (if any reported) in first update + /* Check server clock dispersion (if any reported) in first update from current server for unicast clients. */ if ((client_ptr -> nx_sntp_client_first_update_pending == NX_TRUE) && (client_ptr -> nx_sntp_client_protocol_mode == UNICAST_MODE)) { @@ -3136,14 +2893,6 @@ UINT status; /* */ /* _nx_sntp_client_apply_sanity_checks Verify received SNTP data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_duplicate_update_check(NX_SNTP_TIME_MESSAGE *timeA_msg_ptr, NX_SNTP_TIME_MESSAGE *timeB_msg_ptr, @@ -3216,14 +2965,6 @@ UINT _nx_sntp_client_duplicate_update_check(NX_SNTP_TIME_MESSAGE *timeA_msg_ptr /* _nx_sntp_client_run_broadcast Receive broadcast SNTP updates */ /* _nx_sntp_client_run_unicast Send and receive SNTP updates */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_apply_sanity_checks(NX_SNTP_CLIENT *client_ptr) { @@ -3284,7 +3025,7 @@ NX_SNTP_TIME_MESSAGE *server_time_msg_ptr; /* Extract server's NTP version from the flags field. */ server_ntp_version = (server_time_msg_ptr -> flags & 0x38) >> 3; - /* As per NTP protocol, check if the server reply has the same SNTP version that + /* As per NTP protocol, check if the server reply has the same SNTP version that the Client sent in its unicast request. */ if ((server_ntp_version != NX_SNTP_CLIENT_NTP_VERSION) && (client_ptr -> nx_sntp_client_protocol_mode == UNICAST_MODE)) { @@ -3478,14 +3219,6 @@ NX_SNTP_TIME_MESSAGE *server_time_msg_ptr; /* _nx_sntp_client_process_update_packet */ /* Process time data in update packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_check_server_clock_dispersion(NX_SNTP_CLIENT *client_ptr) @@ -3589,14 +3322,6 @@ ULONG dispersion_usecs; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sntp_client_thread_entry(ULONG sntp_instance) { @@ -3680,14 +3405,6 @@ UINT current_preemption; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sntp_client_receive_notify(NX_UDP_SOCKET *socket_ptr) { @@ -3735,14 +3452,6 @@ VOID _nx_sntp_client_receive_notify(NX_UDP_SOCKET *socket_ptr) /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sntp_client_process(NX_SNTP_CLIENT *client_ptr) { @@ -3808,15 +3517,6 @@ VOID _nx_sntp_client_process(NX_SNTP_CLIENT *client_ptr) /* _nx_sntp_client_process_update_packet */ /* Process update SNTP packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_process_time_data(NX_SNTP_CLIENT *client_ptr) { @@ -3870,7 +3570,7 @@ NX_SNTP_TIME local_time; UINT pos_diff = NX_TRUE; /* Compute difference of server update packet minus the client's local time. It is reasonable - to assume that the Client time is 'behind' the server time because it is updated by the + to assume that the Client time is 'behind' the server time because it is updated by the server time. */ local_time.seconds = client_ptr -> nx_sntp_client_local_ntp_time.seconds + client_ptr -> nx_sntp_client_local_ntp_time_elapsed; @@ -3894,7 +3594,7 @@ NX_SNTP_TIME local_time; /* The adjustment is larger than the Client's minimum adjustment. */ - /* Set the local clock to the server time only if 1)we are ignoring the maximum adjustment on startup, + /* Set the local clock to the server time only if 1)we are ignoring the maximum adjustment on startup, or 2) the difference is within the Client's max time adjustment. */ if (elapsed_msecs_difference > NX_SNTP_CLIENT_MAX_TIME_ADJUSTMENT) { @@ -3950,14 +3650,6 @@ NX_SNTP_TIME local_time; /* _nx_sntp_client_process_update_packet */ /* Process server update packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_calculate_roundtrip(LONG *roundtrip_time) { @@ -4024,14 +3716,6 @@ ULONG x; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer) { @@ -4095,14 +3779,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_get_local_time(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer) { @@ -4150,14 +3826,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_get_local_time_extended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size) { @@ -4222,19 +3890,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_get_local_time_extended(NX_SNTP_CLIENT *client_ptr, ULONG *seconds, ULONG *fraction, CHAR *buffer, UINT buffer_size) { @@ -4346,14 +4001,6 @@ UINT length = 0; /* _nx_sntp_client_send_unicast_request */ /* Create a time request and transmit it*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_convert_time_to_UCHAR(NX_SNTP_TIME *time_ptr, NX_SNTP_TIME_MESSAGE *time_message_ptr, UINT which_stamp) @@ -4394,10 +4041,10 @@ ULONG *buffer; return NX_SUCCESS; } -/* The conventional civil timescale used in most parts of the world is based on Coordinated Universal Time (UTC), - which replaced Greenwich Mean Time (GMT) many years ago. UTC is based on International Atomic Time (TAI), - which is derived from hundreds of cesium oscillators in the national standards laboratories of many regions. - Deviations of UTC from TAI are implemented in the form of leap seconds, which occur at intervals from a +/* The conventional civil timescale used in most parts of the world is based on Coordinated Universal Time (UTC), + which replaced Greenwich Mean Time (GMT) many years ago. UTC is based on International Atomic Time (TAI), + which is derived from hundreds of cesium oscillators in the national standards laboratories of many regions. + Deviations of UTC from TAI are implemented in the form of leap seconds, which occur at intervals from a few months to serveral years. */ @@ -4443,15 +4090,6 @@ ULONG *buffer; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed leap year calculation,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_convert_seconds_to_date(NX_SNTP_TIME *current_NTP_time_ptr, UINT current_year, NX_SNTP_DATE_TIME *current_date_time_ptr) @@ -4636,7 +4274,7 @@ UINT seconds_into_currenthour; /* Time is now in the current month. */ seconds_into_currentmonth = seconds_into_currentyear; - /* Compute how many complete days the time goes into the current month and + /* Compute how many complete days the time goes into the current month and add one for the current day. */ current_date_time_ptr -> day = seconds_into_currentmonth/SECONDS_PER_DAY + 1; @@ -4699,14 +4337,6 @@ UINT seconds_into_currenthour; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_utility_display_date_time(NX_SNTP_CLIENT *client_ptr, CHAR *buffer, UINT length) { @@ -4768,14 +4398,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_request_unicast_time(NX_SNTP_CLIENT *client_ptr, UINT wait_option) { @@ -4831,14 +4453,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_request_unicast_time(NX_SNTP_CLIENT *client_ptr, UINT wait_option) { @@ -4917,21 +4531,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the typo of August string, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_display_date_time(NX_SNTP_CLIENT *client_ptr, CHAR *buffer, UINT length) { @@ -5078,14 +4677,6 @@ const CHAR *months[12] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", /* */ /* _nx_sntp_client_process_time_data Apply server time to local time */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_add_msecs_to_ntp_time(NX_SNTP_TIME *timeA_ptr, LONG msecs_to_add) @@ -5145,7 +4736,7 @@ LONG usecs; /* Check for a positive carry over into seconds. */ if (usecs >= 1000000) { - /* Yes there's a carry; check for possibility of overflow + /* Yes there's a carry; check for possibility of overflow before adding carry (unlikely for another 30 years). */ if (timeA_ptr -> seconds == 0xFFFFFFFF) { @@ -5202,14 +4793,6 @@ LONG usecs; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_receiving_updates(NX_SNTP_CLIENT *client_ptr, UINT *receive_status) { @@ -5270,14 +4853,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_receiving_updates(NX_SNTP_CLIENT *client_ptr, UINT *receive_status) { @@ -5332,14 +4907,6 @@ UINT _nx_sntp_client_receiving_updates(NX_SNTP_CLIENT *client_ptr, UINT *receive /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_set_local_time(NX_SNTP_CLIENT *client_ptr, ULONG seconds, ULONG fraction) { @@ -5410,14 +4977,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_set_local_time(NX_SNTP_CLIENT *client_ptr, ULONG seconds, ULONG fraction) { @@ -5466,14 +5025,6 @@ UINT _nx_sntp_client_set_local_time(NX_SNTP_CLIENT *client_ptr, ULONG seconds, /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_set_time_update_notify(NX_SNTP_CLIENT *client_ptr, VOID (time_update_cb)(NX_SNTP_TIME_MESSAGE *time_update_ptr, NX_SNTP_TIME *local_time)) @@ -5525,14 +5076,6 @@ UINT status; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_set_time_update_notify(NX_SNTP_CLIENT *client_ptr, VOID (time_update_cb)(NX_SNTP_TIME_MESSAGE *time_update_ptr, NX_SNTP_TIME *local_time)) @@ -5601,14 +5144,6 @@ UINT _nx_sntp_client_set_time_update_notify(NX_SNTP_CLIENT *client_ptr, /* _nx_sntp_client_process_time_data */ /* Apply server time to local time */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_get_msec_diff(NX_SNTP_TIME *timeReceived_ptr, NX_SNTP_TIME *timeTransmit_ptr, ULONG *total_difference_msecs, UINT *pos_diff) { @@ -5759,14 +5294,6 @@ ULONG temp; /* */ /* _nx_sntp_client_apply_sanity_checks Checks SNTP server reply validity*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_is_zero_data(UCHAR *data, UINT size) { @@ -5830,14 +5357,6 @@ UINT is_zero; /* _nx_sntp_client_utility_display_NTP_time */ /* Display NTP time in seconds */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_convert_fraction_to_msecs(ULONG *milliseconds, NX_SNTP_TIME *time_ptr) { @@ -5897,14 +5416,6 @@ ULONG usecs; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_utility_usecs_to_fraction(ULONG usecs, ULONG *fraction) { @@ -5961,14 +5472,6 @@ UINT status; /* _nx_sntp_client_utility_msecs_to_fraction */ /* Convert milliseconds to fixed point*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_usecs_to_fraction(ULONG usecs, ULONG *fraction) { @@ -6020,14 +5523,6 @@ ULONG _frac = usecs * 3962; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_utility_msecs_to_fraction(ULONG msecs, ULONG *fraction) { @@ -6086,14 +5581,6 @@ UINT status; /* _nx_sntp_client_utility_add_NTPtime */ /* Add two NTP time fields */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_msecs_to_fraction(ULONG msecs, ULONG *fraction) { @@ -6162,14 +5649,6 @@ ULONG usecs; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_sntp_client_utility_fraction_to_usecs(ULONG fraction, ULONG *usecs) { @@ -6224,14 +5703,6 @@ UINT status; /* _nx_sntp_client_utility_convert_fraction_to_msecs */ /* Convert time fraction to msecs */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_fraction_to_usecs(ULONG fraction, ULONG *usecs) { @@ -6291,14 +5762,6 @@ int i; /* */ /* Application Code (e.g. the Client kiss of death handler callback) */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_convert_refID_KOD_code(UCHAR *reference_id, UINT *code_id) { @@ -6410,14 +5873,6 @@ UINT _nx_sntp_client_utility_convert_refID_KOD_code(UCHAR *reference_id, UINT * /* _nx_sntp_client_utility_add_NTPtime */ /* Add two NTP times */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sntp_client_utility_addition_overflow_check(ULONG temp1, ULONG temp2) { diff --git a/addons/sntp/nxd_sntp_client.h b/addons/sntp/nxd_sntp_client.h index c214b4b0..3b784aac 100644 --- a/addons/sntp/nxd_sntp_client.h +++ b/addons/sntp/nxd_sntp_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* It is assumed that tx_api.h, tx_port.h, nx_api.h, and nx_port.h, */ /* have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NXD_SNTP_CLIENT_H @@ -65,20 +57,20 @@ extern "C" { #define NXD_SNTP_ID 0x534E5460UL -/* Conversion between seconds and timer ticks. This must equal the +/* Conversion between seconds and timer ticks. This must equal the NetX timer tick to seconds ratio. */ #define NX_SNTP_MILLISECONDS_PER_TICK (1000 / NX_IP_PERIODIC_RATE) -/* Set minimum and maximum Client unicast poll period (in seconds) for requesting - time data. RFC 4330 polling range is from 16 - 131072 seconds. - Note that the RFC 4330 strongly recommends polling intervals of at least +/* Set minimum and maximum Client unicast poll period (in seconds) for requesting + time data. RFC 4330 polling range is from 16 - 131072 seconds. + Note that the RFC 4330 strongly recommends polling intervals of at least one minute to unnecessary reduce demand on public time servers. */ #define NX_SNTP_CLIENT_MIN_UNICAST_POLL_INTERVAL 64 #define NX_SNTP_CLIENT_MAX_UNICAST_POLL_INTERVAL 131072 -/* Define Client request types. Note that this does not limit the +/* Define Client request types. Note that this does not limit the NetX SNTP Client from using MANYCAST or MULTICAST discovery options. */ #define BROADCAST_MODE 1 @@ -86,7 +78,7 @@ extern "C" { #define NX_SNTP_CLIENT_RECEIVE_EVENT ((ULONG) 0x00000001) /* Event flag to signal a receive packet event */ -/* Define the minimum size of the packet NTP/SNTP time message +/* Define the minimum size of the packet NTP/SNTP time message (e.g. without authentication data). */ #define NX_SNTP_TIME_MESSAGE_MIN_SIZE 48 @@ -118,7 +110,7 @@ extern "C" { #define STRATUM_RESERVED 0xF0 /* 16 - 255*/ -/* Kiss of death strings (see Codes below). Applicable when stratum = 0 +/* Kiss of death strings (see Codes below). Applicable when stratum = 0 Code Meaning -------------------------------------------------------------- */ @@ -139,7 +131,7 @@ extern "C" { #define RMOT "RMOT" /* Somebody is tinkering with association from remote host running ntpdc. OK unless they've stolen your keys. */ #define STEP "STEP" /* A step change in system time has occurred, but association has not yet resynchronized. */ -/* Define Kiss of Death error codes. Note: there should be a 1 : 1 correspondence of +/* Define Kiss of Death error codes. Note: there should be a 1 : 1 correspondence of KOD strings to KOD error codes! */ #define NX_SNTP_KISS_OF_DEATH_PACKET 0xF00 @@ -225,7 +217,7 @@ extern "C" { #endif /* Set Time to Live (TTL) value for transmitted UDP packets, including manycast and - multicast transmissions. The default TTL for windows operating system time + multicast transmissions. The default TTL for windows operating system time server is used. */ #ifndef NX_SNTP_CLIENT_TIME_TO_LIVE @@ -262,7 +254,7 @@ extern "C" { -/* Define the minimum (numerically highest) stratum the Client will +/* Define the minimum (numerically highest) stratum the Client will accept for a time server. Valid range is 1 - 15. */ #ifndef NX_SNTP_CLIENT_MIN_SERVER_STRATUM @@ -302,9 +294,9 @@ extern "C" { #endif -/* Set the maximum time lapse (in seconds) without a time update that can be tolerated by - the Client (application). This should be determined by application time sensitivity. - For unicast operation, the max lapse could be set to three successive poll requests +/* Set the maximum time lapse (in seconds) without a time update that can be tolerated by + the Client (application). This should be determined by application time sensitivity. + For unicast operation, the max lapse could be set to three successive poll requests without an update. Here we set it to 2 hour based on the RFC recommendation to limit traffic congestion. */ @@ -357,7 +349,7 @@ extern "C" { #endif -/* Set the limit on consecutive bad updates from server before Client +/* Set the limit on consecutive bad updates from server before Client switches to alternate server. */ #ifndef NX_SNTP_CLIENT_INVALID_UPDATE_LIMIT @@ -367,7 +359,7 @@ extern "C" { /* Set size of SNTP data in bytes, not including IP and UDP header fields or authentication. */ #define NX_SNTP_CLIENT_PACKET_DATA_SIZE 48 -/* To display date in year/month/date format, set the current year (same year as in NTP time being evaluated) e.g 2015. +/* To display date in year/month/date format, set the current year (same year as in NTP time being evaluated) e.g 2015. Otherwise set to zero. */ #ifndef NX_SNTP_CURRENT_YEAR #define NX_SNTP_CURRENT_YEAR 2015 @@ -382,8 +374,8 @@ extern "C" { #define UPDATE_STATUS_SUCCESS 4 -/* Define the number of seconds from 01-01-1990 00:00:00 to 01-01-1999 00:00:00 (last occurrance - of a leap second) to be able to define time in year, month, date. If zero, +/* Define the number of seconds from 01-01-1990 00:00:00 to 01-01-1999 00:00:00 (last occurrance + of a leap second) to be able to define time in year, month, date. If zero, no date time is displayed. */ #ifndef NTP_SECONDS_AT_01011999 #define NTP_SECONDS_AT_01011999 0xBA368E80 diff --git a/addons/telnet/nxd_telnet_client.c b/addons/telnet/nxd_telnet_client.c index 70955953..bbccca3e 100644 --- a/addons/telnet/nxd_telnet_client.c +++ b/addons/telnet/nxd_telnet_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_telnet_client_connect(NX_TELNET_CLIENT *client_ptr, NXD_ADDRESS *server_ip_address, UINT server_port, ULONG wait_option) @@ -150,14 +142,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_telnet_client_connect(NX_TELNET_CLIENT *client_ptr, NXD_ADDRESS *server_ip_address, UINT server_port, ULONG wait_option) @@ -242,14 +226,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_client_connect(NX_TELNET_CLIENT *client_ptr, ULONG server_ip, UINT server_port, ULONG wait_option) { @@ -325,14 +301,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_client_connect(NX_TELNET_CLIENT *client_ptr, ULONG server_ip_address, UINT server_port, ULONG wait_option) @@ -391,14 +359,6 @@ NXD_ADDRESS server_ipduo_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_client_create(NX_TELNET_CLIENT *client_ptr, CHAR *client_name, NX_IP *ip_ptr, ULONG window_size) { @@ -453,14 +413,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_client_create(NX_TELNET_CLIENT *client_ptr, CHAR *client_name, NX_IP *ip_ptr, ULONG window_size) { @@ -532,14 +484,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_client_delete(NX_TELNET_CLIENT *client_ptr) { @@ -593,17 +537,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Wenhui Xie Modified comment(s), */ -/* cleared the client ID, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_client_delete(NX_TELNET_CLIENT *client_ptr) { @@ -659,14 +592,6 @@ UINT _nx_telnet_client_delete(NX_TELNET_CLIENT *client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_client_disconnect(NX_TELNET_CLIENT *client_ptr, ULONG wait_option) { @@ -723,14 +648,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_client_disconnect(NX_TELNET_CLIENT *client_ptr, ULONG wait_option) { @@ -788,14 +705,6 @@ UINT _nx_telnet_client_disconnect(NX_TELNET_CLIENT *client_ptr, ULONG wait_opti /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_client_packet_receive(NX_TELNET_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -852,14 +761,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_client_packet_receive(NX_TELNET_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -909,14 +810,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_client_packet_send(NX_TELNET_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -973,14 +866,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_client_packet_send(NX_TELNET_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { diff --git a/addons/telnet/nxd_telnet_client.h b/addons/telnet/nxd_telnet_client.h index 1648d86e..69b7ec9b 100644 --- a/addons/telnet/nxd_telnet_client.h +++ b/addons/telnet/nxd_telnet_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,17 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_TELNET_CLIENT_H @@ -118,9 +107,9 @@ typedef struct NX_TELNET_CLIENT_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/telnet/nxd_telnet_server.c b/addons/telnet/nxd_telnet_server.c index d3c2c958..26f43eef 100644 --- a/addons/telnet/nxd_telnet_server.c +++ b/addons/telnet/nxd_telnet_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -85,14 +85,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_create(NX_TELNET_SERVER *server_ptr, CHAR *server_name, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, void (*new_connection)(struct NX_TELNET_SERVER_STRUCT *telnet_server_ptr, UINT logical_connection), @@ -169,14 +161,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_create(NX_TELNET_SERVER *server_ptr, CHAR *server_name, NX_IP *ip_ptr, VOID *stack_ptr, ULONG stack_size, void (*new_connection)(struct NX_TELNET_SERVER_STRUCT *telnet_server_ptr, UINT logical_connection), @@ -218,7 +202,7 @@ UINT status; return(status); } - /* Create the ThreadX activity timeout timer. This will be used to periodically check to see if + /* Create the ThreadX activity timeout timer. This will be used to periodically check to see if a client connection has gone silent and needs to be terminated. */ status = tx_timer_create(&(server_ptr -> nx_telnet_server_timer), "TELNET Server Timer", _nx_telnet_server_timeout, (ULONG) server_ptr, @@ -379,14 +363,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_delete(NX_TELNET_SERVER *server_ptr) { @@ -451,14 +427,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_delete(NX_TELNET_SERVER *server_ptr) { @@ -556,14 +524,6 @@ NX_TELNET_CLIENT_REQUEST *client_request_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_disconnect(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -624,18 +584,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Wenhui Xie Modified comment(s), and */ -/* corrected the processing of */ -/* disconnection, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_disconnect(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -747,14 +695,6 @@ NX_TELNET_CLIENT_REQUEST *client_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_packet_send(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -815,14 +755,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_packet_send(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -881,14 +813,6 @@ NX_TELNET_CLIENT_REQUEST *client_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_start(NX_TELNET_SERVER *server_ptr) { @@ -944,14 +868,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_start(NX_TELNET_SERVER *server_ptr) { @@ -1028,14 +944,6 @@ ULONG events; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_stop(NX_TELNET_SERVER *server_ptr) { @@ -1094,14 +1002,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_stop(NX_TELNET_SERVER *server_ptr) { @@ -1176,14 +1076,6 @@ NX_TELNET_CLIENT_REQUEST *client_request_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_get_open_connection_count(NX_TELNET_SERVER *server_ptr, UINT *current_connections) { @@ -1237,14 +1129,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_get_open_connection_count(NX_TELNET_SERVER *server_ptr, UINT *current_connections) { @@ -1293,14 +1177,6 @@ UINT _nx_telnet_server_get_open_connection_count(NX_TELNET_SERVER *server_ptr, /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_thread_entry(ULONG telnet_server) { @@ -1407,14 +1283,6 @@ ULONG events; /* */ /* _nx_telnet_server_thread_entry TELNET server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_connect_process(NX_TELNET_SERVER *server_ptr) { @@ -1549,14 +1417,6 @@ NX_TELNET_CLIENT_REQUEST *client_req_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_connection_present(NX_TCP_SOCKET *socket_ptr, UINT port) { @@ -1605,14 +1465,6 @@ NX_TELNET_SERVER *server_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_disconnect_present(NX_TCP_SOCKET *socket_ptr) { @@ -1661,14 +1513,6 @@ NX_TELNET_SERVER *server_ptr; /* */ /* _nx_telnet_server_thread_entry TELNET server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_disconnect_process(NX_TELNET_SERVER *server_ptr) { @@ -1801,14 +1645,6 @@ UINT reset_client_request; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_data_present(NX_TCP_SOCKET *socket_ptr) { @@ -1856,14 +1692,6 @@ NX_TELNET_SERVER *server_ptr; /* */ /* _nx_telnet_server_thread_entry TELNET server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_data_process(NX_TELNET_SERVER *server_ptr) { @@ -1904,7 +1732,7 @@ UINT offset; #ifndef NX_TELNET_SERVER_OPTION_DISABLE - /* If the first byte of the packet data is the telnet "IAC" code, + /* If the first byte of the packet data is the telnet "IAC" code, this is a telnet option packet. */ if (*packet_ptr -> nx_packet_prepend_ptr == NX_TELNET_IAC) { @@ -1941,7 +1769,7 @@ UINT offset; while((offset < packet_ptr -> nx_packet_length) && (*(packet_ptr -> nx_packet_prepend_ptr + offset) == NX_TELNET_IAC)) { - /* Process this telnet option. The offset will be updated to the location + /* Process this telnet option. The offset will be updated to the location of the next option (if there is one) on return of this function. */ _nx_telnet_server_process_option(server_ptr, packet_ptr, &offset, client_req_ptr); } @@ -2056,14 +1884,6 @@ UINT offset; /* */ /* ThreadX ThreadX timer callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_timeout(ULONG telnet_server_address) { @@ -2114,14 +1934,6 @@ NX_TELNET_SERVER *server_ptr; /* */ /* _nx_telnet_server_thread_entry TELNET server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_timeout_processing(NX_TELNET_SERVER *server_ptr) { @@ -2221,14 +2033,6 @@ NX_TELNET_CLIENT_REQUEST *client_req_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_telnet_server_packet_pool_set(NX_TELNET_SERVER *server_ptr, NX_PACKET_POOL *pool_ptr) @@ -2288,14 +2092,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_packet_pool_set(NX_TELNET_SERVER *server_ptr, NX_PACKET_POOL *pool_ptr) { @@ -2339,14 +2135,6 @@ UINT _nx_telnet_server_packet_pool_set(NX_TELNET_SERVER *server_ptr, NX_PACKET_P /* */ /* _nx_telnet_server_send_option_requests Send telnet option */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_create_option_packet(UCHAR option_message_type, UCHAR option_id, UCHAR *stream) { @@ -2400,14 +2188,6 @@ VOID _nx_telnet_server_create_option_packet(UCHAR option_message_type, UCHAR opt /* _nx_telnet_server_data_process Top level telnet packet handler*/ /* _nx_telnet_server_connect_process Telnet connection handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_telnet_server_send_option_requests(NX_TELNET_SERVER *server_ptr, NX_TELNET_CLIENT_REQUEST *client_req_ptr) { @@ -2535,14 +2315,6 @@ UCHAR option_stream[9]; /* _nx_telnet_server_data_process Top level incoming telnet */ /* packet handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_telnet_server_process_option(NX_TELNET_SERVER *server_ptr, NX_PACKET *packet_ptr, UINT *offset, diff --git a/addons/telnet/nxd_telnet_server.h b/addons/telnet/nxd_telnet_server.h index 10504ade..8c1e7346 100644 --- a/addons/telnet/nxd_telnet_server.h +++ b/addons/telnet/nxd_telnet_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,17 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_TELNET_SERVER_H @@ -70,7 +59,7 @@ extern "C" { #define NX_TELNET_SERVER_ID 0x54454C4EUL -/* Defined, option negotiation is disabled. +/* Defined, option negotiation is disabled. #define NX_TELNET_SERVER_OPTION_DISABLE */ @@ -79,8 +68,8 @@ extern "C" { /* If NX_TELNET_SERVER_OPTION_DISABLE is not defined, and Telnet Server needs a packet pool, this option lets the application create the packet - pool instead of the Telnet Server. -#define NX_TELNET_SERVER_USER_CREATE_PACKET_POOL + pool instead of the Telnet Server. +#define NX_TELNET_SERVER_USER_CREATE_PACKET_POOL */ #endif /* NX_TELNET_SERVER_OPTION_DISABLE */ @@ -229,7 +218,7 @@ typedef struct NX_TELNET_SERVER_STRUCT #ifndef NX_TELNET_SERVER_OPTION_DISABLE #ifndef NX_TELNET_SERVER_USER_CREATE_PACKET_POOL UCHAR nx_telnet_server_pool_area[NX_TELNET_SERVER_PACKET_POOL_SIZE]; - NX_PACKET_POOL nx_telnet_server_packet_pool; /* Server TCP packet pool + NX_PACKET_POOL nx_telnet_server_packet_pool; /* Server TCP packet pool for telnet option messages */ #endif /* NX_TELNET_SERVER_USER_CREATE_PACKET_POOL */ NX_PACKET_POOL *nx_telnet_server_packet_pool_ptr; /* Pointer to packet pool */ @@ -250,9 +239,9 @@ typedef struct NX_TELNET_SERVER_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/tftp/nxd_tftp_client.c b/addons/tftp/nxd_tftp_client.c index 6bd39732..d11abc37 100644 --- a/addons/tftp/nxd_tftp_client.c +++ b/addons/tftp/nxd_tftp_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -79,14 +79,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_create(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *tftp_client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, UINT ip_type) { @@ -153,14 +145,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_create(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *tftp_client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, UINT ip_type) { @@ -261,14 +245,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_delete(NX_TFTP_CLIENT *tftp_client_ptr) { @@ -323,14 +299,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_delete(NX_TFTP_CLIENT *tftp_client_ptr) { @@ -383,14 +351,6 @@ UINT _nxd_tftp_client_delete(NX_TFTP_CLIENT *tftp_client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_set_interface(NX_TFTP_CLIENT *tftp_client_ptr, UINT if_index) { @@ -453,14 +413,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_set_interface(NX_TFTP_CLIENT *tftp_client_ptr, UINT if_index) { @@ -514,14 +466,6 @@ UINT _nxd_tftp_client_set_interface(NX_TFTP_CLIENT *tftp_client_ptr, UINT if_in /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_error_info_get(NX_TFTP_CLIENT *tftp_client_ptr, UINT *error_code, CHAR **error_string) { @@ -582,14 +526,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_error_info_get(NX_TFTP_CLIENT *tftp_client_ptr, UINT *error_code, CHAR **error_string) { @@ -637,14 +573,6 @@ UINT _nxd_tftp_client_error_info_get(NX_TFTP_CLIENT *tftp_client_ptr, UINT *err /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_file_close(NX_TFTP_CLIENT *tftp_client_ptr, UINT ip_type) { @@ -707,14 +635,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_file_close(NX_TFTP_CLIENT *tftp_client_ptr, UINT ip_type) { @@ -849,14 +769,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tftp_client_file_open(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *file_name, ULONG server_ip_address, UINT open_type, ULONG wait_option) { @@ -933,14 +845,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tftp_client_file_open(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *file_name, ULONG server_ip_address, UINT open_type, ULONG wait_option) { @@ -1014,14 +918,6 @@ NXD_ADDRESS server_address; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_file_open(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *file_name, NXD_ADDRESS *server_ip_address, UINT open_type, ULONG wait_option, UINT ip_type) { @@ -1100,14 +996,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_file_open(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *file_name, NXD_ADDRESS *server_ip_address, UINT open_type, ULONG wait_option, UINT ip_type) { @@ -1168,14 +1056,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tftp_client_file_open_internal(NX_TFTP_CLIENT *tftp_client_ptr, CHAR *file_name, NXD_ADDRESS *server_ip_address, UINT open_type, ULONG wait_option, UINT ip_type) @@ -1517,14 +1397,6 @@ UINT matching = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_file_read(NX_TFTP_CLIENT *tftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option, UINT ip_type) { @@ -1599,14 +1471,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_file_read(NX_TFTP_CLIENT *tftp_client_ptr, NX_PACKET **packet_ptr, ULONG wait_option, UINT ip_type) { @@ -1747,7 +1611,7 @@ UCHAR resend_ACK_packet = NX_FALSE; { /* The Server will resend previous packet till it times out. - set a flag to indicate we need to resend the ACK packet to + set a flag to indicate we need to resend the ACK packet to prevent this. */ resend_ACK_packet = NX_TRUE; } @@ -1810,7 +1674,7 @@ UCHAR resend_ACK_packet = NX_FALSE; ack_packet -> nx_packet_append_ptr = ack_packet -> nx_packet_prepend_ptr; - /* Valid block number, we need to send an ACK back to server. So now + /* Valid block number, we need to send an ACK back to server. So now build the TFTP ACK message. */ /* Setup a pointer to the packet payload. */ @@ -1979,14 +1843,6 @@ UCHAR resend_ACK_packet = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_file_write(NX_TFTP_CLIENT *tftp_client_ptr, NX_PACKET *packet_ptr, ULONG wait_option, UINT ip_type) { @@ -2055,14 +1911,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_file_write(NX_TFTP_CLIENT *tftp_client_ptr, NX_PACKET *packet_ptr, ULONG wait_option, UINT ip_type) { @@ -2212,7 +2060,7 @@ UINT matching = NX_FALSE; buffer_ptr++; code = *(buffer_ptr); - /* Check if this is a error reported by the server. If so save it to + /* Check if this is a error reported by the server. If so save it to the TFTP Client. */ if (code == NX_TFTP_CODE_ERROR) { @@ -2317,14 +2165,6 @@ UINT matching = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_client_packet_allocate(NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG wait_option, UINT ip_type) { @@ -2390,14 +2230,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_client_packet_allocate(NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG wait_option, UINT ip_type) { @@ -2427,7 +2259,7 @@ UINT status; (*packet_ptr) -> nx_packet_append_ptr = (*packet_ptr) -> nx_packet_prepend_ptr; - /* Successful packet allocation. Adjust the prepend and append pointers forward to + /* Successful packet allocation. Adjust the prepend and append pointers forward to accommodate the TFTP header. */ (*packet_ptr) -> nx_packet_prepend_ptr += 4; (*packet_ptr) -> nx_packet_append_ptr += 4; diff --git a/addons/tftp/nxd_tftp_client.h b/addons/tftp/nxd_tftp_client.h index fea210cd..af124f22 100644 --- a/addons/tftp/nxd_tftp_client.h +++ b/addons/tftp/nxd_tftp_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -39,17 +39,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_TFTP_CLIENT_H @@ -199,9 +188,9 @@ typedef struct NX_TFTP_CLIENT_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/tftp/nxd_tftp_server.c b/addons/tftp/nxd_tftp_server.c index 3b529e35..30518da9 100644 --- a/addons/tftp/nxd_tftp_server.c +++ b/addons/tftp/nxd_tftp_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -82,14 +82,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_server_create(NX_TFTP_SERVER *tftp_server_ptr, CHAR *tftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr) @@ -175,14 +167,6 @@ NX_PACKET *packet_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_server_create(NX_TFTP_SERVER *tftp_server_ptr, CHAR *tftp_server_name, NX_IP *ip_ptr, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr) @@ -349,14 +333,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_server_delete(NX_TFTP_SERVER *tftp_server_ptr) { @@ -418,14 +394,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_server_delete(NX_TFTP_SERVER *tftp_server_ptr) { @@ -542,14 +510,6 @@ NX_TFTP_CLIENT_REQUEST *client_request_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_server_start(NX_TFTP_SERVER *tftp_server_ptr) { @@ -601,14 +561,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_server_start(NX_TFTP_SERVER *tftp_server_ptr) { @@ -658,14 +610,6 @@ UINT _nxd_tftp_server_start(NX_TFTP_SERVER *tftp_server_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tftp_server_stop(NX_TFTP_SERVER *tftp_server_ptr) { @@ -720,14 +664,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tftp_server_stop(NX_TFTP_SERVER *tftp_server_ptr) { @@ -776,14 +712,6 @@ UINT _nxd_tftp_server_stop(NX_TFTP_SERVER *tftp_server_ptr) /* */ /* NetX NetX TCP socket callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_data_present(NX_UDP_SOCKET *socket_ptr) { @@ -831,14 +759,6 @@ NX_TFTP_SERVER *server_ptr; /* */ /* NetX NetX connect callback */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_timer_entry(ULONG tftp_server_address) { @@ -891,14 +811,6 @@ NX_TFTP_SERVER *server_ptr; /* */ /* _nx_tftp_server_thread_entry TFTP server task function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_timer_process(NX_TFTP_SERVER *server_ptr) { @@ -1011,14 +923,6 @@ NX_TFTP_CLIENT_REQUEST *client_request_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_thread_entry(ULONG tftp_server) { @@ -1108,18 +1012,6 @@ ULONG events; /* */ /* nx_tftp_server_thread_entry TFTP thread task function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), improved */ -/* the logic of processing */ -/* chained packet, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_process_received_data(NX_TFTP_SERVER *server_ptr) { @@ -1267,22 +1159,6 @@ ULONG bytes_copyed; /* */ /* _nx_tftp_server_thread_entry TFTP Server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), */ -/* checked the format of the */ -/* received packet, improved */ -/* the logic of processing */ -/* chained packet, fixed the */ -/* issue of cleaning up the */ -/* client request entry, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ void _nx_tftp_server_open_for_read_process(NX_TFTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -1600,20 +1476,6 @@ UINT count = 0; /* */ /* _nx_tftp_server_thread_entry TFTP Server thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), */ -/* checked the format of the */ -/* received packet, improved */ -/* the logic of processing */ -/* chained packet, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_open_for_write_process(NX_TFTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -1874,18 +1736,6 @@ UINT count = 0; /* */ /* _nx_tftp_server_thread_entry TFTP Server thread loop */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), improved */ -/* the logic of processing */ -/* chained packet, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_data_process(NX_TFTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -2007,8 +1857,8 @@ UINT status; NX_PACKET *temp_ptr; - /* Yes, the packet is chained. We have to copy the receive packet into a packet with the - a payload of at least 560 bytes so the write request can be supplied with just the + /* Yes, the packet is chained. We have to copy the receive packet into a packet with the + a payload of at least 560 bytes so the write request can be supplied with just the payload pointer. */ status = nx_packet_copy(packet_ptr, &temp_ptr, server_ptr -> nx_tftp_server_packet_pool_ptr, NX_WAIT_FOREVER); @@ -2073,7 +1923,7 @@ UINT status; if ((packet_ptr -> nx_packet_length - 4) < NX_TFTP_FILE_TRANSFER_MAX) { - /* No, nothing left to write. Close the file, release the packet and delete + /* No, nothing left to write. Close the file, release the packet and delete the client request. */ fx_file_close(&(client_request_ptr -> nx_tftp_client_request_file)); memset(client_request_ptr, 0, sizeof(NX_TFTP_CLIENT_REQUEST)); @@ -2128,18 +1978,6 @@ UINT status; /* */ /* _nx_tftp_server_thread_entry TFTP Server thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), improved */ -/* the logic of processing */ -/* chained packet, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_ack_process(NX_TFTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -2238,7 +2076,7 @@ UINT status; (client_request_ptr -> nx_tftp_client_request_exact_fit == NX_FALSE)) { - /* No, nothing left to send. Close the file, release the packet and delete + /* No, nothing left to send. Close the file, release the packet and delete the client request. */ fx_file_close(&(client_request_ptr -> nx_tftp_client_request_file)); @@ -2307,14 +2145,6 @@ UINT status; /* _nx_tftp_server_timer_process TFTP timeout event */ /* _nx_tftp_server_ack_process Process a received ACK */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tftp_server_send_data(NX_TFTP_SERVER *server_ptr, NX_TFTP_CLIENT_REQUEST *client_request_ptr, UINT retransmit) { @@ -2507,14 +2337,6 @@ UCHAR *buffer_ptr; /* _nx_tftp_server_timer_process TFTP timeout event */ /* _nx_tftp_server_data_process Process a received packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tftp_server_send_ack(NX_TFTP_SERVER *server_ptr, NX_TFTP_CLIENT_REQUEST *client_request_ptr, UINT retransmit) { @@ -2634,18 +2456,6 @@ NX_PACKET *new_packet; /* */ /* _nx_tftp_server_thread_entry TFTP Server thread task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), improved */ -/* the logic of processing */ -/* chained packet, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_error_process(NX_TFTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -2755,14 +2565,6 @@ NX_TFTP_CLIENT_REQUEST *client_request_ptr; /* _nx_tftp_server_open_for_write_process Open for write processing */ /* _nx_tftp_server_open_for_read_process Open for read processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_TFTP_CLIENT_REQUEST * _nx_tftp_server_find_client_request(NX_TFTP_SERVER *server_ptr, UINT port, NXD_ADDRESS *ip_address) { @@ -2885,14 +2687,6 @@ NX_TFTP_CLIENT_REQUEST *client_request_ptr; /* _nx_tftp_server_open_for_write_process Open for write processing */ /* _nx_tftp_server_open_for_read_process Open for read processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tftp_server_send_error(NX_TFTP_SERVER *server_ptr, NXD_ADDRESS *ip_address, UINT port, UINT error, CHAR *error_message) { diff --git a/addons/tftp/nxd_tftp_server.h b/addons/tftp/nxd_tftp_server.h index a8ffd302..04532462 100644 --- a/addons/tftp/nxd_tftp_server.h +++ b/addons/tftp/nxd_tftp_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -39,17 +39,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NXD_TFTP_SERVER_H @@ -119,15 +108,15 @@ extern "C" { /* To enable a retransmission on client requests (e.g. resend - ACK and data packets, as well apply a timeout on a Client request), - define this option. + ACK and data packets, as well apply a timeout on a Client request), + define this option. #define NX_TFTP_SERVER_RETRANSMIT_ENABLE */ #ifdef NX_TFTP_SERVER_RETRANSMIT_ENABLE -/* Define the timer expiration for updating time remaining on a TFTP Client +/* Define the timer expiration for updating time remaining on a TFTP Client request activity timeout (in timer ticks). */ #ifndef NX_TFTP_SERVER_TIMEOUT_PERIOD #define NX_TFTP_SERVER_TIMEOUT_PERIOD 20 @@ -162,7 +151,7 @@ extern "C" { #define NX_TFTP_FILE_TRANSFER_MAX 512 /* 512 byte maximum file transfer */ -/* Derive the maximum TFTP packet size, including Ethernet, IP and UDP headers, and +/* Derive the maximum TFTP packet size, including Ethernet, IP and UDP headers, and accounting for potential physical driver needs at the end of the packet. */ #define NX_TFTP_PACKET_SIZE (NX_UDP_PACKET + NX_TFTP_FILE_TRANSFER_MAX + NX_PHYSICAL_TRAILER) @@ -303,9 +292,9 @@ typedef struct NX_TFTP_SERVER_STRUCT /* Application caller is present, perform API mapping. */ -/* Determine if error checking is desired. If so, map API functions +/* Determine if error checking is desired. If so, map API functions to the appropriate error checking front-ends. Otherwise, map API - functions to the core functions that actually perform the work. + functions to the core functions that actually perform the work. Note: error checking is enabled by default. */ #ifdef NX_DISABLE_ERROR_CHECKING diff --git a/addons/web/nx_tcpserver.c b/addons/web/nx_tcpserver.c index 8f8b611b..42f8cb0d 100644 --- a/addons/web/nx_tcpserver.c +++ b/addons/web/nx_tcpserver.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,15 +74,6 @@ static VOID _nx_tcpserver_thread_entry(ULONG tcpserver_address); /* _nx_tcpserver_start */ /* _nx_tcpserver_connect_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed packet leak issue, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_tcpserver_session_allocate(NX_TCPSERVER *server_ptr, NX_TCP_SESSION **session_pptr) { @@ -157,17 +148,6 @@ NX_TCP_SOCKET *socket_ptr; /* _nx_tcpserver_disconnect_process */ /* _nx_tcpserver_timeout_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* removed debug output, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ static UINT _nx_tcpserver_relisten(NX_TCPSERVER *server_ptr) { @@ -278,14 +258,6 @@ NX_TCP_SESSION *session_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcpserver_create(NX_IP *ip_ptr, NX_TCPSERVER *server_ptr, CHAR *name, ULONG type_of_service, ULONG fragment, UINT time_to_live, ULONG window_size, @@ -429,18 +401,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the index of the */ -/* remote certificate list, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ /* Setup TLS state per server session. */ @@ -588,12 +548,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_tcpserver_tls_ecc_setup(NX_TCPSERVER *server_ptr, const USHORT *supported_groups, USHORT supported_group_count, @@ -658,14 +612,6 @@ NX_SECURE_TLS_SESSION* tls_session; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcpserver_start(NX_TCPSERVER *server_ptr, UINT port, UINT listen_queue_size) { @@ -732,14 +678,6 @@ NX_TCP_SESSION *session_ptr; /* */ /* TCP stack */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_connect_present(NX_TCP_SOCKET *socket_ptr, UINT port) { @@ -784,14 +722,6 @@ NX_TCPSERVER *server_ptr = socket_ptr -> nx_tcp_socket_reserved_ptr; /* */ /* TCP stack */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_data_present(NX_TCP_SOCKET *socket_ptr) { @@ -833,14 +763,6 @@ NX_TCPSERVER *server_ptr = socket_ptr -> nx_tcp_socket_reserved_ptr; /* */ /* TCP stack */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_disconnect_present(NX_TCP_SOCKET *socket_ptr) { @@ -881,14 +803,6 @@ NX_TCPSERVER *server_ptr = socket_ptr -> nx_tcp_socket_reserved_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_timeout(ULONG tcpserver_address) { @@ -935,23 +849,6 @@ NX_TCPSERVER *server_ptr = (NX_TCPSERVER *)tcpserver_address; /* */ /* _nx_tcpserver_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed packet leak issue, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* fixed TLS connection */ -/* deadlock issue, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the wait option */ -/* of TLS connection, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_connect_process(NX_TCPSERVER *server_ptr) { @@ -1087,14 +984,6 @@ NX_TCP_SESSION *session_ptr = NX_NULL; /* */ /* _nx_tcpserver_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_data_process(NX_TCPSERVER *server_ptr) { @@ -1160,15 +1049,6 @@ NX_TCP_SOCKET *socket_ptr; /* */ /* _nx_tcpserver_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed packet leak issue, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_disconnect_process(NX_TCPSERVER *server_ptr) { @@ -1240,15 +1120,6 @@ NX_TCP_SOCKET *socket_ptr; /* */ /* _nx_tcpserver_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed packet leak issue, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_timeout_process(NX_TCPSERVER *server_ptr) { @@ -1333,14 +1204,6 @@ NX_TCP_SESSION *session_ptr; /* */ /* ThreadX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_tcpserver_thread_entry(ULONG tcpserver_address) { @@ -1437,14 +1300,6 @@ NX_TCPSERVER *server_ptr = (NX_TCPSERVER *)tcpserver_address; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcpserver_stop(NX_TCPSERVER *server_ptr) { @@ -1513,14 +1368,6 @@ UINT status; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcpserver_delete(NX_TCPSERVER *server_ptr) { diff --git a/addons/web/nx_tcpserver.h b/addons/web/nx_tcpserver.h index 1debc92e..9b4d05f0 100644 --- a/addons/web/nx_tcpserver.h +++ b/addons/web/nx_tcpserver.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -34,21 +34,6 @@ /* This file defines the NetX TCP Server module component, */ /* including all data types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed packet leak issue, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* deprecated unused macros, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* supported ECC configuration,*/ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_TCPSERVER_H diff --git a/addons/web/nx_web_http_client.c b/addons/web/nx_web_http_client.c index 021dd41e..e3be2192 100644 --- a/addons/web/nx_web_http_client.c +++ b/addons/web/nx_web_http_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -132,14 +132,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_create(NX_WEB_HTTP_CLIENT *client_ptr, CHAR *client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, ULONG window_size, UINT http_client_size) { @@ -206,14 +198,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_create(NX_WEB_HTTP_CLIENT *client_ptr, CHAR *client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr, ULONG window_size) { @@ -295,14 +279,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_delete(NX_WEB_HTTP_CLIENT *client_ptr) { @@ -357,14 +333,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_delete(NX_WEB_HTTP_CLIENT *client_ptr) { @@ -448,14 +416,6 @@ UINT _nx_web_http_client_delete(NX_WEB_HTTP_CLIENT *client_ptr) /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_content_type_header_add(NX_WEB_HTTP_CLIENT *client_ptr, CHAR *resource, ULONG wait_option) { @@ -508,14 +468,6 @@ CHAR string1[20]; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_content_length_header_add(NX_WEB_HTTP_CLIENT *client_ptr, ULONG total_bytes, ULONG wait_option) { @@ -568,14 +520,6 @@ CHAR string1[20]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_get_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -643,14 +587,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_get_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, @@ -729,14 +665,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_get_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -817,14 +745,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_get_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -921,14 +841,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_get_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -998,14 +910,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_get_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -1087,14 +991,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_get_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -1177,14 +1073,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_get_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -1283,14 +1171,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_get_server_response(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -1471,14 +1351,6 @@ NX_PACKET *tmp_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_response_body_get(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -1545,17 +1417,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* released invalid packet, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_response_body_get(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_pptr, ULONG wait_option) { @@ -1844,14 +1705,6 @@ UINT status_code = NX_SUCCESS; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_response_read(NX_WEB_HTTP_CLIENT *client_ptr, UCHAR *data, ULONG wait_option, NX_PACKET **current_packet_pptr, UCHAR **current_data_pptr) @@ -1953,14 +1806,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_response_byte_expect(NX_WEB_HTTP_CLIENT *client_ptr, UCHAR data, ULONG wait_option, NX_PACKET **current_packet_pptr, UCHAR **current_data_pptr) @@ -2026,14 +1871,6 @@ UCHAR tmp; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_chunked_size_get(NX_WEB_HTTP_CLIENT *client_ptr, UINT *chunk_size, ULONG wait_option, NX_PACKET **current_packet_pptr, UCHAR **current_data_pptr) @@ -2171,14 +2008,6 @@ UINT chunk_extension = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_response_chunked_get(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_pptr, ULONG wait_option) { @@ -2418,14 +2247,6 @@ UCHAR *current_data_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_chunked_set(NX_WEB_HTTP_CLIENT *client_ptr, UINT chunk_size, NX_PACKET *packet_ptr) { @@ -2478,14 +2299,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_chunked_set(NX_WEB_HTTP_CLIENT *client_ptr, UINT chunk_size, NX_PACKET *packet_ptr) { @@ -2583,14 +2396,6 @@ CHAR crlf[2] = {13,10}; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_packet_send(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT more_data, ULONG wait_option) { @@ -2645,17 +2450,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the invalid release issue, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_packet_send(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT more_data, ULONG wait_option) { @@ -2749,14 +2543,6 @@ UINT length = packet_ptr -> nx_packet_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_put_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -2830,14 +2616,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_put_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -2915,14 +2693,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_put_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -3014,14 +2784,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_put_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -3139,14 +2901,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_put_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, @@ -3219,14 +2973,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_put_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, @@ -3310,14 +3056,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_put_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -3406,14 +3144,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_put_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -3531,14 +3261,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_post_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -3612,14 +3334,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_post_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, ULONG wait_option) @@ -3698,14 +3412,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_post_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -3797,14 +3503,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_post_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -3924,14 +3622,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_post_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, @@ -4004,14 +3694,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_post_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG total_bytes, @@ -4095,14 +3777,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_post_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -4190,14 +3864,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_post_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -4312,14 +3978,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_head_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -4387,14 +4045,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_head_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG wait_option) @@ -4472,14 +4122,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_head_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -4563,14 +4205,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_head_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -4668,14 +4302,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_head_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -4746,14 +4372,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_head_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -4836,14 +4454,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_head_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -4927,14 +4537,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_head_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -5035,14 +4637,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_delete_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -5110,14 +4704,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_delete_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, ULONG wait_option) @@ -5195,14 +4781,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_delete_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -5287,14 +4865,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_delete_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, @@ -5393,14 +4963,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_delete_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -5471,14 +5033,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_delete_secure_start(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, CHAR *host, CHAR *username, CHAR *password, @@ -5561,14 +5115,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_delete_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -5652,14 +5198,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_delete_secure_start_extended(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, CHAR *resource, UINT resource_length, CHAR *host, UINT host_length, @@ -5757,14 +5295,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_put_packet(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -5857,17 +5387,6 @@ UINT header_size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the invalid release issue, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_put_packet(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -5997,14 +5516,6 @@ UINT status; /* */ /* _nx_web_http_client_put_start Start the PUT process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_type_get(CHAR *name, CHAR *http_type_string) { @@ -6019,7 +5530,7 @@ UINT i; i++; } - /* Now look backwards to find the last period that signals the + /* Now look backwards to find the last period that signals the file extension. */ while ((i) && (name[i] != '.')) { @@ -6178,14 +5689,6 @@ UINT i; /* */ /* _nx_web_http_client_get_start Start the GET operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_content_length_get(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -6310,14 +5813,6 @@ UINT found = NX_FALSE; /* */ /* _nx_web_http_client_process_header_fields */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_memicmp(UCHAR *src, ULONG src_length, UCHAR *dest, ULONG dest_length) { @@ -6389,14 +5884,6 @@ UCHAR ch; /* */ /* _nx_web_http_client_get_start Start GET processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_process_header_fields(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -6454,7 +5941,7 @@ UINT version = 0; while (((buffer_ptr+1) < (CHAR *) packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != (CHAR) 0)) { - /* Check for the token. This signals a blank line, which also + /* Check for the token. This signals a blank line, which also specifies the start of the content. */ if ((*buffer_ptr == (CHAR) 13) && (*(buffer_ptr+1) == (CHAR) 10)) @@ -6584,14 +6071,6 @@ UINT version = 0; /* _nx_web_http_client_get_start Start GET processing */ /* _nx_web_http_client_put_start Start PUT processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_number_convert(UINT number, CHAR *string) { @@ -6683,14 +6162,6 @@ UINT size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_connect(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, ULONG wait_option) @@ -6754,17 +6225,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), */ -/* supported non-blocking mode,*/ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_connect(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, ULONG wait_option) @@ -6879,14 +6339,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_secure_connect(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, UINT (*tls_setup)(NX_WEB_HTTP_CLIENT *client_ptr, NX_SECURE_TLS_SESSION *), @@ -6948,14 +6400,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_secure_connect(NX_WEB_HTTP_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port, UINT (*tls_setup)(NX_WEB_HTTP_CLIENT *client_ptr, NX_SECURE_TLS_SESSION *), @@ -7059,14 +6503,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_initialize(NX_WEB_HTTP_CLIENT *client_ptr, UINT method, /* GET, PUT, DELETE, POST, HEAD */ @@ -7170,14 +6606,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_initialize(NX_WEB_HTTP_CLIENT *client_ptr, UINT method, /* GET, PUT, DELETE, POST, HEAD */ @@ -7264,14 +6692,6 @@ UINT temp_password_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_initialize_extended(NX_WEB_HTTP_CLIENT *client_ptr, UINT method, /* GET, PUT, DELETE, POST, HEAD */ @@ -7391,19 +6811,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_initialize_extended(NX_WEB_HTTP_CLIENT *client_ptr, UINT method, /* GET, PUT, DELETE, POST, HEAD */ @@ -7681,14 +7088,6 @@ UINT string2_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_header_add(NX_WEB_HTTP_CLIENT *client_ptr, CHAR *field_name, UINT name_length, CHAR *field_value, UINT value_length, UINT wait_option) @@ -7748,14 +7147,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_header_add(NX_WEB_HTTP_CLIENT *client_ptr, CHAR *field_name, UINT name_length, CHAR *field_value, UINT value_length, UINT wait_option) @@ -7837,14 +7228,6 @@ CHAR crlf[2] = {13,10}; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_send(NX_WEB_HTTP_CLIENT *client_ptr, ULONG wait_option) { @@ -7900,14 +7283,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_send(NX_WEB_HTTP_CLIENT *client_ptr, ULONG wait_option) { @@ -8016,14 +7391,6 @@ CHAR crlf[2] = {13,10}; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_request_packet_allocate(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT wait_option) @@ -8083,14 +7450,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_request_packet_allocate(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT wait_option) { @@ -8161,14 +7520,6 @@ NXD_ADDRESS *server_ip; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_client_response_header_callback_set(NX_WEB_HTTP_CLIENT *client_ptr, VOID (*callback_function)(NX_WEB_HTTP_CLIENT *client_ptr, @@ -8227,14 +7578,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_response_header_callback_set(NX_WEB_HTTP_CLIENT *client_ptr, VOID (*callback_function)(NX_WEB_HTTP_CLIENT *client_ptr, @@ -8288,14 +7631,6 @@ UINT _nx_web_http_client_response_header_callback_set(NX_WEB_HTTP_CLIENT *client /* _nx_web_http_client_put_packet */ /* _nx_web_http_client_request_send */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_send(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -8355,14 +7690,6 @@ UINT status; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_client_receive(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -8423,14 +7750,6 @@ UINT status; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_client_error_exit(NX_WEB_HTTP_CLIENT *client_ptr, UINT wait_option) { @@ -8482,14 +7801,6 @@ VOID _nx_web_http_client_error_exit(NX_WEB_HTTP_CLIENT *client_ptr, UINT wait_op /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_client_cleanup(NX_WEB_HTTP_CLIENT *client_ptr) { diff --git a/addons/web/nx_web_http_client.h b/addons/web/nx_web_http_client.h index ed3ec90c..50527eec 100644 --- a/addons/web/nx_web_http_client.h +++ b/addons/web/nx_web_http_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -39,18 +39,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ #ifndef NX_WEB_HTTP_CLIENT_H diff --git a/addons/web/nx_web_http_common.h b/addons/web/nx_web_http_common.h index 458cb7d4..7029e494 100644 --- a/addons/web/nx_web_http_common.h +++ b/addons/web/nx_web_http_common.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -39,18 +39,6 @@ /* included, along with fx_api.h and fx_port.h. If HTTPS is being used */ /* then nx_secure_tls_api.h must also be included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ #ifndef NX_WEB_HTTP_COMMON_H @@ -95,11 +83,11 @@ extern "C" { #define NX_WEB_HTTP_MAX_PASSWORD 20 #endif -/* To enabled HTTPS, define this symbol +/* To enabled HTTPS, define this symbol #define NX_WEB_HTTPS_ENABLE */ -/* To enable MD5 digest authentication, define this symbol +/* To enable MD5 digest authentication, define this symbol #define NX_WEB_HTTP_DIGEST_ENABLE */ diff --git a/addons/web/nx_web_http_server.c b/addons/web/nx_web_http_server.c index 5fb6b018..281ae0ff 100644 --- a/addons/web/nx_web_http_server.c +++ b/addons/web/nx_web_http_server.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -113,14 +113,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_content_get(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) { @@ -184,14 +176,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_content_get(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) { @@ -242,14 +226,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_packet_content_find(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, ULONG *content_length) { @@ -310,17 +286,6 @@ UINT _nxe_web_http_server_packet_content_find(NX_WEB_HTTP_SERVER *server_ptr, N /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_packet_content_find(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, ULONG *content_length) { @@ -521,14 +486,6 @@ ULONG temp_offset; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_packet_get(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr) { @@ -581,14 +538,6 @@ UINT _nxe_web_http_server_packet_get(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_packet_get(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr) { @@ -673,14 +622,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_content_get_extended(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) @@ -752,14 +693,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_content_get_extended(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG byte_offset, CHAR *destination_ptr, UINT destination_size, UINT *actual_size) @@ -1030,14 +963,6 @@ NX_PACKET *header_packet_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_content_length_get(NX_PACKET *packet_ptr, ULONG *content_length) { @@ -1093,14 +1018,6 @@ UINT status; /* */ /* Threads */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_content_length_get(NX_PACKET *packet_ptr, ULONG *length) { @@ -1215,14 +1132,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_create(NX_WEB_HTTP_SERVER *http_server_ptr, CHAR *http_server_name, NX_IP *ip_ptr, UINT server_port, FX_MEDIA *media_ptr, VOID *stack_ptr, ULONG stack_size, NX_PACKET_POOL *pool_ptr, UINT (*authentication_check)(NX_WEB_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm), @@ -1307,14 +1216,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_create(NX_WEB_HTTP_SERVER *http_server_ptr, CHAR *http_server_name, NX_IP *ip_ptr, @@ -1412,14 +1313,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_delete(NX_WEB_HTTP_SERVER *http_server_ptr) { @@ -1481,14 +1374,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_delete(NX_WEB_HTTP_SERVER *http_server_ptr) { @@ -1557,14 +1442,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_param_get(NX_PACKET *packet_ptr, UINT param_number, CHAR *param_ptr, UINT *param_size, UINT max_param_size) { @@ -1623,14 +1500,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_param_get(NX_PACKET *packet_ptr, UINT param_number, CHAR *param_ptr, UINT *param_size, UINT max_param_size) { @@ -1785,14 +1654,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_query_get(NX_PACKET *packet_ptr, UINT query_number, CHAR *query_ptr, UINT *query_size, UINT max_query_size) { @@ -1852,14 +1713,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_query_get(NX_PACKET *packet_ptr, UINT query_number, CHAR *query_ptr, UINT *query_size, UINT max_query_size) { @@ -2007,14 +1860,6 @@ CHAR *buffer_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_start(NX_WEB_HTTP_SERVER *http_server_ptr) { @@ -2067,14 +1912,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_start(NX_WEB_HTTP_SERVER *http_server_ptr) { @@ -2142,14 +1979,6 @@ UINT port; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_secure_configure(NX_WEB_HTTP_SERVER *http_server_ptr, const NX_SECURE_TLS_CRYPTO *crypto_table, VOID *metadata_buffer, ULONG metadata_size, @@ -2253,16 +2082,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_secure_configure(NX_WEB_HTTP_SERVER *http_server_ptr, const NX_SECURE_TLS_CRYPTO *crypto_table, VOID *metadata_buffer, ULONG metadata_size, @@ -2328,12 +2147,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_secure_ecc_configure(NX_WEB_HTTP_SERVER *http_server_ptr, const USHORT *supported_groups, USHORT supported_group_count, @@ -2387,12 +2200,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_secure_ecc_configure(NX_WEB_HTTP_SERVER *http_server_ptr, const USHORT *supported_groups, USHORT supported_group_count, @@ -2440,14 +2247,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_stop(NX_WEB_HTTP_SERVER *http_server_ptr) { @@ -2502,14 +2301,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_stop(NX_WEB_HTTP_SERVER *http_server_ptr) { @@ -2571,14 +2362,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_callback_data_send(NX_WEB_HTTP_SERVER *server_ptr, VOID *data_ptr, ULONG data_length) { @@ -2637,14 +2420,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_callback_data_send(NX_WEB_HTTP_SERVER *server_ptr, VOID *data_ptr, ULONG data_length) { @@ -2736,14 +2511,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_callback_response_send(NX_WEB_HTTP_SERVER *server_ptr, CHAR *status_code, CHAR *information, CHAR *additional_info) { @@ -2804,14 +2571,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_callback_response_send(NX_WEB_HTTP_SERVER *server_ptr, CHAR *status_code, CHAR *information, CHAR *additional_info) { @@ -2879,14 +2638,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_callback_response_send_extended(NX_WEB_HTTP_SERVER *server_ptr, CHAR *status_code, UINT status_code_length, CHAR *information, @@ -2960,14 +2711,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_callback_response_send_extended(NX_WEB_HTTP_SERVER *server_ptr, CHAR *status_code, UINT status_code_length, CHAR *information, @@ -3033,14 +2776,6 @@ UINT temp_additional_info_length = 0; /* */ /* NetX Duo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_connection_end(NX_TCPSERVER *tcpserver_ptr, NX_TCP_SESSION *session_ptr) { @@ -3089,14 +2824,6 @@ NX_WEB_HTTP_SERVER *server_ptr; /* */ /* NetX Duo */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_connection_timeout(NX_TCPSERVER *tcpserver_ptr, NX_TCP_SESSION *session_ptr) { @@ -3156,14 +2883,6 @@ NX_WEB_HTTP_SERVER *server_ptr; /* */ /* NetX */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_receive_data(NX_TCPSERVER *tcpserver_ptr, NX_TCP_SESSION *session_ptr) { @@ -3428,14 +3147,6 @@ NX_PACKET *response_pkt; /* CALLED BY */ /* _nx_web_http_server_receive_data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_get_client_request(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr) { @@ -3659,14 +3370,6 @@ NX_PACKET *tmp_ptr; /* */ /* _nx_web_http_server_receive_data HTTP receive processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_get_process(NX_WEB_HTTP_SERVER *server_ptr, UINT request_type, NX_PACKET *packet_ptr) { @@ -3882,7 +3585,7 @@ UINT temp_realm_length = 0; complete. */ /* If the HTTP server receives an empty POST request (no message body, content length = 0, it is the - responsibility of the request notify callback to send a response (if any) to the HTTP Client. + responsibility of the request notify callback to send a response (if any) to the HTTP Client. The HTTP server will process the request no further. */ /* Determine if a user supplied get function has been specified. */ @@ -4069,7 +3772,7 @@ UINT temp_realm_length = 0; /* Get length of packet */ temp = new_packet_ptr -> nx_packet_length; - /* Now, loop to send the data contents. If the request type is "HEAD", skip this loop to output the + /* Now, loop to send the data contents. If the request type is "HEAD", skip this loop to output the file contents. */ while ((length) && (request_type != NX_WEB_HTTP_SERVER_HEAD_REQUEST)) { @@ -4202,14 +3905,6 @@ UINT temp_realm_length = 0; /* _nx_web_http_server_get_process GET request processing */ /* _nx_web_http_server_put_process PUT request processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_put_process(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -4372,7 +4067,7 @@ UINT temp_realm_length = 0; /* At this point, either there isn't any required authentication for this resource or the authentication is complete. */ - /* If the request is empty (content-length = 0) the request notify callback is where a response is generated + /* If the request is empty (content-length = 0) the request notify callback is where a response is generated to return to the Client. NetX HTTP Server will not process an empty request further. */ /* Determine if a user supplied get function has been specified. */ @@ -4748,14 +4443,6 @@ UINT temp_realm_length = 0; /* */ /* _nx_web_http_server_receive_data HTTP Server receive processing*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_delete_process(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -4975,14 +4662,6 @@ UINT temp_realm_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_invalid_userpassword_notify_set(NX_WEB_HTTP_SERVER *http_server_ptr, UINT (*invalid_username_password_callback)(CHAR *resource, NXD_ADDRESS *client_nxd_address, UINT request_type)) @@ -5036,14 +4715,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_invalid_userpassword_notify_set(NX_WEB_HTTP_SERVER *http_server_ptr, UINT (*invalid_username_password_callback)(CHAR *resource, NXD_ADDRESS *client_nxd_address, UINT request_type)) @@ -5102,14 +4773,6 @@ UINT _nx_web_http_server_invalid_userpassword_notify_set(NX_WEB_HTTP_SERVER *htt /* _nx_web_http_server_put_process Process PUT request */ /* _nx_web_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_response_send(NX_WEB_HTTP_SERVER *server_ptr, CHAR *status_code, UINT status_code_length, CHAR *information, @@ -5242,22 +4905,6 @@ NX_PACKET *packet_ptr; /* _nx_web_http_server_put_process Process PUT request */ /* _nx_web_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the issue of processing */ -/* empty password, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_basic_authenticate(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *name_ptr, CHAR *password_ptr, CHAR *realm_ptr, UINT *auth_request_present) { @@ -5465,18 +5112,6 @@ UINT authorization_decoded_size; /* _nx_web_http_server_basic_authenticate */ /* Basic authenticate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the HTTP Server state issue */ -/* with basic authorization, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_retrieve_basic_authorization(NX_PACKET *packet_ptr, CHAR *authorization_request_ptr) { @@ -5644,14 +5279,6 @@ CHAR *buffer_ptr; /* _nx_web_http_server_put_process Process PUT request */ /* _nx_web_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_retrieve_resource(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *destination, UINT max_size) { @@ -5868,14 +5495,6 @@ CHAR *buffer_ptr; /* _nx_web_http_server_get_process Process GET request */ /* _nx_web_http_server_put_process Process PUT request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_calculate_content_offset(NX_PACKET *packet_ptr) { @@ -5972,14 +5591,6 @@ UINT crlf_found = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_type_get(NX_WEB_HTTP_SERVER *server_ptr, CHAR *name, CHAR *http_type_string, UINT *string_size) { @@ -6033,14 +5644,6 @@ UINT status; /* */ /* _nx_web_http_server_type_get_extended Get MIME type */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_type_get(NX_WEB_HTTP_SERVER *server_ptr, CHAR *name, CHAR *http_type_string, UINT *string_size) { @@ -6094,14 +5697,6 @@ UINT temp_name_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_type_get_extended(NX_WEB_HTTP_SERVER *server_ptr, CHAR *name, UINT name_length, CHAR *http_type_string, UINT http_type_string_max_size, @@ -6168,15 +5763,6 @@ UINT status; /* _nx_web_http_server_get_process Process GET request */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_type_get_extended(NX_WEB_HTTP_SERVER *server_ptr, CHAR *name, UINT name_length, CHAR *http_type_string, UINT http_type_string_max_size, @@ -6220,7 +5806,7 @@ UINT temp_name_length; /* No extension is found. Return the default mime type. */ if(http_type_string_max_size < (sizeof(NX_WEB_HTTP_SERVER_DEFAULT_MIME))) { - /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into + /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into the caller-supplied http_type_string. */ return (NX_WEB_HTTP_ERROR); } @@ -6295,7 +5881,7 @@ UINT temp_name_length; if(http_type_string_max_size < (sizeof(NX_WEB_HTTP_SERVER_DEFAULT_MIME))) { - /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into + /* NX_HTTP_SERVER_DEFAULT_MIME does not fit into the caller-supplied http_type_string. */ return (NX_WEB_HTTP_ERROR); } @@ -6340,12 +5926,6 @@ UINT temp_name_length; /* _nx_web_http_server_digest_authenticate */ /* Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_nonce_allocate(NX_WEB_HTTP_SERVER *server_ptr, NX_WEB_HTTP_SERVER_NONCE **nonce_ptr) { @@ -6453,17 +6033,6 @@ NX_WEB_HTTP_SERVER_NONCE *nonces_list = server_ptr -> nx_web_http_server_nonces; /* _nx_web_http_server_put_process Process PUT request */ /* _nx_web_http_server_delete_process Process DELETE request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_digest_authenticate(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *name_ptr, CHAR *password_ptr, CHAR *realm_ptr, UINT *auth_request_present) { @@ -6567,7 +6136,7 @@ NX_WEB_HTTP_SERVER_NONCE *nonce_ptr = NX_NULL; nonce_ptr -> nonce_state = NX_WEB_HTTP_SERVER_NONCE_INVALID; } - /* If digest authenticate callback function returns non-success value, the request is + /* If digest authenticate callback function returns non-success value, the request is considered unauthenticated. */ if(callback_status != NX_SUCCESS) status = NX_WEB_HTTP_DIGEST_AUTHENTICATE; @@ -6769,17 +6338,6 @@ NX_WEB_HTTP_SERVER_NONCE *nonce_ptr = NX_NULL; /* _nx_web_http_server_digest_authenticate */ /* Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_digest_response_calculate(NX_WEB_HTTP_SERVER *server_ptr, CHAR *username, CHAR *realm, CHAR *password, CHAR *nonce, CHAR *method, CHAR *uri, CHAR *nc, CHAR *cnonce, CHAR *result) { @@ -6894,17 +6452,6 @@ UINT cnonce_length; /* _nx_web_http_server_digest_authenticate */ /* Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_retrieve_digest_authorization(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, CHAR *response, CHAR *uri, CHAR *nc, CHAR *cnonce, NX_WEB_HTTP_SERVER_NONCE **nonce_ptr) { @@ -7372,14 +6919,6 @@ UINT i; /* _nx_web_http_server_digest_response_calculate */ /* Digest authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_hex_ascii_convert(CHAR *source, UINT source_length, CHAR *destination) { @@ -7453,14 +6992,6 @@ CHAR digit; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_get_entity_header(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, UCHAR *entity_header_buffer, ULONG buffer_size) { @@ -7525,18 +7056,6 @@ UINT _nxe_web_http_server_get_entity_header(NX_WEB_HTTP_SERVER *server_ptr, NX_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* fixed write underflow, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* verified memmove use cases, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_get_entity_header(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, UCHAR *entity_header_buffer, ULONG buffer_size) { @@ -7896,14 +7415,6 @@ UINT index; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_get_entity_content(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, ULONG *available_offset, ULONG *available_length) { @@ -7963,14 +7474,6 @@ UINT _nxe_web_http_server_get_entity_content(NX_WEB_HTTP_SERVER *server_ptr, NX /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_get_entity_content(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, ULONG *available_offset, ULONG *available_length) { @@ -8038,14 +7541,6 @@ UINT status; /* _nx_web_http_server_get_entity_header */ /* _nx_web_http_server_get_entity_content */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_boundary_find(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr) { @@ -8294,14 +7789,6 @@ UINT boundary_length; /* */ /* _nx_web_http_server_boundary_find */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_match_string(UCHAR *src_start, UCHAR *src_end, UCHAR *target, ULONG target_length, ULONG *match_count, UCHAR **match_end_ptr) { @@ -8422,14 +7909,6 @@ ULONG remain_match; /* _nx_web_http_server_get_process */ /* _nx_web_http_server_get_entity_header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_field_value_get(NX_PACKET *packet_ptr, UCHAR *field_name, ULONG name_length, UCHAR *field_value, ULONG field_value_size) { @@ -8538,14 +8017,6 @@ UINT index; /* _nx_web_http_server_get_entity_header */ /* _nx_web_http_server_field_value_get */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_memicmp(UCHAR *src, ULONG src_length, UCHAR *dest, ULONG dest_length) { @@ -8630,18 +8101,6 @@ UCHAR ch; /* _nx_web_http_server_response_send */ /* _nx_web_http_server_callback_generate_response_header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_generate_response_header(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT status_code_length, @@ -8894,14 +8353,6 @@ CHAR status_code_not_modified; /* _nx_web_http_server_chunked_size_get Gets chunk size of request */ /* packet chunk */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_request_read(NX_WEB_HTTP_SERVER *server_ptr, UCHAR *data, ULONG wait_option, NX_PACKET **current_packet_pptr, UCHAR **current_data_pptr) @@ -9004,14 +8455,6 @@ UINT status; /* _nx_web_http_server_request_chunked_get */ /* Get chunk data from request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_request_byte_expect(NX_WEB_HTTP_SERVER *server_ptr, UCHAR data, ULONG wait_option, NX_PACKET **current_packet_pptr, UCHAR **current_data_pptr) @@ -9077,14 +8520,6 @@ UCHAR tmp; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_chunked_size_get(NX_WEB_HTTP_SERVER *server_ptr, UINT *chunk_size, ULONG wait_option, NX_PACKET **current_packet_pptr, UCHAR **current_data_pptr) @@ -9221,14 +8656,6 @@ UINT chunk_extension = 0; /* _nx_web_http_server_packet_get Get next packet from HTTP */ /* server socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_request_chunked_get(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, ULONG wait_option) { @@ -9464,14 +8891,6 @@ UCHAR *current_data_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_response_chunked_set(NX_WEB_HTTP_SERVER *server_ptr, UINT chunk_size, NX_PACKET *packet_ptr) { @@ -9524,14 +8943,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_response_chunked_set(NX_WEB_HTTP_SERVER *server_ptr, UINT chunk_size, NX_PACKET *packet_ptr) { @@ -9634,14 +9045,6 @@ CHAR crlf[2] = {13,10}; /* HTTP header */ /* _nx_web_http_server_receive_data HTTP Server receive processing*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_chunked_check(NX_PACKET *packet_ptr) { @@ -9698,14 +9101,6 @@ UINT temp_string_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_response_packet_allocate(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, UINT wait_option) @@ -9761,14 +9156,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_response_packet_allocate(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, UINT wait_option) @@ -9831,14 +9218,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_callback_generate_response_header(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT content_length, CHAR *content_type, @@ -9893,14 +9272,6 @@ UINT _nxe_web_http_server_callback_generate_response_header(NX_WEB_HTTP_SERVER /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_callback_generate_response_header(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, UINT content_length, CHAR *content_type, @@ -9966,14 +9337,6 @@ UINT additional_header_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_callback_generate_response_header_extended(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, @@ -10043,14 +9406,6 @@ UINT _nxe_web_http_server_callback_generate_response_header_extended(NX_WEB_HTT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_callback_generate_response_header_extended(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_pptr, CHAR *status_code, @@ -10117,14 +9472,6 @@ UINT temp_add_header_length = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_callback_packet_send(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -10169,14 +9516,6 @@ UINT _nxe_web_http_server_callback_packet_send(NX_WEB_HTTP_SERVER *server_ptr, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_callback_packet_send(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -10248,14 +9587,6 @@ UINT length = packet_ptr -> nx_packet_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_gmt_callback_set(NX_WEB_HTTP_SERVER *server_ptr, VOID (*gmt_get)(NX_WEB_HTTP_SERVER_DATE *)) { @@ -10300,14 +9631,6 @@ UINT _nxe_web_http_server_gmt_callback_set(NX_WEB_HTTP_SERVER *server_ptr, VOID /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_gmt_callback_set(NX_WEB_HTTP_SERVER *server_ptr, VOID (*gmt_get)(NX_WEB_HTTP_SERVER_DATE *)) { @@ -10359,14 +9682,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_cache_info_callback_set(NX_WEB_HTTP_SERVER *server_ptr, UINT (*cache_info_get)(CHAR *, UINT *, NX_WEB_HTTP_SERVER_DATE *)) { @@ -10416,14 +9731,6 @@ UINT _nxe_web_http_server_cache_info_callback_set(NX_WEB_HTTP_SERVER *server_pt /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_cache_info_callback_set(NX_WEB_HTTP_SERVER *server_ptr, UINT (*cache_info_get)(CHAR *, UINT *, NX_WEB_HTTP_SERVER_DATE *)) { @@ -10475,14 +9782,6 @@ TX_INTERRUPT_SAVE_AREA /* _nx_web_http_server_get_process */ /* _nx_web_http_server_generate_response_header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_date_to_string(NX_WEB_HTTP_SERVER_DATE *date, CHAR *string) { @@ -10566,14 +9865,6 @@ UINT index = 0; /* */ /* _nx_web_http_server_date_to_string */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_date_convert(UINT date, UINT count, CHAR *string) { @@ -10633,14 +9924,6 @@ UINT digit; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_mime_maps_additional_set(NX_WEB_HTTP_SERVER *server_ptr, NX_WEB_HTTP_SERVER_MIME_MAP *mime_maps, UINT mime_maps_num) { @@ -10685,14 +9968,6 @@ UINT _nxe_web_http_server_mime_maps_additional_set(NX_WEB_HTTP_SERVER *server_p /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_mime_maps_additional_set(NX_WEB_HTTP_SERVER *server_ptr, NX_WEB_HTTP_SERVER_MIME_MAP *mime_maps, UINT mime_maps_num) { @@ -10746,14 +10021,6 @@ TX_INTERRUPT_SAVE_AREA /* */ /* _nx_web_http_server_receive_data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_get_client_keepalive(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr) { @@ -10863,14 +10130,6 @@ UINT connection_value_length; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_send(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -10944,14 +10203,6 @@ NX_SECURE_TLS_SESSION *tls_session; /* _nx_web_http_server_request_read Get the next data in byte */ /* _nx_web_http_server_chunked_size_get Get chunk size of the request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_receive(NX_WEB_HTTP_SERVER *server_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -11023,14 +10274,6 @@ NX_SECURE_TLS_SESSION *tls_session; /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_connection_reset(NX_WEB_HTTP_SERVER *server_ptr, NX_TCP_SESSION *session_ptr, UINT wait_option) { @@ -11083,17 +10326,6 @@ NX_TCP_SOCKET *tcp_socket; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_web_http_server_connection_disconnect(NX_WEB_HTTP_SERVER *server_ptr, NX_TCP_SESSION *session_ptr, UINT wait_option) { @@ -11180,14 +10412,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_digest_authenticate_notify_set(NX_WEB_HTTP_SERVER *http_server_ptr, UINT (*digest_authenticate_callback)(NX_WEB_HTTP_SERVER *server_ptr, CHAR *name_ptr, @@ -11245,14 +10469,6 @@ UINT _nxe_web_http_server_digest_authenticate_notify_set(NX_WEB_HTTP_SERVER *htt /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_digest_authenticate_notify_set(NX_WEB_HTTP_SERVER *http_server_ptr, UINT (*digest_authenticate_callback)(NX_WEB_HTTP_SERVER *server_ptr, CHAR *name_ptr, @@ -11309,14 +10525,6 @@ UINT _nx_web_http_server_digest_authenticate_notify_set(NX_WEB_HTTP_SERVER *http /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_web_http_server_authentication_check_set(NX_WEB_HTTP_SERVER *http_server_ptr, UINT (*authentication_check_extended)(NX_WEB_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, UINT *name_length, CHAR **password, UINT *password_length, CHAR **realm, UINT *realm_length)) @@ -11379,14 +10587,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_web_http_server_authentication_check_set(NX_WEB_HTTP_SERVER *http_server_ptr, UINT (*authentication_check_extended)(NX_WEB_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, UINT *name_length, CHAR **password, UINT *password_length, CHAR **realm, UINT *realm_length)) diff --git a/addons/web/nx_web_http_server.h b/addons/web/nx_web_http_server.h index 11dc071e..2169b23a 100644 --- a/addons/web/nx_web_http_server.h +++ b/addons/web/nx_web_http_server.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -39,31 +39,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included, along with fx_api.h and fx_port.h. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* parsing base64, */ -/* resulting in version 6.1.6 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* improved the logic of */ -/* converting number to string,*/ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* deprecated unused macros, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* supported ECC configuration,*/ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), and */ -/* supported random nonce, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef NXD_HTTP_SERVER_H @@ -106,7 +81,7 @@ extern "C" { /* Define the HTTP Server ID. */ #define NX_WEB_HTTP_SERVER_ID 0x48545451UL -/* Enable Digest authentication. +/* Enable Digest authentication. #define NX_WEB_HTTP_DIGEST_ENABLE */ diff --git a/addons/websocket/nx_sha1.c b/addons/websocket/nx_sha1.c index 6758758e..5692852d 100644 --- a/addons/websocket/nx_sha1.c +++ b/addons/websocket/nx_sha1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,7 +68,7 @@ #define LEFT_SHIFT_CIRCULAR(x, n) (((x) << (n)) | ((x) >> (32-(n)))) -/* Define the padding array. This is used to pad the message such that its length is +/* Define the padding array. This is used to pad the message such that its length is 64 bits shy of being a multiple of 512 bits long. */ static UCHAR _nx_sha1_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; @@ -105,14 +105,6 @@ static UCHAR _nx_sha1_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sha1_initialize(NX_SHA1 *context) { @@ -171,15 +163,6 @@ UINT _nx_sha1_initialize(NX_SHA1 *context) /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sha1_update(NX_SHA1 *context, UCHAR *input_ptr, UINT input_length) { @@ -196,7 +179,7 @@ ULONG needed_fill_bytes; if (input_length == 0) return(NX_SUCCESS); - /* Calculate the current byte count mod 64. Note the reason for the + /* Calculate the current byte count mod 64. Note the reason for the shift by 3 is to account for the 8 bits per byte. */ current_bytes = (context -> nx_sha1_bit_count[0] >> 3) & 0x3F; @@ -223,7 +206,7 @@ ULONG needed_fill_bytes; /* Yes, we can complete the buffer and transform it. */ - /* Copy the appropriate portion of the input buffer into the internal + /* Copy the appropriate portion of the input buffer into the internal buffer of the context. */ memcpy((void *) &(context -> nx_sha1_buffer[current_bytes]), (void *) input_ptr, needed_fill_bytes); /* Use case of memcpy is verified. */ @@ -298,14 +281,6 @@ ULONG needed_fill_bytes; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_sha1_digest_calculate(NX_SHA1 *context, UCHAR digest[20]) { @@ -396,14 +371,6 @@ ULONG padding_bytes; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_sha1_process_buffer(NX_SHA1 *context, UCHAR buffer[64]) { @@ -417,7 +384,7 @@ ULONG a, b, c, d, e; /* Setup pointers to the word array. */ w = context -> nx_sha1_word_array; - /* Initialize the first 16 words of the word array, taking care of the + /* Initialize the first 16 words of the word array, taking care of the endian issues at the same time. */ for (t = 0; t < 16; t++) { diff --git a/addons/websocket/nx_sha1.h b/addons/websocket/nx_sha1.h index 56f7e0c7..9638ae73 100644 --- a/addons/websocket/nx_sha1.h +++ b/addons/websocket/nx_sha1.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SHA1_H diff --git a/addons/websocket/nx_websocket_client.c b/addons/websocket/nx_websocket_client.c index be2d5339..5b4de83f 100644 --- a/addons/websocket/nx_websocket_client.c +++ b/addons/websocket/nx_websocket_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -85,12 +85,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_create(NX_WEBSOCKET_CLIENT *client_ptr, UCHAR *client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr) { @@ -145,12 +139,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_create(NX_WEBSOCKET_CLIENT *client_ptr, UCHAR *client_name, NX_IP *ip_ptr, NX_PACKET_POOL *pool_ptr) { @@ -218,12 +206,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_delete(NX_WEBSOCKET_CLIENT *client_ptr) { @@ -273,12 +255,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_delete(NX_WEBSOCKET_CLIENT *client_ptr) { @@ -343,12 +319,6 @@ UINT _nx_websocket_client_delete(NX_WEBSOCKET_CLIENT *client_ptr) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_connect(NX_WEBSOCKET_CLIENT *client_ptr, NX_TCP_SOCKET *socket_ptr, UCHAR *host, UINT host_length, @@ -418,12 +388,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_connect(NX_WEBSOCKET_CLIENT *client_ptr, NX_TCP_SOCKET *socket_ptr, UCHAR *host, UINT host_length, @@ -526,12 +490,6 @@ UINT status; /* _nx_websocket_client_secure_connect Make secure websocket */ /* connection */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_connect_internal(NX_WEBSOCKET_CLIENT *client_ptr, UCHAR *host, UINT host_length, @@ -567,7 +525,7 @@ NX_PACKET *packet_ptr; if (client_ptr -> nx_websocket_client_use_tls) { - /* Use TLS packet allocate. The TLS packet allocate is able to count for + /* Use TLS packet allocate. The TLS packet allocate is able to count for TLS-related header space including crypto initial vector area. */ status = nx_secure_tls_packet_allocate(client_ptr -> nx_websocket_client_tls_session_ptr, client_ptr -> nx_websocket_client_packet_pool_ptr, @@ -767,12 +725,6 @@ NX_PACKET *packet_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_secure_connect(NX_WEBSOCKET_CLIENT *client_ptr, NX_SECURE_TLS_SESSION *tls_session, UCHAR *host, UINT host_length, @@ -842,12 +794,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_secure_connect(NX_WEBSOCKET_CLIENT *client_ptr, NX_SECURE_TLS_SESSION *tls_session, UCHAR *host, UINT host_length, @@ -931,12 +877,6 @@ UINT status; /* _nx_websocket_client_connect_response_process */ /* Process connect response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_name_compare(UCHAR *src, ULONG src_length, UCHAR *dest, ULONG dest_length) { @@ -1014,12 +954,6 @@ UCHAR ch; /* _nx_websocket_client_connect_response_check */ /* Check connect response */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_connect_response_process(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr) { @@ -1083,7 +1017,7 @@ UCHAR accept_cnt = 0; while (((buffer_ptr + 1) < packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != 0)) { - /* Check for the token. This signals a blank line, which also + /* Check for the token. This signals a blank line, which also specifies the start of the content. */ if ((*buffer_ptr == '\r') && (*(buffer_ptr + 1) == '\n')) @@ -1224,12 +1158,6 @@ UCHAR accept_cnt = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_disconnect(NX_WEBSOCKET_CLIENT *client_ptr, UINT wait_option) { @@ -1284,12 +1212,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_disconnect(NX_WEBSOCKET_CLIENT *client_ptr, UINT wait_option) { @@ -1382,12 +1304,6 @@ NX_PACKET *packet_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code, UINT is_final, UINT wait_option) { @@ -1443,12 +1359,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT code, UINT is_final, UINT wait_option) { @@ -1612,12 +1522,6 @@ UINT header_size = NX_WEBSOCKET_HEADER_NORMAL_SIZE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option) { @@ -1675,12 +1579,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code, UINT wait_option) { @@ -1816,12 +1714,6 @@ UINT status = NX_SUCCESS; /* */ /* _nx_websocket_client_receive Receive websocket data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_data_process(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, UINT *code) { @@ -2290,12 +2182,6 @@ UCHAR *data_ptr; /* */ /* _nx_websocket_client_data_process Process data frame */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_packet_trim(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG trim_size) { @@ -2387,12 +2273,6 @@ NX_PACKET *previous_packet_ptr = NX_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_packet_allocate(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -2447,12 +2327,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_packet_allocate(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -2464,7 +2338,7 @@ UINT status; if (client_ptr -> nx_websocket_client_use_tls) { - /* Use TLS packet allocate. The TLS packet allocate is able to count for + /* Use TLS packet allocate. The TLS packet allocate is able to count for TLS-related header space including crypto initial vector area. */ status = nx_secure_tls_packet_allocate(client_ptr -> nx_websocket_client_tls_session_ptr, client_ptr -> nx_websocket_client_packet_pool_ptr, @@ -2546,12 +2420,6 @@ UINT status; /* _nx_websocket_client_connect_internal Make websocket connection */ /* _nx_websocket_client_send Send websocket data frame */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_packet_send(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -2608,12 +2476,6 @@ UINT status; /* _nx_websocket_client_connect_internal Make websocket connection */ /* _nx_websocket_client_receive Receive websocket data frame */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_packet_receive(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { @@ -2681,12 +2543,6 @@ UINT status; /* _nx_websocket_client_connect_internal Make websocket connection */ /* _nx_websocket_client_receive Receive websocket data frame */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_connect_response_check(NX_WEBSOCKET_CLIENT *client_ptr, NX_PACKET *packet_ptr, UINT wait_option) { @@ -2868,12 +2724,6 @@ NX_PACKET *tmp_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_websocket_client_connection_status_callback_set(NX_WEBSOCKET_CLIENT *client_ptr, VOID *context, VOID (*connection_status_callback)(NX_WEBSOCKET_CLIENT *, VOID *, UINT)) @@ -2927,12 +2777,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_websocket_client_connection_status_callback_set(NX_WEBSOCKET_CLIENT *client_ptr, VOID *context, VOID (*connection_status_callback)(NX_WEBSOCKET_CLIENT *, VOID *, UINT)) @@ -2987,12 +2831,6 @@ UINT _nx_websocket_client_connection_status_callback_set(NX_WEBSOCKET_CLIENT *c /* Check connect response */ /* _nx_websocket_client_connect_internal Make websocket connection */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ void _nx_websocket_client_cleanup(NX_WEBSOCKET_CLIENT *client_ptr) { diff --git a/addons/websocket/nx_websocket_client.h b/addons/websocket/nx_websocket_client.h index 135d6c71..b06f9463 100644 --- a/addons/websocket/nx_websocket_client.h +++ b/addons/websocket/nx_websocket_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file defines the NetX WebSocket Protocol component, including */ /* all data types and external references. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Bo Chen Initial Version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef NX_WEBSOCKET_CLIENT_H diff --git a/common/inc/nx_arp.h b/common/inc/nx_arp.h index 32cad47a..c4a294bb 100644 --- a/common/inc/nx_arp.h +++ b/common/inc/nx_arp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_ARP_H diff --git a/common/inc/nx_http_proxy_client.h b/common/inc/nx_http_proxy_client.h index 03aa802e..47756c23 100644 --- a/common/inc/nx_http_proxy_client.h +++ b/common/inc/nx_http_proxy_client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,12 +37,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef NX_HTTP_PROXY_CLIENT_H diff --git a/common/inc/nx_icmp.h b/common/inc/nx_icmp.h index 21761dc7..9faf6f7f 100644 --- a/common/inc/nx_icmp.h +++ b/common/inc/nx_icmp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* component, including all data types and external references. It is */ /* assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_ICMP_H diff --git a/common/inc/nx_icmpv4.h b/common/inc/nx_icmpv4.h index ad8d7b29..4a9ee15f 100644 --- a/common/inc/nx_icmpv4.h +++ b/common/inc/nx_icmpv4.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* component, including all data types and external references. It is */ /* assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_ICMPV4_H diff --git a/common/inc/nx_icmpv6.h b/common/inc/nx_icmpv6.h index f1e6bebb..3722926b 100644 --- a/common/inc/nx_icmpv6.h +++ b/common/inc/nx_icmpv6.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* component, including all data types and external references. It is */ /* assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NX_ICMPV6_H diff --git a/common/inc/nx_igmp.h b/common/inc/nx_igmp.h index 5c2681fa..0d8c0205 100644 --- a/common/inc/nx_igmp.h +++ b/common/inc/nx_igmp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* component, including all data types and external references. It is */ /* assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_IGMP_H diff --git a/common/inc/nx_ip.h b/common/inc/nx_ip.h index 7dc756f6..87e0b80f 100644 --- a/common/inc/nx_ip.h +++ b/common/inc/nx_ip.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_IP_H diff --git a/common/inc/nx_ipv4.h b/common/inc/nx_ipv4.h index 8304d1d4..2057aac7 100644 --- a/common/inc/nx_ipv4.h +++ b/common/inc/nx_ipv4.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,20 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_IPV4_H diff --git a/common/inc/nx_ipv6.h b/common/inc/nx_ipv6.h index d08a353e..a14e068d 100644 --- a/common/inc/nx_ipv6.h +++ b/common/inc/nx_ipv6.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,17 +40,6 @@ /* This header file is for NetX Duo internal use only. Application */ /* shall not include this file directly. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_IPV6_H diff --git a/common/inc/nx_link.h b/common/inc/nx_link.h index 4bfb8c44..e266ce09 100644 --- a/common/inc/nx_link.h +++ b/common/inc/nx_link.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,12 +37,6 @@ /* A quick check in driver is to search for */ /* NX_LINK_RAW_PACKET_SEND. APIs are not supported if not found. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ diff --git a/common/inc/nx_md5.h b/common/inc/nx_md5.h index 45f874f3..4f10c444 100644 --- a/common/inc/nx_md5.h +++ b/common/inc/nx_md5.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_MD5_H diff --git a/common/inc/nx_mld.h b/common/inc/nx_mld.h index 69a9abc5..28035f7b 100644 --- a/common/inc/nx_mld.h +++ b/common/inc/nx_mld.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the IPv6 multicast services. */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_MLD_H diff --git a/common/inc/nx_nd_cache.h b/common/inc/nx_nd_cache.h index ad102756..1f8bd8e9 100644 --- a/common/inc/nx_nd_cache.h +++ b/common/inc/nx_nd_cache.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -46,14 +46,6 @@ /* This header file is for NetX Duo internal use only. Application */ /* shall not include this file directly. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_ND_CACHE_H diff --git a/common/inc/nx_packet.h b/common/inc/nx_packet.h index 8a51f78c..fc00d9bb 100644 --- a/common/inc/nx_packet.h +++ b/common/inc/nx_packet.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,20 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NX_PAC_H diff --git a/common/inc/nx_rarp.h b/common/inc/nx_rarp.h index e1f085c6..3dee5c99 100644 --- a/common/inc/nx_rarp.h +++ b/common/inc/nx_rarp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* component, including all data types and external references. It */ /* is assumed that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #ifndef NX_RARP_H diff --git a/common/inc/nx_system.h b/common/inc/nx_system.h index af7a33bd..2371bcfb 100644 --- a/common/inc/nx_system.h +++ b/common/inc/nx_system.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,14 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SYS_H diff --git a/common/inc/nx_tcp.h b/common/inc/nx_tcp.h index 594ab99c..706f2bd9 100644 --- a/common/inc/nx_tcp.h +++ b/common/inc/nx_tcp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,23 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NX_TCP_H diff --git a/common/inc/nx_udp.h b/common/inc/nx_udp.h index 2ed30dcd..9c355273 100644 --- a/common/inc/nx_udp.h +++ b/common/inc/nx_udp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,23 +37,6 @@ /* including all data types and external references. It is assumed */ /* that nx_api.h and nx_port.h have already been included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), included */ -/* necessary header file, */ -/* resulting in version 6.1.9 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NX_UDP_H diff --git a/common/inc/nx_user_sample.h b/common/inc/nx_user_sample.h index bc139949..0bea111d 100644 --- a/common/inc/nx_user_sample.h +++ b/common/inc/nx_user_sample.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,22 +40,6 @@ /* Note that all the defines in this file may also be made on the */ /* command line when building NetX library and application objects. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* supported random IP id, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NX_USER_H diff --git a/common/src/nx_arp_announce_send.c b/common/src/nx_arp_announce_send.c index ead669ce..93344523 100644 --- a/common/src/nx_arp_announce_send.c +++ b/common/src/nx_arp_announce_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_announce_send(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nx_arp_dynamic_entries_invalidate.c b/common/src/nx_arp_dynamic_entries_invalidate.c index 1ee0d69a..0e8a6a29 100644 --- a/common/src/nx_arp_dynamic_entries_invalidate.c +++ b/common/src/nx_arp_dynamic_entries_invalidate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_dynamic_entries_invalidate(NX_IP *ip_ptr) { diff --git a/common/src/nx_arp_dynamic_entry_delete.c b/common/src/nx_arp_dynamic_entry_delete.c index d8c5d858..fb501ef8 100644 --- a/common/src/nx_arp_dynamic_entry_delete.c +++ b/common/src/nx_arp_dynamic_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Internal */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_dynamic_entry_delete(NX_IP *ip_ptr, NX_ARP *arp_ptr) { diff --git a/common/src/nx_arp_dynamic_entry_set.c b/common/src/nx_arp_dynamic_entry_set.c index 24f34fa4..06335e67 100644 --- a/common/src/nx_arp_dynamic_entry_set.c +++ b/common/src/nx_arp_dynamic_entry_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,17 +70,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), corrected*/ -/* the returned status, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_arp_dynamic_entry_set(NX_IP *ip_ptr, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nx_arp_enable.c b/common/src/nx_arp_enable.c index bff5fc01..906b04da 100644 --- a/common/src/nx_arp_enable.c +++ b/common/src/nx_arp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_enable(NX_IP *ip_ptr, VOID *arp_cache_memory, ULONG arp_cache_size) { diff --git a/common/src/nx_arp_entry_allocate.c b/common/src/nx_arp_entry_allocate.c index 48e354b2..fce07e51 100644 --- a/common/src/nx_arp_entry_allocate.c +++ b/common/src/nx_arp_entry_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_entry_allocate(NX_IP *ip_ptr, NX_ARP **arp_list_ptr, UINT is_static) { diff --git a/common/src/nx_arp_entry_delete.c b/common/src/nx_arp_entry_delete.c index f0a69faf..8f88e2e2 100644 --- a/common/src/nx_arp_entry_delete.c +++ b/common/src/nx_arp_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_entry_delete(NX_IP *ip_ptr, ULONG ip_address) { diff --git a/common/src/nx_arp_gratuitous_send.c b/common/src/nx_arp_gratuitous_send.c index 44386f70..cbc716b0 100644 --- a/common/src/nx_arp_gratuitous_send.c +++ b/common/src/nx_arp_gratuitous_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_gratuitous_send(NX_IP *ip_ptr, VOID (*response_handler)(NX_IP *ip_ptr, NX_PACKET *packet_ptr)) { diff --git a/common/src/nx_arp_hardware_address_find.c b/common/src/nx_arp_hardware_address_find.c index e6f5a1da..3a1ff486 100644 --- a/common/src/nx_arp_hardware_address_find.c +++ b/common/src/nx_arp_hardware_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_hardware_address_find(NX_IP *ip_ptr, ULONG ip_address, ULONG *physical_msw, ULONG *physical_lsw) diff --git a/common/src/nx_arp_info_get.c b/common/src/nx_arp_info_get.c index 1d3f17ed..470861e7 100644 --- a/common/src/nx_arp_info_get.c +++ b/common/src/nx_arp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_info_get(NX_IP *ip_ptr, ULONG *arp_requests_sent, ULONG *arp_requests_received, ULONG *arp_responses_sent, ULONG *arp_responses_received, diff --git a/common/src/nx_arp_initialize.c b/common/src/nx_arp_initialize.c index 18906e11..6432d94d 100644 --- a/common/src/nx_arp_initialize.c +++ b/common/src/nx_arp_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* _nx_system_initialize System initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_initialize(VOID) { diff --git a/common/src/nx_arp_interface_entries_delete.c b/common/src/nx_arp_interface_entries_delete.c index f5a566d3..b7e4f4a0 100644 --- a/common/src/nx_arp_interface_entries_delete.c +++ b/common/src/nx_arp_interface_entries_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_interface_entries_delete(NX_IP *ip_ptr, UINT index) { diff --git a/common/src/nx_arp_ip_address_find.c b/common/src/nx_arp_ip_address_find.c index f66345b3..e677fe96 100644 --- a/common/src/nx_arp_ip_address_find.c +++ b/common/src/nx_arp_ip_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_ip_address_find(NX_IP *ip_ptr, ULONG *ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nx_arp_packet_deferred_receive.c b/common/src/nx_arp_packet_deferred_receive.c index 8927f64d..eca74cc8 100644 --- a/common/src/nx_arp_packet_deferred_receive.c +++ b/common/src/nx_arp_packet_deferred_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application I/O Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_packet_deferred_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_arp_packet_receive.c b/common/src/nx_arp_packet_receive.c index eae6ced0..9b8e36bf 100644 --- a/common/src/nx_arp_packet_receive.c +++ b/common/src/nx_arp_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,17 +68,6 @@ /* */ /* _nx_arp_queue_process ARP receive queue processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* fixed compiler errors, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ VOID _nx_arp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_arp_packet_send.c b/common/src/nx_arp_packet_send.c index 68d7534a..c4b9b2c7 100644 --- a/common/src/nx_arp_packet_send.c +++ b/common/src/nx_arp_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_packet_send(NX_IP *ip_ptr, ULONG destination_ip, NX_INTERFACE *nx_interface) { diff --git a/common/src/nx_arp_periodic_update.c b/common/src/nx_arp_periodic_update.c index c7322d82..978c7b89 100644 --- a/common/src/nx_arp_periodic_update.c +++ b/common/src/nx_arp_periodic_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_periodic_update(NX_IP *ip_ptr) { diff --git a/common/src/nx_arp_probe_send.c b/common/src/nx_arp_probe_send.c index d0abb77f..c74519ca 100644 --- a/common/src/nx_arp_probe_send.c +++ b/common/src/nx_arp_probe_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_probe_send(NX_IP *ip_ptr, UINT interface_index, ULONG probe_address) { diff --git a/common/src/nx_arp_queue_process.c b/common/src/nx_arp_queue_process.c index 7ab9c239..76c0c161 100644 --- a/common/src/nx_arp_queue_process.c +++ b/common/src/nx_arp_queue_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_queue_process(NX_IP *ip_ptr) { diff --git a/common/src/nx_arp_queue_send.c b/common/src/nx_arp_queue_send.c index ef4c8048..7f030516 100644 --- a/common/src/nx_arp_queue_send.c +++ b/common/src/nx_arp_queue_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* _nx_arp_dynamic_entry_set Set dynamic entry */ /* _nx_arp_packet_receive Process the ARP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_queue_send(NX_IP *ip_ptr, NX_ARP *arp_ptr) { diff --git a/common/src/nx_arp_static_entries_delete.c b/common/src/nx_arp_static_entries_delete.c index e98f87ee..dd2b3801 100644 --- a/common/src/nx_arp_static_entries_delete.c +++ b/common/src/nx_arp_static_entries_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_static_entries_delete(NX_IP *ip_ptr) { diff --git a/common/src/nx_arp_static_entry_create.c b/common/src/nx_arp_static_entry_create.c index ac115251..e2a35428 100644 --- a/common/src/nx_arp_static_entry_create.c +++ b/common/src/nx_arp_static_entry_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_static_entry_create(NX_IP *ip_ptr, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nx_arp_static_entry_delete.c b/common/src/nx_arp_static_entry_delete.c index cf20cfb9..15373c95 100644 --- a/common/src/nx_arp_static_entry_delete.c +++ b/common/src/nx_arp_static_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* Application Code */ /* _nx_arp_static_entries_delete Delete all static entries */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_arp_static_entry_delete(NX_IP *ip_ptr, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nx_arp_static_entry_delete_internal.c b/common/src/nx_arp_static_entry_delete_internal.c index 3eb482d0..d77e6a45 100644 --- a/common/src/nx_arp_static_entry_delete_internal.c +++ b/common/src/nx_arp_static_entry_delete_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* with the specified interface*/ /* _nx_arp_static_entry_delete Delete static ARP entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_arp_static_entry_delete_internal(NX_IP *ip_ptr, NX_ARP *arp_entry) { diff --git a/common/src/nx_http_proxy_client.c b/common/src/nx_http_proxy_client.c index 21e91e95..4c749551 100644 --- a/common/src/nx_http_proxy_client.c +++ b/common/src/nx_http_proxy_client.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,12 +69,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_http_proxy_client_enable(NX_IP *ip_ptr, NXD_ADDRESS *proxy_server_ip, UINT proxy_server_port, UCHAR *username, UINT username_length, UCHAR *password, UINT password_length) @@ -170,12 +164,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_proxy_client_enable(NX_IP *ip_ptr, NXD_ADDRESS *proxy_server_ip, UINT proxy_server_port, UCHAR *username, UINT username_length, UCHAR *password, UINT password_length) @@ -286,12 +274,6 @@ UCHAR string[NX_HTTP_PROXY_MAX_USERNAME + NX_HTTP_PROXY_MAX_PASSWORD + 2]; /* */ /* _nxd_tcp_client_socket_connect Connect TCP client socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_http_proxy_client_initialize(NX_TCP_SOCKET *socket_ptr, NXD_ADDRESS **server_ip, UINT *server_port) { @@ -368,12 +350,6 @@ NX_IP *ip_ptr = socket_ptr -> nx_tcp_socket_ip_ptr; /* _nx_tcp_socket_state_syn_received Process SYN RECEIVED state */ /* _nx_tcp_socket_state_syn_sent Process SYN SENT state */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_proxy_client_connect(NX_TCP_SOCKET *socket_ptr) { @@ -554,12 +530,6 @@ UINT port = socket_ptr -> nx_tcp_socket_original_server_port; /* */ /* _nx_tcp_socket_packet_process Process socket packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_http_proxy_client_connect_response_process(NX_TCP_SOCKET *socket_ptr) { @@ -780,12 +750,6 @@ NX_PACKET_POOL *pool_ptr = ip_ptr -> nx_ip_default_packet_pool; /* */ /* _nx_tcp_socket_block_cleanup Clean up the socket block */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Wenhui Xie Initial Version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_http_proxy_client_cleanup(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_icmp_cleanup.c b/common/src/nx_icmp_cleanup.c index 45f6ab98..79eb8216 100644 --- a/common/src/nx_icmp_cleanup.c +++ b/common/src/nx_icmp_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmp_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_icmp_enable.c b/common/src/nx_icmp_enable.c index 203c80d3..3da17a09 100644 --- a/common/src/nx_icmp_enable.c +++ b/common/src/nx_icmp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_icmp_info_get.c b/common/src/nx_icmp_info_get.c index 55f5517c..92f1877d 100644 --- a/common/src/nx_icmp_info_get.c +++ b/common/src/nx_icmp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmp_info_get(NX_IP *ip_ptr, ULONG *pings_sent, ULONG *ping_timeouts, ULONG *ping_threads_suspended, ULONG *ping_responses_received, diff --git a/common/src/nx_icmp_interface_ping.c b/common/src/nx_icmp_interface_ping.c index 9e9e1e45..59c30fa3 100644 --- a/common/src/nx_icmp_interface_ping.c +++ b/common/src/nx_icmp_interface_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -85,14 +85,6 @@ /* _nx_icmp_ping */ /* _nxd_icmp_source_ping */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmp_interface_ping(NX_IP *ip_ptr, ULONG ip_address, NX_INTERFACE *interface_ptr, ULONG next_hop_address, diff --git a/common/src/nx_icmp_interface_ping6.c b/common/src/nx_icmp_interface_ping6.c index c06f7ca4..0d552b87 100644 --- a/common/src/nx_icmp_interface_ping6.c +++ b/common/src/nx_icmp_interface_ping6.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -94,14 +94,6 @@ /* Application Send ping on the specified */ /* interface */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmp_interface_ping6(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, CHAR *data_ptr, ULONG data_size, NXD_IPV6_ADDRESS *ipv6_address, NX_PACKET **response_ptr, ULONG wait_option) diff --git a/common/src/nx_icmp_packet_process.c b/common/src/nx_icmp_packet_process.c index 8f60efc8..619e04ff 100644 --- a/common/src/nx_icmp_packet_process.c +++ b/common/src/nx_icmp_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _nx_icmp_packet_receive ICMP packet receive */ /* _nx_icmp_queue_process ICMP packet queue processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmp_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmp_packet_receive.c b/common/src/nx_icmp_packet_receive.c index b4557ab0..1f02b336 100644 --- a/common/src/nx_icmp_packet_receive.c +++ b/common/src/nx_icmp_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* _nx_ip_packet_receive Dispatch received IP packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmp_ping.c b/common/src/nx_icmp_ping.c index 599eb8a6..78a94646 100644 --- a/common/src/nx_icmp_ping.c +++ b/common/src/nx_icmp_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmp_ping(NX_IP *ip_ptr, ULONG ip_address, CHAR *data_ptr, ULONG data_size, diff --git a/common/src/nx_icmp_ping6.c b/common/src/nx_icmp_ping6.c index e0305113..44c0fa70 100644 --- a/common/src/nx_icmp_ping6.c +++ b/common/src/nx_icmp_ping6.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmp_ping6(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, CHAR *data_ptr, ULONG data_size, NX_PACKET **response_ptr, ULONG wait_option) diff --git a/common/src/nx_icmp_queue_process.c b/common/src/nx_icmp_queue_process.c index 5e353fe0..16e313ba 100644 --- a/common/src/nx_icmp_queue_process.c +++ b/common/src/nx_icmp_queue_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmp_queue_process(NX_IP *ip_ptr) { diff --git a/common/src/nx_icmpv4_packet_process.c b/common/src/nx_icmpv4_packet_process.c index 4ba5ada6..28bb85f9 100644 --- a/common/src/nx_icmpv4_packet_process.c +++ b/common/src/nx_icmpv4_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* _nx_icmp_packet_process Main ICMP packet pocess */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv4_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv4_process_echo_reply.c b/common/src/nx_icmpv4_process_echo_reply.c index f2498cea..b2a5ebce 100644 --- a/common/src/nx_icmpv4_process_echo_reply.c +++ b/common/src/nx_icmpv4_process_echo_reply.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* _nx_icmpv4_packet_process Main ICMP packet pocess */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv4_process_echo_reply(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv4_process_echo_request.c b/common/src/nx_icmpv4_process_echo_request.c index b145d844..6109794a 100644 --- a/common/src/nx_icmpv4_process_echo_request.c +++ b/common/src/nx_icmpv4_process_echo_request.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* _nx_icmpv4_packet_process Main ICMP packet pocess */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv4_process_echo_request(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv4_send_error_message.c b/common/src/nx_icmpv4_send_error_message.c index c9f69b28..3c70a613 100644 --- a/common/src/nx_icmpv4_send_error_message.c +++ b/common/src/nx_icmpv4_send_error_message.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv4_send_error_message(NX_IP *ip_ptr, NX_PACKET *offending_packet, ULONG word1, ULONG error_pointer) diff --git a/common/src/nx_icmpv6_DAD_clear_NDCache_entry.c b/common/src/nx_icmpv6_DAD_clear_NDCache_entry.c index b4a93125..290cf7cc 100644 --- a/common/src/nx_icmpv6_DAD_clear_NDCache_entry.c +++ b/common/src/nx_icmpv6_DAD_clear_NDCache_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* _nx_icmpv6_perform_DAD Verify IPv6 address is unique */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nx_icmpv6_DAD_clear_NDCache_entry(NX_IP *ip_ptr, ULONG *ip_addr) { diff --git a/common/src/nx_icmpv6_DAD_failure.c b/common/src/nx_icmpv6_DAD_failure.c index dc8654f9..3aec58ec 100644 --- a/common/src/nx_icmpv6_DAD_failure.c +++ b/common/src/nx_icmpv6_DAD_failure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* _nx_icmpv6_process_na */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_DISABLE_IPV6_DAD diff --git a/common/src/nx_icmpv6_dest_table_add.c b/common/src/nx_icmpv6_dest_table_add.c index 4f7fc283..780f478c 100644 --- a/common/src/nx_icmpv6_dest_table_add.c +++ b/common/src/nx_icmpv6_dest_table_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,14 +78,6 @@ /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_dest_table_add(NX_IP *ip_ptr, ULONG *destination_address, diff --git a/common/src/nx_icmpv6_dest_table_find.c b/common/src/nx_icmpv6_dest_table_find.c index deca881e..5385ff91 100644 --- a/common/src/nx_icmpv6_dest_table_find.c +++ b/common/src/nx_icmpv6_dest_table_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* nx_icmpv6_send_queued_packets Send queued ICMPv6 packets */ /* nx_ipv6_send_packet Send specified IPv6 packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_dest_table_find(NX_IP *ip_ptr, ULONG *destination_address, NX_IPV6_DESTINATION_ENTRY **dest_entry_ptr, ULONG path_mtu, ULONG mtu_timeout) diff --git a/common/src/nx_icmpv6_destination_table_periodic_update.c b/common/src/nx_icmpv6_destination_table_periodic_update.c index 497df19d..91da1e96 100644 --- a/common/src/nx_icmpv6_destination_table_periodic_update.c +++ b/common/src/nx_icmpv6_destination_table_periodic_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* _nx_ip_thread_entry IP thread background task */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_ENABLE_IPV6_PATH_MTU_DISCOVERY diff --git a/common/src/nx_icmpv6_packet_process.c b/common/src/nx_icmpv6_packet_process.c index 146225e4..b06db543 100644 --- a/common/src/nx_icmpv6_packet_process.c +++ b/common/src/nx_icmpv6_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -89,17 +89,6 @@ /* */ /* _nx_icmp_packet_process Main ICMP packet processer */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv6_perform_DAD.c b/common/src/nx_icmpv6_perform_DAD.c index ad589101..4ca0781c 100644 --- a/common/src/nx_icmpv6_perform_DAD.c +++ b/common/src/nx_icmpv6_perform_DAD.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,18 +73,6 @@ /* */ /* _nx_ip_thraed_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* added internal ip address */ -/* change notification, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_DISABLE_IPV6_DAD diff --git a/common/src/nx_icmpv6_process_echo_reply.c b/common/src/nx_icmpv6_process_echo_reply.c index 5f17bda0..ff0a766b 100644 --- a/common/src/nx_icmpv6_process_echo_reply.c +++ b/common/src/nx_icmpv6_process_echo_reply.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* */ /* _nx_icmpv6_packet_process Main ICMPv6 packet handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_process_echo_reply(NX_IP *ip_ptr, NX_PACKET *packet_ptr) diff --git a/common/src/nx_icmpv6_process_echo_request.c b/common/src/nx_icmpv6_process_echo_request.c index 0216d14b..f769739c 100644 --- a/common/src/nx_icmpv6_process_echo_request.c +++ b/common/src/nx_icmpv6_process_echo_request.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ /* */ /* _nx_icmpv6_packet_process Main ICMPv6 packet handler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_process_echo_request(NX_IP *ip_ptr, NX_PACKET *packet_ptr) diff --git a/common/src/nx_icmpv6_process_na.c b/common/src/nx_icmpv6_process_na.c index 733c145e..e4b747b5 100644 --- a/common/src/nx_icmpv6_process_na.c +++ b/common/src/nx_icmpv6_process_na.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -81,17 +81,6 @@ /* */ /* _nx_icmpv6_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_process_na(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv6_process_ns.c b/common/src/nx_icmpv6_process_ns.c index 32968244..1e873d3a 100644 --- a/common/src/nx_icmpv6_process_ns.c +++ b/common/src/nx_icmpv6_process_ns.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -82,17 +82,6 @@ /* */ /* _nx_icmpv6_process Main ICMPv6 processor */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_process_ns(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv6_process_packet_too_big.c b/common/src/nx_icmpv6_process_packet_too_big.c index a7adb947..28cbda89 100644 --- a/common/src/nx_icmpv6_process_packet_too_big.c +++ b/common/src/nx_icmpv6_process_packet_too_big.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,17 +80,6 @@ /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_process_packet_too_big(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv6_process_ra.c b/common/src/nx_icmpv6_process_ra.c index 496f19ba..e1a96a35 100644 --- a/common/src/nx_icmpv6_process_ra.c +++ b/common/src/nx_icmpv6_process_ra.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,22 +71,6 @@ /* */ /* _nx_icmpv6_packet_process Main ICMP packet pocess */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* option length verification, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* added internal ip address */ -/* change notification, */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_process_ra(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv6_process_redirect.c b/common/src/nx_icmpv6_process_redirect.c index b850f3ef..f3ccbb8a 100644 --- a/common/src/nx_icmpv6_process_redirect.c +++ b/common/src/nx_icmpv6_process_redirect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,17 +76,6 @@ /* */ /* _nx_icmpv6_packet_process Main ICMPv6 packet pocess */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Bo Chen Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ #ifndef NX_DISABLE_ICMPV6_REDIRECT_PROCESS diff --git a/common/src/nx_icmpv6_send_error_message.c b/common/src/nx_icmpv6_send_error_message.c index a95c3094..92f89904 100644 --- a/common/src/nx_icmpv6_send_error_message.c +++ b/common/src/nx_icmpv6_send_error_message.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,18 +83,6 @@ /* _nx_udp_packet_receive */ /* _nx_ipv6_header_option_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), */ -/* fixed unsigned integers */ -/* comparison, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_send_error_message(NX_IP *ip_ptr, NX_PACKET *offending_packet, ULONG word1, ULONG error_pointer) diff --git a/common/src/nx_icmpv6_send_ns.c b/common/src/nx_icmpv6_send_ns.c index e3b92fa5..6b9dfc90 100644 --- a/common/src/nx_icmpv6_send_ns.c +++ b/common/src/nx_icmpv6_send_ns.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ static const ULONG _nx_ipv6_unspecified_address[4] = {0, 0, 0, 0}; /* _nx_ipv6_packet_send IPv6 packet transmit process */ /* _nx_nd_cache_periodic_update ND Cache timeout routine. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_send_ns(NX_IP *ip_ptr, ULONG *neighbor_IP_address, diff --git a/common/src/nx_icmpv6_send_queued_packets.c b/common/src/nx_icmpv6_send_queued_packets.c index 48f0fc4e..8d231127 100644 --- a/common/src/nx_icmpv6_send_queued_packets.c +++ b/common/src/nx_icmpv6_send_queued_packets.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ /* */ /* _nx_icmp_packet_process Main ICMP packet process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ VOID _nx_icmpv6_send_queued_packets(NX_IP *ip_ptr, ND_CACHE_ENTRY *nd_entry) { diff --git a/common/src/nx_icmpv6_send_rs.c b/common/src/nx_icmpv6_send_rs.c index e41b7cac..704c0037 100644 --- a/common/src/nx_icmpv6_send_rs.c +++ b/common/src/nx_icmpv6_send_rs.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ static const ULONG _nx_ipv6_all_router_address[4] = {0xff020000, 0, 0, 2}; /* _nxd_ipv6_router_solicitation_check IPv6 router solicitation */ /* timeout routine. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_send_rs(NX_IP *ip_ptr, UINT if_index) { diff --git a/common/src/nx_icmpv6_validate_neighbor_message.c b/common/src/nx_icmpv6_validate_neighbor_message.c index e7486588..a3a14e86 100644 --- a/common/src/nx_icmpv6_validate_neighbor_message.c +++ b/common/src/nx_icmpv6_validate_neighbor_message.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* _nx_icmpv6_process_ns Process received NS packet */ /* _nx_icmpv6_process_na Process received NA packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_validate_neighbor_message(NX_PACKET *packet_ptr) { diff --git a/common/src/nx_icmpv6_validate_options.c b/common/src/nx_icmpv6_validate_options.c index 46063488..6fbe1dda 100644 --- a/common/src/nx_icmpv6_validate_options.c +++ b/common/src/nx_icmpv6_validate_options.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* _nx_icmpv6_validate_neighbor_messages */ /* _nx_icmpv6_validate_ra */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_validate_options(NX_ICMPV6_OPTION *option, INT length, INT additional_check) { @@ -82,7 +74,7 @@ UINT option_len; /* Parse all option headers from the ICMPv6 header. */ /* GHSA-rf32-h832-hg8r: - Verify that the length is at least 2 to cover nx_icmpv6_option_length and + Verify that the length is at least 2 to cover nx_icmpv6_option_length and nx_icmpv6_option_type. */ while (length > 2) { diff --git a/common/src/nx_icmpv6_validate_ra.c b/common/src/nx_icmpv6_validate_ra.c index 6ffd7fbf..ef024868 100644 --- a/common/src/nx_icmpv6_validate_ra.c +++ b/common/src/nx_icmpv6_validate_ra.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* _nx_icmpv6_process_ra Main ICMP packet pocess */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_icmpv6_validate_ra(NX_PACKET *packet_ptr) { diff --git a/common/src/nx_igmp_enable.c b/common/src/nx_igmp_enable.c index 9bd5c1ea..5545bf84 100644 --- a/common/src/nx_igmp_enable.c +++ b/common/src/nx_igmp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_igmp_info_get.c b/common/src/nx_igmp_info_get.c index 9ddbfe81..a0984ff1 100644 --- a/common/src/nx_igmp_info_get.c +++ b/common/src/nx_igmp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_info_get(NX_IP *ip_ptr, ULONG *igmp_reports_sent, ULONG *igmp_queries_received, ULONG *igmp_checksum_errors, ULONG *current_groups_joined) diff --git a/common/src/nx_igmp_interface_report_send.c b/common/src/nx_igmp_interface_report_send.c index 4b69bf33..de7b3bb8 100644 --- a/common/src/nx_igmp_interface_report_send.c +++ b/common/src/nx_igmp_interface_report_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,14 +78,6 @@ /* Processes a LEAVE report for */ /* transmission to all routers */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_interface_report_send(NX_IP *ip_ptr, ULONG group_address, UINT interface_index, UINT is_joining) { diff --git a/common/src/nx_igmp_loopback_disable.c b/common/src/nx_igmp_loopback_disable.c index b5e6cbf2..e472ec49 100644 --- a/common/src/nx_igmp_loopback_disable.c +++ b/common/src/nx_igmp_loopback_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_loopback_disable(NX_IP *ip_ptr) { diff --git a/common/src/nx_igmp_loopback_enable.c b/common/src/nx_igmp_loopback_enable.c index ae796d18..ac36a7b2 100644 --- a/common/src/nx_igmp_loopback_enable.c +++ b/common/src/nx_igmp_loopback_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_loopback_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_igmp_multicast_check.c b/common/src/nx_igmp_multicast_check.c index a806bb1d..efe0a904 100644 --- a/common/src/nx_igmp_multicast_check.c +++ b/common/src/nx_igmp_multicast_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* _nx_ipv4_packet_receive Raw IP packet receive */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_check(NX_IP *ip_ptr, ULONG group, NX_INTERFACE *nx_interface) { diff --git a/common/src/nx_igmp_multicast_interface_join.c b/common/src/nx_igmp_multicast_interface_join.c index 5f296d7e..2a680415 100644 --- a/common/src/nx_igmp_multicast_interface_join.c +++ b/common/src/nx_igmp_multicast_interface_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_interface_join(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nx_igmp_multicast_interface_join_internal.c b/common/src/nx_igmp_multicast_interface_join_internal.c index e724deb8..3d496574 100644 --- a/common/src/nx_igmp_multicast_interface_join_internal.c +++ b/common/src/nx_igmp_multicast_interface_join_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_interface_join_internal(NX_IP *ip_ptr, ULONG group_address, UINT interface_index, UINT update_time) diff --git a/common/src/nx_igmp_multicast_interface_leave.c b/common/src/nx_igmp_multicast_interface_leave.c index 151c6a68..d13b6a6b 100644 --- a/common/src/nx_igmp_multicast_interface_leave.c +++ b/common/src/nx_igmp_multicast_interface_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_interface_leave(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nx_igmp_multicast_interface_leave_internal.c b/common/src/nx_igmp_multicast_interface_leave_internal.c index c5d24d38..d1cf1aa1 100644 --- a/common/src/nx_igmp_multicast_interface_leave_internal.c +++ b/common/src/nx_igmp_multicast_interface_leave_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_interface_leave_internal(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nx_igmp_multicast_join.c b/common/src/nx_igmp_multicast_join.c index a4e40a0b..46b7bf0c 100644 --- a/common/src/nx_igmp_multicast_join.c +++ b/common/src/nx_igmp_multicast_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_join(NX_IP *ip_ptr, ULONG group_address) { diff --git a/common/src/nx_igmp_multicast_leave.c b/common/src/nx_igmp_multicast_leave.c index d4cf1ce3..be0727c7 100644 --- a/common/src/nx_igmp_multicast_leave.c +++ b/common/src/nx_igmp_multicast_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_igmp_multicast_leave(NX_IP *ip_ptr, ULONG group_address) { diff --git a/common/src/nx_igmp_packet_process.c b/common/src/nx_igmp_packet_process.c index fc267500..1fe28634 100644 --- a/common/src/nx_igmp_packet_process.c +++ b/common/src/nx_igmp_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,17 +70,6 @@ /* _nx_igmp_packet_receive IGMP packet receive */ /* _nx_igmp_queue_process IGMP queue processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* unified checksum calculate, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_igmp_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_igmp_packet_receive.c b/common/src/nx_igmp_packet_receive.c index d6adc34b..20e1d9a6 100644 --- a/common/src/nx_igmp_packet_receive.c +++ b/common/src/nx_igmp_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* _nx_ip_packet_receive Raw IP packet receive */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_igmp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_igmp_periodic_processing.c b/common/src/nx_igmp_periodic_processing.c index 90241eb0..4065274d 100644 --- a/common/src/nx_igmp_periodic_processing.c +++ b/common/src/nx_igmp_periodic_processing.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_igmp_periodic_processing(NX_IP *ip_ptr) { diff --git a/common/src/nx_igmp_queue_process.c b/common/src/nx_igmp_queue_process.c index baadf4c2..af2b0d2a 100644 --- a/common/src/nx_igmp_queue_process.c +++ b/common/src/nx_igmp_queue_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_igmp_queue_process(NX_IP *ip_ptr) { diff --git a/common/src/nx_invalidate_destination_entry.c b/common/src/nx_invalidate_destination_entry.c index d8b0212a..e5aae973 100644 --- a/common/src/nx_invalidate_destination_entry.c +++ b/common/src/nx_invalidate_destination_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* _nd_cache_delete Delete a neighbor cache. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_invalidate_destination_entry(NX_IP *ip_ptr, ULONG *next_hop_ip) { diff --git a/common/src/nx_ip_address_change_notify.c b/common/src/nx_ip_address_change_notify.c index 7a62b69b..0475a048 100644 --- a/common/src/nx_ip_address_change_notify.c +++ b/common/src/nx_ip_address_change_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_address_change_notify(NX_IP *ip_ptr, VOID (*ip_address_change_notify)(NX_IP *, VOID *), VOID *additional_info) { diff --git a/common/src/nx_ip_address_get.c b/common/src/nx_ip_address_get.c index 0b9f3dd7..627f3f1a 100644 --- a/common/src/nx_ip_address_get.c +++ b/common/src/nx_ip_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_address_get(NX_IP *ip_ptr, ULONG *ip_address, ULONG *network_mask) { diff --git a/common/src/nx_ip_address_set.c b/common/src/nx_ip_address_set.c index e8bff6a2..6c58f6b4 100644 --- a/common/src/nx_ip_address_set.c +++ b/common/src/nx_ip_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), */ -/* merged duplicated functions,*/ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_ip_address_set(NX_IP *ip_ptr, ULONG ip_address, ULONG network_mask) { diff --git a/common/src/nx_ip_auxiliary_packet_pool_set.c b/common/src/nx_ip_auxiliary_packet_pool_set.c index fb3eb440..288e697d 100644 --- a/common/src/nx_ip_auxiliary_packet_pool_set.c +++ b/common/src/nx_ip_auxiliary_packet_pool_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_auxiliary_packet_pool_set(NX_IP *ip_ptr, NX_PACKET_POOL *auxiliary_pool) { diff --git a/common/src/nx_ip_checksum_compute.c b/common/src/nx_ip_checksum_compute.c index a4ab2205..5f2a12b9 100644 --- a/common/src/nx_ip_checksum_compute.c +++ b/common/src/nx_ip_checksum_compute.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* NetX Duo internal routines */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ USHORT _nx_ip_checksum_compute(NX_PACKET *packet_ptr, ULONG protocol, UINT data_length, ULONG *src_ip_addr, diff --git a/common/src/nx_ip_create.c b/common/src/nx_ip_create.c index eb1373cc..85f47691 100644 --- a/common/src/nx_ip_create.c +++ b/common/src/nx_ip_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,17 +75,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* supported random IP id, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_ip_create(NX_IP *ip_ptr, CHAR *name, ULONG ip_address, ULONG network_mask, NX_PACKET_POOL *default_pool, VOID (*ip_link_driver)(struct NX_IP_DRIVER_STRUCT *), diff --git a/common/src/nx_ip_deferred_link_status_process.c b/common/src/nx_ip_deferred_link_status_process.c index 50be0810..ad5956d0 100644 --- a/common/src/nx_ip_deferred_link_status_process.c +++ b/common/src/nx_ip_deferred_link_status_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,18 +67,6 @@ /* */ /* nx_ip_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN and generic */ -/* link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ip_deferred_link_status_process(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_delete.c b/common/src/nx_ip_delete.c index 88cfa6d1..14427a37 100644 --- a/common/src/nx_ip_delete.c +++ b/common/src/nx_ip_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -79,14 +79,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_delete(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_delete_queue_clear.c b/common/src/nx_ip_delete_queue_clear.c index 4712601e..7fcb2bbd 100644 --- a/common/src/nx_ip_delete_queue_clear.c +++ b/common/src/nx_ip_delete_queue_clear.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_delete_queue_clear(NX_PACKET *head_ptr) { diff --git a/common/src/nx_ip_dispatch_process.c b/common/src/nx_ip_dispatch_process.c index ac3f9b2d..d6bddef1 100644 --- a/common/src/nx_ip_dispatch_process.c +++ b/common/src/nx_ip_dispatch_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -90,19 +90,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), fixed */ -/* destination header check, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), expanded */ -/* protocols support for raw */ -/* packet, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_ip_dispatch_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT protocol) { diff --git a/common/src/nx_ip_driver_deferred_enable.c b/common/src/nx_ip_driver_deferred_enable.c index 138c7422..fc8e33e6 100644 --- a/common/src/nx_ip_driver_deferred_enable.c +++ b/common/src/nx_ip_driver_deferred_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Driver Initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_driver_deferred_enable(NX_IP *ip_ptr, VOID (*driver_deferred_packet_handler)(NX_IP *ip_ptr, NX_PACKET *packet_ptr)) { diff --git a/common/src/nx_ip_driver_deferred_processing.c b/common/src/nx_ip_driver_deferred_processing.c index 32eb8f6f..8c7b271f 100644 --- a/common/src/nx_ip_driver_deferred_processing.c +++ b/common/src/nx_ip_driver_deferred_processing.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_driver_deferred_processing(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_driver_deferred_receive.c b/common/src/nx_ip_driver_deferred_receive.c index 6490584d..1a74c6ad 100644 --- a/common/src/nx_ip_driver_deferred_receive.c +++ b/common/src/nx_ip_driver_deferred_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Driver Receive ISR */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_driver_deferred_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ip_driver_direct_command.c b/common/src/nx_ip_driver_direct_command.c index 4b734687..be8cf6cc 100644 --- a/common/src/nx_ip_driver_direct_command.c +++ b/common/src/nx_ip_driver_direct_command.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_driver_direct_command(NX_IP *ip_ptr, UINT command, ULONG *return_value_ptr) { diff --git a/common/src/nx_ip_driver_interface_direct_command.c b/common/src/nx_ip_driver_interface_direct_command.c index 3630cd45..a70d2fc4 100644 --- a/common/src/nx_ip_driver_interface_direct_command.c +++ b/common/src/nx_ip_driver_interface_direct_command.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_driver_interface_direct_command(NX_IP *ip_ptr, UINT command, UINT interface_index, ULONG *return_value_ptr) { diff --git a/common/src/nx_ip_driver_link_status_event.c b/common/src/nx_ip_driver_link_status_event.c index 605e9cb6..58136513 100644 --- a/common/src/nx_ip_driver_link_status_event.c +++ b/common/src/nx_ip_driver_link_status_event.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application I/O Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_driver_link_status_event(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nx_ip_driver_packet_send.c b/common/src/nx_ip_driver_packet_send.c index ce857cf7..055c9f75 100644 --- a/common/src/nx_ip_driver_packet_send.c +++ b/common/src/nx_ip_driver_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_driver_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, ULONG fragment, ULONG next_hop_address) { diff --git a/common/src/nx_ip_fast_periodic_timer_entry.c b/common/src/nx_ip_fast_periodic_timer_entry.c index 1df35c0d..2612eac4 100644 --- a/common/src/nx_ip_fast_periodic_timer_entry.c +++ b/common/src/nx_ip_fast_periodic_timer_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* ThreadX system timer thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_ip_fast_periodic_timer_entry(ULONG ip_address) { @@ -120,14 +112,6 @@ NX_IP *ip_ptr; /* nx_ipv6_enable */ /* nx_tcp_enable */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_fast_periodic_timer_create(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_forward_packet_process.c b/common/src/nx_ip_forward_packet_process.c index 42589f8a..ab34e021 100644 --- a/common/src/nx_ip_forward_packet_process.c +++ b/common/src/nx_ip_forward_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* _nx_ip_packet_receive Receive IP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_forward_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ip_forwarding_disable.c b/common/src/nx_ip_forwarding_disable.c index e9fd9301..7dd62bc9 100644 --- a/common/src/nx_ip_forwarding_disable.c +++ b/common/src/nx_ip_forwarding_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_forwarding_disable(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_forwarding_enable.c b/common/src/nx_ip_forwarding_enable.c index ca48c65c..f3540d7c 100644 --- a/common/src/nx_ip_forwarding_enable.c +++ b/common/src/nx_ip_forwarding_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_forwarding_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_fragment_assembly.c b/common/src/nx_ip_fragment_assembly.c index 623b34c5..0e6d066e 100644 --- a/common/src/nx_ip_fragment_assembly.c +++ b/common/src/nx_ip_fragment_assembly.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,15 +67,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* removed duplicated code, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_fragment_assembly(NX_IP *ip_ptr) diff --git a/common/src/nx_ip_fragment_disable.c b/common/src/nx_ip_fragment_disable.c index 81b097c6..60d58076 100644 --- a/common/src/nx_ip_fragment_disable.c +++ b/common/src/nx_ip_fragment_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_fragment_disable(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_fragment_enable.c b/common/src/nx_ip_fragment_enable.c index f11c7707..38667c06 100644 --- a/common/src/nx_ip_fragment_enable.c +++ b/common/src/nx_ip_fragment_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_fragment_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_fragment_forward_packet.c b/common/src/nx_ip_fragment_forward_packet.c index c068b64a..2f2715f4 100644 --- a/common/src/nx_ip_fragment_forward_packet.c +++ b/common/src/nx_ip_fragment_forward_packet.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* */ /* _nx_ip_forward_packet_process Process the forward packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_fragment_forward_packet(NX_IP *ip_ptr, NX_PACKET *source_packet, ULONG destination_ip, ULONG fragment, ULONG next_hop_address) { diff --git a/common/src/nx_ip_fragment_packet.c b/common/src/nx_ip_fragment_packet.c index 7d221ffd..fcaf1dc1 100644 --- a/common/src/nx_ip_fragment_packet.c +++ b/common/src/nx_ip_fragment_packet.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* _nx_arp_packet_receive Received ARP packet processing*/ /* _nx_ip_packet_send Send an IP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_fragment_packet(struct NX_IP_DRIVER_STRUCT *driver_req_ptr) { diff --git a/common/src/nx_ip_fragment_timeout_check.c b/common/src/nx_ip_fragment_timeout_check.c index 52485e94..04218c6a 100644 --- a/common/src/nx_ip_fragment_timeout_check.c +++ b/common/src/nx_ip_fragment_timeout_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* _nx_ip_fragment_timeout_check */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_ip_fragment_cleanup(NX_IP *ip_ptr, NX_PACKET *fragment) { @@ -203,14 +195,6 @@ NX_IPV6_HEADER *ipv6_header; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_fragment_timeout_check(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_gateway_address_clear.c b/common/src/nx_ip_gateway_address_clear.c index 58a71cfc..548869b1 100644 --- a/common/src/nx_ip_gateway_address_clear.c +++ b/common/src/nx_ip_gateway_address_clear.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_gateway_address_clear(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_gateway_address_get.c b/common/src/nx_ip_gateway_address_get.c index 448ceec2..ce61b3c0 100644 --- a/common/src/nx_ip_gateway_address_get.c +++ b/common/src/nx_ip_gateway_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_gateway_address_get(NX_IP *ip_ptr, ULONG *ip_address) { diff --git a/common/src/nx_ip_gateway_address_set.c b/common/src/nx_ip_gateway_address_set.c index 678539ae..b090d238 100644 --- a/common/src/nx_ip_gateway_address_set.c +++ b/common/src/nx_ip_gateway_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_gateway_address_set(NX_IP *ip_ptr, ULONG ip_address) { diff --git a/common/src/nx_ip_header_add.c b/common/src/nx_ip_header_add.c index 27e62b37..51174698 100644 --- a/common/src/nx_ip_header_add.c +++ b/common/src/nx_ip_header_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,20 +73,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* supported random IP id, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_ip_header_add(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG source_ip, ULONG destination_ip, ULONG type_of_service, ULONG time_to_live, ULONG protocol, ULONG fragment) diff --git a/common/src/nx_ip_info_get.c b/common/src/nx_ip_info_get.c index bfd094a4..37f94dfd 100644 --- a/common/src/nx_ip_info_get.c +++ b/common/src/nx_ip_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -81,14 +81,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_info_get(NX_IP *ip_ptr, ULONG *ip_total_packets_sent, ULONG *ip_total_bytes_sent, ULONG *ip_total_packets_received, ULONG *ip_total_bytes_received, diff --git a/common/src/nx_ip_initialize.c b/common/src/nx_ip_initialize.c index cc1fb248..b0ece59e 100644 --- a/common/src/nx_ip_initialize.c +++ b/common/src/nx_ip_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* _nx_system_initialize System initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_initialize(VOID) { diff --git a/common/src/nx_ip_interface_address_get.c b/common/src/nx_ip_interface_address_get.c index 03089753..f150b62e 100644 --- a/common/src/nx_ip_interface_address_get.c +++ b/common/src/nx_ip_interface_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_address_get(NX_IP *ip_ptr, UINT interface_index, ULONG *ip_address, ULONG *network_mask) { diff --git a/common/src/nx_ip_interface_address_mapping_configure.c b/common/src/nx_ip_interface_address_mapping_configure.c index b1bdac8f..c927c327 100644 --- a/common/src/nx_ip_interface_address_mapping_configure.c +++ b/common/src/nx_ip_interface_address_mapping_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_address_mapping_configure(NX_IP *ip_ptr, UINT interface_index, UINT mapping_needed) { diff --git a/common/src/nx_ip_interface_address_set.c b/common/src/nx_ip_interface_address_set.c index 72951805..ed175ea4 100644 --- a/common/src/nx_ip_interface_address_set.c +++ b/common/src/nx_ip_interface_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,18 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* added internal ip address */ -/* change notification, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG ip_address, ULONG network_mask) { diff --git a/common/src/nx_ip_interface_attach.c b/common/src/nx_ip_interface_attach.c index dd863eab..0ac84ec4 100644 --- a/common/src/nx_ip_interface_attach.c +++ b/common/src/nx_ip_interface_attach.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -81,17 +81,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_attach(NX_IP *ip_ptr, CHAR *interface_name, ULONG ip_address, ULONG network_mask, VOID (*ip_link_driver)(struct NX_IP_DRIVER_STRUCT *)) { diff --git a/common/src/nx_ip_interface_capability_get.c b/common/src/nx_ip_interface_capability_get.c index 69ac7793..7ac166cb 100644 --- a/common/src/nx_ip_interface_capability_get.c +++ b/common/src/nx_ip_interface_capability_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_capability_get(NX_IP *ip_ptr, UINT interface_index, ULONG *interface_capability_flag) { diff --git a/common/src/nx_ip_interface_capability_set.c b/common/src/nx_ip_interface_capability_set.c index b2fe48d9..24af9553 100644 --- a/common/src/nx_ip_interface_capability_set.c +++ b/common/src/nx_ip_interface_capability_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_capability_set(NX_IP *ip_ptr, UINT interface_index, ULONG interface_capability_flag) { diff --git a/common/src/nx_ip_interface_detach.c b/common/src/nx_ip_interface_detach.c index 8a080c15..24483268 100644 --- a/common/src/nx_ip_interface_detach.c +++ b/common/src/nx_ip_interface_detach.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_detach(NX_IP *ip_ptr, UINT index) { diff --git a/common/src/nx_ip_interface_info_get.c b/common/src/nx_ip_interface_info_get.c index 3feae8e3..10502588 100644 --- a/common/src/nx_ip_interface_info_get.c +++ b/common/src/nx_ip_interface_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_info_get(NX_IP *ip_ptr, UINT interface_index, CHAR **interface_name, ULONG *ip_address, ULONG *network_mask, ULONG *mtu_size, diff --git a/common/src/nx_ip_interface_mtu_set.c b/common/src/nx_ip_interface_mtu_set.c index de4a31eb..412546c5 100644 --- a/common/src/nx_ip_interface_mtu_set.c +++ b/common/src/nx_ip_interface_mtu_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_mtu_set(NX_IP *ip_ptr, UINT interface_index, ULONG mtu_size) { diff --git a/common/src/nx_ip_interface_physical_address_get.c b/common/src/nx_ip_interface_physical_address_get.c index cd078044..6cae5b2f 100644 --- a/common/src/nx_ip_interface_physical_address_get.c +++ b/common/src/nx_ip_interface_physical_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_physical_address_get(NX_IP *ip_ptr, UINT interface_index, ULONG *physical_msw, ULONG *physical_lsw) diff --git a/common/src/nx_ip_interface_physical_address_set.c b/common/src/nx_ip_interface_physical_address_set.c index cb76b6c4..6d848013 100644 --- a/common/src/nx_ip_interface_physical_address_set.c +++ b/common/src/nx_ip_interface_physical_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_physical_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG physical_msw, ULONG physical_lsw, UINT update_driver) diff --git a/common/src/nx_ip_interface_status_check.c b/common/src/nx_ip_interface_status_check.c index e2198445..d93b2be3 100644 --- a/common/src/nx_ip_interface_status_check.c +++ b/common/src/nx_ip_interface_status_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,17 +72,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* added driver entry check, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_interface_status_check(NX_IP *ip_ptr, UINT interface_index, ULONG needed_status, ULONG *actual_status, ULONG wait_option) diff --git a/common/src/nx_ip_link_status_change_notify_set.c b/common/src/nx_ip_link_status_change_notify_set.c index 56752981..b31db2b1 100644 --- a/common/src/nx_ip_link_status_change_notify_set.c +++ b/common/src/nx_ip_link_status_change_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_link_status_change_notify_set(NX_IP *ip_ptr, VOID (*link_status_change_notify)(NX_IP *ip_ptr, UINT interface_index, UINT link_up)) { diff --git a/common/src/nx_ip_max_payload_size_find.c b/common/src/nx_ip_max_payload_size_find.c index 3bdc5000..9dade4cd 100644 --- a/common/src/nx_ip_max_payload_size_find.c +++ b/common/src/nx_ip_max_payload_size_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -89,14 +89,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_max_payload_size_find(NX_IP *ip_ptr, NXD_ADDRESS *dest_address, diff --git a/common/src/nx_ip_packet_checksum_compute.c b/common/src/nx_ip_packet_checksum_compute.c index f982a731..5b99edba 100644 --- a/common/src/nx_ip_packet_checksum_compute.c +++ b/common/src/nx_ip_packet_checksum_compute.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,17 +68,6 @@ /* _nx_ip_fragment_packet */ /* _nx_ipv6_fragment_process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_packet_checksum_compute(NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ip_packet_deferred_receive.c b/common/src/nx_ip_packet_deferred_receive.c index 039db1ee..75569dc0 100644 --- a/common/src/nx_ip_packet_deferred_receive.c +++ b/common/src/nx_ip_packet_deferred_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application I/O Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_packet_deferred_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ip_packet_receive.c b/common/src/nx_ip_packet_receive.c index 0eef603d..404e09a6 100644 --- a/common/src/nx_ip_packet_receive.c +++ b/common/src/nx_ip_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,17 +67,6 @@ /* Application I/O Driver */ /* _nx_ip_packet_send IP loopback packet send */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* added new ip filter, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ VOID _nx_ip_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { @@ -102,7 +91,7 @@ UCHAR version_byte; } #ifndef NX_DISABLE_IPV4 - /* GHSA-pf5q-r6q5-6j2f: + /* GHSA-pf5q-r6q5-6j2f: This is an IPv4 packet. Therefore the header length must be at least 20 bytes. Validate the payload size before accessing the IP header. */ if(packet_ptr -> nx_packet_length < sizeof(NX_IPV4_HEADER)) diff --git a/common/src/nx_ip_packet_send.c b/common/src/nx_ip_packet_send.c index 05c7eb15..4ee771d4 100644 --- a/common/src/nx_ip_packet_send.c +++ b/common/src/nx_ip_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,18 +76,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* added new ip filter, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ VOID _nx_ip_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, ULONG type_of_service, ULONG time_to_live, diff --git a/common/src/nx_ip_periodic_timer_entry.c b/common/src/nx_ip_periodic_timer_entry.c index 37db4938..32252f54 100644 --- a/common/src/nx_ip_periodic_timer_entry.c +++ b/common/src/nx_ip_periodic_timer_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* ThreadX system timer thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_periodic_timer_entry(ULONG ip_address) { diff --git a/common/src/nx_ip_raw_packet_cleanup.c b/common/src/nx_ip_raw_packet_cleanup.c index c18de298..ef235ffc 100644 --- a/common/src/nx_ip_raw_packet_cleanup.c +++ b/common/src/nx_ip_raw_packet_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ip_raw_packet_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_ip_raw_packet_disable.c b/common/src/nx_ip_raw_packet_disable.c index ce7a79e5..156727c3 100644 --- a/common/src/nx_ip_raw_packet_disable.c +++ b/common/src/nx_ip_raw_packet_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_disable(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_raw_packet_enable.c b/common/src/nx_ip_raw_packet_enable.c index fcd30b55..b616ac2d 100644 --- a/common/src/nx_ip_raw_packet_enable.c +++ b/common/src/nx_ip_raw_packet_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_ip_raw_packet_filter_set.c b/common/src/nx_ip_raw_packet_filter_set.c index 7274557f..a2b9dcbf 100644 --- a/common/src/nx_ip_raw_packet_filter_set.c +++ b/common/src/nx_ip_raw_packet_filter_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_filter_set(NX_IP *ip_ptr, UINT (*raw_packet_filter)(NX_IP *, ULONG, NX_PACKET *)) { diff --git a/common/src/nx_ip_raw_packet_processing.c b/common/src/nx_ip_raw_packet_processing.c index 9c47129e..278ccdd9 100644 --- a/common/src/nx_ip_raw_packet_processing.c +++ b/common/src/nx_ip_raw_packet_processing.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* _nx_ip_packet_receive Packet receive processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_processing(NX_IP *ip_ptr, ULONG protocol, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ip_raw_packet_receive.c b/common/src/nx_ip_raw_packet_receive.c index 40df3ac2..f7bcca1e 100644 --- a/common/src/nx_ip_raw_packet_receive.c +++ b/common/src/nx_ip_raw_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_receive(NX_IP *ip_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { diff --git a/common/src/nx_ip_raw_packet_send.c b/common/src/nx_ip_raw_packet_send.c index 80e96fed..a6dcb640 100644 --- a/common/src/nx_ip_raw_packet_send.c +++ b/common/src/nx_ip_raw_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, ULONG type_of_service) diff --git a/common/src/nx_ip_raw_packet_source_send.c b/common/src/nx_ip_raw_packet_source_send.c index 05e6a1b2..45a804a9 100644 --- a/common/src/nx_ip_raw_packet_source_send.c +++ b/common/src/nx_ip_raw_packet_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_packet_source_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, UINT address_index, ULONG type_of_service) diff --git a/common/src/nx_ip_raw_receive_queue_max_set.c b/common/src/nx_ip_raw_receive_queue_max_set.c index 40380c93..6224dac4 100644 --- a/common/src/nx_ip_raw_receive_queue_max_set.c +++ b/common/src/nx_ip_raw_receive_queue_max_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_raw_receive_queue_max_set(NX_IP *ip_ptr, ULONG queue_max) { diff --git a/common/src/nx_ip_route_find.c b/common/src/nx_ip_route_find.c index 8e1f26af..3afd0680 100644 --- a/common/src/nx_ip_route_find.c +++ b/common/src/nx_ip_route_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -81,14 +81,6 @@ /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ ULONG _nx_ip_route_find(NX_IP *ip_ptr, ULONG destination_address, NX_INTERFACE **ip_interface_ptr, ULONG *next_hop_address) { @@ -106,7 +98,7 @@ ULONG i; *next_hop_address = destination_address; - /* If the caller did not set the ip_interface value, find a link enabled + /* If the caller did not set the ip_interface value, find a link enabled interface, starting with the primary interface, for transmission. */ if (*ip_interface_ptr == NX_NULL) { diff --git a/common/src/nx_ip_static_route_add.c b/common/src/nx_ip_static_route_add.c index 7a251472..705ac3ad 100644 --- a/common/src/nx_ip_static_route_add.c +++ b/common/src/nx_ip_static_route_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* next hop address must be on the local network. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_static_route_add(NX_IP *ip_ptr, ULONG network_address, ULONG net_mask, ULONG next_hop) diff --git a/common/src/nx_ip_static_route_delete.c b/common/src/nx_ip_static_route_delete.c index c859c16a..a476e0db 100644 --- a/common/src/nx_ip_static_route_delete.c +++ b/common/src/nx_ip_static_route_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_static_route_delete(NX_IP *ip_ptr, ULONG network_address, ULONG net_mask) { diff --git a/common/src/nx_ip_status_check.c b/common/src/nx_ip_status_check.c index 5d2b54a3..ef223ebe 100644 --- a/common/src/nx_ip_status_check.c +++ b/common/src/nx_ip_status_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ip_status_check(NX_IP *ip_ptr, ULONG needed_status, ULONG *actual_status, ULONG wait_option) diff --git a/common/src/nx_ip_thread_entry.c b/common/src/nx_ip_thread_entry.c index 69b7a61f..68219acf 100644 --- a/common/src/nx_ip_thread_entry.c +++ b/common/src/nx_ip_thread_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -107,17 +107,6 @@ /* */ /* ThreadX Scheduler */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ VOID _nx_ip_thread_entry(ULONG ip_ptr_value) { diff --git a/common/src/nx_ipv4_multicast_interface_join.c b/common/src/nx_ipv4_multicast_interface_join.c index c2fed4b2..7a9d7556 100644 --- a/common/src/nx_ipv4_multicast_interface_join.c +++ b/common/src/nx_ipv4_multicast_interface_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv4_multicast_interface_join(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nx_ipv4_multicast_interface_leave.c b/common/src/nx_ipv4_multicast_interface_leave.c index 2e2d5338..77aada55 100644 --- a/common/src/nx_ipv4_multicast_interface_leave.c +++ b/common/src/nx_ipv4_multicast_interface_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv4_multicast_interface_leave(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nx_ipv4_option_process.c b/common/src/nx_ipv4_option_process.c index 45f91fc2..cd293084 100644 --- a/common/src/nx_ipv4_option_process.c +++ b/common/src/nx_ipv4_option_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* _nx_ipv4_packet_receive Main IPv4 packet receive */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv4_option_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { @@ -233,7 +225,7 @@ UINT op_timestamp_counter = 0; op_length = *(option_ptr + 1); /* Check for invalid option length. - RFC 791: The option-length octet counts the option-type octet and the + RFC 791: The option-length octet counts the option-type octet and the option-length octet as well as the option-data octets. */ if ((op_length < 2) || ((index + op_length) > ip_option_length)) { diff --git a/common/src/nx_ipv4_packet_receive.c b/common/src/nx_ipv4_packet_receive.c index 70391436..2fe504fa 100644 --- a/common/src/nx_ipv4_packet_receive.c +++ b/common/src/nx_ipv4_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,18 +72,6 @@ /* */ /* Application I/O Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* validated packet length for */ -/* fragments, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_ipv4_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { @@ -116,7 +104,7 @@ UINT packet_consumed; compute_checksum = 0; #endif /* NX_DISABLE_IP_RX_CHECKSUM */ - /* GHSA-cf2g-j6vv-m8c5 + /* GHSA-cf2g-j6vv-m8c5 Validate that the payload length is at least the size of the IPv4 header. */ if(packet_ptr -> nx_packet_length < sizeof(NX_IPV4_HEADER)) { diff --git a/common/src/nx_ipv6_fragment_process.c b/common/src/nx_ipv6_fragment_process.c index 15d0c249..fe022be4 100644 --- a/common/src/nx_ipv6_fragment_process.c +++ b/common/src/nx_ipv6_fragment_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -77,17 +77,6 @@ /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* supported random IP id, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_ipv6_fragment_process(struct NX_IP_DRIVER_STRUCT *driver_req_ptr, UINT mtu) { diff --git a/common/src/nx_ipv6_header_add.c b/common/src/nx_ipv6_header_add.c index f16bc6eb..9c1ff602 100644 --- a/common/src/nx_ipv6_header_add.c +++ b/common/src/nx_ipv6_header_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,17 +77,6 @@ /* _nx_ipv6_packet_send IPv6 packet transmit process */ /* _nx_icmpv6_send_ns Send NS packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_header_add(NX_IP *ip_ptr, NX_PACKET **packet_pptr, ULONG protocol, ULONG payload_size, ULONG hop_limit, diff --git a/common/src/nx_ipv6_multicast_join.c b/common/src/nx_ipv6_multicast_join.c index 5cfef1ec..04c2eb63 100644 --- a/common/src/nx_ipv6_multicast_join.c +++ b/common/src/nx_ipv6_multicast_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* nxd_ipv6_enable */ /* nxd_ipv6_address_set */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_multicast_join(NX_IP *ip_ptr, ULONG *multicast_addr, NX_INTERFACE *nx_interface) { diff --git a/common/src/nx_ipv6_multicast_leave.c b/common/src/nx_ipv6_multicast_leave.c index e86e7993..9b14f800 100644 --- a/common/src/nx_ipv6_multicast_leave.c +++ b/common/src/nx_ipv6_multicast_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* _nxd_ipv6_address_delete */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_multicast_leave(NX_IP *ip_ptr, ULONG *multicast_addr, NX_INTERFACE *nx_interface) { diff --git a/common/src/nx_ipv6_option_error.c b/common/src/nx_ipv6_option_error.c index accfbcab..067a09c2 100644 --- a/common/src/nx_ipv6_option_error.c +++ b/common/src/nx_ipv6_option_error.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* _nx_ipv6_process_hop_by_hop_option */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_option_error(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UCHAR option_type, UINT offset) { diff --git a/common/src/nx_ipv6_packet_copy.c b/common/src/nx_ipv6_packet_copy.c index 2dbb59da..9864b983 100644 --- a/common/src/nx_ipv6_packet_copy.c +++ b/common/src/nx_ipv6_packet_copy.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_packet_copy(NX_PACKET *source_pkt_head, NX_PACKET *dest_pkt_head, UINT size) { diff --git a/common/src/nx_ipv6_packet_receive.c b/common/src/nx_ipv6_packet_receive.c index a110215f..c45c3696 100644 --- a/common/src/nx_ipv6_packet_receive.c +++ b/common/src/nx_ipv6_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* Application I/O Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ipv6_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ipv6_packet_send.c b/common/src/nx_ipv6_packet_send.c index d91b2a9a..4619452b 100644 --- a/common/src/nx_ipv6_packet_send.c +++ b/common/src/nx_ipv6_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,17 +86,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ VOID _nx_ipv6_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG protocol, ULONG payload_size, ULONG hop_limit, diff --git a/common/src/nx_ipv6_prefix_list_add_entry.c b/common/src/nx_ipv6_prefix_list_add_entry.c index dbbbfd11..b56df9f2 100644 --- a/common/src/nx_ipv6_prefix_list_add_entry.c +++ b/common/src/nx_ipv6_prefix_list_add_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ /* */ /* This function cannot be called from an ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_prefix_list_add_entry(NX_IP *ip_ptr, ULONG *prefix, ULONG prefix_length, ULONG valid_lifetime) diff --git a/common/src/nx_ipv6_prefix_list_delete.c b/common/src/nx_ipv6_prefix_list_delete.c index e71074cd..d89dde3a 100644 --- a/common/src/nx_ipv6_prefix_list_delete.c +++ b/common/src/nx_ipv6_prefix_list_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ipv6_prefix_list_delete(NX_IP *ip_ptr, ULONG *prefix, INT prefix_length) { diff --git a/common/src/nx_ipv6_prefix_list_delete_entry.c b/common/src/nx_ipv6_prefix_list_delete_entry.c index a42ea314..0b266a97 100644 --- a/common/src/nx_ipv6_prefix_list_delete_entry.c +++ b/common/src/nx_ipv6_prefix_list_delete_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ipv6_prefix_list_delete_entry(NX_IP *ip_ptr, NX_IPV6_PREFIX_ENTRY *entry) { diff --git a/common/src/nx_ipv6_process_fragment_option.c b/common/src/nx_ipv6_process_fragment_option.c index 6432e1fb..00f653c9 100644 --- a/common/src/nx_ipv6_process_fragment_option.c +++ b/common/src/nx_ipv6_process_fragment_option.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,15 +72,6 @@ /* */ /* _nx_ip_dispatch_process Process IPv6 optional header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_process_fragment_option(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ipv6_process_hop_by_hop_option.c b/common/src/nx_ipv6_process_hop_by_hop_option.c index 7511440f..94775255 100644 --- a/common/src/nx_ipv6_process_hop_by_hop_option.c +++ b/common/src/nx_ipv6_process_hop_by_hop_option.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* */ /* _nx_ipv6_dispatch_process Process IPv6 optional header */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Yuxin Zhou Modified comment(s), improved */ -/* buffer read overflow check, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_process_hop_by_hop_option(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ipv6_process_routing_option.c b/common/src/nx_ipv6_process_routing_option.c index a47f6fd6..08490cde 100644 --- a/common/src/nx_ipv6_process_routing_option.c +++ b/common/src/nx_ipv6_process_routing_option.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,15 +65,6 @@ /* */ /* _nx_ipv6_packet_receive */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), improved */ -/* packet length verification, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_ipv6_process_routing_option(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_ipv6_util.c b/common/src/nx_ipv6_util.c index dc8893ed..3a820bad 100644 --- a/common/src/nx_ipv6_util.c +++ b/common/src/nx_ipv6_util.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -51,14 +51,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT CHECK_IP_ADDRESSES_BY_PREFIX(ULONG *ip_addr1, ULONG *ip_addr2, ULONG prefix_len) @@ -147,14 +139,6 @@ ULONG mask; /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT CHECK_IPV6_ADDRESSES_SAME(ULONG *ip_addr1, ULONG *ip_addr2) { @@ -207,14 +191,6 @@ INT CHECK_IPV6_ADDRESSES_SAME(ULONG *ip_addr1, ULONG *ip_addr2) /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT CHECK_IPV6_ADDRESS_RANGE(ULONG *ip_addr_start, ULONG *ip_addr_end, ULONG *ip_addr) { @@ -336,14 +312,6 @@ INT ip_addr_cmp1 = 0, ip_addr_cmp2 = 0; /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT CHECK_UNSPECIFIED_ADDRESS(ULONG *ip_addr) { @@ -387,14 +355,6 @@ INT CHECK_UNSPECIFIED_ADDRESS(ULONG *ip_addr) /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void SET_UNSPECIFIED_ADDRESS(ULONG *ip_addr) { @@ -442,14 +402,6 @@ void SET_UNSPECIFIED_ADDRESS(ULONG *ip_addr) /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void COPY_IPV6_ADDRESS(ULONG *copy_from, ULONG *copy_to) { @@ -502,14 +454,6 @@ void COPY_IPV6_ADDRESS(ULONG *copy_from, ULONG *copy_to) /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void COPY_NXD_ADDRESS(NXD_ADDRESS *copy_from, NXD_ADDRESS *copy_to) @@ -563,14 +507,6 @@ void COPY_NXD_ADDRESS(NXD_ADDRESS *copy_from, NXD_ADDRESS *copy_to) /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void SET_SOLICITED_NODE_MULTICAST_ADDRESS(ULONG *address, ULONG *unicast_address) @@ -622,14 +558,6 @@ void SET_SOLICITED_NODE_MULTICAST_ADDRESS(ULONG *address, /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT CHECK_ALL_ROUTER_MCAST_ADDRESS(ULONG *address) { @@ -689,14 +617,6 @@ INT CHECK_ALL_ROUTER_MCAST_ADDRESS(ULONG *address) /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS(ULONG *dest_ip, ULONG *myip) { @@ -777,14 +697,6 @@ INT isMulticast = 0; /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ ULONG IPv6_Address_Type(ULONG *ip_address) { @@ -918,14 +830,6 @@ ULONG tmp; /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_ipv6_address_change_endian(ULONG *address) { diff --git a/common/src/nx_link.c b/common/src/nx_link.c index 4284fc03..5d54d54a 100644 --- a/common/src/nx_link.c +++ b/common/src/nx_link.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,12 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_vlan_set(NX_IP *ip_ptr, UINT interface_index, UINT vlan_tag) { @@ -134,12 +128,6 @@ UINT nx_link_vlan_set(NX_IP *ip_ptr, UINT interface_index, UINT vlan_tag) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_vlan_get(NX_IP *ip_ptr, UINT interface_index, USHORT *vlan_tag) { @@ -203,12 +191,6 @@ UINT nx_link_vlan_get(NX_IP *ip_ptr, UINT interface_index, USHORT *vlan_tag) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_vlan_clear(NX_IP *ip_ptr, UINT interface_index) { @@ -271,12 +253,6 @@ UINT nx_link_vlan_clear(NX_IP *ip_ptr, UINT interface_index) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_multicast_join(NX_IP *ip_ptr, UINT interface_index, ULONG physical_address_msw, ULONG physical_address_lsw) @@ -349,12 +325,6 @@ NX_IP_DRIVER driver_request; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_multicast_leave(NX_IP *ip_ptr, UINT interface_index, ULONG physical_address_msw, ULONG physical_address_lsw) @@ -432,12 +402,6 @@ NX_IP_DRIVER driver_request; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_ethernet_packet_send(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, ULONG physical_address_msw, ULONG physical_address_lsw, UINT packet_type) @@ -513,12 +477,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_raw_packet_send(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr) { @@ -597,12 +555,6 @@ NX_IP_DRIVER driver_request; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_packet_receive_callback_add(NX_IP *ip_ptr, UINT interface_index, NX_LINK_RECEIVE_QUEUE *queue_ptr, UINT packet_type, nx_link_packet_receive_callback *callback_ptr, VOID *context) @@ -686,12 +638,6 @@ NX_INTERFACE *interface_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_packet_receive_callback_remove(NX_IP *ip_ptr, UINT interface_index, NX_LINK_RECEIVE_QUEUE *queue_ptr) { @@ -777,12 +723,6 @@ NX_INTERFACE *interface_ptr; /* Application Code */ /* nx_link_ethernet_packet_received Process received packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_ethernet_header_parse(NX_PACKET *packet_ptr, ULONG *destination_msb, ULONG *destination_lsb, ULONG *source_msb, ULONG *source_lsb, USHORT *ether_type, USHORT *vlan_tag, @@ -897,12 +837,6 @@ UCHAR *data_ptr = packet_ptr -> nx_packet_prepend_ptr; /* */ /* nx_link_ethernet_packet_send Send Ethernet packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_ethernet_header_add(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, ULONG physical_address_msw, ULONG physical_address_lsw, UINT packet_type) @@ -1011,12 +945,6 @@ USHORT vlan_tag; /* */ /* Network driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID nx_link_packet_transmitted(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, NX_LINK_TIME *time_ptr) { @@ -1100,12 +1028,6 @@ ULONG header_length; /* */ /* Network driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID nx_link_ethernet_packet_received(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, NX_LINK_TIME *time_ptr) @@ -1370,12 +1292,6 @@ NX_LINK_RECEIVE_QUEUE *queue_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_vlan_interface_create(NX_IP *ip_ptr, CHAR *interface_name, ULONG ip_address, ULONG network_mask, UINT vlan_tag, UINT parent_interface_index, UINT *interface_index_ptr) @@ -1499,12 +1415,6 @@ NX_INTERFACE *interface_ptr = NX_NULL; /* */ /* TCP/IP layer */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_link_driver_request_preprocess(NX_IP_DRIVER *driver_request, NX_INTERFACE **actual_interface) { @@ -1620,12 +1530,6 @@ UINT nx_link_driver_request_preprocess(NX_IP_DRIVER *driver_request, NX_INTERFAC /* */ /* _nx_ip_deferred_link_status_process Process link status event */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_link_vlan_interface_status_change(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nx_md5.c b/common/src/nx_md5.c index 8106092d..43065257 100644 --- a/common/src/nx_md5.c +++ b/common/src/nx_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,7 +86,7 @@ } -/* Define the padding array. This is used to pad the message such that its length is +/* Define the padding array. This is used to pad the message such that its length is 64 bits shy of being a multiple of 512 bits long. */ UCHAR _nx_md5_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; @@ -123,14 +123,6 @@ UCHAR _nx_md5_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_md5_initialize(NX_MD5 *context) { @@ -188,15 +180,6 @@ UINT _nx_md5_initialize(NX_MD5 *context) /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_md5_update(NX_MD5 *context, UCHAR *input_ptr, UINT input_length) { @@ -213,7 +196,7 @@ ULONG needed_fill_bytes; if (input_length == 0) return(NX_SUCCESS); - /* Calculate the current byte count mod 64. Note the reason for the + /* Calculate the current byte count mod 64. Note the reason for the shift by 3 is to account for the 8 bits per byte. */ current_bytes = (context -> nx_md5_bit_count[0] >> 3) & 0x3F; @@ -240,7 +223,7 @@ ULONG needed_fill_bytes; /* Yes, we can complete the buffer and transform it. */ - /* Copy the appropriate portion of the input buffer into the internal + /* Copy the appropriate portion of the input buffer into the internal buffer of the context. */ memcpy((void *) &(context -> nx_md5_buffer[current_bytes]), (void *) input_ptr, needed_fill_bytes); /* Use case of memcpy is verified. lgtm[cpp/banned-api-usage-required-any] */ @@ -315,14 +298,6 @@ ULONG needed_fill_bytes; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_md5_digest_calculate(NX_MD5 *context, UCHAR digest[16]) { @@ -410,14 +385,6 @@ ULONG padding_bytes; /* */ /* NetX Applications */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_md5_process_buffer(NX_MD5 *context, UCHAR buffer[64]) { diff --git a/common/src/nx_nd_cache_add.c b/common/src/nx_nd_cache_add.c index 75443084..d5fdd67c 100644 --- a/common/src/nx_nd_cache_add.c +++ b/common/src/nx_nd_cache_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,14 +86,6 @@ /* nxd_nd_cache_entry_set.c User level service */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nd_cache_add(NX_IP *ip_ptr, ULONG *dest_ip, NX_INTERFACE *if_ptr, CHAR *mac, INT IsStatic, INT status, NXD_IPV6_ADDRESS *iface_address, diff --git a/common/src/nx_nd_cache_add_entry.c b/common/src/nx_nd_cache_add_entry.c index 95cba85a..3e2a18bf 100644 --- a/common/src/nx_nd_cache_add_entry.c +++ b/common/src/nx_nd_cache_add_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -85,14 +85,6 @@ /* _nx_ipv6_packet_send */ /* _nx_nd_cache_add */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nd_cache_add_entry(NX_IP *ip_ptr, ULONG *dest_ip, diff --git a/common/src/nx_nd_cache_delete_internal.c b/common/src/nx_nd_cache_delete_internal.c index 0b2a69ed..2abd1792 100644 --- a/common/src/nx_nd_cache_delete_internal.c +++ b/common/src/nx_nd_cache_delete_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ /* and releasing the mutex before invoking this routine. */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nd_cache_delete_internal(NX_IP *ip_ptr, ND_CACHE_ENTRY *entry) { diff --git a/common/src/nx_nd_cache_fast_periodic_update.c b/common/src/nx_nd_cache_fast_periodic_update.c index 42470730..f996c503 100644 --- a/common/src/nx_nd_cache_fast_periodic_update.c +++ b/common/src/nx_nd_cache_fast_periodic_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ /* Caller shall not hold this mutex before calling this function. */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_nd_cache_fast_periodic_update(NX_IP *ip_ptr) { diff --git a/common/src/nx_nd_cache_find_entry.c b/common/src/nx_nd_cache_find_entry.c index aaea00d9..75a9d4c4 100644 --- a/common/src/nx_nd_cache_find_entry.c +++ b/common/src/nx_nd_cache_find_entry.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nd_cache_find_entry(NX_IP *ip_ptr, ULONG *dest_ip, ND_CACHE_ENTRY **nd_cache_entry) diff --git a/common/src/nx_nd_cache_find_entry_by_mac_addr.c b/common/src/nx_nd_cache_find_entry_by_mac_addr.c index 8aa0bddf..b01b59f3 100644 --- a/common/src/nx_nd_cache_find_entry_by_mac_addr.c +++ b/common/src/nx_nd_cache_find_entry_by_mac_addr.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ /* _nxd_nd_cache_ip_address_find User level service */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nd_cache_find_entry_by_mac_addr(NX_IP *ip_ptr, ULONG physical_msw, ULONG physical_lsw, ND_CACHE_ENTRY **nd_cache_entry) diff --git a/common/src/nx_nd_cache_interface_entries_delete.c b/common/src/nx_nd_cache_interface_entries_delete.c index 98a577f9..029ca9cb 100644 --- a/common/src/nx_nd_cache_interface_entries_delete.c +++ b/common/src/nx_nd_cache_interface_entries_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_nd_cache_interface_entries_delete(NX_IP *ip_ptr, UINT index) { diff --git a/common/src/nx_nd_cache_slow_periodic_update.c b/common/src/nx_nd_cache_slow_periodic_update.c index 8078433f..98b477f7 100644 --- a/common/src/nx_nd_cache_slow_periodic_update.c +++ b/common/src/nx_nd_cache_slow_periodic_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* _nx_ip_thread_entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_nd_cache_slow_periodic_update(NX_IP *ip_ptr) { diff --git a/common/src/nx_packet_allocate.c b/common/src/nx_packet_allocate.c index 3f5739d1..bf8ccd0e 100644 --- a/common/src/nx_packet_allocate.c +++ b/common/src/nx_packet_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,18 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN and generic */ -/* link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_packet_allocate(NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG packet_type, ULONG wait_option) diff --git a/common/src/nx_packet_copy.c b/common/src/nx_packet_copy.c index b158432a..1ab741f9 100644 --- a/common/src/nx_packet_copy.c +++ b/common/src/nx_packet_copy.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_copy(NX_PACKET *packet_ptr, NX_PACKET **new_packet_ptr, NX_PACKET_POOL *pool_ptr, ULONG wait_option) diff --git a/common/src/nx_packet_data_adjust.c b/common/src/nx_packet_data_adjust.c index 659eceb2..9b2561f8 100644 --- a/common/src/nx_packet_data_adjust.c +++ b/common/src/nx_packet_data_adjust.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,16 +62,6 @@ /* */ /* _nx_ip_forward_packet_process Forward IP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_data_adjust(NX_PACKET *packet_ptr, ULONG header_size) { diff --git a/common/src/nx_packet_data_append.c b/common/src/nx_packet_data_append.c index 47ba2a0d..6fbb63af 100644 --- a/common/src/nx_packet_data_append.c +++ b/common/src/nx_packet_data_append.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,15 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_data_append(NX_PACKET *packet_ptr, VOID *data_start, ULONG data_size, NX_PACKET_POOL *pool_ptr, ULONG wait_option) diff --git a/common/src/nx_packet_data_extract_offset.c b/common/src/nx_packet_data_extract_offset.c index ae95cd06..f136688b 100644 --- a/common/src/nx_packet_data_extract_offset.c +++ b/common/src/nx_packet_data_extract_offset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,15 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_data_extract_offset(NX_PACKET *packet_ptr, ULONG offset, VOID *buffer_start, ULONG buffer_length, ULONG *bytes_copied) { diff --git a/common/src/nx_packet_data_retrieve.c b/common/src/nx_packet_data_retrieve.c index 9656fa66..81bfd105 100644 --- a/common/src/nx_packet_data_retrieve.c +++ b/common/src/nx_packet_data_retrieve.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,15 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_data_retrieve(NX_PACKET *packet_ptr, VOID *buffer_start, ULONG *bytes_copied) { diff --git a/common/src/nx_packet_debug_info_get.c b/common/src/nx_packet_debug_info_get.c index 8ccdb040..38448b11 100644 --- a/common/src/nx_packet_debug_info_get.c +++ b/common/src/nx_packet_debug_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_debug_info_get(NX_PACKET_POOL *pool_ptr, UINT packet_index, NX_PACKET **packet_pptr, ULONG *packet_status, CHAR **thread_info, CHAR **file_info, ULONG *line) diff --git a/common/src/nx_packet_length_get.c b/common/src/nx_packet_length_get.c index b5760674..49b55ae1 100644 --- a/common/src/nx_packet_length_get.c +++ b/common/src/nx_packet_length_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_length_get(NX_PACKET *packet_ptr, ULONG *length) { diff --git a/common/src/nx_packet_pool_cleanup.c b/common/src/nx_packet_pool_cleanup.c index 772e0905..0c249d2a 100644 --- a/common/src/nx_packet_pool_cleanup.c +++ b/common/src/nx_packet_pool_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_packet_pool_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_packet_pool_create.c b/common/src/nx_packet_pool_create.c index 3880fcf9..0c9d2336 100644 --- a/common/src/nx_packet_pool_create.c +++ b/common/src/nx_packet_pool_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_pool_create(NX_PACKET_POOL *pool_ptr, CHAR *name_ptr, ULONG payload_size, VOID *pool_start, ULONG pool_size) diff --git a/common/src/nx_packet_pool_delete.c b/common/src/nx_packet_pool_delete.c index d5237d57..acfc4ef1 100644 --- a/common/src/nx_packet_pool_delete.c +++ b/common/src/nx_packet_pool_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_pool_delete(NX_PACKET_POOL *pool_ptr) { diff --git a/common/src/nx_packet_pool_info_get.c b/common/src/nx_packet_pool_info_get.c index 2d786541..508c2a03 100644 --- a/common/src/nx_packet_pool_info_get.c +++ b/common/src/nx_packet_pool_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_pool_info_get(NX_PACKET_POOL *pool_ptr, ULONG *total_packets, ULONG *free_packets, ULONG *empty_pool_requests, ULONG *empty_pool_suspensions, diff --git a/common/src/nx_packet_pool_initialize.c b/common/src/nx_packet_pool_initialize.c index e89697dd..2a806199 100644 --- a/common/src/nx_packet_pool_initialize.c +++ b/common/src/nx_packet_pool_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* _nx_system_initialize System initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_packet_pool_initialize(VOID) { diff --git a/common/src/nx_packet_pool_low_watermark_set.c b/common/src/nx_packet_pool_low_watermark_set.c index de4f65e6..ae9e1d88 100644 --- a/common/src/nx_packet_pool_low_watermark_set.c +++ b/common/src/nx_packet_pool_low_watermark_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_pool_low_watermark_set(NX_PACKET_POOL *pool_ptr, ULONG low_watermark) { diff --git a/common/src/nx_packet_release.c b/common/src/nx_packet_release.c index ecdebd76..e208b8aa 100644 --- a/common/src/nx_packet_release.c +++ b/common/src/nx_packet_release.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_release(NX_PACKET *packet_ptr) { diff --git a/common/src/nx_packet_transmit_release.c b/common/src/nx_packet_transmit_release.c index ff0c1c79..638e71a0 100644 --- a/common/src/nx_packet_transmit_release.c +++ b/common/src/nx_packet_transmit_release.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_packet_transmit_release(NX_PACKET *packet_ptr) { diff --git a/common/src/nx_packet_vlan_priority_set.c b/common/src/nx_packet_vlan_priority_set.c index 39a7b120..2e84e34a 100644 --- a/common/src/nx_packet_vlan_priority_set.c +++ b/common/src/nx_packet_vlan_priority_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,12 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_packet_vlan_priority_set(NX_PACKET *packet_ptr, UINT vlan_priority) { diff --git a/common/src/nx_ram_network_driver.c b/common/src/nx_ram_network_driver.c index 6ce9a59b..c96aa795 100644 --- a/common/src/nx_ram_network_driver.c +++ b/common/src/nx_ram_network_driver.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -140,22 +140,6 @@ static _nx_ram_network_driver_instance_type nx_ram_driver[NX_MAX_RAM_INTERFACES] /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* added sample of returning */ -/* link's interface type, */ -/* resulting in version 6.1.9 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN and generic */ -/* link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr) { @@ -698,18 +682,6 @@ ULONG *ethernet_frame_ptr; /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN and generic */ -/* link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ void _nx_ram_network_driver_output(NX_PACKET *packet_ptr, UINT interface_instance_id) { @@ -914,18 +886,6 @@ UINT j; /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN and generic */ -/* link layer, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ void _nx_ram_network_driver_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id) { diff --git a/common/src/nx_rarp_disable.c b/common/src/nx_rarp_disable.c index 7f5f8b45..9d769f22 100644 --- a/common/src/nx_rarp_disable.c +++ b/common/src/nx_rarp_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_rarp_disable(NX_IP *ip_ptr) { diff --git a/common/src/nx_rarp_enable.c b/common/src/nx_rarp_enable.c index 2415601e..a90fcab3 100644 --- a/common/src/nx_rarp_enable.c +++ b/common/src/nx_rarp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_rarp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_rarp_info_get.c b/common/src/nx_rarp_info_get.c index cf406216..c8c77d4c 100644 --- a/common/src/nx_rarp_info_get.c +++ b/common/src/nx_rarp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_rarp_info_get(NX_IP *ip_ptr, ULONG *rarp_requests_sent, ULONG *rarp_responses_received, ULONG *rarp_invalid_messages) diff --git a/common/src/nx_rarp_packet_deferred_receive.c b/common/src/nx_rarp_packet_deferred_receive.c index 2bbe6a0e..2a28387b 100644 --- a/common/src/nx_rarp_packet_deferred_receive.c +++ b/common/src/nx_rarp_packet_deferred_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application I/O Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_rarp_packet_deferred_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_rarp_packet_receive.c b/common/src/nx_rarp_packet_receive.c index e0fd35f1..911eb184 100644 --- a/common/src/nx_rarp_packet_receive.c +++ b/common/src/nx_rarp_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,18 +65,6 @@ /* */ /* _nx_rarp_queue_process RARP receive queue processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* added internal ip address */ -/* change notification, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ VOID _nx_rarp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_rarp_packet_send.c b/common/src/nx_rarp_packet_send.c index 3e00e085..4cb2a8db 100644 --- a/common/src/nx_rarp_packet_send.c +++ b/common/src/nx_rarp_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* NetX Source Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_rarp_packet_send(NX_IP *ip_ptr) { diff --git a/common/src/nx_rarp_periodic_update.c b/common/src/nx_rarp_periodic_update.c index 87b7b001..33c4fe0b 100644 --- a/common/src/nx_rarp_periodic_update.c +++ b/common/src/nx_rarp_periodic_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_rarp_periodic_update(NX_IP *ip_ptr) { diff --git a/common/src/nx_rarp_queue_process.c b/common/src/nx_rarp_queue_process.c index d167336f..ec95697c 100644 --- a/common/src/nx_rarp_queue_process.c +++ b/common/src/nx_rarp_queue_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_rarp_queue_process(NX_IP *ip_ptr) { diff --git a/common/src/nx_system_initialize.c b/common/src/nx_system_initialize.c index c543bc8a..5959c561 100644 --- a/common/src/nx_system_initialize.c +++ b/common/src/nx_system_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_system_initialize(VOID) { diff --git a/common/src/nx_tcp_cleanup_deferred.c b/common/src/nx_tcp_cleanup_deferred.c index 1c2268d4..91939153 100644 --- a/common/src/nx_tcp_cleanup_deferred.c +++ b/common/src/nx_tcp_cleanup_deferred.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_cleanup_deferred(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_tcp_client_bind_cleanup.c b/common/src/nx_tcp_client_bind_cleanup.c index 0e5f30c2..3c58c274 100644 --- a/common/src/nx_tcp_client_bind_cleanup.c +++ b/common/src/nx_tcp_client_bind_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_client_bind_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_tcp_client_socket_bind.c b/common/src/nx_tcp_client_socket_bind.c index 33052376..e56658e9 100644 --- a/common/src/nx_tcp_client_socket_bind.c +++ b/common/src/nx_tcp_client_socket_bind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_tcp_client_socket_bind(NX_TCP_SOCKET *socket_ptr, UINT port, ULONG wait_option) { diff --git a/common/src/nx_tcp_client_socket_connect.c b/common/src/nx_tcp_client_socket_connect.c index 5cc81300..443be53f 100644 --- a/common/src/nx_tcp_client_socket_connect.c +++ b/common/src/nx_tcp_client_socket_connect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_client_socket_connect(NX_TCP_SOCKET *socket_ptr, ULONG server_ip, diff --git a/common/src/nx_tcp_client_socket_port_get.c b/common/src/nx_tcp_client_socket_port_get.c index e0ff8e99..53c9eebc 100644 --- a/common/src/nx_tcp_client_socket_port_get.c +++ b/common/src/nx_tcp_client_socket_port_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_client_socket_port_get(NX_TCP_SOCKET *socket_ptr, UINT *port_ptr) { diff --git a/common/src/nx_tcp_client_socket_unbind.c b/common/src/nx_tcp_client_socket_unbind.c index 696d57a3..1dba0244 100644 --- a/common/src/nx_tcp_client_socket_unbind.c +++ b/common/src/nx_tcp_client_socket_unbind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_client_socket_unbind(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_connect_cleanup.c b/common/src/nx_tcp_connect_cleanup.c index 851b8ca4..ef1c139d 100644 --- a/common/src/nx_tcp_connect_cleanup.c +++ b/common/src/nx_tcp_connect_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_connect_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_tcp_deferred_cleanup_check.c b/common/src/nx_tcp_deferred_cleanup_check.c index ba919101..e46c7aa9 100644 --- a/common/src/nx_tcp_deferred_cleanup_check.c +++ b/common/src/nx_tcp_deferred_cleanup_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_deferred_cleanup_check(NX_IP *ip_ptr) { diff --git a/common/src/nx_tcp_disconnect_cleanup.c b/common/src/nx_tcp_disconnect_cleanup.c index 5393be40..b687aa92 100644 --- a/common/src/nx_tcp_disconnect_cleanup.c +++ b/common/src/nx_tcp_disconnect_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_disconnect_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_tcp_enable.c b/common/src/nx_tcp_enable.c index 9615c6d4..6074334a 100644 --- a/common/src/nx_tcp_enable.c +++ b/common/src/nx_tcp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_tcp_fast_periodic_processing.c b/common/src/nx_tcp_fast_periodic_processing.c index cc21b54a..f494b992 100644 --- a/common/src/nx_tcp_fast_periodic_processing.c +++ b/common/src/nx_tcp_fast_periodic_processing.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_fast_periodic_processing(NX_IP *ip_ptr) { diff --git a/common/src/nx_tcp_free_port_find.c b/common/src/nx_tcp_free_port_find.c index 1194cee1..9a17acd8 100644 --- a/common/src/nx_tcp_free_port_find.c +++ b/common/src/nx_tcp_free_port_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_tcp_free_port_find(NX_IP *ip_ptr, UINT port, UINT *free_port_ptr) { diff --git a/common/src/nx_tcp_info_get.c b/common/src/nx_tcp_info_get.c index 66f9656a..ca823b54 100644 --- a/common/src/nx_tcp_info_get.c +++ b/common/src/nx_tcp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,14 +83,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_info_get(NX_IP *ip_ptr, ULONG *tcp_packets_sent, ULONG *tcp_bytes_sent, ULONG *tcp_packets_received, ULONG *tcp_bytes_received, diff --git a/common/src/nx_tcp_initialize.c b/common/src/nx_tcp_initialize.c index 1e49b680..bdb86f38 100644 --- a/common/src/nx_tcp_initialize.c +++ b/common/src/nx_tcp_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* _nx_system_initialize System initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_initialize(VOID) { diff --git a/common/src/nx_tcp_mss_option_get.c b/common/src/nx_tcp_mss_option_get.c index ffa6fdd6..219988b3 100644 --- a/common/src/nx_tcp_mss_option_get.c +++ b/common/src/nx_tcp_mss_option_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* _nx_tcp_packet_process TCP packet processing */ /* _nx_tcp_server_socket_relisten Socket relisten processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_mss_option_get(UCHAR *option_ptr, ULONG option_area_size, ULONG *mss) { diff --git a/common/src/nx_tcp_no_connection_reset.c b/common/src/nx_tcp_no_connection_reset.c index da069221..28600f42 100644 --- a/common/src/nx_tcp_no_connection_reset.c +++ b/common/src/nx_tcp_no_connection_reset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* */ /* _nx_tcp_packet_process TCP packet processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_no_connection_reset(NX_IP *ip_ptr, NX_PACKET *packet_ptr, NX_TCP_HEADER *tcp_header_ptr) { diff --git a/common/src/nx_tcp_packet_process.c b/common/src/nx_tcp_packet_process.c index 63cf6ce1..a96400fd 100644 --- a/common/src/nx_tcp_packet_process.c +++ b/common/src/nx_tcp_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -85,17 +85,6 @@ /* _nx_tcp_queue_process Process TCP packet queue */ /* _nx_tcp_packet_receive Receive packet processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* validated TCP header buffer,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_tcp_packet_receive.c b/common/src/nx_tcp_packet_receive.c index 92287e65..b9df94de 100644 --- a/common/src/nx_tcp_packet_receive.c +++ b/common/src/nx_tcp_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* _nx_ip_packet_receive Dispatch received IP packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_tcp_packet_send_ack.c b/common/src/nx_tcp_packet_send_ack.c index 2f126bb1..624d3bab 100644 --- a/common/src/nx_tcp_packet_send_ack.c +++ b/common/src/nx_tcp_packet_send_ack.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* _nx_tcp_socket_state_syn_sent Socket state SYN sent */ /* processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_send_ack(NX_TCP_SOCKET *socket_ptr, ULONG tx_sequence) { diff --git a/common/src/nx_tcp_packet_send_control.c b/common/src/nx_tcp_packet_send_control.c index 93db969c..57a75e74 100644 --- a/common/src/nx_tcp_packet_send_control.c +++ b/common/src/nx_tcp_packet_send_control.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,17 +78,6 @@ /* _nx_tcp_packet_send_rst Send RST packet */ /* _nx_tcp_packet_send_probe Send zero window probe packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_send_control(NX_TCP_SOCKET *socket_ptr, ULONG control_bits, ULONG tx_sequence, ULONG ack_number, ULONG option_word_1, ULONG option_word_2, UCHAR *data) diff --git a/common/src/nx_tcp_packet_send_fin.c b/common/src/nx_tcp_packet_send_fin.c index 9fb45a29..762d58f2 100644 --- a/common/src/nx_tcp_packet_send_fin.c +++ b/common/src/nx_tcp_packet_send_fin.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* _nx_tcp_socket_disconnect Socket disconnect processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_send_fin(NX_TCP_SOCKET *socket_ptr, ULONG tx_sequence) { diff --git a/common/src/nx_tcp_packet_send_probe.c b/common/src/nx_tcp_packet_send_probe.c index 9e0b4591..e055bfd2 100644 --- a/common/src/nx_tcp_packet_send_probe.c +++ b/common/src/nx_tcp_packet_send_probe.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* _nx_tcp_fast_periodic_processing Delayed ACK processing */ /* processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_send_probe(NX_TCP_SOCKET *socket_ptr, ULONG tx_sequence, UCHAR data) { diff --git a/common/src/nx_tcp_packet_send_rst.c b/common/src/nx_tcp_packet_send_rst.c index c207d236..27b1845a 100644 --- a/common/src/nx_tcp_packet_send_rst.c +++ b/common/src/nx_tcp_packet_send_rst.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* _nx_tcp_socket_state_syn_received Socket SYN received processing*/ /* _nx_tcp_socket_state_syn_sent Socket SYN sent processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_send_rst(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *header_ptr) { diff --git a/common/src/nx_tcp_packet_send_syn.c b/common/src/nx_tcp_packet_send_syn.c index 664ba3f6..31dcb3e5 100644 --- a/common/src/nx_tcp_packet_send_syn.c +++ b/common/src/nx_tcp_packet_send_syn.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* processing */ /* _nx_tcp_socket_state_syn_sent Socket SYN sent processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_packet_send_syn(NX_TCP_SOCKET *socket_ptr, ULONG tx_sequence) { diff --git a/common/src/nx_tcp_periodic_processing.c b/common/src/nx_tcp_periodic_processing.c index 18b2d27e..3807e369 100644 --- a/common/src/nx_tcp_periodic_processing.c +++ b/common/src/nx_tcp_periodic_processing.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_periodic_processing(NX_IP *ip_ptr) { diff --git a/common/src/nx_tcp_queue_process.c b/common/src/nx_tcp_queue_process.c index ecf69b09..ecb4cf08 100644 --- a/common/src/nx_tcp_queue_process.c +++ b/common/src/nx_tcp_queue_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* _nx_ip_thread_entry IP helper thread processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_queue_process(NX_IP *ip_ptr) { diff --git a/common/src/nx_tcp_receive_cleanup.c b/common/src/nx_tcp_receive_cleanup.c index 2b923dee..f033db09 100644 --- a/common/src/nx_tcp_receive_cleanup.c +++ b/common/src/nx_tcp_receive_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_receive_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_tcp_server_socket_accept.c b/common/src/nx_tcp_server_socket_accept.c index 61603a4a..04804a61 100644 --- a/common/src/nx_tcp_server_socket_accept.c +++ b/common/src/nx_tcp_server_socket_accept.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_server_socket_accept(NX_TCP_SOCKET *socket_ptr, ULONG wait_option) { diff --git a/common/src/nx_tcp_server_socket_driver_listen.c b/common/src/nx_tcp_server_socket_driver_listen.c index 04a77ce6..45974a70 100644 --- a/common/src/nx_tcp_server_socket_driver_listen.c +++ b/common/src/nx_tcp_server_socket_driver_listen.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,12 +63,6 @@ /* _nx_tcp_server_socket_listen Register a listen request */ /* _nx_tcp_server_socket_relisten Register a listen request */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_tcp_server_socket_driver_listen(NX_IP *ip_ptr, UINT port, NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_server_socket_listen.c b/common/src/nx_tcp_server_socket_listen.c index 3ba56ccb..3cfe577d 100644 --- a/common/src/nx_tcp_server_socket_listen.c +++ b/common/src/nx_tcp_server_socket_listen.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,17 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_tcp_server_socket_listen(NX_IP *ip_ptr, UINT port, NX_TCP_SOCKET *socket_ptr, UINT listen_queue_size, VOID (*tcp_listen_callback)(NX_TCP_SOCKET *socket_ptr, UINT port)) diff --git a/common/src/nx_tcp_server_socket_relisten.c b/common/src/nx_tcp_server_socket_relisten.c index 1d1e7895..fd389d7a 100644 --- a/common/src/nx_tcp_server_socket_relisten.c +++ b/common/src/nx_tcp_server_socket_relisten.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,17 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_tcp_server_socket_relisten(NX_IP *ip_ptr, UINT port, NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_server_socket_unaccept.c b/common/src/nx_tcp_server_socket_unaccept.c index abd5e9a5..51ac036f 100644 --- a/common/src/nx_tcp_server_socket_unaccept.c +++ b/common/src/nx_tcp_server_socket_unaccept.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_server_socket_unaccept(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_server_socket_unlisten.c b/common/src/nx_tcp_server_socket_unlisten.c index 016f6f79..1da96aad 100644 --- a/common/src/nx_tcp_server_socket_unlisten.c +++ b/common/src/nx_tcp_server_socket_unlisten.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,12 +65,6 @@ /* */ /* _nx_tcp_server_socket_unlisten */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ static UINT _nx_tcp_server_socket_driver_unlisten(NX_IP *ip_ptr, NX_TCP_SOCKET *socket_ptr, UINT port) { @@ -148,17 +142,6 @@ NX_INTERFACE *interface_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_tcp_server_socket_unlisten(NX_IP *ip_ptr, UINT port) { diff --git a/common/src/nx_tcp_socket_block_cleanup.c b/common/src/nx_tcp_socket_block_cleanup.c index cb0a4c0d..a70c4ba0 100644 --- a/common/src/nx_tcp_socket_block_cleanup.c +++ b/common/src/nx_tcp_socket_block_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* _nx_tcp_socket_state_last_ack Process data on LAST ACK state*/ /* _nx_tcp_client_socket_unbind Ubind the TCP client socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_block_cleanup(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_bytes_available.c b/common/src/nx_tcp_socket_bytes_available.c index 12c4a44c..9b99e005 100644 --- a/common/src/nx_tcp_socket_bytes_available.c +++ b/common/src/nx_tcp_socket_bytes_available.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_bytes_available(NX_TCP_SOCKET *socket_ptr, ULONG *bytes_available) { diff --git a/common/src/nx_tcp_socket_connection_reset.c b/common/src/nx_tcp_socket_connection_reset.c index a207abbb..978ecb19 100644 --- a/common/src/nx_tcp_socket_connection_reset.c +++ b/common/src/nx_tcp_socket_connection_reset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,18 +74,6 @@ /* _nx_tcp_periodic_processing Keepalive processing */ /* _nx_tcp_socket_packet_process Socket packet processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the logic of */ -/* flushing receive queue. */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_connection_reset(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_create.c b/common/src/nx_tcp_socket_create.c index 94f8fdf0..1882a487 100644 --- a/common/src/nx_tcp_socket_create.c +++ b/common/src/nx_tcp_socket_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,17 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_create(NX_IP *ip_ptr, NX_TCP_SOCKET *socket_ptr, CHAR *name, ULONG type_of_service, ULONG fragment, UINT time_to_live, ULONG window_size, diff --git a/common/src/nx_tcp_socket_delete.c b/common/src/nx_tcp_socket_delete.c index a3d6ee69..c813f101 100644 --- a/common/src/nx_tcp_socket_delete.c +++ b/common/src/nx_tcp_socket_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_delete(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_disconnect.c b/common/src/nx_tcp_socket_disconnect.c index bf73b83a..03dfb0c5 100644 --- a/common/src/nx_tcp_socket_disconnect.c +++ b/common/src/nx_tcp_socket_disconnect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,17 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_disconnect(NX_TCP_SOCKET *socket_ptr, ULONG wait_option) { diff --git a/common/src/nx_tcp_socket_disconnect_complete_notify.c b/common/src/nx_tcp_socket_disconnect_complete_notify.c index 14338da4..81a94ab2 100644 --- a/common/src/nx_tcp_socket_disconnect_complete_notify.c +++ b/common/src/nx_tcp_socket_disconnect_complete_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_disconnect_complete_notify(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_disconnect_complete_notify)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nx_tcp_socket_driver_establish.c b/common/src/nx_tcp_socket_driver_establish.c index b9017377..b7945a06 100644 --- a/common/src/nx_tcp_socket_driver_establish.c +++ b/common/src/nx_tcp_socket_driver_establish.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,12 +69,6 @@ /* */ /* Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_driver_establish(NX_TCP_SOCKET *socket_ptr, NX_INTERFACE *interface_ptr, UINT remote_port) { diff --git a/common/src/nx_tcp_socket_driver_packet_receive.c b/common/src/nx_tcp_socket_driver_packet_receive.c index 6e1d86e7..f32ef4f5 100644 --- a/common/src/nx_tcp_socket_driver_packet_receive.c +++ b/common/src/nx_tcp_socket_driver_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,12 +70,6 @@ /* */ /* Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_driver_packet_receive(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_tcp_socket_establish_notify.c b/common/src/nx_tcp_socket_establish_notify.c index 7fb7e901..2b209a6f 100644 --- a/common/src/nx_tcp_socket_establish_notify.c +++ b/common/src/nx_tcp_socket_establish_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_establish_notify(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_establish_notify)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nx_tcp_socket_info_get.c b/common/src/nx_tcp_socket_info_get.c index e9a5ba73..9689bab1 100644 --- a/common/src/nx_tcp_socket_info_get.c +++ b/common/src/nx_tcp_socket_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -84,14 +84,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_info_get(NX_TCP_SOCKET *socket_ptr, ULONG *tcp_packets_sent, ULONG *tcp_bytes_sent, ULONG *tcp_packets_received, ULONG *tcp_bytes_received, diff --git a/common/src/nx_tcp_socket_mss_get.c b/common/src/nx_tcp_socket_mss_get.c index 74d18d5e..e3c4dc27 100644 --- a/common/src/nx_tcp_socket_mss_get.c +++ b/common/src/nx_tcp_socket_mss_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_mss_get(NX_TCP_SOCKET *socket_ptr, ULONG *mss) { diff --git a/common/src/nx_tcp_socket_mss_peer_get.c b/common/src/nx_tcp_socket_mss_peer_get.c index 592fe94b..349e73e7 100644 --- a/common/src/nx_tcp_socket_mss_peer_get.c +++ b/common/src/nx_tcp_socket_mss_peer_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_mss_peer_get(NX_TCP_SOCKET *socket_ptr, ULONG *peer_mss) { diff --git a/common/src/nx_tcp_socket_mss_set.c b/common/src/nx_tcp_socket_mss_set.c index d0e3a08f..f21a0140 100644 --- a/common/src/nx_tcp_socket_mss_set.c +++ b/common/src/nx_tcp_socket_mss_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_mss_set(NX_TCP_SOCKET *socket_ptr, ULONG mss) { diff --git a/common/src/nx_tcp_socket_packet_process.c b/common/src/nx_tcp_socket_packet_process.c index da2c55c3..bc9e0c9a 100644 --- a/common/src/nx_tcp_socket_packet_process.c +++ b/common/src/nx_tcp_socket_packet_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -82,24 +82,6 @@ /* */ /* _nx_tcp_packet_process Process raw TCP packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed unsigned integers */ -/* comparison, */ -/* resulting in version 6.1.10 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_packet_process(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_tcp_socket_peer_info_get.c b/common/src/nx_tcp_socket_peer_info_get.c index dfdc4a00..0f7d23f8 100644 --- a/common/src/nx_tcp_socket_peer_info_get.c +++ b/common/src/nx_tcp_socket_peer_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_peer_info_get(NX_TCP_SOCKET *socket_ptr, ULONG *peer_ip_address, diff --git a/common/src/nx_tcp_socket_queue_depth_notify_set.c b/common/src/nx_tcp_socket_queue_depth_notify_set.c index 3c3b92ab..9d5d2eef 100644 --- a/common/src/nx_tcp_socket_queue_depth_notify_set.c +++ b/common/src/nx_tcp_socket_queue_depth_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_queue_depth_notify_set(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_socket_queue_depth_notify)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nx_tcp_socket_receive.c b/common/src/nx_tcp_socket_receive.c index 9c08c796..baecd519 100644 --- a/common/src/nx_tcp_socket_receive.c +++ b/common/src/nx_tcp_socket_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_receive(NX_TCP_SOCKET *socket_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { diff --git a/common/src/nx_tcp_socket_receive_notify.c b/common/src/nx_tcp_socket_receive_notify.c index a0bc9a72..82059e72 100644 --- a/common/src/nx_tcp_socket_receive_notify.c +++ b/common/src/nx_tcp_socket_receive_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_receive_notify(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_receive_notify)(NX_TCP_SOCKET *socket_ptr)) diff --git a/common/src/nx_tcp_socket_receive_queue_flush.c b/common/src/nx_tcp_socket_receive_queue_flush.c index 58dd9a80..19ac8f6c 100644 --- a/common/src/nx_tcp_socket_receive_queue_flush.c +++ b/common/src/nx_tcp_socket_receive_queue_flush.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _nx_tcp_server_socket_unaccept Server socket unaccept */ /* processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_receive_queue_flush(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_receive_queue_max_set.c b/common/src/nx_tcp_socket_receive_queue_max_set.c index e3765af6..c33df288 100644 --- a/common/src/nx_tcp_socket_receive_queue_max_set.c +++ b/common/src/nx_tcp_socket_receive_queue_max_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_receive_queue_max_set(NX_TCP_SOCKET *socket_ptr, UINT receive_queue_maximum) { diff --git a/common/src/nx_tcp_socket_retransmit.c b/common/src/nx_tcp_socket_retransmit.c index bddf8d67..a3d964f8 100644 --- a/common/src/nx_tcp_socket_retransmit.c +++ b/common/src/nx_tcp_socket_retransmit.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,17 +72,6 @@ /* _nx_tcp_fast_periodic_processing Process TCP packet for socket */ /* _nx_tcp_socket_state_ack_check Process ACK number */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_retransmit(NX_IP *ip_ptr, NX_TCP_SOCKET *socket_ptr, UINT need_fast_retransmit) { diff --git a/common/src/nx_tcp_socket_send.c b/common/src/nx_tcp_socket_send.c index efa5afee..989bc1b1 100644 --- a/common/src/nx_tcp_socket_send.c +++ b/common/src/nx_tcp_socket_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* Application */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_send(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { diff --git a/common/src/nx_tcp_socket_send_internal.c b/common/src/nx_tcp_socket_send_internal.c index 8508ae97..db48895c 100644 --- a/common/src/nx_tcp_socket_send_internal.c +++ b/common/src/nx_tcp_socket_send_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,15 +72,6 @@ /* */ /* _nx_tcp_socket_send_internal */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static UINT _nx_tcp_socket_driver_send(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { @@ -249,25 +240,6 @@ NX_TCP_HEADER *header_ptr; /* _nx_tcp_socket_send(). The caller guarantees that the payload */ /* size does not exceed MSS. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), and */ -/* fixed the bug of race */ -/* condition, */ -/* resulting in version 6.1.9 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), and */ -/* improved the throughput of */ -/* TCP transmission, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_send_internal(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, ULONG wait_option) { diff --git a/common/src/nx_tcp_socket_state_ack_check.c b/common/src/nx_tcp_socket_state_ack_check.c index de371efe..6e46984f 100644 --- a/common/src/nx_tcp_socket_state_ack_check.c +++ b/common/src/nx_tcp_socket_state_ack_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,28 +72,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected the calculation of*/ -/* ending packet sequence, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Yuxin Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.7 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* fixed the bug of race */ -/* condition, removed useless */ -/* code, */ -/* resulting in version 6.1.9 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed unsigned integers */ -/* comparison, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_state_ack_check(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) { diff --git a/common/src/nx_tcp_socket_state_closing.c b/common/src/nx_tcp_socket_state_closing.c index ab566f4e..22ab887a 100644 --- a/common/src/nx_tcp_socket_state_closing.c +++ b/common/src/nx_tcp_socket_state_closing.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_closing(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) { diff --git a/common/src/nx_tcp_socket_state_data_check.c b/common/src/nx_tcp_socket_state_data_check.c index a7c7402e..70d8ef28 100644 --- a/common/src/nx_tcp_socket_state_data_check.c +++ b/common/src/nx_tcp_socket_state_data_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,17 +65,6 @@ /* */ /* _nx_tcp_socket_state_data_check Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_data_trim(NX_PACKET *packet_ptr, ULONG amount) { @@ -171,15 +160,6 @@ NX_PACKET *work_ptr; /* */ /* _nx_tcp_socket_state_data_check Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_data_trim_front(NX_PACKET *packet_ptr, ULONG amount) { @@ -316,27 +296,6 @@ ULONG work_length; /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), and */ -/* fixed unsigned integers */ -/* comparison, */ -/* resulting in version 6.1.10 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* 10-31-2023 Bo Chen Modified comment(s), corrected */ -/* the acked packet count, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_state_data_check(NX_TCP_SOCKET *socket_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_tcp_socket_state_established.c b/common/src/nx_tcp_socket_state_established.c index 41154836..4a0df3af 100644 --- a/common/src/nx_tcp_socket_state_established.c +++ b/common/src/nx_tcp_socket_state_established.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,17 +70,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_established(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_state_fin_wait1.c b/common/src/nx_tcp_socket_state_fin_wait1.c index 1457999c..4002ce36 100644 --- a/common/src/nx_tcp_socket_state_fin_wait1.c +++ b/common/src/nx_tcp_socket_state_fin_wait1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_fin_wait1(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_state_fin_wait2.c b/common/src/nx_tcp_socket_state_fin_wait2.c index 6dc1b134..0f05272c 100644 --- a/common/src/nx_tcp_socket_state_fin_wait2.c +++ b/common/src/nx_tcp_socket_state_fin_wait2.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_fin_wait2(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_state_last_ack.c b/common/src/nx_tcp_socket_state_last_ack.c index d8ea7430..a83101ba 100644 --- a/common/src/nx_tcp_socket_state_last_ack.c +++ b/common/src/nx_tcp_socket_state_last_ack.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_last_ack(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) { diff --git a/common/src/nx_tcp_socket_state_syn_received.c b/common/src/nx_tcp_socket_state_syn_received.c index a31783f2..447d8d41 100644 --- a/common/src/nx_tcp_socket_state_syn_received.c +++ b/common/src/nx_tcp_socket_state_syn_received.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_syn_received(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) { diff --git a/common/src/nx_tcp_socket_state_syn_sent.c b/common/src/nx_tcp_socket_state_syn_sent.c index 41f87b07..c359d98f 100644 --- a/common/src/nx_tcp_socket_state_syn_sent.c +++ b/common/src/nx_tcp_socket_state_syn_sent.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,17 +71,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_syn_sent(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_tcp_socket_state_transmit_check.c b/common/src/nx_tcp_socket_state_transmit_check.c index fc053fb2..1e9dae16 100644 --- a/common/src/nx_tcp_socket_state_transmit_check.c +++ b/common/src/nx_tcp_socket_state_transmit_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* _nx_tcp_socket_packet_process Process TCP packet for socket */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_state_transmit_check(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_state_wait.c b/common/src/nx_tcp_socket_state_wait.c index 197dfcca..5c633f56 100644 --- a/common/src/nx_tcp_socket_state_wait.c +++ b/common/src/nx_tcp_socket_state_wait.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,17 +65,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_state_wait(NX_TCP_SOCKET *socket_ptr, UINT desired_state, ULONG wait_option) { diff --git a/common/src/nx_tcp_socket_thread_resume.c b/common/src/nx_tcp_socket_thread_resume.c index b60d5b61..62c99017 100644 --- a/common/src/nx_tcp_socket_thread_resume.c +++ b/common/src/nx_tcp_socket_thread_resume.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ /* _nx_tcp_socket_state_transmit_check Socket transmit check */ /* processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_thread_resume(TX_THREAD **suspension_list_head, UINT status) { diff --git a/common/src/nx_tcp_socket_thread_suspend.c b/common/src/nx_tcp_socket_thread_suspend.c index c182bbbc..bc631d4d 100644 --- a/common/src/nx_tcp_socket_thread_suspend.c +++ b/common/src/nx_tcp_socket_thread_suspend.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* _nx_tcp_server_socket_accept Server socket accept */ /* processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_thread_suspend(TX_THREAD **suspension_list_head, VOID (*suspend_cleanup)(TX_THREAD * NX_CLEANUP_PARAMETER), NX_TCP_SOCKET *socket_ptr, TX_MUTEX *mutex_ptr, ULONG wait_option) { diff --git a/common/src/nx_tcp_socket_timed_wait_callback.c b/common/src/nx_tcp_socket_timed_wait_callback.c index 62e6c921..b3a637c4 100644 --- a/common/src/nx_tcp_socket_timed_wait_callback.c +++ b/common/src/nx_tcp_socket_timed_wait_callback.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_timed_wait_callback(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_timed_wait_callback)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nx_tcp_socket_transmit_configure.c b/common/src/nx_tcp_socket_transmit_configure.c index 72d5f92b..6b132f8a 100644 --- a/common/src/nx_tcp_socket_transmit_configure.c +++ b/common/src/nx_tcp_socket_transmit_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,17 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* fixed compiler warning, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_transmit_configure(NX_TCP_SOCKET *socket_ptr, ULONG max_queue_depth, ULONG timeout, ULONG max_retries, ULONG timeout_shift) diff --git a/common/src/nx_tcp_socket_transmit_queue_flush.c b/common/src/nx_tcp_socket_transmit_queue_flush.c index 94d01148..0e782fcc 100644 --- a/common/src/nx_tcp_socket_transmit_queue_flush.c +++ b/common/src/nx_tcp_socket_transmit_queue_flush.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* processing */ /* _nx_tcp_socket_disconnect Socket disconnect processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_socket_transmit_queue_flush(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nx_tcp_socket_vlan_priority_set.c b/common/src/nx_tcp_socket_vlan_priority_set.c index bce38021..4ff02058 100644 --- a/common/src/nx_tcp_socket_vlan_priority_set.c +++ b/common/src/nx_tcp_socket_vlan_priority_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,12 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_vlan_priority_set(NX_TCP_SOCKET *socket_ptr, UINT vlan_priority) { diff --git a/common/src/nx_tcp_socket_window_update_notify_set.c b/common/src/nx_tcp_socket_window_update_notify_set.c index 88ad0457..8a80a552 100644 --- a/common/src/nx_tcp_socket_window_update_notify_set.c +++ b/common/src/nx_tcp_socket_window_update_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_socket_window_update_notify_set(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_socket_window_update_notify)(NX_TCP_SOCKET *socket_ptr)) diff --git a/common/src/nx_tcp_transmit_cleanup.c b/common/src/nx_tcp_transmit_cleanup.c index 7fb35e63..478e6b36 100644 --- a/common/src/nx_tcp_transmit_cleanup.c +++ b/common/src/nx_tcp_transmit_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_tcp_transmit_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_tcp_window_scaling_option_get.c b/common/src/nx_tcp_window_scaling_option_get.c index a4a4d4a0..29cfec0d 100644 --- a/common/src/nx_tcp_window_scaling_option_get.c +++ b/common/src/nx_tcp_window_scaling_option_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* _nx_tcp_packet_process TCP packet processing */ /* _nx_tcp_server_socket_relisten Socket relisten processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_tcp_window_scaling_option_get(UCHAR *option_ptr, ULONG option_area_size, ULONG *window_scale) { diff --git a/common/src/nx_trace_event_insert.c b/common/src/nx_trace_event_insert.c index 2ccf98cf..2ae50dfe 100644 --- a/common/src/nx_trace_event_insert.c +++ b/common/src/nx_trace_event_insert.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* Internal NetX Duo Functions */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_trace_event_insert(ULONG event_id, ULONG info_field_1, ULONG info_field_2, ULONG info_field_3, ULONG info_field_4, ULONG filter, TX_TRACE_BUFFER_ENTRY **current_event, ULONG *current_timestamp) { diff --git a/common/src/nx_trace_event_update.c b/common/src/nx_trace_event_update.c index cbd411e7..a8d49868 100644 --- a/common/src/nx_trace_event_update.c +++ b/common/src/nx_trace_event_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Internal NetX Duo Functions */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, ULONG event_id, ULONG info_field_1, ULONG info_field_2, ULONG info_field_3, ULONG info_field_4) { diff --git a/common/src/nx_trace_object_register.c b/common/src/nx_trace_object_register.c index d9ae23fc..2219c4e9 100644 --- a/common/src/nx_trace_object_register.c +++ b/common/src/nx_trace_object_register.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ extern VOID _tx_trace_object_register(UCHAR, VOID *, CHAR *, ULONG, ULONG); /* */ /* Application Initialization */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_trace_object_register(UCHAR object_type, VOID *object_ptr, CHAR *object_name, ULONG parameter_1, ULONG parameter_2) { diff --git a/common/src/nx_trace_object_unregister.c b/common/src/nx_trace_object_unregister.c index ab4905f6..6bad7cb6 100644 --- a/common/src/nx_trace_object_unregister.c +++ b/common/src/nx_trace_object_unregister.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ extern VOID _tx_trace_object_unregister(VOID *); /* */ /* NetX Duo delete functions */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_trace_object_unregister(VOID *object_ptr) { diff --git a/common/src/nx_udp_bind_cleanup.c b/common/src/nx_udp_bind_cleanup.c index 3ca5930f..071f57dd 100644 --- a/common/src/nx_udp_bind_cleanup.c +++ b/common/src/nx_udp_bind_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_udp_bind_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_udp_enable.c b/common/src/nx_udp_enable.c index 2f3d8aaa..44ed326d 100644 --- a/common/src/nx_udp_enable.c +++ b/common/src/nx_udp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nx_udp_free_port_find.c b/common/src/nx_udp_free_port_find.c index a44d4cf1..26e13bf7 100644 --- a/common/src/nx_udp_free_port_find.c +++ b/common/src/nx_udp_free_port_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Haiqing Zhao Modified comment(s), improved */ -/* internal logic, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_udp_free_port_find(NX_IP *ip_ptr, UINT port, UINT *free_port_ptr) { diff --git a/common/src/nx_udp_info_get.c b/common/src/nx_udp_info_get.c index ff787eff..c5b3cca3 100644 --- a/common/src/nx_udp_info_get.c +++ b/common/src/nx_udp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_info_get(NX_IP *ip_ptr, ULONG *udp_packets_sent, ULONG *udp_bytes_sent, ULONG *udp_packets_received, ULONG *udp_bytes_received, diff --git a/common/src/nx_udp_packet_info_extract.c b/common/src/nx_udp_packet_info_extract.c index b0a43fc0..b1642a7e 100644 --- a/common/src/nx_udp_packet_info_extract.c +++ b/common/src/nx_udp_packet_info_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_packet_info_extract(NX_PACKET *packet_ptr, ULONG *ip_address, UINT *protocol, UINT *port, UINT *interface_index) diff --git a/common/src/nx_udp_packet_receive.c b/common/src/nx_udp_packet_receive.c index f054184a..bd4e1658 100644 --- a/common/src/nx_udp_packet_receive.c +++ b/common/src/nx_udp_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ /* */ /* _nx_ip_packet_receive Dispatch received IP packets */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_udp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) { diff --git a/common/src/nx_udp_receive_cleanup.c b/common/src/nx_udp_receive_cleanup.c index 77cab922..16537dcf 100644 --- a/common/src/nx_udp_receive_cleanup.c +++ b/common/src/nx_udp_receive_cleanup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* _tx_thread_timeout Thread timeout processing */ /* _tx_thread_terminate Thread terminate processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_udp_receive_cleanup(TX_THREAD *thread_ptr NX_CLEANUP_PARAMETER) { diff --git a/common/src/nx_udp_socket_bind.c b/common/src/nx_udp_socket_bind.c index 164649ad..bdfa8b33 100644 --- a/common/src/nx_udp_socket_bind.c +++ b/common/src/nx_udp_socket_bind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,12 +65,6 @@ /* */ /* _nx_udp_socket_bind */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ static UINT _nx_udp_socket_driver_bind(NX_UDP_SOCKET *socket_ptr, UINT port, ULONG wait_option) { @@ -173,20 +167,6 @@ NX_IP *ip_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* corrected the random value, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_bind(NX_UDP_SOCKET *socket_ptr, UINT port, ULONG wait_option) { diff --git a/common/src/nx_udp_socket_bytes_available.c b/common/src/nx_udp_socket_bytes_available.c index 8e921afb..49d3cd56 100644 --- a/common/src/nx_udp_socket_bytes_available.c +++ b/common/src/nx_udp_socket_bytes_available.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_bytes_available(NX_UDP_SOCKET *socket_ptr, ULONG *bytes_available) { diff --git a/common/src/nx_udp_socket_checksum_disable.c b/common/src/nx_udp_socket_checksum_disable.c index 36cbc817..74edc318 100644 --- a/common/src/nx_udp_socket_checksum_disable.c +++ b/common/src/nx_udp_socket_checksum_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_checksum_disable(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nx_udp_socket_checksum_enable.c b/common/src/nx_udp_socket_checksum_enable.c index cdfb6867..32ccf045 100644 --- a/common/src/nx_udp_socket_checksum_enable.c +++ b/common/src/nx_udp_socket_checksum_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_checksum_enable(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nx_udp_socket_create.c b/common/src/nx_udp_socket_create.c index 6d9f5e55..b867e1a6 100644 --- a/common/src/nx_udp_socket_create.c +++ b/common/src/nx_udp_socket_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,17 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_create(NX_IP *ip_ptr, NX_UDP_SOCKET *socket_ptr, CHAR *name, ULONG type_of_service, ULONG fragment, UINT time_to_live, ULONG queue_maximum) diff --git a/common/src/nx_udp_socket_delete.c b/common/src/nx_udp_socket_delete.c index 2404eee4..9fe83abe 100644 --- a/common/src/nx_udp_socket_delete.c +++ b/common/src/nx_udp_socket_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_delete(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nx_udp_socket_driver_packet_receive.c b/common/src/nx_udp_socket_driver_packet_receive.c index d659d2e2..a5386baa 100644 --- a/common/src/nx_udp_socket_driver_packet_receive.c +++ b/common/src/nx_udp_socket_driver_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,12 +74,6 @@ /* */ /* Driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ VOID _nx_udp_socket_driver_packet_receive(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, NXD_ADDRESS *local_ip, NXD_ADDRESS *remote_ip, UINT remote_port) diff --git a/common/src/nx_udp_socket_info_get.c b/common/src/nx_udp_socket_info_get.c index b5b2aa56..50a1e8b4 100644 --- a/common/src/nx_udp_socket_info_get.c +++ b/common/src/nx_udp_socket_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_info_get(NX_UDP_SOCKET *socket_ptr, ULONG *udp_packets_sent, ULONG *udp_bytes_sent, ULONG *udp_packets_received, ULONG *udp_bytes_received, ULONG *udp_packets_queued, diff --git a/common/src/nx_udp_socket_port_get.c b/common/src/nx_udp_socket_port_get.c index e09c7071..00b91f4a 100644 --- a/common/src/nx_udp_socket_port_get.c +++ b/common/src/nx_udp_socket_port_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_port_get(NX_UDP_SOCKET *socket_ptr, UINT *port_ptr) { diff --git a/common/src/nx_udp_socket_receive.c b/common/src/nx_udp_socket_receive.c index a4cf8164..7283eaac 100644 --- a/common/src/nx_udp_socket_receive.c +++ b/common/src/nx_udp_socket_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_receive(NX_UDP_SOCKET *socket_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { diff --git a/common/src/nx_udp_socket_receive_notify.c b/common/src/nx_udp_socket_receive_notify.c index 81c161d2..8ccf7b52 100644 --- a/common/src/nx_udp_socket_receive_notify.c +++ b/common/src/nx_udp_socket_receive_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_receive_notify(NX_UDP_SOCKET *socket_ptr, VOID (*udp_receive_notify)(NX_UDP_SOCKET *socket_ptr)) diff --git a/common/src/nx_udp_socket_send.c b/common/src/nx_udp_socket_send.c index dacc9e52..0d96f35f 100644 --- a/common/src/nx_udp_socket_send.c +++ b/common/src/nx_udp_socket_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, ULONG ip_address, UINT port) diff --git a/common/src/nx_udp_socket_source_send.c b/common/src/nx_udp_socket_source_send.c index 269c41e0..e0c09cfa 100644 --- a/common/src/nx_udp_socket_source_send.c +++ b/common/src/nx_udp_socket_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_source_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, ULONG ip_address, UINT port, UINT address_index) diff --git a/common/src/nx_udp_socket_unbind.c b/common/src/nx_udp_socket_unbind.c index dc23f25f..2b5799c3 100644 --- a/common/src/nx_udp_socket_unbind.c +++ b/common/src/nx_udp_socket_unbind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,12 +62,6 @@ /* */ /* _nx_udp_socket_bind */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ static UINT _nx_udp_socket_driver_unbind(NX_UDP_SOCKET *socket_ptr) { @@ -153,17 +147,6 @@ NX_IP *ip_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_unbind(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nx_udp_socket_vlan_priority_set.c b/common/src/nx_udp_socket_vlan_priority_set.c index 472f7542..3f7e8891 100644 --- a/common/src/nx_udp_socket_vlan_priority_set.c +++ b/common/src/nx_udp_socket_vlan_priority_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,12 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_udp_socket_vlan_priority_set(NX_UDP_SOCKET *socket_ptr, UINT vlan_priority) { diff --git a/common/src/nx_udp_source_extract.c b/common/src/nx_udp_source_extract.c index 93ab95ab..043a498c 100644 --- a/common/src/nx_udp_source_extract.c +++ b/common/src/nx_udp_source_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_udp_source_extract(NX_PACKET *packet_ptr, ULONG *ip_address, UINT *port) { diff --git a/common/src/nx_utility.c b/common/src/nx_utility.c index 3ba31e5b..cb1002d3 100644 --- a/common/src/nx_utility.c +++ b/common/src/nx_utility.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ static CHAR _nx_utility_base64_array[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_utility_string_length_check(CHAR *input_string, UINT *string_length, UINT max_string_length) { @@ -98,7 +90,7 @@ UINT i; } /* Return the string length if string_length is not NULL. - String_length being NULL indicates the caller needs to check for string + String_length being NULL indicates the caller needs to check for string length within the max_string_length. */ if (string_length) { @@ -141,12 +133,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_utility_string_to_uint(CHAR *input_string, UINT string_length, UINT *number) { @@ -236,15 +222,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* checked invalid input value,*/ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_utility_uint_to_string(UINT number, UINT base, CHAR *string_buffer, UINT string_buffer_size) { @@ -348,15 +325,6 @@ UINT size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-02-2021 Yuxin Zhou Initial Version 6.1.6 */ -/* 10-31-2022 Yuxin Zhou Modified comment(s), */ -/* improved the internal logic,*/ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_utility_base64_encode(UCHAR *name, UINT name_size, UCHAR *base64name, UINT base64name_size, UINT *bytes_copied) { @@ -516,19 +484,6 @@ UINT input_name_size = name_size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-02-2021 Yuxin Zhou Initial Version 6.1.6 */ -/* 10-15-2021 Yuxin Zhou Modified comment(s), */ -/* removed useless condition, */ -/* resulting in version 6.1.9 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), */ -/* fixed the issue of reading */ -/* overflow, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_utility_base64_decode(UCHAR *base64name, UINT base64name_size, UCHAR *name, UINT name_size, UINT *bytes_copied) { diff --git a/common/src/nxd_icmp_enable.c b/common/src/nxd_icmp_enable.c index 376cfdba..e60ef75d 100644 --- a/common/src/nxd_icmp_enable.c +++ b/common/src/nxd_icmp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_icmp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxd_icmp_ping.c b/common/src/nxd_icmp_ping.c index 24f3c397..d82750a0 100644 --- a/common/src/nxd_icmp_ping.c +++ b/common/src/nxd_icmp_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_icmp_ping(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, CHAR *data_ptr, ULONG data_size, NX_PACKET **response_ptr, ULONG wait_option) diff --git a/common/src/nxd_icmp_source_ping.c b/common/src/nxd_icmp_source_ping.c index 6ad44010..7259c31b 100644 --- a/common/src/nxd_icmp_source_ping.c +++ b/common/src/nxd_icmp_source_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_icmp_source_ping(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, UINT address_index, CHAR *data_ptr, ULONG data_size, diff --git a/common/src/nxd_icmpv6_ra_flag_callback_set.c b/common/src/nxd_icmpv6_ra_flag_callback_set.c index 0bf600fe..2b720fa6 100644 --- a/common/src/nxd_icmpv6_ra_flag_callback_set.c +++ b/common/src/nxd_icmpv6_ra_flag_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_icmpv6_ra_flag_callback_set(NX_IP *ip_ptr, VOID (*icmpv6_ra_flag_callback)(NX_IP *ip_ptr, UINT ra_flag)) { diff --git a/common/src/nxd_ip_raw_packet_send.c b/common/src/nxd_ip_raw_packet_send.c index 00a5c814..9ef63cc1 100644 --- a/common/src/nxd_ip_raw_packet_send.c +++ b/common/src/nxd_ip_raw_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ip_raw_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, NXD_ADDRESS *destination_ip, ULONG protocol, UINT ttl, ULONG tos) diff --git a/common/src/nxd_ip_raw_packet_source_send.c b/common/src/nxd_ip_raw_packet_source_send.c index a278c795..113df36c 100644 --- a/common/src/nxd_ip_raw_packet_source_send.c +++ b/common/src/nxd_ip_raw_packet_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ip_raw_packet_source_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, diff --git a/common/src/nxd_ipv6_address_change_notify.c b/common/src/nxd_ipv6_address_change_notify.c index 9be79163..5f9eb9e9 100644 --- a/common/src/nxd_ipv6_address_change_notify.c +++ b/common/src/nxd_ipv6_address_change_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_address_change_notify(NX_IP *ip_ptr, VOID (*ip_address_change_notify)(NX_IP *ip_ptr, UINT status, UINT interface_index, UINT address_index, ULONG *ip_address)) { diff --git a/common/src/nxd_ipv6_address_delete.c b/common/src/nxd_ipv6_address_delete.c index 1c3cbe1e..16c17b46 100644 --- a/common/src/nxd_ipv6_address_delete.c +++ b/common/src/nxd_ipv6_address_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_address_delete(NX_IP *ip_ptr, UINT address_index) { diff --git a/common/src/nxd_ipv6_address_get.c b/common/src/nxd_ipv6_address_get.c index d2b1e195..d35c19c1 100644 --- a/common/src/nxd_ipv6_address_get.c +++ b/common/src/nxd_ipv6_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ /* NOTE */ /* Application needs to fill in the ip_address.nxd_ip_version field. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_address_get(NX_IP *ip_ptr, UINT address_index, NXD_ADDRESS *ip_address, ULONG *prefix_length, UINT *interface_index) diff --git a/common/src/nxd_ipv6_address_set.c b/common/src/nxd_ipv6_address_set.c index d0adfd33..087ca9fe 100644 --- a/common/src/nxd_ipv6_address_set.c +++ b/common/src/nxd_ipv6_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,18 +76,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* added internal ip address */ -/* change notification, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_address_set(NX_IP *ip_ptr, UINT interface_index, NXD_ADDRESS *ip_address, ULONG prefix_length, UINT *address_index) { diff --git a/common/src/nxd_ipv6_default_router_add.c b/common/src/nxd_ipv6_default_router_add.c index a1f28f94..d35e2585 100644 --- a/common/src/nxd_ipv6_default_router_add.c +++ b/common/src/nxd_ipv6_default_router_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -67,14 +67,6 @@ /* Application code */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_default_router_add(NX_IP *ip_ptr, NXD_ADDRESS *router_addr, diff --git a/common/src/nxd_ipv6_default_router_add_internal.c b/common/src/nxd_ipv6_default_router_add_internal.c index 92b217d1..d1a8cc3f 100644 --- a/common/src/nxd_ipv6_default_router_add_internal.c +++ b/common/src/nxd_ipv6_default_router_add_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -76,14 +76,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_default_router_add_internal(NX_IP *ip_ptr, ULONG *router_addr, diff --git a/common/src/nxd_ipv6_default_router_delete.c b/common/src/nxd_ipv6_default_router_delete.c index a3ce36be..3c127e1f 100644 --- a/common/src/nxd_ipv6_default_router_delete.c +++ b/common/src/nxd_ipv6_default_router_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_default_router_delete(NX_IP *ip_ptr, NXD_ADDRESS *router_address) { diff --git a/common/src/nxd_ipv6_default_router_entry_get.c b/common/src/nxd_ipv6_default_router_entry_get.c index bcd02e6f..ee5f7f43 100644 --- a/common/src/nxd_ipv6_default_router_entry_get.c +++ b/common/src/nxd_ipv6_default_router_entry_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -75,14 +75,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_default_router_entry_get(NX_IP *ip_ptr, UINT interface_index, UINT entry_index, NXD_ADDRESS *router_addr, ULONG *router_lifetime, diff --git a/common/src/nxd_ipv6_default_router_get.c b/common/src/nxd_ipv6_default_router_get.c index 13edc3a0..b0360415 100644 --- a/common/src/nxd_ipv6_default_router_get.c +++ b/common/src/nxd_ipv6_default_router_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_default_router_get(NX_IP *ip_ptr, UINT interface_index, NXD_ADDRESS *router_addr, ULONG *router_lifetime, ULONG *prefix_length) diff --git a/common/src/nxd_ipv6_default_router_number_of_entries_get.c b/common/src/nxd_ipv6_default_router_number_of_entries_get.c index d8dcfcac..dddb277e 100644 --- a/common/src/nxd_ipv6_default_router_number_of_entries_get.c +++ b/common/src/nxd_ipv6_default_router_number_of_entries_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_default_router_number_of_entries_get(NX_IP *ip_ptr, UINT if_index, UINT *num_entries) { diff --git a/common/src/nxd_ipv6_default_router_table_init.c b/common/src/nxd_ipv6_default_router_table_init.c index 4dad86ea..9ad0afef 100644 --- a/common/src/nxd_ipv6_default_router_table_init.c +++ b/common/src/nxd_ipv6_default_router_table_init.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nxd_ipv6_default_router_table_init(NX_IP *ip_ptr) { diff --git a/common/src/nxd_ipv6_destination_table_find_next_hop.c b/common/src/nxd_ipv6_destination_table_find_next_hop.c index 2219c170..0b61cde3 100644 --- a/common/src/nxd_ipv6_destination_table_find_next_hop.c +++ b/common/src/nxd_ipv6_destination_table_find_next_hop.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _nx_icmpv6_process_redirect Process incoming redirect */ /* message. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_destination_table_find_next_hop(NX_IP *ip_ptr, ULONG *destination_ip, ULONG *next_hop) { diff --git a/common/src/nxd_ipv6_disable.c b/common/src/nxd_ipv6_disable.c index 29fd9fd7..71da92fb 100644 --- a/common/src/nxd_ipv6_disable.c +++ b/common/src/nxd_ipv6_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxd_ipv6_enable.c b/common/src/nxd_ipv6_enable.c index 82abd16d..02c46bf9 100644 --- a/common/src/nxd_ipv6_enable.c +++ b/common/src/nxd_ipv6_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxd_ipv6_find_default_router_from_address.c b/common/src/nxd_ipv6_find_default_router_from_address.c index 6d5561af..8f85a531 100644 --- a/common/src/nxd_ipv6_find_default_router_from_address.c +++ b/common/src/nxd_ipv6_find_default_router_from_address.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -68,14 +68,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_IPV6_DEFAULT_ROUTER_ENTRY *_nxd_ipv6_find_default_router_from_address(NX_IP *ip_ptr, ULONG *router_address) { diff --git a/common/src/nxd_ipv6_find_max_prefix_length.c b/common/src/nxd_ipv6_find_max_prefix_length.c index 625d85a7..4d988fe1 100644 --- a/common/src/nxd_ipv6_find_max_prefix_length.c +++ b/common/src/nxd_ipv6_find_max_prefix_length.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -61,14 +61,6 @@ /* NOTE */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_find_max_prefix_length(ULONG *addr1, ULONG *addr2, UINT max_length) { diff --git a/common/src/nxd_ipv6_interface_find.c b/common/src/nxd_ipv6_interface_find.c index 2f529664..99695ca1 100644 --- a/common/src/nxd_ipv6_interface_find.c +++ b/common/src/nxd_ipv6_interface_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Internal function. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_interface_find(NX_IP *ip_ptr, ULONG *dest_address, NXD_IPV6_ADDRESS **ipv6_addr, NX_INTERFACE *if_ptr) diff --git a/common/src/nxd_ipv6_multicast_interface_join.c b/common/src/nxd_ipv6_multicast_interface_join.c index 040ffee0..60f6d695 100644 --- a/common/src/nxd_ipv6_multicast_interface_join.c +++ b/common/src/nxd_ipv6_multicast_interface_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_multicast_interface_join(NX_IP *ip_ptr, NXD_ADDRESS *group_address, UINT interface_index) { diff --git a/common/src/nxd_ipv6_multicast_interface_leave.c b/common/src/nxd_ipv6_multicast_interface_leave.c index 9aa2162f..aa9bcef6 100644 --- a/common/src/nxd_ipv6_multicast_interface_leave.c +++ b/common/src/nxd_ipv6_multicast_interface_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_multicast_interface_leave(NX_IP *ip_ptr, NXD_ADDRESS *group_address, UINT interface_index) { diff --git a/common/src/nxd_ipv6_prefix_router_timer_tick.c b/common/src/nxd_ipv6_prefix_router_timer_tick.c index c8b59084..ef09a9d3 100644 --- a/common/src/nxd_ipv6_prefix_router_timer_tick.c +++ b/common/src/nxd_ipv6_prefix_router_timer_tick.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nxd_ipv6_prefix_router_timer_tick(NX_IP *ip_ptr) { diff --git a/common/src/nxd_ipv6_raw_packet_send_internal.c b/common/src/nxd_ipv6_raw_packet_send_internal.c index 910b97cc..f9282e06 100644 --- a/common/src/nxd_ipv6_raw_packet_send_internal.c +++ b/common/src/nxd_ipv6_raw_packet_send_internal.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_raw_packet_send_internal(NX_IP *ip_ptr, NX_PACKET *packet_ptr, NXD_ADDRESS *destination_ip, diff --git a/common/src/nxd_ipv6_router_lookup.c b/common/src/nxd_ipv6_router_lookup.c index 0def1163..d5188201 100644 --- a/common/src/nxd_ipv6_router_lookup.c +++ b/common/src/nxd_ipv6_router_lookup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -73,14 +73,6 @@ /* This function should not be called from ISR. Although it has no */ /* blocking calls it will slow down response time. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_router_lookup(NX_IP *ip_ptr, NX_INTERFACE *if_ptr, ULONG *router_address, void **nd_cache_entry) { diff --git a/common/src/nxd_ipv6_router_solicitation_check.c b/common/src/nxd_ipv6_router_solicitation_check.c index 5ab41446..0eaa3e29 100644 --- a/common/src/nxd_ipv6_router_solicitation_check.c +++ b/common/src/nxd_ipv6_router_solicitation_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -72,14 +72,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ void _nxd_ipv6_router_solicitation_check(NX_IP *ip_ptr) { diff --git a/common/src/nxd_ipv6_search_onlink.c b/common/src/nxd_ipv6_search_onlink.c index fd72fe8e..3ba2529e 100644 --- a/common/src/nxd_ipv6_search_onlink.c +++ b/common/src/nxd_ipv6_search_onlink.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -62,14 +62,6 @@ /* nx_ipv6_packet_send Sends IPv6 packets from upper */ /* layer to remote host */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ INT _nxd_ipv6_search_onlink(NX_IP *ip_ptr, ULONG *dest_addr) { diff --git a/common/src/nxd_ipv6_stateless_address_autoconfig_disable.c b/common/src/nxd_ipv6_stateless_address_autoconfig_disable.c index 7c222fd3..53f0d20c 100644 --- a/common/src/nxd_ipv6_stateless_address_autoconfig_disable.c +++ b/common/src/nxd_ipv6_stateless_address_autoconfig_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_stateless_address_autoconfig_disable(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nxd_ipv6_stateless_address_autoconfig_enable.c b/common/src/nxd_ipv6_stateless_address_autoconfig_enable.c index d4a657bf..7bd8d8f2 100644 --- a/common/src/nxd_ipv6_stateless_address_autoconfig_enable.c +++ b/common/src/nxd_ipv6_stateless_address_autoconfig_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nxd_ipv6_stateless_address_autoconfig_enable(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nxd_nd_cache_entry_delete.c b/common/src/nxd_nd_cache_entry_delete.c index f7a0073c..366d8ede 100644 --- a/common/src/nxd_nd_cache_entry_delete.c +++ b/common/src/nxd_nd_cache_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_nd_cache_entry_delete(NX_IP *ip_ptr, ULONG *dest_ip) { diff --git a/common/src/nxd_nd_cache_entry_set.c b/common/src/nxd_nd_cache_entry_set.c index 952d862e..031832af 100644 --- a/common/src/nxd_nd_cache_entry_set.c +++ b/common/src/nxd_nd_cache_entry_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_nd_cache_entry_set(NX_IP *ip_ptr, ULONG *dest_ip, UINT interface_index, CHAR *mac) { diff --git a/common/src/nxd_nd_cache_hardware_address_find.c b/common/src/nxd_nd_cache_hardware_address_find.c index 42070ae5..b85e1ab8 100644 --- a/common/src/nxd_nd_cache_hardware_address_find.c +++ b/common/src/nxd_nd_cache_hardware_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_nd_cache_hardware_address_find(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, diff --git a/common/src/nxd_nd_cache_invalidate.c b/common/src/nxd_nd_cache_invalidate.c index cde48d12..268223e4 100644 --- a/common/src/nxd_nd_cache_invalidate.c +++ b/common/src/nxd_nd_cache_invalidate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_nd_cache_invalidate(NX_IP *ip_ptr) { diff --git a/common/src/nxd_nd_cache_ip_address_find.c b/common/src/nxd_nd_cache_ip_address_find.c index af7a3f54..0b7e9593 100644 --- a/common/src/nxd_nd_cache_ip_address_find.c +++ b/common/src/nxd_nd_cache_ip_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_nd_cache_ip_address_find(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, diff --git a/common/src/nxd_tcp_client_socket_connect.c b/common/src/nxd_tcp_client_socket_connect.c index b0cedcdb..56b68f88 100644 --- a/common/src/nxd_tcp_client_socket_connect.c +++ b/common/src/nxd_tcp_client_socket_connect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,12 +72,6 @@ /* */ /* _nxd_tcp_client_socket_connect */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* */ /**************************************************************************/ static UINT _nxd_tcp_client_socket_driver_connect(NX_TCP_SOCKET *socket_ptr, NXD_ADDRESS *server_ip, @@ -227,20 +221,6 @@ NX_IP *ip_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* 10-31-2022 Wenhui Xie Modified comment(s), and */ -/* supported HTTP Proxy, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxd_tcp_client_socket_connect(NX_TCP_SOCKET *socket_ptr, NXD_ADDRESS *server_ip, diff --git a/common/src/nxd_tcp_socket_peer_info_get.c b/common/src/nxd_tcp_socket_peer_info_get.c index 5538c5f3..8e39c721 100644 --- a/common/src/nxd_tcp_socket_peer_info_get.c +++ b/common/src/nxd_tcp_socket_peer_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_tcp_socket_peer_info_get(NX_TCP_SOCKET *socket_ptr, NXD_ADDRESS *peer_ip_address, diff --git a/common/src/nxd_udp_packet_info_extract.c b/common/src/nxd_udp_packet_info_extract.c index 4f9f3389..ccd24d80 100644 --- a/common/src/nxd_udp_packet_info_extract.c +++ b/common/src/nxd_udp_packet_info_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_udp_packet_info_extract(NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT *protocol, UINT *port, UINT *interface_index) diff --git a/common/src/nxd_udp_socket_send.c b/common/src/nxd_udp_socket_send.c index 4af17d31..afb12691 100644 --- a/common/src/nxd_udp_socket_send.c +++ b/common/src/nxd_udp_socket_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,18 +74,6 @@ /* */ /* _nxd_udp_socket_send */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), corrected*/ -/* the logic for queued packet,*/ -/* resulting in version 6.1.10 */ -/* 12-31-2023 Yajun Xia Modified comment(s), */ -/* supported VLAN, */ -/* resulting in version 6.4.0 */ -/* */ /**************************************************************************/ static UINT _nx_udp_socket_driver_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, @@ -271,17 +259,6 @@ UINT packet_reset = NX_FALSE; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Yuxin Zhou Modified comment(s), and */ -/* supported TCP/IP offload, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nxd_udp_socket_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, diff --git a/common/src/nxd_udp_socket_source_send.c b/common/src/nxd_udp_socket_source_send.c index f2d44f7a..f5a26307 100644 --- a/common/src/nxd_udp_socket_source_send.c +++ b/common/src/nxd_udp_socket_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_udp_socket_source_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT port, UINT address_index) diff --git a/common/src/nxd_udp_source_extract.c b/common/src/nxd_udp_source_extract.c index e2a37eff..f86cb551 100644 --- a/common/src/nxd_udp_source_extract.c +++ b/common/src/nxd_udp_source_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxd_udp_source_extract(NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT *port) { diff --git a/common/src/nxde_icmp_enable.c b/common/src/nxde_icmp_enable.c index 6c16fbdd..ed8ccc45 100644 --- a/common/src/nxde_icmp_enable.c +++ b/common/src/nxde_icmp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_icmp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxde_icmp_ping.c b/common/src/nxde_icmp_ping.c index 1237ede0..facb2454 100644 --- a/common/src/nxde_icmp_ping.c +++ b/common/src/nxde_icmp_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_icmp_ping(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, CHAR *data_ptr, ULONG data_size, diff --git a/common/src/nxde_icmp_source_ping.c b/common/src/nxde_icmp_source_ping.c index b74db687..f52e454f 100644 --- a/common/src/nxde_icmp_source_ping.c +++ b/common/src/nxde_icmp_source_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_icmp_source_ping(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, UINT address_index, CHAR *data_ptr, ULONG data_size, diff --git a/common/src/nxde_icmpv6_ra_flag_callback_set.c b/common/src/nxde_icmpv6_ra_flag_callback_set.c index 9df414f8..102d8bd0 100644 --- a/common/src/nxde_icmpv6_ra_flag_callback_set.c +++ b/common/src/nxde_icmpv6_ra_flag_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_icmpv6_ra_flag_callback_set(NX_IP *ip_ptr, VOID (*icmpv6_ra_flag_callback)(NX_IP *ip_ptr, UINT ra_flag)) { diff --git a/common/src/nxde_ip_raw_packet_send.c b/common/src/nxde_ip_raw_packet_send.c index d0773c7f..00a0ea13 100644 --- a/common/src/nxde_ip_raw_packet_send.c +++ b/common/src/nxde_ip_raw_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -79,14 +79,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ip_raw_packet_send(NX_IP *ip_ptr, NX_PACKET **packet_ptr_ptr, NXD_ADDRESS *destination_ip, ULONG protocol, UINT ttl, ULONG tos) diff --git a/common/src/nxde_ip_raw_packet_source_send.c b/common/src/nxde_ip_raw_packet_source_send.c index 94169299..803f9b63 100644 --- a/common/src/nxde_ip_raw_packet_source_send.c +++ b/common/src/nxde_ip_raw_packet_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ip_raw_packet_source_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, NXD_ADDRESS *destination_ip, UINT address_index, ULONG protocol, UINT ttl, ULONG tos) diff --git a/common/src/nxde_ipv6_address_change_notify.c b/common/src/nxde_ipv6_address_change_notify.c index 87b32902..b36f5c87 100644 --- a/common/src/nxde_ipv6_address_change_notify.c +++ b/common/src/nxde_ipv6_address_change_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_address_change_notify(NX_IP *ip_ptr, VOID (*ip_address_change_notify)(NX_IP *ip_ptr, UINT status, UINT interface_index, UINT address_index, ULONG *ip_address)) { diff --git a/common/src/nxde_ipv6_address_delete.c b/common/src/nxde_ipv6_address_delete.c index d411ba75..b0398f09 100644 --- a/common/src/nxde_ipv6_address_delete.c +++ b/common/src/nxde_ipv6_address_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ NX_CALLER_CHECKING_EXTERNS /* NOTE */ /* Application needs to fill in the ip_address.nxd_ip_version field. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_address_delete(NX_IP *ip_ptr, UINT address_index) diff --git a/common/src/nxde_ipv6_address_get.c b/common/src/nxde_ipv6_address_get.c index 44be8a06..c198b598 100644 --- a/common/src/nxde_ipv6_address_get.c +++ b/common/src/nxde_ipv6_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,14 +78,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_address_get(NX_IP *ip_ptr, UINT address_index, NXD_ADDRESS *ip_address, ULONG *prefix_length, UINT *interface_index) { diff --git a/common/src/nxde_ipv6_address_set.c b/common/src/nxde_ipv6_address_set.c index 5911040d..250717be 100644 --- a/common/src/nxde_ipv6_address_set.c +++ b/common/src/nxde_ipv6_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_address_set(NX_IP *ip_ptr, UINT if_index, NXD_ADDRESS *ip_address, ULONG prefix_length, UINT *address_index) { diff --git a/common/src/nxde_ipv6_default_router_add.c b/common/src/nxde_ipv6_default_router_add.c index 196f755d..a9589253 100644 --- a/common/src/nxde_ipv6_default_router_add.c +++ b/common/src/nxde_ipv6_default_router_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -75,14 +75,6 @@ NX_CALLER_CHECKING_EXTERNS /* Application code */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_default_router_add(NX_IP *ip_ptr, NXD_ADDRESS *router_addr, ULONG router_lifetime, UINT interface_index) diff --git a/common/src/nxde_ipv6_default_router_delete.c b/common/src/nxde_ipv6_default_router_delete.c index 49390d6a..2bcf6e9b 100644 --- a/common/src/nxde_ipv6_default_router_delete.c +++ b/common/src/nxde_ipv6_default_router_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -71,14 +71,6 @@ NX_CALLER_CHECKING_EXTERNS /* Application Code */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_default_router_delete(NX_IP *ip_ptr, NXD_ADDRESS *router_address) { diff --git a/common/src/nxde_ipv6_default_router_entry_get.c b/common/src/nxde_ipv6_default_router_entry_get.c index 6160fef5..1fb3fda6 100644 --- a/common/src/nxde_ipv6_default_router_entry_get.c +++ b/common/src/nxde_ipv6_default_router_entry_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -76,14 +76,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_default_router_entry_get(NX_IP *ip_ptr, UINT interface_index, UINT entry_index, NXD_ADDRESS *router_addr, ULONG *router_lifetime, diff --git a/common/src/nxde_ipv6_default_router_get.c b/common/src/nxde_ipv6_default_router_get.c index 07e92ded..ea91350b 100644 --- a/common/src/nxde_ipv6_default_router_get.c +++ b/common/src/nxde_ipv6_default_router_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -70,14 +70,6 @@ /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_default_router_get(NX_IP *ip_ptr, UINT interface_index, NXD_ADDRESS *router_addr, ULONG *router_lifetime, ULONG *prefix_length) { diff --git a/common/src/nxde_ipv6_default_router_number_of_entries_get.c b/common/src/nxde_ipv6_default_router_number_of_entries_get.c index 890c99e2..53a04472 100644 --- a/common/src/nxde_ipv6_default_router_number_of_entries_get.c +++ b/common/src/nxde_ipv6_default_router_number_of_entries_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* This function cannot be called from ISR. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_default_router_number_of_entries_get(NX_IP *ip_ptr, UINT if_index, UINT *num_entries) { diff --git a/common/src/nxde_ipv6_disable.c b/common/src/nxde_ipv6_disable.c index 5c0d9a3b..fdcdc462 100644 --- a/common/src/nxde_ipv6_disable.c +++ b/common/src/nxde_ipv6_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxde_ipv6_enable.c b/common/src/nxde_ipv6_enable.c index 91893f4c..8fb1b3bf 100644 --- a/common/src/nxde_ipv6_enable.c +++ b/common/src/nxde_ipv6_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxde_ipv6_multicast_interface_join.c b/common/src/nxde_ipv6_multicast_interface_join.c index 85c60b17..42325181 100644 --- a/common/src/nxde_ipv6_multicast_interface_join.c +++ b/common/src/nxde_ipv6_multicast_interface_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_multicast_interface_join(NX_IP *ip_ptr, NXD_ADDRESS *group_address, UINT interface_index) { diff --git a/common/src/nxde_ipv6_multicast_interface_leave.c b/common/src/nxde_ipv6_multicast_interface_leave.c index e1ac4e94..8da5c164 100644 --- a/common/src/nxde_ipv6_multicast_interface_leave.c +++ b/common/src/nxde_ipv6_multicast_interface_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_multicast_interface_leave(NX_IP *ip_ptr, NXD_ADDRESS *group_address, UINT interface_index) { diff --git a/common/src/nxde_ipv6_stateless_address_autoconfig_disable.c b/common/src/nxde_ipv6_stateless_address_autoconfig_disable.c index 687d8b8d..922e1c49 100644 --- a/common/src/nxde_ipv6_stateless_address_autoconfig_disable.c +++ b/common/src/nxde_ipv6_stateless_address_autoconfig_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_stateless_address_autoconfig_disable(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nxde_ipv6_stateless_address_autoconfig_enable.c b/common/src/nxde_ipv6_stateless_address_autoconfig_enable.c index c5097058..70b0336a 100644 --- a/common/src/nxde_ipv6_stateless_address_autoconfig_enable.c +++ b/common/src/nxde_ipv6_stateless_address_autoconfig_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_ipv6_stateless_address_autoconfig_enable(NX_IP *ip_ptr, UINT interface_index) { diff --git a/common/src/nxde_nd_cache_entry_delete.c b/common/src/nxde_nd_cache_entry_delete.c index c48aec23..e24a2508 100644 --- a/common/src/nxde_nd_cache_entry_delete.c +++ b/common/src/nxde_nd_cache_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_nd_cache_entry_delete(NX_IP *ip_ptr, ULONG *dest_ip) { diff --git a/common/src/nxde_nd_cache_entry_set.c b/common/src/nxde_nd_cache_entry_set.c index c0368a20..8f269842 100644 --- a/common/src/nxde_nd_cache_entry_set.c +++ b/common/src/nxde_nd_cache_entry_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_nd_cache_entry_set(NX_IP *ip_ptr, ULONG *dest_ip, UINT interface_index, CHAR *mac) { diff --git a/common/src/nxde_nd_cache_hardware_address_find.c b/common/src/nxde_nd_cache_hardware_address_find.c index ff7569c0..82e67bb4 100644 --- a/common/src/nxde_nd_cache_hardware_address_find.c +++ b/common/src/nxde_nd_cache_hardware_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,14 +78,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_nd_cache_hardware_address_find(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, diff --git a/common/src/nxde_nd_cache_invalidate.c b/common/src/nxde_nd_cache_invalidate.c index 696d3306..7a8adabc 100644 --- a/common/src/nxde_nd_cache_invalidate.c +++ b/common/src/nxde_nd_cache_invalidate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_nd_cache_invalidate(NX_IP *ip_ptr) { diff --git a/common/src/nxde_nd_cache_ip_address_find.c b/common/src/nxde_nd_cache_ip_address_find.c index 6595b76a..fdf3c804 100644 --- a/common/src/nxde_nd_cache_ip_address_find.c +++ b/common/src/nxde_nd_cache_ip_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_nd_cache_ip_address_find(NX_IP *ip_ptr, NXD_ADDRESS *ip_address, diff --git a/common/src/nxde_tcp_client_socket_connect.c b/common/src/nxde_tcp_client_socket_connect.c index 0a3e0c92..c53e51e4 100644 --- a/common/src/nxde_tcp_client_socket_connect.c +++ b/common/src/nxde_tcp_client_socket_connect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tcp_client_socket_connect(NX_TCP_SOCKET *socket_ptr, NXD_ADDRESS *server_ip, diff --git a/common/src/nxde_tcp_socket_peer_info_get.c b/common/src/nxde_tcp_socket_peer_info_get.c index 62e9d34e..a752881d 100644 --- a/common/src/nxde_tcp_socket_peer_info_get.c +++ b/common/src/nxde_tcp_socket_peer_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_tcp_socket_peer_info_get(NX_TCP_SOCKET *socket_ptr, NXD_ADDRESS *peer_ip_address, diff --git a/common/src/nxde_udp_packet_info_extract.c b/common/src/nxde_udp_packet_info_extract.c index af4053d1..52acbbf1 100644 --- a/common/src/nxde_udp_packet_info_extract.c +++ b/common/src/nxde_udp_packet_info_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_udp_packet_info_extract(NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT *protocol, UINT *port, UINT *interface_index) diff --git a/common/src/nxde_udp_socket_send.c b/common/src/nxde_udp_socket_send.c index 39b8026a..36dde309 100644 --- a/common/src/nxde_udp_socket_send.c +++ b/common/src/nxde_udp_socket_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -81,14 +81,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_udp_socket_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET **packet_ptr_ptr, NXD_ADDRESS *ip_address, UINT port) { diff --git a/common/src/nxde_udp_socket_source_send.c b/common/src/nxde_udp_socket_source_send.c index 87398aec..9c14265d 100644 --- a/common/src/nxde_udp_socket_source_send.c +++ b/common/src/nxde_udp_socket_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_udp_socket_source_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET *packet_ptr, diff --git a/common/src/nxde_udp_source_extract.c b/common/src/nxde_udp_source_extract.c index 4470fc61..ceb8c597 100644 --- a/common/src/nxde_udp_source_extract.c +++ b/common/src/nxde_udp_source_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxde_udp_source_extract(NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT *port) { diff --git a/common/src/nxe_arp_dynamic_entries_invalidate.c b/common/src/nxe_arp_dynamic_entries_invalidate.c index 86a0ee3a..e6e0e164 100644 --- a/common/src/nxe_arp_dynamic_entries_invalidate.c +++ b/common/src/nxe_arp_dynamic_entries_invalidate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_dynamic_entries_invalidate(NX_IP *ip_ptr) { diff --git a/common/src/nxe_arp_dynamic_entry_set.c b/common/src/nxe_arp_dynamic_entry_set.c index 20fad28f..534b24d7 100644 --- a/common/src/nxe_arp_dynamic_entry_set.c +++ b/common/src/nxe_arp_dynamic_entry_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_dynamic_entry_set(NX_IP *ip_ptr, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nxe_arp_enable.c b/common/src/nxe_arp_enable.c index 811b1b7a..285515bc 100644 --- a/common/src/nxe_arp_enable.c +++ b/common/src/nxe_arp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_enable(NX_IP *ip_ptr, VOID *arp_cache_memory, ULONG arp_cache_size) { diff --git a/common/src/nxe_arp_entry_delete.c b/common/src/nxe_arp_entry_delete.c index 5947cdea..ae8a16d8 100644 --- a/common/src/nxe_arp_entry_delete.c +++ b/common/src/nxe_arp_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_entry_delete(NX_IP *ip_ptr, ULONG ip_address) { diff --git a/common/src/nxe_arp_gratuitous_send.c b/common/src/nxe_arp_gratuitous_send.c index 7b8607cf..a305e740 100644 --- a/common/src/nxe_arp_gratuitous_send.c +++ b/common/src/nxe_arp_gratuitous_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_gratuitous_send(NX_IP *ip_ptr, VOID (*response_handler)(NX_IP *ip_ptr, NX_PACKET *packet_ptr)) { diff --git a/common/src/nxe_arp_hardware_address_find.c b/common/src/nxe_arp_hardware_address_find.c index d5dee337..9e8ea25d 100644 --- a/common/src/nxe_arp_hardware_address_find.c +++ b/common/src/nxe_arp_hardware_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_hardware_address_find(NX_IP *ip_ptr, ULONG ip_address, ULONG *physical_msw, ULONG *physical_lsw) diff --git a/common/src/nxe_arp_info_get.c b/common/src/nxe_arp_info_get.c index 2f839a61..6a2944c4 100644 --- a/common/src/nxe_arp_info_get.c +++ b/common/src/nxe_arp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,14 +83,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_info_get(NX_IP *ip_ptr, ULONG *arp_requests_sent, ULONG *arp_requests_received, ULONG *arp_responses_sent, ULONG *arp_responses_received, diff --git a/common/src/nxe_arp_ip_address_find.c b/common/src/nxe_arp_ip_address_find.c index f00b8ba7..33e66a6b 100644 --- a/common/src/nxe_arp_ip_address_find.c +++ b/common/src/nxe_arp_ip_address_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_ip_address_find(NX_IP *ip_ptr, ULONG *ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nxe_arp_static_entries_delete.c b/common/src/nxe_arp_static_entries_delete.c index 13e28c14..1d51a84c 100644 --- a/common/src/nxe_arp_static_entries_delete.c +++ b/common/src/nxe_arp_static_entries_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_static_entries_delete(NX_IP *ip_ptr) { diff --git a/common/src/nxe_arp_static_entry_create.c b/common/src/nxe_arp_static_entry_create.c index ca92fa57..a52c02dc 100644 --- a/common/src/nxe_arp_static_entry_create.c +++ b/common/src/nxe_arp_static_entry_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_static_entry_create(NX_IP *ip_ptr, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nxe_arp_static_entry_delete.c b/common/src/nxe_arp_static_entry_delete.c index ffa256a7..7326f3f6 100644 --- a/common/src/nxe_arp_static_entry_delete.c +++ b/common/src/nxe_arp_static_entry_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_arp_static_entry_delete(NX_IP *ip_ptr, ULONG ip_address, ULONG physical_msw, ULONG physical_lsw) diff --git a/common/src/nxe_icmp_enable.c b/common/src/nxe_icmp_enable.c index c6d5037f..d7625d93 100644 --- a/common/src/nxe_icmp_enable.c +++ b/common/src/nxe_icmp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_icmp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_icmp_info_get.c b/common/src/nxe_icmp_info_get.c index 67dbb510..a75f2b49 100644 --- a/common/src/nxe_icmp_info_get.c +++ b/common/src/nxe_icmp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_icmp_info_get(NX_IP *ip_ptr, ULONG *pings_sent, ULONG *ping_timeouts, ULONG *ping_threads_suspended, ULONG *ping_responses_received, diff --git a/common/src/nxe_icmp_ping.c b/common/src/nxe_icmp_ping.c index 2091ddb0..a9934332 100644 --- a/common/src/nxe_icmp_ping.c +++ b/common/src/nxe_icmp_ping.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_icmp_ping(NX_IP *ip_ptr, ULONG ip_address, CHAR *data_ptr, ULONG data_size, diff --git a/common/src/nxe_igmp_enable.c b/common/src/nxe_igmp_enable.c index afa2eec7..0862fdad 100644 --- a/common/src/nxe_igmp_enable.c +++ b/common/src/nxe_igmp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_igmp_info_get.c b/common/src/nxe_igmp_info_get.c index 4c701280..51064f20 100644 --- a/common/src/nxe_igmp_info_get.c +++ b/common/src/nxe_igmp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_info_get(NX_IP *ip_ptr, ULONG *igmp_reports_sent, ULONG *igmp_queries_received, ULONG *igmp_checksum_errors, ULONG *current_groups_joined) diff --git a/common/src/nxe_igmp_loopback_disable.c b/common/src/nxe_igmp_loopback_disable.c index b9b418d1..7a5f43c1 100644 --- a/common/src/nxe_igmp_loopback_disable.c +++ b/common/src/nxe_igmp_loopback_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_loopback_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_igmp_loopback_enable.c b/common/src/nxe_igmp_loopback_enable.c index eb58cb69..688ead26 100644 --- a/common/src/nxe_igmp_loopback_enable.c +++ b/common/src/nxe_igmp_loopback_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_loopback_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_igmp_multicast_interface_join.c b/common/src/nxe_igmp_multicast_interface_join.c index 5f9d1402..5e3c7564 100644 --- a/common/src/nxe_igmp_multicast_interface_join.c +++ b/common/src/nxe_igmp_multicast_interface_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_multicast_interface_join(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nxe_igmp_multicast_interface_leave.c b/common/src/nxe_igmp_multicast_interface_leave.c index 50b8e85f..ddf5499a 100644 --- a/common/src/nxe_igmp_multicast_interface_leave.c +++ b/common/src/nxe_igmp_multicast_interface_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_multicast_interface_leave(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nxe_igmp_multicast_join.c b/common/src/nxe_igmp_multicast_join.c index b7d89930..2f9b6324 100644 --- a/common/src/nxe_igmp_multicast_join.c +++ b/common/src/nxe_igmp_multicast_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_multicast_join(NX_IP *ip_ptr, ULONG group_address) { diff --git a/common/src/nxe_igmp_multicast_leave.c b/common/src/nxe_igmp_multicast_leave.c index 26c9e4c7..f4f251f3 100644 --- a/common/src/nxe_igmp_multicast_leave.c +++ b/common/src/nxe_igmp_multicast_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_igmp_multicast_leave(NX_IP *ip_ptr, ULONG group_address) { diff --git a/common/src/nxe_ip_address_change_notify.c b/common/src/nxe_ip_address_change_notify.c index 844a2743..e152356e 100644 --- a/common/src/nxe_ip_address_change_notify.c +++ b/common/src/nxe_ip_address_change_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_address_change_notify(NX_IP *ip_ptr, VOID (*ip_address_change_notify)(NX_IP *, VOID *), VOID *additional_info) { diff --git a/common/src/nxe_ip_address_get.c b/common/src/nxe_ip_address_get.c index 44303a25..ffff293d 100644 --- a/common/src/nxe_ip_address_get.c +++ b/common/src/nxe_ip_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_address_get(NX_IP *ip_ptr, ULONG *ip_address, ULONG *network_mask) { diff --git a/common/src/nxe_ip_address_set.c b/common/src/nxe_ip_address_set.c index 6334cb23..0fedd1a9 100644 --- a/common/src/nxe_ip_address_set.c +++ b/common/src/nxe_ip_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_address_set(NX_IP *ip_ptr, ULONG ip_address, ULONG network_mask) { diff --git a/common/src/nxe_ip_auxiliary_packet_pool_set.c b/common/src/nxe_ip_auxiliary_packet_pool_set.c index 9c82f7ed..0d35d09c 100644 --- a/common/src/nxe_ip_auxiliary_packet_pool_set.c +++ b/common/src/nxe_ip_auxiliary_packet_pool_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_auxiliary_packet_pool_set(NX_IP *ip_ptr, NX_PACKET_POOL *auxiliary_pool) { diff --git a/common/src/nxe_ip_create.c b/common/src/nxe_ip_create.c index dd497ae4..84d0673d 100644 --- a/common/src/nxe_ip_create.c +++ b/common/src/nxe_ip_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_create(NX_IP *ip_ptr, CHAR *name, ULONG ip_address, ULONG network_mask, NX_PACKET_POOL *default_pool, VOID (*ip_link_driver)(struct NX_IP_DRIVER_STRUCT *), diff --git a/common/src/nxe_ip_delete.c b/common/src/nxe_ip_delete.c index 36a0db84..9ba9f1b1 100644 --- a/common/src/nxe_ip_delete.c +++ b/common/src/nxe_ip_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_delete(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_driver_direct_command.c b/common/src/nxe_ip_driver_direct_command.c index 367f9790..34a4f6b9 100644 --- a/common/src/nxe_ip_driver_direct_command.c +++ b/common/src/nxe_ip_driver_direct_command.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_driver_direct_command(NX_IP *ip_ptr, UINT command, ULONG *return_value_ptr) { diff --git a/common/src/nxe_ip_driver_interface_direct_command.c b/common/src/nxe_ip_driver_interface_direct_command.c index dc982ada..1742bd04 100644 --- a/common/src/nxe_ip_driver_interface_direct_command.c +++ b/common/src/nxe_ip_driver_interface_direct_command.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_driver_interface_direct_command(NX_IP *ip_ptr, UINT command, UINT interface_index, ULONG *return_value_ptr) { diff --git a/common/src/nxe_ip_forwarding_disable.c b/common/src/nxe_ip_forwarding_disable.c index 7b7c1252..541ae478 100644 --- a/common/src/nxe_ip_forwarding_disable.c +++ b/common/src/nxe_ip_forwarding_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_forwarding_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_forwarding_enable.c b/common/src/nxe_ip_forwarding_enable.c index 78b1612f..0cc4647d 100644 --- a/common/src/nxe_ip_forwarding_enable.c +++ b/common/src/nxe_ip_forwarding_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_forwarding_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_fragment_disable.c b/common/src/nxe_ip_fragment_disable.c index 053dd831..f8d1ff8e 100644 --- a/common/src/nxe_ip_fragment_disable.c +++ b/common/src/nxe_ip_fragment_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_fragment_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_fragment_enable.c b/common/src/nxe_ip_fragment_enable.c index 72afad7d..5842f909 100644 --- a/common/src/nxe_ip_fragment_enable.c +++ b/common/src/nxe_ip_fragment_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_fragment_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_gateway_address_clear.c b/common/src/nxe_ip_gateway_address_clear.c index 48f28223..958567e4 100644 --- a/common/src/nxe_ip_gateway_address_clear.c +++ b/common/src/nxe_ip_gateway_address_clear.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_gateway_address_clear(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_gateway_address_get.c b/common/src/nxe_ip_gateway_address_get.c index 2ef9b471..37fe4096 100644 --- a/common/src/nxe_ip_gateway_address_get.c +++ b/common/src/nxe_ip_gateway_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_gateway_address_get(NX_IP *ip_ptr, ULONG *ip_address) { diff --git a/common/src/nxe_ip_gateway_address_set.c b/common/src/nxe_ip_gateway_address_set.c index 0b4054ec..0d0d6427 100644 --- a/common/src/nxe_ip_gateway_address_set.c +++ b/common/src/nxe_ip_gateway_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_gateway_address_set(NX_IP *ip_ptr, ULONG ip_address) { diff --git a/common/src/nxe_ip_info_get.c b/common/src/nxe_ip_info_get.c index 04ab0493..88c14b76 100644 --- a/common/src/nxe_ip_info_get.c +++ b/common/src/nxe_ip_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,14 +83,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_info_get(NX_IP *ip_ptr, ULONG *ip_total_packets_sent, ULONG *ip_total_bytes_sent, ULONG *ip_total_packets_received, ULONG *ip_total_bytes_received, diff --git a/common/src/nxe_ip_interface_address_get.c b/common/src/nxe_ip_interface_address_get.c index 725e23c4..dbbe0ca0 100644 --- a/common/src/nxe_ip_interface_address_get.c +++ b/common/src/nxe_ip_interface_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_address_get(NX_IP *ip_ptr, UINT interface_index, ULONG *ip_address, ULONG *network_mask) { diff --git a/common/src/nxe_ip_interface_address_mapping_configure.c b/common/src/nxe_ip_interface_address_mapping_configure.c index 190b7047..60522c80 100644 --- a/common/src/nxe_ip_interface_address_mapping_configure.c +++ b/common/src/nxe_ip_interface_address_mapping_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_address_mapping_configure(NX_IP *ip_ptr, UINT interface_index, UINT mapping_needed) { diff --git a/common/src/nxe_ip_interface_address_set.c b/common/src/nxe_ip_interface_address_set.c index 1c87da5a..424836d2 100644 --- a/common/src/nxe_ip_interface_address_set.c +++ b/common/src/nxe_ip_interface_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG ip_address, ULONG network_mask) { diff --git a/common/src/nxe_ip_interface_attach.c b/common/src/nxe_ip_interface_attach.c index d85fbfc3..2844d4c6 100644 --- a/common/src/nxe_ip_interface_attach.c +++ b/common/src/nxe_ip_interface_attach.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_attach(NX_IP *ip_ptr, CHAR *interface_name, ULONG ip_address, ULONG network_mask, VOID (*ip_link_driver)(struct NX_IP_DRIVER_STRUCT *)) { diff --git a/common/src/nxe_ip_interface_capability_get.c b/common/src/nxe_ip_interface_capability_get.c index 0e2790c5..34968271 100644 --- a/common/src/nxe_ip_interface_capability_get.c +++ b/common/src/nxe_ip_interface_capability_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_capability_get(NX_IP *ip_ptr, UINT interface_index, ULONG *interface_capability_flag) { diff --git a/common/src/nxe_ip_interface_capability_set.c b/common/src/nxe_ip_interface_capability_set.c index 770ea43e..faad0a83 100644 --- a/common/src/nxe_ip_interface_capability_set.c +++ b/common/src/nxe_ip_interface_capability_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_capability_set(NX_IP *ip_ptr, UINT interface_index, ULONG interface_capability_flag) { diff --git a/common/src/nxe_ip_interface_detach.c b/common/src/nxe_ip_interface_detach.c index cdd5cd1b..a02e6f02 100644 --- a/common/src/nxe_ip_interface_detach.c +++ b/common/src/nxe_ip_interface_detach.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_detach(NX_IP *ip_ptr, UINT index) { diff --git a/common/src/nxe_ip_interface_info_get.c b/common/src/nxe_ip_interface_info_get.c index 4611cc61..14e69406 100644 --- a/common/src/nxe_ip_interface_info_get.c +++ b/common/src/nxe_ip_interface_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_info_get(NX_IP *ip_ptr, UINT interface_index, CHAR **interface_name, diff --git a/common/src/nxe_ip_interface_mtu_set.c b/common/src/nxe_ip_interface_mtu_set.c index dfe39e69..319b0400 100644 --- a/common/src/nxe_ip_interface_mtu_set.c +++ b/common/src/nxe_ip_interface_mtu_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_mtu_set(NX_IP *ip_ptr, UINT interface_index, ULONG mtu_size) { diff --git a/common/src/nxe_ip_interface_physical_address_get.c b/common/src/nxe_ip_interface_physical_address_get.c index 86d04e06..ae537dab 100644 --- a/common/src/nxe_ip_interface_physical_address_get.c +++ b/common/src/nxe_ip_interface_physical_address_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_physical_address_get(NX_IP *ip_ptr, UINT interface_index, ULONG *physical_msw, ULONG *physical_lsw) diff --git a/common/src/nxe_ip_interface_physical_address_set.c b/common/src/nxe_ip_interface_physical_address_set.c index ea04ff85..2fceecea 100644 --- a/common/src/nxe_ip_interface_physical_address_set.c +++ b/common/src/nxe_ip_interface_physical_address_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_physical_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG physical_msw, ULONG physical_lsw, UINT update_driver) diff --git a/common/src/nxe_ip_interface_status_check.c b/common/src/nxe_ip_interface_status_check.c index 113b9d1b..fcc8b31f 100644 --- a/common/src/nxe_ip_interface_status_check.c +++ b/common/src/nxe_ip_interface_status_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_interface_status_check(NX_IP *ip_ptr, UINT interface_index, ULONG needed_status, ULONG *actual_status, ULONG wait_option) diff --git a/common/src/nxe_ip_link_status_change_notify_set.c b/common/src/nxe_ip_link_status_change_notify_set.c index d9233fef..6d6433bb 100644 --- a/common/src/nxe_ip_link_status_change_notify_set.c +++ b/common/src/nxe_ip_link_status_change_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_link_status_change_notify_set(NX_IP *ip_ptr, VOID (*link_status_change_notify)(NX_IP *ip_ptr, UINT interface_index, UINT link_up)) { diff --git a/common/src/nxe_ip_max_payload_size_find.c b/common/src/nxe_ip_max_payload_size_find.c index 89cdd9c2..0fd4fa62 100644 --- a/common/src/nxe_ip_max_payload_size_find.c +++ b/common/src/nxe_ip_max_payload_size_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,14 +83,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_max_payload_size_find(NX_IP *ip_ptr, diff --git a/common/src/nxe_ip_raw_packet_disable.c b/common/src/nxe_ip_raw_packet_disable.c index ff830732..c5d528b1 100644 --- a/common/src/nxe_ip_raw_packet_disable.c +++ b/common/src/nxe_ip_raw_packet_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_packet_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_raw_packet_enable.c b/common/src/nxe_ip_raw_packet_enable.c index f31bcd2b..c647e9d3 100644 --- a/common/src/nxe_ip_raw_packet_enable.c +++ b/common/src/nxe_ip_raw_packet_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_packet_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_ip_raw_packet_filter_set.c b/common/src/nxe_ip_raw_packet_filter_set.c index 2d85b497..a8275dbf 100644 --- a/common/src/nxe_ip_raw_packet_filter_set.c +++ b/common/src/nxe_ip_raw_packet_filter_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_packet_filter_set(NX_IP *ip_ptr, UINT (*raw_packet_filter)(NX_IP *, ULONG, NX_PACKET *)) diff --git a/common/src/nxe_ip_raw_packet_receive.c b/common/src/nxe_ip_raw_packet_receive.c index 1be63c49..21f851b1 100644 --- a/common/src/nxe_ip_raw_packet_receive.c +++ b/common/src/nxe_ip_raw_packet_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_packet_receive(NX_IP *ip_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { diff --git a/common/src/nxe_ip_raw_packet_send.c b/common/src/nxe_ip_raw_packet_send.c index d20348fa..f807e146 100644 --- a/common/src/nxe_ip_raw_packet_send.c +++ b/common/src/nxe_ip_raw_packet_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_packet_send(NX_IP *ip_ptr, NX_PACKET **packet_ptr_ptr, ULONG destination_ip, ULONG type_of_service) diff --git a/common/src/nxe_ip_raw_packet_source_send.c b/common/src/nxe_ip_raw_packet_source_send.c index 8e93f8c3..efb92e4b 100644 --- a/common/src/nxe_ip_raw_packet_source_send.c +++ b/common/src/nxe_ip_raw_packet_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_packet_source_send(NX_IP *ip_ptr, NX_PACKET **packet_ptr_ptr, ULONG destination_ip, UINT address_index, ULONG type_of_service) diff --git a/common/src/nxe_ip_raw_receive_queue_max_set.c b/common/src/nxe_ip_raw_receive_queue_max_set.c index 4e0dd84b..755d2c39 100644 --- a/common/src/nxe_ip_raw_receive_queue_max_set.c +++ b/common/src/nxe_ip_raw_receive_queue_max_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_raw_receive_queue_max_set(NX_IP *ip_ptr, ULONG queue_max) { diff --git a/common/src/nxe_ip_static_route_add.c b/common/src/nxe_ip_static_route_add.c index a77e888b..defa1fe5 100644 --- a/common/src/nxe_ip_static_route_add.c +++ b/common/src/nxe_ip_static_route_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_static_route_add(NX_IP *ip_ptr, ULONG network_address, ULONG net_mask, ULONG next_hop) diff --git a/common/src/nxe_ip_static_route_delete.c b/common/src/nxe_ip_static_route_delete.c index 2b928fb3..8d94d05d 100644 --- a/common/src/nxe_ip_static_route_delete.c +++ b/common/src/nxe_ip_static_route_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_static_route_delete(NX_IP *ip_ptr, ULONG network_address, ULONG net_mask) { diff --git a/common/src/nxe_ip_status_check.c b/common/src/nxe_ip_status_check.c index 28cc4b84..d050ff50 100644 --- a/common/src/nxe_ip_status_check.c +++ b/common/src/nxe_ip_status_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ip_status_check(NX_IP *ip_ptr, ULONG needed_status, ULONG *actual_status, ULONG wait_option) { diff --git a/common/src/nxe_ipv4_multicast_interface_join.c b/common/src/nxe_ipv4_multicast_interface_join.c index 60230f18..6fc67c3f 100644 --- a/common/src/nxe_ipv4_multicast_interface_join.c +++ b/common/src/nxe_ipv4_multicast_interface_join.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ipv4_multicast_interface_join(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nxe_ipv4_multicast_interface_leave.c b/common/src/nxe_ipv4_multicast_interface_leave.c index a26c0062..803eede8 100644 --- a/common/src/nxe_ipv4_multicast_interface_leave.c +++ b/common/src/nxe_ipv4_multicast_interface_leave.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_ipv4_multicast_interface_leave(NX_IP *ip_ptr, ULONG group_address, UINT interface_index) { diff --git a/common/src/nxe_packet_allocate.c b/common/src/nxe_packet_allocate.c index 4e24c444..598f3824 100644 --- a/common/src/nxe_packet_allocate.c +++ b/common/src/nxe_packet_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_allocate(NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG packet_type, ULONG wait_option) diff --git a/common/src/nxe_packet_copy.c b/common/src/nxe_packet_copy.c index 03d0c8f6..de48fd39 100644 --- a/common/src/nxe_packet_copy.c +++ b/common/src/nxe_packet_copy.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_copy(NX_PACKET *packet_ptr, NX_PACKET **new_packet_ptr, NX_PACKET_POOL *pool_ptr, ULONG wait_option) diff --git a/common/src/nxe_packet_data_append.c b/common/src/nxe_packet_data_append.c index 76da3a88..ed75d03c 100644 --- a/common/src/nxe_packet_data_append.c +++ b/common/src/nxe_packet_data_append.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_data_append(NX_PACKET *packet_ptr, VOID *data_start, ULONG data_size, NX_PACKET_POOL *pool_ptr, ULONG wait_option) diff --git a/common/src/nxe_packet_data_extract_offset.c b/common/src/nxe_packet_data_extract_offset.c index d2e657d6..a375fb24 100644 --- a/common/src/nxe_packet_data_extract_offset.c +++ b/common/src/nxe_packet_data_extract_offset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_data_extract_offset(NX_PACKET *packet_ptr, ULONG offset, VOID *buffer_start, ULONG buffer_length, ULONG *bytes_copied) { diff --git a/common/src/nxe_packet_data_retrieve.c b/common/src/nxe_packet_data_retrieve.c index eb542e49..f5929c96 100644 --- a/common/src/nxe_packet_data_retrieve.c +++ b/common/src/nxe_packet_data_retrieve.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_data_retrieve(NX_PACKET *packet_ptr, VOID *buffer_start, ULONG *bytes_copied) { diff --git a/common/src/nxe_packet_length_get.c b/common/src/nxe_packet_length_get.c index e8e3d33d..8b06d8bd 100644 --- a/common/src/nxe_packet_length_get.c +++ b/common/src/nxe_packet_length_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_length_get(NX_PACKET *packet_ptr, ULONG *length) { diff --git a/common/src/nxe_packet_pool_create.c b/common/src/nxe_packet_pool_create.c index b35a7df6..df3ef9ce 100644 --- a/common/src/nxe_packet_pool_create.c +++ b/common/src/nxe_packet_pool_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_pool_create(NX_PACKET_POOL *pool_ptr, CHAR *name_ptr, ULONG payload_size, VOID *pool_start, ULONG pool_size, UINT pool_control_block_size) diff --git a/common/src/nxe_packet_pool_delete.c b/common/src/nxe_packet_pool_delete.c index 13f9e440..71b6a986 100644 --- a/common/src/nxe_packet_pool_delete.c +++ b/common/src/nxe_packet_pool_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_pool_delete(NX_PACKET_POOL *pool_ptr) { diff --git a/common/src/nxe_packet_pool_info_get.c b/common/src/nxe_packet_pool_info_get.c index baa8ca07..5ee77ef2 100644 --- a/common/src/nxe_packet_pool_info_get.c +++ b/common/src/nxe_packet_pool_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_pool_info_get(NX_PACKET_POOL *pool_ptr, ULONG *total_packets, ULONG *free_packets, ULONG *empty_pool_requests, ULONG *empty_pool_suspensions, diff --git a/common/src/nxe_packet_pool_low_watermark_set.c b/common/src/nxe_packet_pool_low_watermark_set.c index ac251236..c3880b5f 100644 --- a/common/src/nxe_packet_pool_low_watermark_set.c +++ b/common/src/nxe_packet_pool_low_watermark_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_pool_low_watermark_set(NX_PACKET_POOL *pool_ptr, ULONG low_watermark) { diff --git a/common/src/nxe_packet_release.c b/common/src/nxe_packet_release.c index 2454e03b..6b2dfdc6 100644 --- a/common/src/nxe_packet_release.c +++ b/common/src/nxe_packet_release.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_release(NX_PACKET **packet_ptr_ptr) { diff --git a/common/src/nxe_packet_transmit_release.c b/common/src/nxe_packet_transmit_release.c index 6cb658b0..39c5f1f6 100644 --- a/common/src/nxe_packet_transmit_release.c +++ b/common/src/nxe_packet_transmit_release.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_packet_transmit_release(NX_PACKET **packet_ptr_ptr) { diff --git a/common/src/nxe_packet_vlan_priority_set.c b/common/src/nxe_packet_vlan_priority_set.c index 72ee9433..112cd6af 100644 --- a/common/src/nxe_packet_vlan_priority_set.c +++ b/common/src/nxe_packet_vlan_priority_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,12 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nxe_packet_vlan_priority_set(NX_PACKET *packet_ptr, UINT vlan_priority) { diff --git a/common/src/nxe_rarp_disable.c b/common/src/nxe_rarp_disable.c index 79ce0a13..e631a8e6 100644 --- a/common/src/nxe_rarp_disable.c +++ b/common/src/nxe_rarp_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_rarp_disable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_rarp_enable.c b/common/src/nxe_rarp_enable.c index c92c127b..a0e44012 100644 --- a/common/src/nxe_rarp_enable.c +++ b/common/src/nxe_rarp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_rarp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_rarp_info_get.c b/common/src/nxe_rarp_info_get.c index 2f691e60..25647bd5 100644 --- a/common/src/nxe_rarp_info_get.c +++ b/common/src/nxe_rarp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_rarp_info_get(NX_IP *ip_ptr, ULONG *rarp_requests_sent, ULONG *rarp_responses_received, ULONG *rarp_invalid_messages) diff --git a/common/src/nxe_tcp_client_socket_bind.c b/common/src/nxe_tcp_client_socket_bind.c index b4a7e4d2..fdda1c40 100644 --- a/common/src/nxe_tcp_client_socket_bind.c +++ b/common/src/nxe_tcp_client_socket_bind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_client_socket_bind(NX_TCP_SOCKET *socket_ptr, UINT port, ULONG wait_option) { diff --git a/common/src/nxe_tcp_client_socket_connect.c b/common/src/nxe_tcp_client_socket_connect.c index a799d086..5fb67994 100644 --- a/common/src/nxe_tcp_client_socket_connect.c +++ b/common/src/nxe_tcp_client_socket_connect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_client_socket_connect(NX_TCP_SOCKET *socket_ptr, ULONG server_ip, UINT server_port, ULONG wait_option) { diff --git a/common/src/nxe_tcp_client_socket_port_get.c b/common/src/nxe_tcp_client_socket_port_get.c index 2ba92cb4..2bcd3cb9 100644 --- a/common/src/nxe_tcp_client_socket_port_get.c +++ b/common/src/nxe_tcp_client_socket_port_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_client_socket_port_get(NX_TCP_SOCKET *socket_ptr, UINT *port_ptr) { diff --git a/common/src/nxe_tcp_client_socket_unbind.c b/common/src/nxe_tcp_client_socket_unbind.c index d14cc852..9d35751b 100644 --- a/common/src/nxe_tcp_client_socket_unbind.c +++ b/common/src/nxe_tcp_client_socket_unbind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_client_socket_unbind(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_tcp_enable.c b/common/src/nxe_tcp_enable.c index af6e4442..01a66c42 100644 --- a/common/src/nxe_tcp_enable.c +++ b/common/src/nxe_tcp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_tcp_free_port_find.c b/common/src/nxe_tcp_free_port_find.c index f073b72a..efe46874 100644 --- a/common/src/nxe_tcp_free_port_find.c +++ b/common/src/nxe_tcp_free_port_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_free_port_find(NX_IP *ip_ptr, UINT port, UINT *free_port_ptr) { diff --git a/common/src/nxe_tcp_info_get.c b/common/src/nxe_tcp_info_get.c index 62e3fbab..9d5d5548 100644 --- a/common/src/nxe_tcp_info_get.c +++ b/common/src/nxe_tcp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -88,14 +88,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_info_get(NX_IP *ip_ptr, ULONG *tcp_packets_sent, ULONG *tcp_bytes_sent, ULONG *tcp_packets_received, ULONG *tcp_bytes_received, diff --git a/common/src/nxe_tcp_server_socket_accept.c b/common/src/nxe_tcp_server_socket_accept.c index 02b6d5cb..ee43b042 100644 --- a/common/src/nxe_tcp_server_socket_accept.c +++ b/common/src/nxe_tcp_server_socket_accept.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_server_socket_accept(NX_TCP_SOCKET *socket_ptr, ULONG wait_option) { diff --git a/common/src/nxe_tcp_server_socket_listen.c b/common/src/nxe_tcp_server_socket_listen.c index f0ae91d8..69657ef9 100644 --- a/common/src/nxe_tcp_server_socket_listen.c +++ b/common/src/nxe_tcp_server_socket_listen.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_server_socket_listen(NX_IP *ip_ptr, UINT port, NX_TCP_SOCKET *socket_ptr, UINT listen_queue_size, VOID (*tcp_listen_callback)(NX_TCP_SOCKET *socket_ptr, UINT port)) diff --git a/common/src/nxe_tcp_server_socket_relisten.c b/common/src/nxe_tcp_server_socket_relisten.c index f8c0360e..e1c0df28 100644 --- a/common/src/nxe_tcp_server_socket_relisten.c +++ b/common/src/nxe_tcp_server_socket_relisten.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_server_socket_relisten(NX_IP *ip_ptr, UINT port, NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_tcp_server_socket_unaccept.c b/common/src/nxe_tcp_server_socket_unaccept.c index 7b24f271..c4ccdf06 100644 --- a/common/src/nxe_tcp_server_socket_unaccept.c +++ b/common/src/nxe_tcp_server_socket_unaccept.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_server_socket_unaccept(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_tcp_server_socket_unlisten.c b/common/src/nxe_tcp_server_socket_unlisten.c index ccecad01..4e35abe5 100644 --- a/common/src/nxe_tcp_server_socket_unlisten.c +++ b/common/src/nxe_tcp_server_socket_unlisten.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_server_socket_unlisten(NX_IP *ip_ptr, UINT port) { diff --git a/common/src/nxe_tcp_socket_bytes_available.c b/common/src/nxe_tcp_socket_bytes_available.c index 35021986..9a96a650 100644 --- a/common/src/nxe_tcp_socket_bytes_available.c +++ b/common/src/nxe_tcp_socket_bytes_available.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_bytes_available(NX_TCP_SOCKET *socket_ptr, ULONG *bytes_available) { diff --git a/common/src/nxe_tcp_socket_create.c b/common/src/nxe_tcp_socket_create.c index d7a3d6b9..e6b277eb 100644 --- a/common/src/nxe_tcp_socket_create.c +++ b/common/src/nxe_tcp_socket_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -82,14 +82,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_create(NX_IP *ip_ptr, NX_TCP_SOCKET *socket_ptr, CHAR *name, ULONG type_of_service, ULONG fragment, UINT time_to_live, ULONG window_size, diff --git a/common/src/nxe_tcp_socket_delete.c b/common/src/nxe_tcp_socket_delete.c index f9f1516f..d0d14bdf 100644 --- a/common/src/nxe_tcp_socket_delete.c +++ b/common/src/nxe_tcp_socket_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_delete(NX_TCP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_tcp_socket_disconnect.c b/common/src/nxe_tcp_socket_disconnect.c index 19f1f2f2..157a9463 100644 --- a/common/src/nxe_tcp_socket_disconnect.c +++ b/common/src/nxe_tcp_socket_disconnect.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_disconnect(NX_TCP_SOCKET *socket_ptr, ULONG wait_option) { diff --git a/common/src/nxe_tcp_socket_disconnect_complete_notify.c b/common/src/nxe_tcp_socket_disconnect_complete_notify.c index 423f0ffe..85b7593e 100644 --- a/common/src/nxe_tcp_socket_disconnect_complete_notify.c +++ b/common/src/nxe_tcp_socket_disconnect_complete_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_disconnect_complete_notify(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_disconnect_complete_notify)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nxe_tcp_socket_establish_notify.c b/common/src/nxe_tcp_socket_establish_notify.c index 3a40517c..bccd15c8 100644 --- a/common/src/nxe_tcp_socket_establish_notify.c +++ b/common/src/nxe_tcp_socket_establish_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_establish_notify(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_establish_notify)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nxe_tcp_socket_info_get.c b/common/src/nxe_tcp_socket_info_get.c index 03e2b225..1c82a153 100644 --- a/common/src/nxe_tcp_socket_info_get.c +++ b/common/src/nxe_tcp_socket_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -88,14 +88,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_info_get(NX_TCP_SOCKET *socket_ptr, ULONG *tcp_packets_sent, ULONG *tcp_bytes_sent, ULONG *tcp_packets_received, ULONG *tcp_bytes_received, diff --git a/common/src/nxe_tcp_socket_mss_get.c b/common/src/nxe_tcp_socket_mss_get.c index 1eb7534f..a056c833 100644 --- a/common/src/nxe_tcp_socket_mss_get.c +++ b/common/src/nxe_tcp_socket_mss_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_mss_get(NX_TCP_SOCKET *socket_ptr, ULONG *mss) { diff --git a/common/src/nxe_tcp_socket_mss_peer_get.c b/common/src/nxe_tcp_socket_mss_peer_get.c index db61939f..1dd1704f 100644 --- a/common/src/nxe_tcp_socket_mss_peer_get.c +++ b/common/src/nxe_tcp_socket_mss_peer_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_mss_peer_get(NX_TCP_SOCKET *socket_ptr, ULONG *peer_mss) { diff --git a/common/src/nxe_tcp_socket_mss_set.c b/common/src/nxe_tcp_socket_mss_set.c index 26739fcf..8dae6f11 100644 --- a/common/src/nxe_tcp_socket_mss_set.c +++ b/common/src/nxe_tcp_socket_mss_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_mss_set(NX_TCP_SOCKET *socket_ptr, ULONG mss) { diff --git a/common/src/nxe_tcp_socket_peer_info_get.c b/common/src/nxe_tcp_socket_peer_info_get.c index 9ae28f9d..7f9c0091 100644 --- a/common/src/nxe_tcp_socket_peer_info_get.c +++ b/common/src/nxe_tcp_socket_peer_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_peer_info_get(NX_TCP_SOCKET *socket_ptr, ULONG *peer_ip_address, diff --git a/common/src/nxe_tcp_socket_queue_depth_notify_set.c b/common/src/nxe_tcp_socket_queue_depth_notify_set.c index d0a3d1be..c1778130 100644 --- a/common/src/nxe_tcp_socket_queue_depth_notify_set.c +++ b/common/src/nxe_tcp_socket_queue_depth_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_queue_depth_notify_set(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_socket_queue_depth_notify)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nxe_tcp_socket_receive.c b/common/src/nxe_tcp_socket_receive.c index 3a0d139a..04d42b25 100644 --- a/common/src/nxe_tcp_socket_receive.c +++ b/common/src/nxe_tcp_socket_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_receive(NX_TCP_SOCKET *socket_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { diff --git a/common/src/nxe_tcp_socket_receive_notify.c b/common/src/nxe_tcp_socket_receive_notify.c index 4f05abea..c4ee5a77 100644 --- a/common/src/nxe_tcp_socket_receive_notify.c +++ b/common/src/nxe_tcp_socket_receive_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,17 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed invalid check, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_receive_notify(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_receive_notify)(NX_TCP_SOCKET *socket_ptr)) diff --git a/common/src/nxe_tcp_socket_receive_queue_max_set.c b/common/src/nxe_tcp_socket_receive_queue_max_set.c index c867081a..8a4d8f00 100644 --- a/common/src/nxe_tcp_socket_receive_queue_max_set.c +++ b/common/src/nxe_tcp_socket_receive_queue_max_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_receive_queue_max_set(NX_TCP_SOCKET *socket_ptr, UINT receive_queue_maximum) { diff --git a/common/src/nxe_tcp_socket_send.c b/common/src/nxe_tcp_socket_send.c index 0ff24b8e..abc7290f 100644 --- a/common/src/nxe_tcp_socket_send.c +++ b/common/src/nxe_tcp_socket_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_send(NX_TCP_SOCKET *socket_ptr, NX_PACKET **packet_ptr_ptr, ULONG wait_option) { diff --git a/common/src/nxe_tcp_socket_state_wait.c b/common/src/nxe_tcp_socket_state_wait.c index 88261485..98148d58 100644 --- a/common/src/nxe_tcp_socket_state_wait.c +++ b/common/src/nxe_tcp_socket_state_wait.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_state_wait(NX_TCP_SOCKET *socket_ptr, UINT desired_state, ULONG wait_option) { diff --git a/common/src/nxe_tcp_socket_timed_wait_callback.c b/common/src/nxe_tcp_socket_timed_wait_callback.c index f929c91f..20e203af 100644 --- a/common/src/nxe_tcp_socket_timed_wait_callback.c +++ b/common/src/nxe_tcp_socket_timed_wait_callback.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_timed_wait_callback(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_timed_wait_callback)(NX_TCP_SOCKET *socket_ptr)) { diff --git a/common/src/nxe_tcp_socket_transmit_configure.c b/common/src/nxe_tcp_socket_transmit_configure.c index a38174f9..6871f7b0 100644 --- a/common/src/nxe_tcp_socket_transmit_configure.c +++ b/common/src/nxe_tcp_socket_transmit_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_transmit_configure(NX_TCP_SOCKET *socket_ptr, ULONG max_queue_depth, ULONG timeout, ULONG max_retries, ULONG timeout_shift) diff --git a/common/src/nxe_tcp_socket_vlan_priority_set.c b/common/src/nxe_tcp_socket_vlan_priority_set.c index 0d99d1be..e4780315 100644 --- a/common/src/nxe_tcp_socket_vlan_priority_set.c +++ b/common/src/nxe_tcp_socket_vlan_priority_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,12 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_vlan_priority_set(NX_TCP_SOCKET *socket_ptr, UINT vlan_priority) { diff --git a/common/src/nxe_tcp_socket_window_update_notify_set.c b/common/src/nxe_tcp_socket_window_update_notify_set.c index b3640cda..3a314643 100644 --- a/common/src/nxe_tcp_socket_window_update_notify_set.c +++ b/common/src/nxe_tcp_socket_window_update_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_tcp_socket_window_update_notify_set(NX_TCP_SOCKET *socket_ptr, VOID (*tcp_socket_window_update_notify)(NX_TCP_SOCKET *socket_ptr)) diff --git a/common/src/nxe_udp_enable.c b/common/src/nxe_udp_enable.c index da40faf3..0bca0d1b 100644 --- a/common/src/nxe_udp_enable.c +++ b/common/src/nxe_udp_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_enable(NX_IP *ip_ptr) { diff --git a/common/src/nxe_udp_free_port_find.c b/common/src/nxe_udp_free_port_find.c index ad54c391..95d8b0d8 100644 --- a/common/src/nxe_udp_free_port_find.c +++ b/common/src/nxe_udp_free_port_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_free_port_find(NX_IP *ip_ptr, UINT port, UINT *free_port_ptr) { diff --git a/common/src/nxe_udp_info_get.c b/common/src/nxe_udp_info_get.c index 5b9304fb..1a594a94 100644 --- a/common/src/nxe_udp_info_get.c +++ b/common/src/nxe_udp_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_info_get(NX_IP *ip_ptr, ULONG *udp_packets_sent, ULONG *udp_bytes_sent, ULONG *udp_packets_received, ULONG *udp_bytes_received, diff --git a/common/src/nxe_udp_packet_info_extract.c b/common/src/nxe_udp_packet_info_extract.c index 353c7ceb..a361a70d 100644 --- a/common/src/nxe_udp_packet_info_extract.c +++ b/common/src/nxe_udp_packet_info_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,14 +74,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_packet_info_extract(NX_PACKET *packet_ptr, ULONG *ip_address, UINT *protocol, UINT *port, UINT *interface_index) diff --git a/common/src/nxe_udp_socket_bind.c b/common/src/nxe_udp_socket_bind.c index e2498079..706a8f82 100644 --- a/common/src/nxe_udp_socket_bind.c +++ b/common/src/nxe_udp_socket_bind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_bind(NX_UDP_SOCKET *socket_ptr, UINT port, ULONG wait_option) { diff --git a/common/src/nxe_udp_socket_bytes_available.c b/common/src/nxe_udp_socket_bytes_available.c index 34f50649..c2675293 100644 --- a/common/src/nxe_udp_socket_bytes_available.c +++ b/common/src/nxe_udp_socket_bytes_available.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_bytes_available(NX_UDP_SOCKET *socket_ptr, ULONG *bytes_available) { diff --git a/common/src/nxe_udp_socket_checksum_disable.c b/common/src/nxe_udp_socket_checksum_disable.c index 05cb27ed..778df534 100644 --- a/common/src/nxe_udp_socket_checksum_disable.c +++ b/common/src/nxe_udp_socket_checksum_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_checksum_disable(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_udp_socket_checksum_enable.c b/common/src/nxe_udp_socket_checksum_enable.c index 2a2e1660..f88b5cb8 100644 --- a/common/src/nxe_udp_socket_checksum_enable.c +++ b/common/src/nxe_udp_socket_checksum_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_checksum_enable(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_udp_socket_create.c b/common/src/nxe_udp_socket_create.c index e11e1dc4..cfb4564f 100644 --- a/common/src/nxe_udp_socket_create.c +++ b/common/src/nxe_udp_socket_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,14 +77,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_create(NX_IP *ip_ptr, NX_UDP_SOCKET *socket_ptr, CHAR *name, ULONG type_of_service, ULONG fragment, UINT time_to_live, diff --git a/common/src/nxe_udp_socket_delete.c b/common/src/nxe_udp_socket_delete.c index 10395277..814ebb78 100644 --- a/common/src/nxe_udp_socket_delete.c +++ b/common/src/nxe_udp_socket_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_delete(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_udp_socket_info_get.c b/common/src/nxe_udp_socket_info_get.c index a8c8a517..a87b9993 100644 --- a/common/src/nxe_udp_socket_info_get.c +++ b/common/src/nxe_udp_socket_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_info_get(NX_UDP_SOCKET *socket_ptr, ULONG *udp_packets_sent, ULONG *udp_bytes_sent, ULONG *udp_packets_received, ULONG *udp_bytes_received, ULONG *udp_packets_queued, diff --git a/common/src/nxe_udp_socket_port_get.c b/common/src/nxe_udp_socket_port_get.c index 35756f9a..4a2ea861 100644 --- a/common/src/nxe_udp_socket_port_get.c +++ b/common/src/nxe_udp_socket_port_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_port_get(NX_UDP_SOCKET *socket_ptr, UINT *port_ptr) { diff --git a/common/src/nxe_udp_socket_receive.c b/common/src/nxe_udp_socket_receive.c index 54f54c34..951a5e0d 100644 --- a/common/src/nxe_udp_socket_receive.c +++ b/common/src/nxe_udp_socket_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_receive(NX_UDP_SOCKET *socket_ptr, NX_PACKET **packet_ptr, ULONG wait_option) { diff --git a/common/src/nxe_udp_socket_receive_notify.c b/common/src/nxe_udp_socket_receive_notify.c index db70df8b..dc96360d 100644 --- a/common/src/nxe_udp_socket_receive_notify.c +++ b/common/src/nxe_udp_socket_receive_notify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_receive_notify(NX_UDP_SOCKET *socket_ptr, VOID (*udp_receive_notify)(NX_UDP_SOCKET *socket_ptr)) diff --git a/common/src/nxe_udp_socket_send.c b/common/src/nxe_udp_socket_send.c index 98ddb04a..8c769681 100644 --- a/common/src/nxe_udp_socket_send.c +++ b/common/src/nxe_udp_socket_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,14 +80,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET **packet_ptr_ptr, ULONG ip_address, UINT port) diff --git a/common/src/nxe_udp_socket_source_send.c b/common/src/nxe_udp_socket_source_send.c index c1ce930a..1421bde0 100644 --- a/common/src/nxe_udp_socket_source_send.c +++ b/common/src/nxe_udp_socket_source_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,14 +73,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_source_send(NX_UDP_SOCKET *socket_ptr, NX_PACKET **packet_ptr_ptr, ULONG ip_address, UINT port, UINT address_index) diff --git a/common/src/nxe_udp_socket_unbind.c b/common/src/nxe_udp_socket_unbind.c index bcb4811e..7404d782 100644 --- a/common/src/nxe_udp_socket_unbind.c +++ b/common/src/nxe_udp_socket_unbind.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_unbind(NX_UDP_SOCKET *socket_ptr) { diff --git a/common/src/nxe_udp_socket_vlan_priority_set.c b/common/src/nxe_udp_socket_vlan_priority_set.c index 16e601f6..eb898f77 100644 --- a/common/src/nxe_udp_socket_vlan_priority_set.c +++ b/common/src/nxe_udp_socket_vlan_priority_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,12 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nxe_udp_socket_vlan_priority_set(NX_UDP_SOCKET *socket_ptr, UINT vlan_priority) { diff --git a/common/src/nxe_udp_source_extract.c b/common/src/nxe_udp_source_extract.c index ce56a36c..04ac14b4 100644 --- a/common/src/nxe_udp_source_extract.c +++ b/common/src/nxe_udp_source_extract.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_udp_source_extract(NX_PACKET *packet_ptr, ULONG *ip_address, UINT *port) { diff --git a/crypto_libraries/inc/nx_crypto.h b/crypto_libraries/inc/nx_crypto.h index 86f63353..459e32a5 100644 --- a/crypto_libraries/inc/nx_crypto.h +++ b/crypto_libraries/inc/nx_crypto.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -35,27 +35,6 @@ /* */ /* This file defines the NetX Security Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* disabled unaligned access */ -/* by default, and added */ -/* crypto standalone support, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* Renamed FIPS symbol and */ -/* fips memory functions, */ -/* resulting in version 6.1.7 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* added missing symbol, */ -/* resulting in version 6.1.10 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* cleaned up memory functions,*/ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_H_ @@ -70,7 +49,7 @@ extern "C" { #endif -/* Default to disabling standalone use of nx_crypto. To use nx_crypto in +/* Default to disabling standalone use of nx_crypto. To use nx_crypto in standalone define NX_CRYPTO_STANDALONE_ENABLE*/ /* #define NX_CRYPTO_STANDALONE_ENABLE diff --git a/crypto_libraries/inc/nx_crypto_3des.h b/crypto_libraries/inc/nx_crypto_3des.h index adabcd8e..0653a0fc 100644 --- a/crypto_libraries/inc/nx_crypto_3des.h +++ b/crypto_libraries/inc/nx_crypto_3des.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,14 +37,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_3DES_H_ diff --git a/crypto_libraries/inc/nx_crypto_aes.h b/crypto_libraries/inc/nx_crypto_aes.h index 40889e05..36ad7f46 100644 --- a/crypto_libraries/inc/nx_crypto_aes.h +++ b/crypto_libraries/inc/nx_crypto_aes.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,18 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto AES module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* moved inverse key expansion,*/ -/* added using RAM tables, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_AES_H diff --git a/crypto_libraries/inc/nx_crypto_cbc.h b/crypto_libraries/inc/nx_crypto_cbc.h index 38bc0fa0..d8b28b67 100644 --- a/crypto_libraries/inc/nx_crypto_cbc.h +++ b/crypto_libraries/inc/nx_crypto_cbc.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto CBC module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_CBC_H diff --git a/crypto_libraries/inc/nx_crypto_ccm.h b/crypto_libraries/inc/nx_crypto_ccm.h index 3ea081da..08609875 100644 --- a/crypto_libraries/inc/nx_crypto_ccm.h +++ b/crypto_libraries/inc/nx_crypto_ccm.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto CCM module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_CCM_H diff --git a/crypto_libraries/inc/nx_crypto_const.h b/crypto_libraries/inc/nx_crypto_const.h index 6b81e754..55f30b39 100644 --- a/crypto_libraries/inc/nx_crypto_const.h +++ b/crypto_libraries/inc/nx_crypto_const.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -35,25 +35,6 @@ /* */ /* This file defines the NetX Security Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* new constants, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), added */ -/* x25519 and x448 curves, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* EC curve type macro, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_CONST_H_ @@ -311,7 +292,7 @@ extern "C" { typedef UINT NX_CRYPTO_KEY_SIZE; #define NX_CRYPTO_SUCCESS 0x0 /* Function returned successfully. */ -#define NX_CRYPTO_INVALID_LIBRARY 0x20001 /* Crypto library has not been initialized or failed +#define NX_CRYPTO_INVALID_LIBRARY 0x20001 /* Crypto library has not been initialized or failed the Power On Self Test (POST). */ #define NX_CRYPTO_UNSUPPORTED_KEY_SIZE 0x20002 /* Unsupported key size. */ #define NX_CRYPTO_AUTHENTICATION_FAILED 0x20003 /* Authentication failed. */ diff --git a/crypto_libraries/inc/nx_crypto_ctr.h b/crypto_libraries/inc/nx_crypto_ctr.h index 85ca061f..4917f0cf 100644 --- a/crypto_libraries/inc/nx_crypto_ctr.h +++ b/crypto_libraries/inc/nx_crypto_ctr.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto CTR module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_CTR_H diff --git a/crypto_libraries/inc/nx_crypto_des.h b/crypto_libraries/inc/nx_crypto_des.h index c75a945e..377a6a09 100644 --- a/crypto_libraries/inc/nx_crypto_des.h +++ b/crypto_libraries/inc/nx_crypto_des.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -43,14 +43,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_DES_H_ diff --git a/crypto_libraries/inc/nx_crypto_dh.h b/crypto_libraries/inc/nx_crypto_dh.h index 32182ff6..9181dbf1 100644 --- a/crypto_libraries/inc/nx_crypto_dh.h +++ b/crypto_libraries/inc/nx_crypto_dh.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto DH module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_DH_H diff --git a/crypto_libraries/inc/nx_crypto_drbg.h b/crypto_libraries/inc/nx_crypto_drbg.h index e38b11a3..e7c15bae 100644 --- a/crypto_libraries/inc/nx_crypto_drbg.h +++ b/crypto_libraries/inc/nx_crypto_drbg.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto DRBG module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_DRBG_H diff --git a/crypto_libraries/inc/nx_crypto_ec.h b/crypto_libraries/inc/nx_crypto_ec.h index 21250f16..133b000a 100644 --- a/crypto_libraries/inc/nx_crypto_ec.h +++ b/crypto_libraries/inc/nx_crypto_ec.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,24 +36,6 @@ /* This file defines the symbols, structures and operations for */ /* Elliptic Curve Crypto. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* added public key validation,*/ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* added x25519 curve, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* added x448 curve, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_EC_H diff --git a/crypto_libraries/inc/nx_crypto_ecdh.h b/crypto_libraries/inc/nx_crypto_ecdh.h index 6d1cf40d..d5e9557d 100644 --- a/crypto_libraries/inc/nx_crypto_ecdh.h +++ b/crypto_libraries/inc/nx_crypto_ecdh.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,17 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto ECDH module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), supported*/ -/* x25519 and x448 curves, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_ECDH_H diff --git a/crypto_libraries/inc/nx_crypto_ecdsa.h b/crypto_libraries/inc/nx_crypto_ecdsa.h index c98dec44..45fa1c5a 100644 --- a/crypto_libraries/inc/nx_crypto_ecdsa.h +++ b/crypto_libraries/inc/nx_crypto_ecdsa.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,14 +40,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_ECDSA_H diff --git a/crypto_libraries/inc/nx_crypto_ecjpake.h b/crypto_libraries/inc/nx_crypto_ecjpake.h index 66bc4252..3ae02af5 100644 --- a/crypto_libraries/inc/nx_crypto_ecjpake.h +++ b/crypto_libraries/inc/nx_crypto_ecjpake.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the symbols, structures and operations for */ /* Elliptic Curve J-PAKE. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_ECJPAKE_H diff --git a/crypto_libraries/inc/nx_crypto_gcm.h b/crypto_libraries/inc/nx_crypto_gcm.h index 1560050e..2c3b524e 100644 --- a/crypto_libraries/inc/nx_crypto_gcm.h +++ b/crypto_libraries/inc/nx_crypto_gcm.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto GCM module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_GCM_H diff --git a/crypto_libraries/inc/nx_crypto_hkdf.h b/crypto_libraries/inc/nx_crypto_hkdf.h index 2a18ad3c..fcd1bff5 100644 --- a/crypto_libraries/inc/nx_crypto_hkdf.h +++ b/crypto_libraries/inc/nx_crypto_hkdf.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -42,14 +42,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_HKDF_H diff --git a/crypto_libraries/inc/nx_crypto_hmac.h b/crypto_libraries/inc/nx_crypto_hmac.h index f10e0a06..29cab5d1 100644 --- a/crypto_libraries/inc/nx_crypto_hmac.h +++ b/crypto_libraries/inc/nx_crypto_hmac.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto HMAC module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_HMAC_H diff --git a/crypto_libraries/inc/nx_crypto_hmac_md5.h b/crypto_libraries/inc/nx_crypto_hmac_md5.h index 75558f77..37874f51 100644 --- a/crypto_libraries/inc/nx_crypto_hmac_md5.h +++ b/crypto_libraries/inc/nx_crypto_hmac_md5.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -43,14 +43,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_HMAC_MD5_H diff --git a/crypto_libraries/inc/nx_crypto_hmac_sha1.h b/crypto_libraries/inc/nx_crypto_hmac_sha1.h index 0a607544..624b2901 100644 --- a/crypto_libraries/inc/nx_crypto_hmac_sha1.h +++ b/crypto_libraries/inc/nx_crypto_hmac_sha1.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -43,14 +43,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_HMAC_SHA1_H diff --git a/crypto_libraries/inc/nx_crypto_hmac_sha2.h b/crypto_libraries/inc/nx_crypto_hmac_sha2.h index 994f28c1..96e431e8 100644 --- a/crypto_libraries/inc/nx_crypto_hmac_sha2.h +++ b/crypto_libraries/inc/nx_crypto_hmac_sha2.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -43,14 +43,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_HMAC_SHA2_H diff --git a/crypto_libraries/inc/nx_crypto_hmac_sha5.h b/crypto_libraries/inc/nx_crypto_hmac_sha5.h index 522890a5..f1471d72 100644 --- a/crypto_libraries/inc/nx_crypto_hmac_sha5.h +++ b/crypto_libraries/inc/nx_crypto_hmac_sha5.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -43,14 +43,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_HMAC_SHA5_H diff --git a/crypto_libraries/inc/nx_crypto_huge_number.h b/crypto_libraries/inc/nx_crypto_huge_number.h index a8a741ea..70440ed7 100644 --- a/crypto_libraries/inc/nx_crypto_huge_number.h +++ b/crypto_libraries/inc/nx_crypto_huge_number.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,18 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto huge number module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed number initialization,*/ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), and */ -/* used ULONG64_DEFINED macro, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_HUGE_NUMBER_H diff --git a/crypto_libraries/inc/nx_crypto_md5.h b/crypto_libraries/inc/nx_crypto_md5.h index 09db0983..77aff680 100644 --- a/crypto_libraries/inc/nx_crypto_md5.h +++ b/crypto_libraries/inc/nx_crypto_md5.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_MD5_H diff --git a/crypto_libraries/inc/nx_crypto_method_self_test.h b/crypto_libraries/inc/nx_crypto_method_self_test.h index db76f859..c98d4cd5 100644 --- a/crypto_libraries/inc/nx_crypto_method_self_test.h +++ b/crypto_libraries/inc/nx_crypto_method_self_test.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/crypto_libraries/inc/nx_crypto_null.h b/crypto_libraries/inc/nx_crypto_null.h index 0498e7e7..ba9b8a58 100644 --- a/crypto_libraries/inc/nx_crypto_null.h +++ b/crypto_libraries/inc/nx_crypto_null.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto NULL module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_NULL_H diff --git a/crypto_libraries/inc/nx_crypto_phash.h b/crypto_libraries/inc/nx_crypto_phash.h index dd48de08..200670ba 100644 --- a/crypto_libraries/inc/nx_crypto_phash.h +++ b/crypto_libraries/inc/nx_crypto_phash.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -52,14 +52,6 @@ extern "C" { /* 4346, and 5246. It is used in the TLS PRF function as a wrapper to */ /* various hash routines to generate arbitrary-length data. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ typedef struct NX_CRYPTO_PHASH_STRUCT { diff --git a/crypto_libraries/inc/nx_crypto_pkcs1_v1.5.h b/crypto_libraries/inc/nx_crypto_pkcs1_v1.5.h index 426c34f3..220808d3 100644 --- a/crypto_libraries/inc/nx_crypto_pkcs1_v1.5.h +++ b/crypto_libraries/inc/nx_crypto_pkcs1_v1.5.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -50,14 +50,6 @@ extern "C" { /* This file defines PKCS#1v1.5 signature encoding function used by */ /* TLS and other protocols for encoding encrypted signatures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ typedef struct NX_CRYPTO_PKCS1_STRUCT diff --git a/crypto_libraries/inc/nx_crypto_rsa.h b/crypto_libraries/inc/nx_crypto_rsa.h index 18a02723..609e9198 100644 --- a/crypto_libraries/inc/nx_crypto_rsa.h +++ b/crypto_libraries/inc/nx_crypto_rsa.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto RSA module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_RSA_H diff --git a/crypto_libraries/inc/nx_crypto_sha1.h b/crypto_libraries/inc/nx_crypto_sha1.h index 685264a0..faba3376 100644 --- a/crypto_libraries/inc/nx_crypto_sha1.h +++ b/crypto_libraries/inc/nx_crypto_sha1.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,14 +69,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SHA1_H diff --git a/crypto_libraries/inc/nx_crypto_sha2.h b/crypto_libraries/inc/nx_crypto_sha2.h index bba56da2..9603703c 100644 --- a/crypto_libraries/inc/nx_crypto_sha2.h +++ b/crypto_libraries/inc/nx_crypto_sha2.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,14 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ diff --git a/crypto_libraries/inc/nx_crypto_sha5.h b/crypto_libraries/inc/nx_crypto_sha5.h index 3c0bdd59..edc76af0 100644 --- a/crypto_libraries/inc/nx_crypto_sha5.h +++ b/crypto_libraries/inc/nx_crypto_sha5.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,17 +38,6 @@ /* It is assumed that nx_api.h and nx_port.h have already been */ /* included. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), and */ -/* used ULONG64_DEFINED macro, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ diff --git a/crypto_libraries/inc/nx_crypto_tls_prf_1.h b/crypto_libraries/inc/nx_crypto_tls_prf_1.h index 8d44dc3e..2c35de1e 100644 --- a/crypto_libraries/inc/nx_crypto_tls_prf_1.h +++ b/crypto_libraries/inc/nx_crypto_tls_prf_1.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -49,14 +49,6 @@ extern "C" { /* in RFCs 2246 and 4346. This PRF is used for all key generation in */ /* TLS versions 1.0 and 1.1. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ /* Define the control block structure for backward compatibility. */ diff --git a/crypto_libraries/inc/nx_crypto_tls_prf_sha256.h b/crypto_libraries/inc/nx_crypto_tls_prf_sha256.h index ee40249f..9da599ee 100644 --- a/crypto_libraries/inc/nx_crypto_tls_prf_sha256.h +++ b/crypto_libraries/inc/nx_crypto_tls_prf_sha256.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -49,14 +49,6 @@ extern "C" { /* version 1.2. Ciphersuites may choose their own PRF in TLS version */ /* 1.2 as well. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ /* Define the control block structure for backward compatibility. */ diff --git a/crypto_libraries/inc/nx_crypto_tls_prf_sha384.h b/crypto_libraries/inc/nx_crypto_tls_prf_sha384.h index 8b853212..82ac33ca 100644 --- a/crypto_libraries/inc/nx_crypto_tls_prf_sha384.h +++ b/crypto_libraries/inc/nx_crypto_tls_prf_sha384.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -48,14 +48,6 @@ extern "C" { /* version 1.2. Ciphersuites may choose their own PRF in TLS version */ /* 1.2 as well. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ typedef struct NX_CRYPTO_TLS_PRF_SHA384_STRUCT diff --git a/crypto_libraries/inc/nx_crypto_tls_prf_sha512.h b/crypto_libraries/inc/nx_crypto_tls_prf_sha512.h index ce79ba26..1f73a70d 100644 --- a/crypto_libraries/inc/nx_crypto_tls_prf_sha512.h +++ b/crypto_libraries/inc/nx_crypto_tls_prf_sha512.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -48,14 +48,6 @@ extern "C" { /* version 1.2. Ciphersuites may choose their own PRF in TLS version */ /* 1.2 as well. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ typedef struct NX_CRYPTO_TLS_PRF_SHA512_STRUCT diff --git a/crypto_libraries/inc/nx_crypto_xcbc_mac.h b/crypto_libraries/inc/nx_crypto_xcbc_mac.h index 99c2f4db..f637855b 100644 --- a/crypto_libraries/inc/nx_crypto_xcbc_mac.h +++ b/crypto_libraries/inc/nx_crypto_xcbc_mac.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file defines the basic Application Interface (API) to the */ /* NetX Crypto XCBC MAC module. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_XCBC_MAC_H diff --git a/crypto_libraries/ports/cortex_m3/ac5/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m3/ac5/inc/nx_crypto_port.h index eb5b64a4..f8d0365f 100644 --- a/crypto_libraries/ports/cortex_m3/ac5/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m3/ac5/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 08-02-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m3/ac6/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m3/ac6/inc/nx_crypto_port.h index 78d83f43..6140f9a4 100644 --- a/crypto_libraries/ports/cortex_m3/ac6/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m3/ac6/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Bhupendra Naphade Initial Version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m3/gnu/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m3/gnu/inc/nx_crypto_port.h index 5b89be63..90e0c9ed 100644 --- a/crypto_libraries/ports/cortex_m3/gnu/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m3/gnu/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m3/iar/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m3/iar/inc/nx_crypto_port.h index 42adee14..08144d97 100644 --- a/crypto_libraries/ports/cortex_m3/iar/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m3/iar/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m3/keil/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m3/keil/inc/nx_crypto_port.h index 5ac37614..e9605b01 100644 --- a/crypto_libraries/ports/cortex_m3/keil/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m3/keil/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 08-02-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m4/ac5/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m4/ac5/inc/nx_crypto_port.h index 2ec4d847..3d1fe45e 100644 --- a/crypto_libraries/ports/cortex_m4/ac5/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m4/ac5/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 08-02-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m4/ac6/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m4/ac6/inc/nx_crypto_port.h index 22de0d17..e3756301 100644 --- a/crypto_libraries/ports/cortex_m4/ac6/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m4/ac6/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Bhupendra Naphade Initial Version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m4/gnu/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m4/gnu/inc/nx_crypto_port.h index f3e5b487..17636346 100644 --- a/crypto_libraries/ports/cortex_m4/gnu/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m4/gnu/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m4/iar/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m4/iar/inc/nx_crypto_port.h index ed27a160..cbd61a9c 100644 --- a/crypto_libraries/ports/cortex_m4/iar/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m4/iar/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m4/keil/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m4/keil/inc/nx_crypto_port.h index f840983d..ccc61a4d 100644 --- a/crypto_libraries/ports/cortex_m4/keil/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m4/keil/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 08-02-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m7/ac5/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m7/ac5/inc/nx_crypto_port.h index 114ff3f1..0644185e 100644 --- a/crypto_libraries/ports/cortex_m7/ac5/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m7/ac5/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 08-02-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m7/ac6/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m7/ac6/inc/nx_crypto_port.h index 017c963b..a2dca455 100644 --- a/crypto_libraries/ports/cortex_m7/ac6/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m7/ac6/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 08-02-2021 Bhupendra Naphade Initial Version 6.1.8 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m7/gnu/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m7/gnu/inc/nx_crypto_port.h index 88cd6684..a950b628 100644 --- a/crypto_libraries/ports/cortex_m7/gnu/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m7/gnu/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/cortex_m7/iar/inc/nx_crypto_port.h b/crypto_libraries/ports/cortex_m7/iar/inc/nx_crypto_port.h index 5ecf5c50..87c5fc6d 100644 --- a/crypto_libraries/ports/cortex_m7/iar/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/cortex_m7/iar/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/linux/gnu/inc/nx_crypto_port.h b/crypto_libraries/ports/linux/gnu/inc/nx_crypto_port.h index 4b84088d..c6244a53 100644 --- a/crypto_libraries/ports/linux/gnu/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/linux/gnu/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/ports/win32/vs_2019/inc/nx_crypto_port.h b/crypto_libraries/ports/win32/vs_2019/inc/nx_crypto_port.h index a000f409..70dc5271 100644 --- a/crypto_libraries/ports/win32/vs_2019/inc/nx_crypto_port.h +++ b/crypto_libraries/ports/win32/vs_2019/inc/nx_crypto_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,12 +36,6 @@ /* This file contains data type definitions for the NetX Security */ /* Encryption component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef _NX_CRYPTO_PORT_H_ diff --git a/crypto_libraries/src/nx_crypto_3des.c b/crypto_libraries/src/nx_crypto_3des.c index 12fe28c7..0070863f 100644 --- a/crypto_libraries/src/nx_crypto_3des.c +++ b/crypto_libraries/src/nx_crypto_3des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -56,18 +56,6 @@ /* */ /* _nx_crypto_method_3des_init Init the method for 3DES */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_3des_key_set(NX_CRYPTO_3DES *context, UCHAR key[24]) { @@ -118,18 +106,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_3des_key_set(NX_CRYPTO_3DES *context, UCHAR key[ /* */ /* _nx_crypto_method_3des_operation Handle 3DES encrypt or decrypt*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_3des_encrypt(NX_CRYPTO_3DES *context, UCHAR source[8], UCHAR destination[8], UINT length) @@ -184,18 +160,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_3des_encrypt(NX_CRYPTO_3DES *context, UCHAR sour /* */ /* _nx_crypto_method_3des_operation Handle 3DES encrypt or decrypt*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_3des_decrypt(NX_CRYPTO_3DES *context, UCHAR source[8], UCHAR destination[8], UINT length) @@ -254,20 +218,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_3des_decrypt(NX_CRYPTO_3DES *context, UCHAR sour /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_3des_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -343,14 +293,6 @@ NX_CRYPTO_3DES *triple_des_context_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_3des_cleanup(VOID *crypto_metadata) { @@ -416,20 +358,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_3des_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_3des_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handler, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_aes.c b/crypto_libraries/src/nx_crypto_aes.c index 61eb521b..38a7dc69 100644 --- a/crypto_libraries/src/nx_crypto_aes.c +++ b/crypto_libraries/src/nx_crypto_aes.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -439,19 +439,6 @@ extern UINT _nx_crypto_library_state; /* _nx_crypto_aes_encrypt Perform AES mode encryption */ /* _nx_crypto_aes_decrypt Perform AES mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), updated */ -/* constants and conditionals, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_add_round_key(NX_CRYPTO_AES *aes_ptr, UINT *round_key) { @@ -502,14 +489,6 @@ UINT i; /* */ /* _nx_crypto_aes_encrypt Perform AES mode encryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_sub_shift_roundkey(NX_CRYPTO_AES *aes_ptr, UINT *round_key) { @@ -594,14 +573,6 @@ UCHAR *S; /* */ /* _nx_crypto_aes_decrypt Perform AES mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_inv_sub_shift_roundkey(NX_CRYPTO_AES *aes_ptr, UINT *round_key) { @@ -710,14 +681,6 @@ UCHAR *S; /* */ /* _nx_crypto_aes_encrypt Perform AES mode encryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_encryption_round(NX_CRYPTO_AES *aes_ptr, int num_rounds) { @@ -893,15 +856,6 @@ int round; /* */ /* _nx_crypto_aes_decrypt Perform AES mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), updated */ -/* constants, resulting */ -/* in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_decryption_round(NX_CRYPTO_AES *aes_ptr, int round) { @@ -1038,15 +992,6 @@ ULONG val; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_aes_encrypt(NX_CRYPTO_AES *aes_ptr, UCHAR *input, UCHAR *output, UINT length) { @@ -1167,14 +1112,6 @@ UINT *buf; /* */ /* _nx_crypto_aes_key_expansion AES key expansion */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static UINT _nx_crypto_aes_subword(UINT word) { @@ -1218,14 +1155,6 @@ UINT result; /* */ /* _nx_crypto_aes_key_set Set AES crypto key */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_key_expansion(NX_CRYPTO_AES *aes_ptr) { @@ -1343,17 +1272,6 @@ UINT key_size; /* */ /* _nx_crypto_aes_key_set Set AES crypto key */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* moved inverse key expansion,*/ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_aes_key_expansion_inverse(NX_CRYPTO_AES *aes_ptr) { @@ -1494,17 +1412,6 @@ ULONG key; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* moved inverse key expansion,*/ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_aes_decrypt(NX_CRYPTO_AES *aes_ptr, UCHAR *input, UCHAR *output, UINT length) { @@ -1521,7 +1428,7 @@ UINT *buf; NX_CRYPTO_PARAMETER_NOT_USED(length); - /* If the flag is not set, we assume the inverse key expansion + /* If the flag is not set, we assume the inverse key expansion table is not created yet. Call the routine to create one. */ if(aes_ptr -> nx_crypto_aes_inverse_key_expanded == 0) { @@ -1643,17 +1550,6 @@ UINT *buf; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* moved inverse key expansion,*/ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_aes_key_set(NX_CRYPTO_AES *aes_ptr, UCHAR *key, UINT key_size) { @@ -1689,7 +1585,7 @@ UINT i; _nx_crypto_aes_key_expansion(aes_ptr); - /* Move key_expansion_inverse into the decrypt logic. + /* Move key_expansion_inverse into the decrypt logic. No reason to build the inverse table if the application doesn't do decryption. */ /* Clear the inverse key expansion flag; */ aes_ptr -> nx_crypto_aes_inverse_key_expanded = 0; @@ -1732,16 +1628,6 @@ UINT i; /* */ /* _nx_crypto_method_aes_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -1815,14 +1701,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_init(struct NX_CRYPTO_METHOD_STRUCT * /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_cleanup(VOID *crypto_metadata) { @@ -1891,16 +1769,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ @@ -2038,16 +1906,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_cbc_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ @@ -2214,19 +2072,6 @@ UINT status; /* _nx_crypto_method_aes_operation Handle AES encrypt or decrypt */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_ccm_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ @@ -2516,16 +2361,6 @@ UINT status; /* _nx_crypto_method_aes_operation Handle AES encrypt or decrypt */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_gcm_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ @@ -2813,16 +2648,6 @@ UINT status; /* _nx_crypto_method_aes_operation Handle AES encrypt or decrypt */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_ctr_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ @@ -2965,16 +2790,6 @@ UINT status; /* _nx_crypto_method_aes_operation Handle AES encrypt or decrypt */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_xcbc_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_cbc.c b/crypto_libraries/src/nx_crypto_cbc.c index 128345be..32e25dd1 100644 --- a/crypto_libraries/src/nx_crypto_cbc.c +++ b/crypto_libraries/src/nx_crypto_cbc.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -56,12 +56,6 @@ /* _nx_crypto_cbc_encrypt Perform CBC mode encryption */ /* _nx_crypto_cbc_decrypt Perform CBC mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_cbc_xor(UCHAR *plaintext, UCHAR *key, UCHAR *ciphertext, UCHAR block_size) { @@ -114,16 +108,6 @@ UINT i; /* _nx_crypto_method_des_operation Handle DES encrypt or decrypt */ /* _nx_crypto_method_3des_operation Handle 3DES encrypt or decrypt*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* and updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_cbc_encrypt(VOID *crypto_metadata, NX_CRYPTO_CBC *cbc_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -215,16 +199,6 @@ UINT i; /* _nx_crypto_method_des_operation Handle DES encrypt or decrypt */ /* _nx_crypto_method_3des_operation Handle 3DES encrypt or decrypt*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* and updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_cbc_decrypt(VOID *crypto_metadata, NX_CRYPTO_CBC *cbc_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -310,15 +284,6 @@ UINT i; /* _nx_crypto_method_des_operation Handle DES encrypt or decrypt */ /* _nx_crypto_method_3des_operation Handle 3DES encrypt or decrypt*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_cbc_encrypt_init(NX_CRYPTO_CBC *cbc_metadata, UCHAR *iv, UINT iv_len) { diff --git a/crypto_libraries/src/nx_crypto_ccm.c b/crypto_libraries/src/nx_crypto_ccm.c index 79d5ccaf..cf8e1a75 100644 --- a/crypto_libraries/src/nx_crypto_ccm.c +++ b/crypto_libraries/src/nx_crypto_ccm.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -55,15 +55,6 @@ /* _nx_crypto_ccm_cbc_pad Compute CBC-MAC value with */ /* padding for CCM mode */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_ccm_xor(UCHAR *plaintext, UCHAR *key, UCHAR *ciphertext) { @@ -134,15 +125,6 @@ UINT *k = (UINT *)key; /* */ /* _nx_crypto_ccm_authentication Perform CCM authentication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_ccm_cbc_pad(VOID *crypto_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -287,15 +269,6 @@ UCHAR temp_len = 0; /* */ /* _nx_crypto_method_aes_ccm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ccm_encrypt_init(VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -374,14 +347,6 @@ UCHAR *A = ccm_metadata -> nx_crypto_ccm_A; /* */ /* _nx_crypto_method_aes_ccm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ccm_encrypt_update(UINT op, VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -484,15 +449,6 @@ UINT i = 0, k = 0; /* */ /* _nx_crypto_method_aes_ccm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ccm_encrypt_calculate(VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -566,15 +522,6 @@ UINT i; /* */ /* _nx_crypto_method_aes_ccm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ccm_decrypt_calculate(VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), diff --git a/crypto_libraries/src/nx_crypto_ctr.c b/crypto_libraries/src/nx_crypto_ctr.c index 741c5ee9..b05a6a4b 100644 --- a/crypto_libraries/src/nx_crypto_ctr.c +++ b/crypto_libraries/src/nx_crypto_ctr.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,15 +54,6 @@ /* */ /* _nx_crypto_ctr_encrypt Perform CTR mode encryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_ctr_xor(UCHAR *plaintext, UCHAR *key, UCHAR *ciphertext) { @@ -125,14 +116,6 @@ UINT *k = (UINT *)key; /* */ /* _nx_crypto_ctr_encrypt Perform CTR mode encryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_ctr_add_one(UCHAR *control_block) { @@ -197,15 +180,6 @@ USHORT result; /* */ /* _nx_crypto_method_aes_ctr_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ctr_encrypt(VOID *crypto_metadata, NX_CRYPTO_CTR *ctr_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -281,15 +255,6 @@ UINT i; /* */ /* _nx_crypto_method_aes_ctr_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ctr_encrypt_init(NX_CRYPTO_CTR *ctr_metadata, UCHAR *iv, UINT iv_len, UCHAR *nonce, UINT nonce_len) diff --git a/crypto_libraries/src/nx_crypto_des.c b/crypto_libraries/src/nx_crypto_des.c index 652ea011..e8b1a738 100644 --- a/crypto_libraries/src/nx_crypto_des.c +++ b/crypto_libraries/src/nx_crypto_des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -188,14 +188,6 @@ static const ULONG right_half_bit_swap[16] = /* _nx_crypto_3des_key_set Set the key for 3DES */ /* _nx_crypto_method_des_init Init the method for DES */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_des_key_set(NX_CRYPTO_DES *context, UCHAR key[8]) { @@ -347,19 +339,6 @@ UINT round; /* _nx_crypto_3des_encrypt Perform 3DES mode encryption */ /* _nx_crypto_3des_decrypt Perform 3DES mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* updated constants, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_des_encrypt(NX_CRYPTO_DES *context, UCHAR source[8], UCHAR destination[8], UINT length) { @@ -409,19 +388,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_des_encrypt(NX_CRYPTO_DES *context, UCHAR source /* _nx_crypto_3des_encrypt Perform 3DES mode encryption */ /* _nx_crypto_3des_decrypt Perform 3DES mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* updated constants, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_des_decrypt(NX_CRYPTO_DES *context, UCHAR source[8], UCHAR destination[8], UINT length) { @@ -471,14 +437,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_des_decrypt(NX_CRYPTO_DES *context, UCHAR source /* _nx_crypto_des_encrypt Perform DES mode encryption */ /* _nx_crypto_des_decrypt Perform DES mode decryption */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_des_process_block(UCHAR source[8], UCHAR destination[8], ULONG keys[32]) { @@ -605,20 +563,6 @@ UINT round; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_des_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, VOID **handle, @@ -686,14 +630,6 @@ NX_CRYPTO_DES *des_context_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_des_cleanup(VOID *crypto_metadata) { @@ -759,20 +695,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_des_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* resulting in version 6.1.11 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_des_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handler, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_dh.c b/crypto_libraries/src/nx_crypto_dh.c index 51f3ed59..33ef1fd3 100644 --- a/crypto_libraries/src/nx_crypto_dh.c +++ b/crypto_libraries/src/nx_crypto_dh.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -101,18 +101,6 @@ static const HN_UBASE _nx_dh_group_2_modulus[] = /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_dh_setup(NX_CRYPTO_DH *dh_ptr, UCHAR *local_public_key_ptr, @@ -240,14 +228,6 @@ HN_UBASE generator_value; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_dh_compute_secret(NX_CRYPTO_DH *dh_ptr, UCHAR *share_secret_key_ptr, diff --git a/crypto_libraries/src/nx_crypto_drbg.c b/crypto_libraries/src/nx_crypto_drbg.c index c612566b..85aa4748 100644 --- a/crypto_libraries/src/nx_crypto_drbg.c +++ b/crypto_libraries/src/nx_crypto_drbg.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,14 +76,6 @@ static UINT _nx_crypto_drbg_block_cipher_df(NX_CRYPTO_DRBG *drbg_ptr, UINT input /* */ /* _nx_crypto_drbg_generate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_drbg_ctr_add_one(UCHAR *ctr) { @@ -131,16 +123,6 @@ INT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), verified */ -/* memcpy use cases, disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static UINT _nx_crypto_drbg_update(NX_CRYPTO_DRBG *drbg_ptr, UCHAR *provided_data) { @@ -262,16 +244,6 @@ VOID *handler = NX_CRYPTO_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), verified */ -/* memcpy use cases, disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_drbg_instantiate(NX_CRYPTO_DRBG *drbg_ptr, UCHAR *nonce, @@ -403,16 +375,6 @@ UINT entropy_len; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), verified */ -/* memcpy use cases, disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_drbg_reseed(NX_CRYPTO_DRBG *drbg_ptr, UCHAR *additional_input, @@ -530,15 +492,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_drbg_generate(NX_CRYPTO_DRBG *drbg_ptr, UCHAR *output, UINT output_length_in_byte, @@ -730,16 +683,6 @@ VOID *handler = NX_CRYPTO_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* and updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static UINT _nx_crypto_drbg_block_cipher_df(NX_CRYPTO_DRBG *drbg_ptr, UINT input_len, UCHAR *output, UINT output_len) @@ -952,16 +895,6 @@ VOID *handler = NX_CRYPTO_NULL; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_drbg_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -1026,14 +959,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_drbg_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_drbg_cleanup(VOID *crypto_metadata) { @@ -1096,16 +1021,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_drbg_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_drbg_operation(UINT op, VOID *handle, diff --git a/crypto_libraries/src/nx_crypto_ec.c b/crypto_libraries/src/nx_crypto_ec.c index 2e919cf2..92e4ce17 100644 --- a/crypto_libraries/src/nx_crypto_ec.c +++ b/crypto_libraries/src/nx_crypto_ec.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -732,14 +732,6 @@ static NX_CRYPTO_CONST NX_CRYPTO_EC *_nx_crypto_ec_named_curves[] = /* _nx_crypto_ec_fp_projective_double Perform doubling for points of*/ /* projective */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ec_point_is_infinite(NX_CRYPTO_EC_POINT *point) { @@ -796,14 +788,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_ec_point_is_infinite(NX_CRYPTO_EC_POINT *point) /* Convert point from projective */ /* to affine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_set_infinite(NX_CRYPTO_EC_POINT *point) { @@ -854,15 +838,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_set_infinite(NX_CRYPTO_EC_POINT *point) /* _nx_crypto_ecjpake_key_exchange_process */ /* Process key exchange message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), updated */ -/* constants, resulting */ -/* in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ec_point_setup(NX_CRYPTO_EC_POINT *point, UCHAR *byte_stream, UINT byte_stream_size) { @@ -929,14 +904,6 @@ UINT status; /* _nx_crypto_ecjpake_schnorr_zkp_hash Perform Schnorr ZKP hash */ /* calculation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_extract_uncompressed(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *point, UCHAR *byte_stream, UINT byte_stream_size, @@ -1013,14 +980,6 @@ UINT clen; /* _nx_crypto_ec_fp_projective_add Perform addition for points of*/ /* projective and affine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_fp_affine_to_projective(NX_CRYPTO_EC_POINT *point) { @@ -1073,14 +1032,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_fp_affine_to_projective(NX_CRYPTO_EC_POI /* _nx_crypto_ec_fp_projective_multiple Calculate the projective */ /* multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_fp_projective_to_affine(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *point, @@ -1168,18 +1119,6 @@ UINT buffer_size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_secp192r1_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *value, @@ -1305,18 +1244,6 @@ UINT compare_value; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_secp224r1_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *value, @@ -1448,18 +1375,6 @@ UINT compare_value; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_secp256r1_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *value, @@ -1613,18 +1528,6 @@ UINT compare_value; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_secp384r1_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *value, @@ -1789,15 +1692,6 @@ UINT compare_value; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_secp521r1_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *value, @@ -1903,18 +1797,6 @@ UINT compare_value; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SELF_TEST NX_CRYPTO_KEEP VOID _nx_crypto_ec_add_digit_reduce(NX_CRYPTO_EC *curve, @@ -1972,14 +1854,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_add_digit_reduce(NX_CRYPTO_EC *curve, /* _nx_crypto_ec_fp_affine_add Perform addition for points of*/ /* affine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_subtract_digit_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *value, @@ -2028,18 +1902,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_subtract_digit_reduce(NX_CRYPTO_EC *curve, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SELF_TEST NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_reduce(NX_CRYPTO_EC *curve, @@ -2095,14 +1957,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_reduce(NX_CRYPTO_EC *curve, /* _nx_crypto_ec_fp_projective_double Perform doubling for points of*/ /* projective */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_add_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *left, @@ -2169,14 +2023,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_add_reduce(NX_CRYPTO_EC *curve, /* _nx_crypto_ec_fp_projective_multiple Calculate the projective */ /* multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_subtract_reduce(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *left, @@ -2242,14 +2088,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_ec_subtract_reduce(NX_CRYPTO_EC *curve, /* _nx_crypto_ec_fp_projective_multiple Calculate the projective */ /* multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_projective_add(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *projective_point, @@ -2392,14 +2230,6 @@ UINT buffer_size; /* _nx_crypto_ec_fp_projective_multiple Calculate the projective */ /* multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_projective_double(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *projective_point, @@ -2529,14 +2359,6 @@ UINT buffer_size; /* _nx_crypto_ec_fp_affine_subtract Perform subtraction for points*/ /* of affine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_affine_add(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *left, @@ -2651,14 +2473,6 @@ UINT buffer_size; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_affine_subtract(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *left, @@ -2711,14 +2525,6 @@ NX_CRYPTO_EC_POINT point; /* _nx_crypto_ec_fp_projective_multiple Calculate the projective */ /* multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_naf_compute(NX_CRYPTO_HUGE_NUMBER *d, HN_UBASE *naf_data, UINT *naf_size) { @@ -2855,14 +2661,6 @@ UINT i, j; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_projective_multiple(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *g, @@ -2988,14 +2786,6 @@ UINT bit; /* _nx_crypto_ec_fp_projective_multiple Calculate the projective */ /* multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_fp_fixed_multiple(NX_CRYPTO_EC *curve, NX_CRYPTO_HUGE_NUMBER *d, @@ -3135,14 +2925,6 @@ UINT j; /* Application Code */ /* _nx_crypto_ec_key_pair_stream_generate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ec_key_pair_generation_extra(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *g, @@ -3228,14 +3010,6 @@ NX_CRYPTO_HUGE_NUMBER modulus; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ec_key_pair_stream_generate(NX_CRYPTO_EC *curve, UCHAR *output, @@ -3334,18 +3108,6 @@ NX_CRYPTO_EC_POINT public_key; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SELF_TEST NX_CRYPTO_KEEP VOID _nx_crypto_ec_precomputation(NX_CRYPTO_EC *curve, @@ -3518,18 +3280,6 @@ UINT i, j; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SELF_TEST NX_CRYPTO_KEEP VOID _nx_crypto_ec_fixed_output(NX_CRYPTO_EC *curve, @@ -3766,19 +3516,6 @@ const CHAR *array_name[] = {"", "_2e"}; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), updated */ -/* constants, resulting */ -/* in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SELF_TEST NX_CRYPTO_KEEP UINT _nx_crypto_ec_get_named_curve(NX_CRYPTO_EC **curve, UINT curve_id) @@ -3841,14 +3578,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp192r1_operation(UINT op, VOID *handle, @@ -3929,14 +3658,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp192r1_operation(UINT op, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp224r1_operation(UINT op, VOID *handle, @@ -4016,14 +3737,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp224r1_operation(UINT op, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp256r1_operation(UINT op, VOID *handle, @@ -4103,14 +3816,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp256r1_operation(UINT op, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp384r1_operation(UINT op, VOID *handle, @@ -4190,14 +3895,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp384r1_operation(UINT op, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp521r1_operation(UINT op, VOID *handle, @@ -4273,15 +3970,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_secp521r1_operation(UINT op, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_ECC_DISABLE_KEY_VALIDATION UINT _nx_crypto_ec_validate_public_key(NX_CRYPTO_EC_POINT *public_key, @@ -4563,15 +4251,6 @@ NX_CRYPTO_CONST NX_CRYPTO_EC _nx_crypto_ec_x448 = /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* added x448 curve, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_x25519_448_multiple(NX_CRYPTO_EC* curve, NX_CRYPTO_EC_POINT* u, @@ -4759,12 +4438,6 @@ HN_UBASE* k_buf; /* */ /* _nx_crypto_ec_x25519_448_multiple Scalar multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ec_cswap(UINT swap, NX_CRYPTO_HUGE_NUMBER *h1, NX_CRYPTO_HUGE_NUMBER *h2) { @@ -4834,12 +4507,6 @@ HN_UBASE dummy; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_x25519_operation(UINT op, VOID *handle, @@ -4919,12 +4586,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_x25519_operation(UINT op, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 07-29-2022 Yuxin Zhou Initial Version 6.1.12 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_x448_operation(UINT op, VOID *handle, @@ -4996,15 +4657,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ec_x448_operation(UINT op, /* */ /* _nx_crypto_ecdh_setup_x25519_448 Setup ECDH local key pair */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* added x448 curve, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ec_key_pair_generation_x25519_448(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *g, @@ -5067,12 +4719,6 @@ UINT buffer_size = (curve -> nx_crypto_ec_bits + 7) >> 3; /* _nx_crypto_ecdh_compute_secret_x25519_448 */ /* Compute ECDH shared secret */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ec_extract_fixed_size_le(NX_CRYPTO_HUGE_NUMBER *number, UCHAR *byte_stream, UINT byte_stream_size) diff --git a/crypto_libraries/src/nx_crypto_ec_secp192r1_fixed_points.c b/crypto_libraries/src/nx_crypto_ec_secp192r1_fixed_points.c index 4f4b6ecb..2e5af80b 100644 --- a/crypto_libraries/src/nx_crypto_ec_secp192r1_fixed_points.c +++ b/crypto_libraries/src/nx_crypto_ec_secp192r1_fixed_points.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/crypto_libraries/src/nx_crypto_ec_secp224r1_fixed_points.c b/crypto_libraries/src/nx_crypto_ec_secp224r1_fixed_points.c index acb8f2e7..0c2a27b7 100644 --- a/crypto_libraries/src/nx_crypto_ec_secp224r1_fixed_points.c +++ b/crypto_libraries/src/nx_crypto_ec_secp224r1_fixed_points.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/crypto_libraries/src/nx_crypto_ec_secp256r1_fixed_points.c b/crypto_libraries/src/nx_crypto_ec_secp256r1_fixed_points.c index 97699471..e1aff741 100644 --- a/crypto_libraries/src/nx_crypto_ec_secp256r1_fixed_points.c +++ b/crypto_libraries/src/nx_crypto_ec_secp256r1_fixed_points.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/crypto_libraries/src/nx_crypto_ec_secp384r1_fixed_points.c b/crypto_libraries/src/nx_crypto_ec_secp384r1_fixed_points.c index 7ac604af..71315aca 100644 --- a/crypto_libraries/src/nx_crypto_ec_secp384r1_fixed_points.c +++ b/crypto_libraries/src/nx_crypto_ec_secp384r1_fixed_points.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/crypto_libraries/src/nx_crypto_ec_secp521r1_fixed_points.c b/crypto_libraries/src/nx_crypto_ec_secp521r1_fixed_points.c index d1e307a5..64ffd2f7 100644 --- a/crypto_libraries/src/nx_crypto_ec_secp521r1_fixed_points.c +++ b/crypto_libraries/src/nx_crypto_ec_secp521r1_fixed_points.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/crypto_libraries/src/nx_crypto_ecdh.c b/crypto_libraries/src/nx_crypto_ecdh.c index b966b445..e52677d9 100644 --- a/crypto_libraries/src/nx_crypto_ecdh.c +++ b/crypto_libraries/src/nx_crypto_ecdh.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_key_pair_import(NX_CRYPTO_ECDH *ecdh_ptr, NX_CRYPTO_EC *curve, @@ -145,14 +137,6 @@ NX_CRYPTO_HUGE_NUMBER private_key; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_ecdh_private_key_export(NX_CRYPTO_ECDH *ecdh_ptr, UCHAR *local_private_key_ptr, @@ -242,14 +226,6 @@ NX_CRYPTO_HUGE_NUMBER private_key; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_setup(NX_CRYPTO_ECDH *ecdh_ptr, UCHAR *local_public_key_ptr, @@ -350,15 +326,6 @@ NX_CRYPTO_EC_POINT public_key; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* added public key validation,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_compute_secret(NX_CRYPTO_ECDH *ecdh_ptr, UCHAR *share_secret_key_ptr, @@ -478,16 +445,6 @@ NX_CRYPTO_EC_POINT public_key, shared_secret; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdh_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -552,14 +509,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdh_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdh_cleanup(VOID *crypto_metadata) { @@ -624,16 +573,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdh_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdh_operation(UINT op, VOID *handle, @@ -855,12 +794,6 @@ NX_CRYPTO_EXTENDED_OUTPUT /* */ /* _nx_crypto_method_ecdh_operation Perform ECDH operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_key_pair_import_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, NX_CRYPTO_EC *curve, @@ -929,12 +862,6 @@ UINT key_len; /* */ /* _nx_crypto_method_ecdh_operation Perform ECDH operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_private_key_export_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, UCHAR *local_private_key_ptr, @@ -1011,15 +938,6 @@ NX_CRYPTO_EC *curve; /* */ /* _nx_crypto_method_ecdh_operation Perform ECDH operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* added x448 curve, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_setup_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, UCHAR *local_public_key_ptr, @@ -1118,12 +1036,6 @@ NX_CRYPTO_EC_POINT public_key; /* */ /* _nx_crypto_method_ecdh_operation Perform ECDH operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-25-2022 Yuxin Zhou Initial Version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_compute_secret_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, UCHAR *share_secret_key_ptr, diff --git a/crypto_libraries/src/nx_crypto_ecdsa.c b/crypto_libraries/src/nx_crypto_ecdsa.c index 82031ff7..2665857a 100644 --- a/crypto_libraries/src/nx_crypto_ecdsa.c +++ b/crypto_libraries/src/nx_crypto_ecdsa.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,15 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memmove use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdsa_sign(NX_CRYPTO_EC *curve, UCHAR *hash, UINT hash_length, UCHAR *private_key, UINT private_key_length, @@ -302,16 +293,6 @@ UCHAR *signature_s; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed input validation, */ -/* added public key validation,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecdsa_verify(NX_CRYPTO_EC *curve, UCHAR *hash, UINT hash_length, UCHAR *public_key, UINT public_key_length, @@ -512,16 +493,6 @@ UINT buffer_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffe /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdsa_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -593,14 +564,6 @@ NX_CRYPTO_ECDSA *ecdsa; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdsa_cleanup(VOID *crypto_metadata) { @@ -665,16 +628,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdsa_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdsa_operation(UINT op, VOID *handle, diff --git a/crypto_libraries/src/nx_crypto_ecjpake.c b/crypto_libraries/src/nx_crypto_ecjpake.c index ed1b74bd..22e36059 100644 --- a/crypto_libraries/src/nx_crypto_ecjpake.c +++ b/crypto_libraries/src/nx_crypto_ecjpake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* _nx_crypto_method_ecjpake_operation Initialize ECJPAKE crypto */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ecjpake_init(NX_CRYPTO_ECJPAKE *ecjpake, NX_CRYPTO_EC *curve, @@ -153,14 +145,6 @@ UINT buffer_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; /* */ /* _nx_crypto_method_ecjpake_operation Initialize ECJPAKE crypto */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_hello_generate(NX_CRYPTO_ECJPAKE *ecjpake, CHAR *id, UINT id_len, @@ -323,14 +307,6 @@ UINT status; /* */ /* _nx_crypto_method_ecjpake_operation Initialize ECJPAKE crypto */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_hello_process(NX_CRYPTO_ECJPAKE *ecjpake, CHAR *id, UINT id_len, @@ -479,14 +455,6 @@ UINT total_length = 0; /* */ /* _nx_crypto_method_ecjpake_operation Initialize ECJPAKE crypto */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_key_exchange_generate(NX_CRYPTO_ECJPAKE *ecjpake, UCHAR *shared_secret, @@ -617,14 +585,6 @@ UINT status; /* */ /* _nx_crypto_method_ecjpake_operation Initialize ECJPAKE crypto */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_key_exchange_process(NX_CRYPTO_ECJPAKE *ecjpake, UCHAR *shared_secret, @@ -765,14 +725,6 @@ UINT total_length = 0; /* _nx_crypto_ecjpake_schnorr_zkp_verify Perform Schnorr ZKP */ /* verification */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_schnorr_zkp_hash(NX_CRYPTO_METHOD *hash_method, VOID *hash_metadata, @@ -1094,14 +1046,6 @@ VOID *handler; /* _nx_crypto_ecjpake_key_exchange_generate */ /* Generate key exchange message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_schnorr_zkp_generate(NX_CRYPTO_METHOD *hash_method, VOID *hash_metadata, @@ -1197,14 +1141,6 @@ UINT status; /* _nx_crypto_ecjpake_key_exchange_process */ /* Process key exchange message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_schnorr_zkp_verify(NX_CRYPTO_METHOD *hash_method, VOID *hash_metadata, @@ -1303,14 +1239,6 @@ NX_CRYPTO_EC_POINT temp1, temp2; /* _nx_crypto_ecjpake_key_exchange_generate */ /* Generate key exchange message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_ecjpake_public_key_generate(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *x1, @@ -1387,14 +1315,6 @@ NX_CRYPTO_HUGE_NUMBER temp1; /* _nx_crypto_ecjpake_key_exchange_process */ /* Process key exchange message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_pre_master_secret_generate(NX_CRYPTO_METHOD *hash_method, VOID *hash_metadata, @@ -1517,19 +1437,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ #ifndef NX_CRYPTO_SELF_TEST UINT _nx_crypto_ecjpake_key_encryption_key_generate(NX_CRYPTO_METHOD *hash_method, @@ -1624,16 +1531,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecjpake_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -1720,14 +1617,6 @@ UINT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecjpake_cleanup(VOID *crypto_metadata) { @@ -1797,16 +1686,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecjpake_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_ecjpake_operation(UINT op, VOID *handle, diff --git a/crypto_libraries/src/nx_crypto_gcm.c b/crypto_libraries/src/nx_crypto_gcm.c index 5ecd6f17..1299b501 100644 --- a/crypto_libraries/src/nx_crypto_gcm.c +++ b/crypto_libraries/src/nx_crypto_gcm.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,15 +57,6 @@ /* _nx_crypto_gcm_ghash_update Compute GHASH */ /* _nx_crypto_gcm_gctr Perform GCTR operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_xor(UCHAR *plaintext, UCHAR *key, UCHAR *ciphertext) { @@ -131,14 +122,6 @@ UINT *k = (UINT *)key; /* _nx_crypto_gcm_gctr Perform GCTR operation */ /* _nx_crypto_gcm_encrypt Perform GCM encrypt/decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_inc32(UCHAR *counter_block) { @@ -189,15 +172,6 @@ USHORT result; /* */ /* _nx_crypto_gcm_ghash_update Compute GHASH */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_multi(UCHAR *x, UCHAR *y, UCHAR *output) { @@ -281,15 +255,6 @@ UCHAR mask; /* */ /* _nx_crypto_gcm_encrypt Perform GCM encrypt/decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_ghash_update(UCHAR *hkey, UCHAR *input, UINT input_length, UCHAR *output) { @@ -356,15 +321,6 @@ UINT i, n; /* */ /* _nx_crypto_gcm_encrypt Perform GCM encrypt/decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_gctr(VOID *crypto_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -445,15 +401,6 @@ UINT i, n; /* */ /* _nx_crypto_method_aes_gcm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_gcm_encrypt_init(VOID *crypto_metadata, NX_CRYPTO_GCM *gcm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -560,14 +507,6 @@ UCHAR iv_len; /* */ /* _nx_crypto_method_aes_gcm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_gcm_encrypt_update(VOID *crypto_metadata, NX_CRYPTO_GCM *gcm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -631,15 +570,6 @@ UCHAR *counter = gcm_metadata -> nx_crypto_gcm_counter; /* */ /* _nx_crypto_method_aes_gcm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_gcm_encrypt_calculate(VOID *crypto_metadata, NX_CRYPTO_GCM *gcm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -729,14 +659,6 @@ UINT length; /* */ /* _nx_crypto_method_aes_gcm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_gcm_decrypt_update(VOID *crypto_metadata, NX_CRYPTO_GCM *gcm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), @@ -800,14 +722,6 @@ UCHAR *counter = gcm_metadata -> nx_crypto_gcm_counter; /* */ /* _nx_crypto_method_aes_gcm_operation Handle AES encrypt or decrypt */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_gcm_decrypt_calculate(VOID *crypto_metadata, NX_CRYPTO_GCM *gcm_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), diff --git a/crypto_libraries/src/nx_crypto_generic_ciphersuites.c b/crypto_libraries/src/nx_crypto_generic_ciphersuites.c index d68ea0cc..fcad19ea 100644 --- a/crypto_libraries/src/nx_crypto_generic_ciphersuites.c +++ b/crypto_libraries/src/nx_crypto_generic_ciphersuites.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,28 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* curves in the crypto array, */ -/* added TLS ciphersuite entry,*/ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), added */ -/* x25519 and x448 curves, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* added x448 curves, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ /* Define cryptographic methods for use with TLS. */ diff --git a/crypto_libraries/src/nx_crypto_hkdf.c b/crypto_libraries/src/nx_crypto_hkdf.c index 3ce9e1a9..d2020465 100644 --- a/crypto_libraries/src/nx_crypto_hkdf.c +++ b/crypto_libraries/src/nx_crypto_hkdf.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,16 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hkdf_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -144,14 +134,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hkdf_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hkdf_cleanup(VOID *crypto_metadata) { @@ -235,18 +217,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hkdf_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ @@ -421,14 +391,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_hkdf_extract(NX_CRYPTO_HKDF *hkdf) { @@ -565,16 +527,6 @@ NX_CRYPTO_METHOD *hmac_method = hkdf -> nx_crypto_hmac_method; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_hkdf_expand(NX_CRYPTO_HKDF *hkdf, UCHAR *output, UINT desired_length) { diff --git a/crypto_libraries/src/nx_crypto_hmac.c b/crypto_libraries/src/nx_crypto_hmac.c index 76bf1d19..26a39767 100644 --- a/crypto_libraries/src/nx_crypto_hmac.c +++ b/crypto_libraries/src/nx_crypto_hmac.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* _nx_crypto_method_hmac_sha1_operation Handle HMAC-SHA1 operation */ /* _nx_crypto_method_hmac_sha256_operation Handle HMAC-SHA256 operation*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_hmac(NX_CRYPTO_HMAC *hmac_metadata, UCHAR *input_ptr, UINT input_length, @@ -128,15 +120,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_hmac(NX_CRYPTO_HMAC *hmac_metadata, /* _nx_crypto_method_hmac_sha256_operation Handle HMAC-SHA256 operation*/ /* _nx_crypto_method_hmac_sha512_operation Handle HMAC-SHA512 operation*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_hmac_initialize(NX_CRYPTO_HMAC *hmac_metadata, UCHAR *key_ptr, UINT key_length) { @@ -231,14 +214,6 @@ UINT i; /* Application Code */ /* _nx_crypto_hmac Calculate the HMAC */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_hmac_update(NX_CRYPTO_HMAC *hmac_metadata, UCHAR *input_ptr, UINT input_length) { @@ -286,15 +261,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_hmac_update(NX_CRYPTO_HMAC *hmac_metadata, UCHAR /* Application Code */ /* _nx_crypto_hmac Calculate the HMAC */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_hmac_digest_calculate(NX_CRYPTO_HMAC *hmac_metadata, UCHAR *digest_ptr, UINT digest_length) { @@ -367,14 +333,6 @@ UCHAR icv_ptr[64]; /* _nx_crypto_method_hmac_sha256_operation Handle HMAC-SHA256 operation*/ /* _nx_crypto_method_hmac_sha512_operation Handle HMAC-SHA512 operation*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_hmac_metadata_set(NX_CRYPTO_HMAC *hmac_metadata, VOID *context, @@ -425,14 +383,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_hmac_metadata_set(NX_CRYPTO_HMAC *hmac_metadata, /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_hmac_hash_initialize(VOID *context, UINT algorithm) { @@ -503,14 +453,6 @@ UINT status; /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_hmac_hash_update(VOID *context, UCHAR *input, UINT input_length) { @@ -579,14 +521,6 @@ UINT status; /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_crypto_hmac_hash_digest_calculate(VOID *context, UCHAR *digest, UINT algorithm) { @@ -661,16 +595,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -742,14 +666,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_cleanup(VOID *crypto_metadata) { @@ -816,16 +732,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_hmac_md5.c b/crypto_libraries/src/nx_crypto_hmac_md5.c index a8102fc6..1260e224 100644 --- a/crypto_libraries/src/nx_crypto_hmac_md5.c +++ b/crypto_libraries/src/nx_crypto_hmac_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,16 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_md5_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -134,14 +124,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_md5_init(struct NX_CRYPTO_METHOD_ST /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_md5_cleanup(VOID *crypto_metadata) { @@ -210,16 +192,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_md5_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_md5_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_hmac_sha1.c b/crypto_libraries/src/nx_crypto_hmac_sha1.c index 717966e3..8e3b91a5 100644 --- a/crypto_libraries/src/nx_crypto_hmac_sha1.c +++ b/crypto_libraries/src/nx_crypto_hmac_sha1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,16 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha1_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -134,14 +124,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha1_init(struct NX_CRYPTO_METHOD_S /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha1_cleanup(VOID *crypto_metadata) { @@ -209,16 +191,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha1_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha1_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_hmac_sha2.c b/crypto_libraries/src/nx_crypto_hmac_sha2.c index 67ed17a8..effcef64 100644 --- a/crypto_libraries/src/nx_crypto_hmac_sha2.c +++ b/crypto_libraries/src/nx_crypto_hmac_sha2.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,16 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha256_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -135,14 +125,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha256_init(struct NX_CRYPTO_METHOD /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha256_cleanup(VOID *crypto_metadata) { @@ -210,16 +192,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha256_cleanup(VOID *crypto_metadata /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha256_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_hmac_sha5.c b/crypto_libraries/src/nx_crypto_hmac_sha5.c index 0a232d90..dc73a793 100644 --- a/crypto_libraries/src/nx_crypto_hmac_sha5.c +++ b/crypto_libraries/src/nx_crypto_hmac_sha5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,16 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha512_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -134,14 +124,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha512_init(struct NX_CRYPTO_METHOD /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha512_cleanup(VOID *crypto_metadata) { @@ -209,16 +191,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha512_cleanup(VOID *crypto_metadata /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha512_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_huge_number.c b/crypto_libraries/src/nx_crypto_huge_number.c index 29b5f9be..99299dbb 100644 --- a/crypto_libraries/src/nx_crypto_huge_number.c +++ b/crypto_libraries/src/nx_crypto_huge_number.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ /* Perform an inverse modulus */ /* operation for prime number */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_is_zero(NX_CRYPTO_HUGE_NUMBER *x) { @@ -160,14 +152,6 @@ UINT i; /* _nx_crypto_huge_number_crt_power_modulus */ /* Raise a huge number for CRT */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right) { @@ -255,17 +239,6 @@ UINT cmp; /* _nx_crypto_huge_number_crt_power_modulus */ /* Raise a huge number for CRT */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right) { @@ -338,14 +311,6 @@ UINT cmp; /* _nx_crypto_huge_number_subtract Calculate subtraction for */ /* huge numbers */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add_unsigned(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right) { @@ -443,14 +408,6 @@ UINT right_size; /* _nx_crypto_huge_number_subtract Calculate subtraction for */ /* huge numbers */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract_unsigned(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right, @@ -521,14 +478,6 @@ HN_UBASE *result_buffer = result -> nx_crypto_huge_number_data; /* _nx_crypto_huge_number_add_digit */ /* _nx_crypto_huge_number_subtract_digit */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) { @@ -596,14 +545,6 @@ UINT size = value -> nx_crypto_huge_number_size; /* _nx_crypto_huge_number_subtract_digit Calculate subtraction for */ /* huge number and digit */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) { @@ -659,14 +600,6 @@ UINT size = value -> nx_crypto_huge_number_size; /* _nx_crypto_ec_secp384r1_reduce Reduce the value of curve */ /* secp384r1 */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_shift_left(NX_CRYPTO_HUGE_NUMBER *x, UINT shift) { @@ -729,14 +662,6 @@ HN_UBASE *x_buffer = x -> nx_crypto_huge_number_data; /* _nx_crypto_ec_secp521r1_reduce Reduce the value of curve */ /* secp521r1 */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_shift_right(NX_CRYPTO_HUGE_NUMBER *x, UINT shift) { @@ -798,14 +723,6 @@ HN_UBASE *x_buffer = x -> nx_crypto_huge_number_data; /* _nx_crypto_huge_number_mont_power_modulus */ /* Raise a huge number for */ /* montgomery reduction */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_adjust_size(NX_CRYPTO_HUGE_NUMBER *val) { @@ -884,14 +801,6 @@ INT size; /* _nx_crypto_huge_number_mont Perform Montgomery reduction */ /* for multiplication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_compare(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right) { @@ -975,14 +884,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_compare(NX_CRYPTO_HUGE_NUMBER *left, /* _nx_crypto_huge_number_compare Compare two huge numbers */ /* _nx_crypto_huge_number_modulus Perform a modulus operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_compare_unsigned(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right) @@ -1074,14 +975,6 @@ UINT right_size; /* _nx_crypto_huge_number_crt_power_modulus */ /* Raise a huge number for CRT */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_multiply(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right, @@ -1185,14 +1078,6 @@ HN_UBASE *temp_ptr; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_multiply_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit, @@ -1277,14 +1162,6 @@ HN_UBASE *result_buffer; /* Raise a huge number for */ /* montgomery reduction */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_square(NX_CRYPTO_HUGE_NUMBER *value, NX_CRYPTO_HUGE_NUMBER *result) { @@ -1404,18 +1281,6 @@ UINT i, j; /* _nx_crypto_huge_number_crt_power_modulus */ /* Raise a huge number for CRT */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed variable type issue, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* fixed division by zero bug, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_modulus(NX_CRYPTO_HUGE_NUMBER *dividend, NX_CRYPTO_HUGE_NUMBER *divisor) { @@ -1649,14 +1514,6 @@ NX_CRYPTO_HUGE_NUMBER *result; /* calculation */ /* _nx_crypto_rsa_operation Perform an RSA operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_setup(NX_CRYPTO_HUGE_NUMBER *number, const UCHAR *byte_stream, UINT size) { @@ -1777,14 +1634,6 @@ UINT num_words; /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_rbg(UINT bits, UCHAR *result) { @@ -1905,14 +1754,6 @@ UINT mask; /* Generate pre master secret */ /* _nx_crypto_rsa_operation Perform an RSA operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_extract(NX_CRYPTO_HUGE_NUMBER *number, UCHAR *byte_stream, UINT byte_stream_size, UINT *huge_number_size) @@ -1983,14 +1824,6 @@ UCHAR *bytes; /* */ /* _nx_crypto_ecdsa_sign Sign hash data using ECDSA. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_extract_fixed_size(NX_CRYPTO_HUGE_NUMBER *number, UCHAR *byte_stream, UINT byte_stream_size) @@ -2148,14 +1981,6 @@ UINT num_size_adjusted; /* _nx_crypto_huge_number_crt_power_modulus */ /* Raise a huge number for CRT */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_inverse_modulus_prime(NX_CRYPTO_HUGE_NUMBER *a, NX_CRYPTO_HUGE_NUMBER *p, @@ -2284,15 +2109,6 @@ UINT buffer_size; /* Raise a huge number for */ /* montgomery reduction */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed input validation, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_huge_number_inverse_modulus(NX_CRYPTO_HUGE_NUMBER *a, NX_CRYPTO_HUGE_NUMBER *m, @@ -2444,14 +2260,6 @@ UINT buffer_size; /* Raise a huge number for */ /* montgomery reduction */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_mont(NX_CRYPTO_HUGE_NUMBER *m, UINT mi, NX_CRYPTO_HUGE_NUMBER *x, @@ -2598,16 +2406,6 @@ HN_UBASE *result_buffer = result -> nx_crypto_huge_number_data; /* Raise a huge number for CRT */ /* _nx_crypto_rsa_operation Perform an RSA operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_mont_power_modulus(NX_CRYPTO_HUGE_NUMBER *x, NX_CRYPTO_HUGE_NUMBER *e, @@ -2784,14 +2582,6 @@ NX_CRYPTO_HUGE_NUMBER *operand, *temp_result, *temp_swap; /* */ /* _nx_crypto_rsa_operation Perform an RSA operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_crt_power_modulus(NX_CRYPTO_HUGE_NUMBER *x, NX_CRYPTO_HUGE_NUMBER *e, diff --git a/crypto_libraries/src/nx_crypto_huge_number_extended.c b/crypto_libraries/src/nx_crypto_huge_number_extended.c index e594a79d..ff733ad5 100644 --- a/crypto_libraries/src/nx_crypto_huge_number_extended.c +++ b/crypto_libraries/src/nx_crypto_huge_number_extended.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,18 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) { @@ -146,14 +134,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add_digit(NX_CRYPTO_HUGE_NUMBER *valu /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) { @@ -235,16 +215,6 @@ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract_digit(NX_CRYPTO_HUGE_NUMBER /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Bhupendra Naphade Modified comment(s), */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_power_modulus(NX_CRYPTO_HUGE_NUMBER *number, NX_CRYPTO_HUGE_NUMBER *exponent, diff --git a/crypto_libraries/src/nx_crypto_initialize.c b/crypto_libraries/src/nx_crypto_initialize.c index b1db9d90..66277372 100644 --- a/crypto_libraries/src/nx_crypto_initialize.c +++ b/crypto_libraries/src/nx_crypto_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed function, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memcpy(void *dest, const void *src, size_t size) { @@ -127,17 +116,6 @@ NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memcpy(void *dest, const void *src, si /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed function, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size) { @@ -192,17 +170,6 @@ NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t s /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed function, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP int _nx_crypto_self_test_memcmp(const void *str1, const void *str2, size_t size) { @@ -255,17 +222,6 @@ NX_CRYPTO_KEEP int _nx_crypto_self_test_memcmp(const void *str1, const void *str /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed function, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP void* _nx_crypto_self_test_memmove(void *dest, const void *src, size_t size) { @@ -326,14 +282,6 @@ NX_CRYPTO_KEEP void* _nx_crypto_self_test_memmove(void *dest, const void *src, s /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_module_state_get(VOID) { @@ -373,14 +321,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_module_state_get(VOID) /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_initialize(VOID) { diff --git a/crypto_libraries/src/nx_crypto_md5.c b/crypto_libraries/src/nx_crypto_md5.c index 82456dd6..5db7fab8 100644 --- a/crypto_libraries/src/nx_crypto_md5.c +++ b/crypto_libraries/src/nx_crypto_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -125,15 +125,6 @@ const UCHAR _nx_crypto_md5_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ /* _nx_crypto_method_md5_operation Handle MD5 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_md5_initialize(NX_CRYPTO_MD5 *context, UINT algorithm) { @@ -196,15 +187,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_md5_initialize(NX_CRYPTO_MD5 *context, UINT algo /* MD5 digest */ /* _nx_crypto_method_md5_operation Handle MD5 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_md5_update(NX_CRYPTO_MD5 *context, UCHAR *input_ptr, UINT input_length) { @@ -326,15 +308,6 @@ ULONG needed_fill_bytes; /* */ /* _nx_crypto_method_md5_operation Handle MD5 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_md5_digest_calculate(NX_CRYPTO_MD5 *context, UCHAR digest[16], UINT algorithm) { @@ -427,14 +400,6 @@ ULONG padding_bytes; /* _nx_crypto_md5_update Update the digest with padding*/ /* and length of digest */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_md5_process_buffer(NX_CRYPTO_MD5 *context, UCHAR buffer[64]) { @@ -583,14 +548,6 @@ ULONG x[16]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_md5_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -657,14 +614,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_md5_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_md5_cleanup(VOID *crypto_metadata) { @@ -733,16 +682,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_md5_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_md5_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_method_self_test.c b/crypto_libraries/src/nx_crypto_method_self_test.c index 37002b35..0ebc7d4a 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test.c +++ b/crypto_libraries/src/nx_crypto_method_self_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -102,18 +102,6 @@ const UINT nx_crypto_hash_key_size = sizeof(nx_crypto_hash_key) << 3; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP INT _nx_crypto_method_self_test(INT arg) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_3des.c b/crypto_libraries/src/nx_crypto_method_self_test_3des.c index c930a8fc..117ef00b 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_3des.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_3des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -121,18 +121,6 @@ static UCHAR output[72]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_3des(NX_CRYPTO_METHOD *crypto_method_3des, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_aes.c b/crypto_libraries/src/nx_crypto_method_self_test_aes.c index 698962c2..935e94f5 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_aes.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_aes.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -148,18 +148,6 @@ static UCHAR output[INPUT_OUTPUT_LENGTH]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_aes(NX_CRYPTO_METHOD *crypto_method_aes, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_des.c b/crypto_libraries/src/nx_crypto_method_self_test_des.c index bd012786..9178d2c4 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_des.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -94,18 +94,6 @@ static UCHAR output[INPUT_OUTPUT_LENGTH]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_des(NX_CRYPTO_METHOD *crypto_method_des, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_drbg.c b/crypto_libraries/src/nx_crypto_method_self_test_drbg.c index 4ab8ad71..fed060c7 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_drbg.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_drbg.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -167,19 +167,6 @@ static UCHAR drbg_test_entropy_count_npr; /* */ /* DRBG internal logic */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static UINT drbg_test_get_entropy_pr(UCHAR *entropy, UINT *entropy_len, UINT entropy_max_len) { @@ -252,15 +239,6 @@ NX_CRYPTO_KEEP static UINT drbg_test_get_entropy_pr(UCHAR *entropy, UINT *entrop /* */ /* DRBG internal logic */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static UINT drbg_test_get_entropy_npr(UCHAR *entropy, UINT *entropy_len, UINT entropy_max_len) { @@ -330,14 +308,6 @@ NX_CRYPTO_KEEP static UINT drbg_test_get_entropy_npr(UCHAR *entropy, UINT *entro /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_drbg(NX_CRYPTO_METHOD *crypto_method_drbg, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_ecdh.c b/crypto_libraries/src/nx_crypto_method_self_test_ecdh.c index 20ced5dd..92fd682c 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_ecdh.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_ecdh.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,18 +87,6 @@ extern NX_CRYPTO_METHOD crypto_method_ec_secp256; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_ecdh(NX_CRYPTO_METHOD *crypto_method_ecdh, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_ecdsa.c b/crypto_libraries/src/nx_crypto_method_self_test_ecdsa.c index a33921b0..6f64f980 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_ecdsa.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_ecdsa.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -79,18 +79,6 @@ static UCHAR scratch_buffer[4000]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_ecdsa(NX_CRYPTO_METHOD *crypto_method_ecdsa, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_hmac_md5.c b/crypto_libraries/src/nx_crypto_method_self_test_hmac_md5.c index 4e2affb0..d3c15f76 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_hmac_md5.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_hmac_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -84,18 +84,6 @@ static ULONG output[4]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_hmac_md5(NX_CRYPTO_METHOD *crypto_method_hmac_md5, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_hmac_sha.c b/crypto_libraries/src/nx_crypto_method_self_test_hmac_sha.c index 57fae29d..35b54395 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_hmac_sha.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_hmac_sha.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -234,18 +234,6 @@ static ULONG output[16]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_hmac_sha(NX_CRYPTO_METHOD *crypto_method_hmac_sha, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_md5.c b/crypto_libraries/src/nx_crypto_method_self_test_md5.c index 14b3642b..82e74216 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_md5.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -82,18 +82,6 @@ static ULONG output[4]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_md5(NX_CRYPTO_METHOD *crypto_method_md5, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_pkcs1.c b/crypto_libraries/src/nx_crypto_method_self_test_pkcs1.c index 632a6cf0..bb90e2b9 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_pkcs1.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_pkcs1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -136,18 +136,6 @@ extern NX_CRYPTO_METHOD crypto_method_sha256; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_pkcs1(NX_CRYPTO_METHOD *crypto_method_pkcs1, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_prf.c b/crypto_libraries/src/nx_crypto_method_self_test_prf.c index 6c1cfd91..d48e32c5 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_prf.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_prf.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -138,18 +138,6 @@ static UCHAR output[256]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_prf(NX_CRYPTO_METHOD *crypto_method_prf, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_rsa.c b/crypto_libraries/src/nx_crypto_method_self_test_rsa.c index ac1e02cd..5d828988 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_rsa.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_rsa.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -585,18 +585,6 @@ static UCHAR output[512]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_method_self_test_sha.c b/crypto_libraries/src/nx_crypto_method_self_test_sha.c index aaebf3b4..a42ffc22 100644 --- a/crypto_libraries/src/nx_crypto_method_self_test_sha.c +++ b/crypto_libraries/src/nx_crypto_method_self_test_sha.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -220,18 +220,6 @@ static ULONG output[16]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 06-02-2021 Bhupendra Naphade Modified comment(s), */ -/* renamed FIPS symbol to */ -/* self-test, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_sha(NX_CRYPTO_METHOD *crypto_method_sha, VOID *metadata, UINT metadata_size) diff --git a/crypto_libraries/src/nx_crypto_methods.c b/crypto_libraries/src/nx_crypto_methods.c index 2670cbdb..c1304c44 100644 --- a/crypto_libraries/src/nx_crypto_methods.c +++ b/crypto_libraries/src/nx_crypto_methods.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -79,22 +79,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comments(s), added */ -/* warning supression for */ -/* obsolete DES/3DES, */ -/* added x25519 curve, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* added x448 curve, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ /* Define cryptographic methods. */ diff --git a/crypto_libraries/src/nx_crypto_null_cipher.c b/crypto_libraries/src/nx_crypto_null_cipher.c index 7ead3af1..4e3f6a31 100644 --- a/crypto_libraries/src/nx_crypto_null_cipher.c +++ b/crypto_libraries/src/nx_crypto_null_cipher.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_null_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -116,14 +108,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_null_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_null_cleanup(VOID *crypto_metadata) { @@ -177,14 +161,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_null_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_null_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_phash.c b/crypto_libraries/src/nx_crypto_phash.c index b1b52ab2..b092b3c2 100644 --- a/crypto_libraries/src/nx_crypto_phash.c +++ b/crypto_libraries/src/nx_crypto_phash.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -55,17 +55,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* and updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_phash(NX_CRYPTO_PHASH *phash, UCHAR *output, UINT desired_length) { diff --git a/crypto_libraries/src/nx_crypto_pkcs1_v1.5.c b/crypto_libraries/src/nx_crypto_pkcs1_v1.5.c index d10099a7..12a117b5 100644 --- a/crypto_libraries/src/nx_crypto_pkcs1_v1.5.c +++ b/crypto_libraries/src/nx_crypto_pkcs1_v1.5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ static const UCHAR _NX_CRYPTO_DER_OID_SHA_512_256[] = {0x30, 0x31, 0x30, 0x0d, /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_sign(UCHAR *input, UINT input_length, UCHAR *private_key, UINT private_key_size, @@ -214,17 +206,6 @@ UINT status; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* corrected the operation, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_verify(UCHAR *message, UINT message_length, UCHAR *signature, UINT signature_length, @@ -337,16 +318,6 @@ UINT status; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_encode(UCHAR *input, UINT input_length, NX_CRYPTO_METHOD *hash_method, @@ -489,16 +460,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_pkcs1_v1_5_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -563,14 +524,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_pkcs1_v1_5_init(struct NX_CRYPTO_METHOD_ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_pkcs1_v1_5_cleanup(VOID *crypto_metadata) { @@ -634,16 +587,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_pkcs1_v1_5_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_pkcs1_v1_5_operation(UINT op, VOID *handle, diff --git a/crypto_libraries/src/nx_crypto_rsa.c b/crypto_libraries/src/nx_crypto_rsa.c index b28faaf8..0017c741 100644 --- a/crypto_libraries/src/nx_crypto_rsa.c +++ b/crypto_libraries/src/nx_crypto_rsa.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,17 +78,6 @@ /* */ /* _nx_crypto_method_rsa_operation Handle RSA operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), aligned */ -/* buffer size of huge number, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_rsa_operation(const UCHAR *exponent, UINT exponent_length, const UCHAR *modulus, UINT modulus_length, const UCHAR *p, UINT p_length, UCHAR *q, UINT q_length, @@ -195,16 +184,6 @@ NX_CRYPTO_HUGE_NUMBER modulus_hn, exponent_hn, input_hn, output_hn, p_hn, q_hn; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_rsa_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -280,14 +259,6 @@ NX_CRYPTO_RSA *ctx; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_rsa_cleanup(VOID *crypto_metadata) { @@ -352,16 +323,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_rsa_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_rsa_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_sha1.c b/crypto_libraries/src/nx_crypto_sha1.c index ca52d2bd..3d13d37e 100644 --- a/crypto_libraries/src/nx_crypto_sha1.c +++ b/crypto_libraries/src/nx_crypto_sha1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -105,15 +105,6 @@ const UCHAR _nx_crypto_sha1_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ /* _nx_crypto_method_sha1_operation Handle SHA1 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha1_initialize(NX_CRYPTO_SHA1 *context, UINT algorithm) { @@ -176,15 +167,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_sha1_initialize(NX_CRYPTO_SHA1 *context, UINT al /* _nx_crypto_sha1_digest_calculate Calculate the SHA1 digest */ /* _nx_crypto_method_sha1_operation Handle SHA1 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha1_update(NX_CRYPTO_SHA1 *context, UCHAR *input_ptr, UINT input_length) { @@ -308,15 +290,6 @@ ULONG needed_fill_bytes; /* */ /* _nx_crypto_method_sha1_operation Handle SHA1 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* updated constants, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha1_digest_calculate(NX_CRYPTO_SHA1 *context, UCHAR digest[20], UINT algorithm) { @@ -413,14 +386,6 @@ ULONG padding_bytes; /* _nx_crypto_sha1_update Update the digest with padding*/ /* and length of digest */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_sha1_process_buffer(NX_CRYPTO_SHA1 *context, UCHAR buffer[64]) { @@ -560,14 +525,6 @@ ULONG a, b, c, d, e; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha1_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -634,14 +591,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha1_init(struct NX_CRYPTO_METHOD_STRUCT /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha1_cleanup(VOID *crypto_metadata) { @@ -709,16 +658,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha1_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha1_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_sha2.c b/crypto_libraries/src/nx_crypto_sha2.c index 3552dff3..1bda2c88 100644 --- a/crypto_libraries/src/nx_crypto_sha2.c +++ b/crypto_libraries/src/nx_crypto_sha2.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,14 +86,6 @@ const UCHAR _nx_crypto_sha256_padding[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ /* _nx_crypto_method_sha256_operation Handle SHA256 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha256_initialize(NX_CRYPTO_SHA256 *context, UINT algorithm ) { @@ -176,15 +168,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_sha256_initialize(NX_CRYPTO_SHA256 *context, UIN /* _nx_crypto_sha256_digest_calculate Calculate the SHA256 digest */ /* _nx_crypto_method_sha256_operation Handle SHA256 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha256_update(NX_CRYPTO_SHA256 *context, UCHAR *input_ptr, UINT input_length) { @@ -304,17 +287,6 @@ ULONG needed_fill_bytes; /* */ /* _nx_crypto_method_sha256_operation Handle SHA256 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha256_digest_calculate(NX_CRYPTO_SHA256 *context, UCHAR *digest, UINT algorithm) { @@ -422,17 +394,6 @@ ULONG padding_bytes; /* _nx_crypto_sha256_update Final update to the digest */ /* with padding and length */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* improved performance, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_sha256_process_buffer(NX_CRYPTO_SHA256 *context, UCHAR buffer[64]) { @@ -619,16 +580,6 @@ ULONG a, b, c, d, e, f, g, h; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha256_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -693,14 +644,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha256_init(struct NX_CRYPTO_METHOD_STRU /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha256_cleanup(VOID *crypto_metadata) { @@ -768,16 +711,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha256_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha256_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_sha5.c b/crypto_libraries/src/nx_crypto_sha5.c index a1bda776..b9813ad8 100644 --- a/crypto_libraries/src/nx_crypto_sha5.c +++ b/crypto_libraries/src/nx_crypto_sha5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -106,14 +106,6 @@ const UCHAR _nx_crypto_sha512_padding[] = /* */ /* _nx_crypto_method_sha512_operation Handle SHA512 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha512_initialize(NX_CRYPTO_SHA512 *context, UINT algorithm) { @@ -224,15 +216,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_sha512_initialize(NX_CRYPTO_SHA512 *context, UIN /* _nx_crypto_sha512_digest_calculate Calculate the SHA512 digest */ /* _nx_crypto_method_sha512_operation Handle SHA512 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha512_update(NX_CRYPTO_SHA512 *context, UCHAR *input_ptr, UINT input_length) { @@ -353,14 +336,6 @@ ULONG64 needed_fill_bytes; /* */ /* _nx_crypto_method_sha512_operation Handle SHA512 operation */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_sha512_digest_calculate(NX_CRYPTO_SHA512 *context, UCHAR *digest, UINT algorithm) { @@ -489,14 +464,6 @@ UINT loop; /* _nx_crypto_sha512_update Update the digest with padding*/ /* and length of digest */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP VOID _nx_crypto_sha512_process_buffer(NX_CRYPTO_SHA512 *context, UCHAR *buffer) { @@ -611,16 +578,6 @@ ULONG64 a, b, c, d, e, f, g, h; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha512_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -685,14 +642,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha512_init(struct NX_CRYPTO_METHOD_STRU /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha512_cleanup(VOID *crypto_metadata) { @@ -760,16 +709,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha512_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_sha512_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_tls_prf_1.c b/crypto_libraries/src/nx_crypto_tls_prf_1.c index fa81c66b..e7411986 100644 --- a/crypto_libraries/src/nx_crypto_tls_prf_1.c +++ b/crypto_libraries/src/nx_crypto_tls_prf_1.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,16 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_1_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -141,14 +131,6 @@ NX_CRYPTO_PHASH *phash; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_1_cleanup(VOID *crypto_metadata) { @@ -214,18 +196,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_1_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_1_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_tls_prf_sha256.c b/crypto_libraries/src/nx_crypto_tls_prf_sha256.c index e9765366..969fbc7d 100644 --- a/crypto_libraries/src/nx_crypto_tls_prf_sha256.c +++ b/crypto_libraries/src/nx_crypto_tls_prf_sha256.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,16 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha_256_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -141,14 +131,6 @@ NX_CRYPTO_PHASH *phash; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha_256_cleanup(VOID *crypto_metadata) { @@ -214,18 +196,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha_256_cleanup(VOID *crypto_metadata /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha_256_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_tls_prf_sha384.c b/crypto_libraries/src/nx_crypto_tls_prf_sha384.c index 0688f541..f887ab5f 100644 --- a/crypto_libraries/src/nx_crypto_tls_prf_sha384.c +++ b/crypto_libraries/src/nx_crypto_tls_prf_sha384.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,16 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha384_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -142,14 +132,6 @@ NX_CRYPTO_PHASH *phash; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha384_cleanup(VOID *crypto_metadata) { @@ -214,18 +196,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha384_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha384_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_tls_prf_sha512.c b/crypto_libraries/src/nx_crypto_tls_prf_sha512.c index 16c94540..d1203c73 100644 --- a/crypto_libraries/src/nx_crypto_tls_prf_sha512.c +++ b/crypto_libraries/src/nx_crypto_tls_prf_sha512.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,16 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha512_init(struct NX_CRYPTO_METHOD_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, @@ -142,14 +132,6 @@ NX_CRYPTO_PHASH *phash; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha512_cleanup(VOID *crypto_metadata) { @@ -214,18 +196,6 @@ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha512_cleanup(VOID *crypto_metadata) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha512_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ VOID *handle, /* Crypto handler */ diff --git a/crypto_libraries/src/nx_crypto_xcbc_mac.c b/crypto_libraries/src/nx_crypto_xcbc_mac.c index ee33eb68..6eadc9b9 100644 --- a/crypto_libraries/src/nx_crypto_xcbc_mac.c +++ b/crypto_libraries/src/nx_crypto_xcbc_mac.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,15 +54,6 @@ /* */ /* _nx_crypto_xcbc_mac Perform XCBC MAC 96 hash */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), disabled */ -/* unaligned access by default,*/ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP static VOID _nx_crypto_xcbc_xor(UCHAR *plaintext, UCHAR *key, UCHAR *ciphertext) { @@ -140,15 +131,6 @@ UINT *k = (UINT *)key; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ NX_CRYPTO_KEEP UINT _nx_crypto_xcbc_mac(VOID *crypto_metadata, UINT (*crypto_function)(VOID *, UCHAR *, UCHAR *, UINT), UINT (*key_set_function)(VOID *, UCHAR *, UINT), diff --git a/nx_secure/inc/nx_secure_crypto_table_self_test.h b/nx_secure/inc/nx_secure_crypto_table_self_test.h index 52e3b78a..661d5f49 100644 --- a/nx_secure/inc/nx_secure_crypto_table_self_test.h +++ b/nx_secure/inc/nx_secure_crypto_table_self_test.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -35,14 +35,6 @@ /* */ /* This file defines all services for module self-test. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_CRYPTO_TABLE_SELF_TEST_H diff --git a/nx_secure/inc/nx_secure_dtls.h b/nx_secure/inc/nx_secure_dtls.h index 45a71d0d..99ebda7e 100644 --- a/nx_secure/inc/nx_secure_dtls.h +++ b/nx_secure/inc/nx_secure_dtls.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,22 +36,6 @@ /* This file defines all service prototypes and data structure */ /* definitions for DTLS implementation. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* updated cookie handling, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ #ifndef SRC_NX_SECURE_DTLS_H_ diff --git a/nx_secure/inc/nx_secure_dtls_api.h b/nx_secure/inc/nx_secure_dtls_api.h index 8736fa9e..26c03c8c 100644 --- a/nx_secure/inc/nx_secure_dtls_api.h +++ b/nx_secure/inc/nx_secure_dtls_api.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,14 +37,6 @@ /* high-performance DTLS implementation for the NetXDuo TCP/IP */ /* protocol. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ diff --git a/nx_secure/inc/nx_secure_tls.h b/nx_secure/inc/nx_secure_tls.h index 73deddb1..c0729286 100644 --- a/nx_secure/inc/nx_secure_tls.h +++ b/nx_secure/inc/nx_secure_tls.h @@ -1,11 +1,11 @@ /*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,87 +36,6 @@ /* This file defines all service prototypes and data structure */ /* definitions for TLS implementation. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed race condition for */ -/* multithread transmission, */ -/* supported chained packet, */ -/* priority ciphersuite and ECC*/ -/* curve logic, updated product*/ -/* constants, fixed compiler */ -/* warning, fixed renegotiation*/ -/* bug, fixed certificate */ -/* buffer allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* updated product constants, */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Timothy Stapko Modified comment(s), added */ -/* support for fragmented TLS */ -/* Handshake messages, */ -/* resulting in version 6.1.4 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* updated product constants, */ -/* resulting in version 6.1.5 */ -/* 04-02-2021 Yuxin Zhou Modified comment(s), and */ -/* updated product constants, */ -/* resulting in version 6.1.6 */ -/* 06-02-2021 Yuxin Zhou Modified comment(s), and */ -/* updated product constants, */ -/* resulting in version 6.1.7 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* added state to cleanup */ -/* session cipher, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* support to disable client */ -/* initiated renegotiation, */ -/* resulting in version 6.1.9 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), and */ -/* updated product constants, */ -/* resulting in version 6.1.10 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* enabled AEAD for TLS 1.3, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* updated product constants, */ -/* fixed compiler errors when */ -/* TX_SAFETY_CRITICAL is */ -/* enabled, increased default */ -/* pre-master sec size for PSK,*/ -/* updated alert message for */ -/* downgrade protection, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), and added*/ -/* custom secret generation, */ -/* fixed renegotiation when */ -/* receiving in non-block mode,*/ -/* added function to set packet*/ -/* pool, */ -/* resulting in version 6.2.0 */ -/* 10-31-2022 Bo Chen Modified comment(s), and */ -/* updated product constants, */ -/* resulting in version 6.3.0 */ -/* 12-31-2022 Bo Chen Modified comment(s), and */ -/* updated product constants, */ -/* resulting in version 6.4.0 */ -/* 03-01-2024 Tiejun Zhou Modified comment(s), */ -/* update version number, */ -/* resulting in version 6.4.1 */ -/* 03-01-2024 Tiejun Zhou Modified comment(s), */ -/* update version number, */ -/* resulting in version 6.4.1 */ -/* 02-19-2025 Frédéric Desbiens Modified comment(s), */ -/* update version number, */ -/* resulting in version 6.4.2 */ -/* */ /**************************************************************************/ #ifndef SRC_NX_SECURE_TLS_H_ @@ -230,7 +149,7 @@ extern "C" { /* Configuration macro: disable secure session renegotiation extension (RFC 5746). #define NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION */ -/* Configuration macro: terminate the connection immediately upon failure to receive the +/* Configuration macro: terminate the connection immediately upon failure to receive the secure renegotiation extension during the initial handshake. #define NX_SECURE_TLS_REQUIRE_RENEGOTIATION_EXT */ diff --git a/nx_secure/inc/nx_secure_tls_api.h b/nx_secure/inc/nx_secure_tls_api.h index 0cbf24fc..15c5d723 100644 --- a/nx_secure/inc/nx_secure_tls_api.h +++ b/nx_secure/inc/nx_secure_tls_api.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,17 +37,6 @@ /* high-performance TLS implementation for the NetXDuo TCP/IP */ /* protocol. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), and added*/ -/* API to set packet pool, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef SRC_NX_SECURE_TLS_API_H_ diff --git a/nx_secure/inc/nx_secure_user_sample.h b/nx_secure/inc/nx_secure_user_sample.h index cfacbd90..65ca87bc 100644 --- a/nx_secure/inc/nx_secure_user_sample.h +++ b/nx_secure/inc/nx_secure_user_sample.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -41,24 +41,6 @@ /* Note that all the defines in this file may also be made on the */ /* command line when building NetX library and application objects. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* macro to disable client */ -/* initiated renegotiation for */ -/* TLS server instances, */ -/* resulting in version 6.1.9 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* macro to custom secret size,*/ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef SRC_NX_SECURE_USER_H @@ -311,7 +293,7 @@ */ /* NX_SECURE_TLS_DISABLE_CLIENT_INITIATED_RENEGOTIATION disables client-initiated renegotiation for TLS - servers. In some instances, client-initiated renegotiation can become a possible denial-of-service + servers. In some instances, client-initiated renegotiation can become a possible denial-of-service vulnerability. */ /* #define NX_SECURE_TLS_DISABLE_CLIENT_INITIATED_RENEGOTIATION diff --git a/nx_secure/inc/nx_secure_x509.h b/nx_secure/inc/nx_secure_x509.h index 04d52fb7..6d38e606 100644 --- a/nx_secure/inc/nx_secure_x509.h +++ b/nx_secure/inc/nx_secure_x509.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,33 +36,6 @@ /* This file defines all service prototypes and data structure */ /* definitions for X.509 implementation. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed key usage bit order, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 06-02-2021 Timothy Stapko Modified comment(s), */ -/* supported hardware EC */ -/* private key, */ -/* resulting in version 6.1.7 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* ignored public key in EC */ -/* private key, */ -/* resulting in version 6.1.10 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* checked expiration for all */ -/* the certs in the chain, */ -/* resulting in version 6.1.12 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* included TLS port header, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef SRC_NX_SECURE_X509_H_ diff --git a/nx_secure/ports/nx_secure_port.h b/nx_secure/ports/nx_secure_port.h index 541f4fa0..779120a2 100644 --- a/nx_secure/ports/nx_secure_port.h +++ b/nx_secure/ports/nx_secure_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -36,14 +36,6 @@ /* */ /* This file contains data type definitions for generic. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_PORT_H diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_3des.c b/nx_secure/src/nx_secure_crypto_method_self_test_3des.c index 72b22195..2ff10bb1 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_3des.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_3des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -97,14 +97,6 @@ static UCHAR output[INPUT_OUTPUT_LENGTH]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_3des(NX_CRYPTO_METHOD *crypto_method_3des, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_aes.c b/nx_secure/src/nx_secure_crypto_method_self_test_aes.c index 51aacac7..c9c0f881 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_aes.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_aes.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -216,14 +216,6 @@ static UCHAR output[INPUT_OUTPUT_LENGTH * 2]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_aes(NX_CRYPTO_METHOD *crypto_method_aes, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_des.c b/nx_secure/src/nx_secure_crypto_method_self_test_des.c index 17faa3d8..a119f407 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_des.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_des.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -94,14 +94,6 @@ static UCHAR output[INPUT_OUTPUT_LENGTH]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_des(NX_CRYPTO_METHOD *crypto_method_des, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_hmac_md5.c b/nx_secure/src/nx_secure_crypto_method_self_test_hmac_md5.c index 86afb8cc..8b53a87e 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_hmac_md5.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_hmac_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -84,14 +84,6 @@ static ULONG output[4]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_hmac_md5(NX_CRYPTO_METHOD *crypto_method_hmac_md5, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_hmac_sha.c b/nx_secure/src/nx_secure_crypto_method_self_test_hmac_sha.c index 9b4e4a49..6bff1823 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_hmac_sha.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_hmac_sha.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -166,14 +166,6 @@ static ULONG output[16]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_hmac_sha(NX_CRYPTO_METHOD *crypto_method_hmac_sha, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_md5.c b/nx_secure/src/nx_secure_crypto_method_self_test_md5.c index bf3efe06..4736c2db 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_md5.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_md5.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -83,14 +83,6 @@ static ULONG output[4]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_md5(NX_CRYPTO_METHOD *crypto_method_md5, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_prf.c b/nx_secure/src/nx_secure_crypto_method_self_test_prf.c index 0f161f26..2762e0bb 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_prf.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_prf.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -90,14 +90,6 @@ static UCHAR output[256]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_prf(NX_CRYPTO_METHOD *crypto_method_prf, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_rsa.c b/nx_secure/src/nx_secure_crypto_method_self_test_rsa.c index 5d0891bf..8fe5b69f 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_rsa.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_rsa.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -438,14 +438,6 @@ static UCHAR output[512]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_method_self_test_sha.c b/nx_secure/src/nx_secure_crypto_method_self_test_sha.c index 531c3f0e..f1cc9c6e 100644 --- a/nx_secure/src/nx_secure_crypto_method_self_test_sha.c +++ b/nx_secure/src/nx_secure_crypto_method_self_test_sha.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -165,14 +165,6 @@ static ULONG output[16]; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_method_self_test_sha(NX_CRYPTO_METHOD *crypto_method_sha, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_crypto_rng_self_test.c b/nx_secure/src/nx_secure_crypto_rng_self_test.c index 22cf14d0..fe1c32fe 100644 --- a/nx_secure/src/nx_secure_crypto_rng_self_test.c +++ b/nx_secure/src/nx_secure_crypto_rng_self_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ UINT _nx_secure_crypto_rng_self_test(VOID); /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-02-2021 Yuxin Zhou Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.5 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_rng_self_test(VOID) { diff --git a/nx_secure/src/nx_secure_crypto_table_self_test.c b/nx_secure/src/nx_secure_crypto_table_self_test.c index a23f59fc..c9bc7cb1 100644 --- a/nx_secure/src/nx_secure_crypto_table_self_test.c +++ b/nx_secure/src/nx_secure_crypto_table_self_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -98,14 +98,6 @@ UINT _nx_secure_crypto_method_self_test(const NX_CRYPTO_METHOD *crypto_method, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_crypto_table_self_test(const NX_SECURE_TLS_CRYPTO *crypto_table, VOID *metadata, UINT metadata_size) diff --git a/nx_secure/src/nx_secure_dtls_allocate_handshake_packet.c b/nx_secure/src/nx_secure_dtls_allocate_handshake_packet.c index aadb1b3f..c6309dbf 100644 --- a/nx_secure/src/nx_secure_dtls_allocate_handshake_packet.c +++ b/nx_secure/src/nx_secure_dtls_allocate_handshake_packet.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* _nx_secure_dtls_session_start Actual DTLS session start call*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_allocate_handshake_packet(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET_POOL *packet_pool, NX_PACKET **packet_ptr, diff --git a/nx_secure/src/nx_secure_dtls_client_handshake.c b/nx_secure/src/nx_secure_dtls_client_handshake.c index 0d4db28d..7734f592 100644 --- a/nx_secure/src/nx_secure_dtls_client_handshake.c +++ b/nx_secure/src/nx_secure_dtls_client_handshake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -96,30 +96,6 @@ /* */ /* _nx_secure_dtls_process_record Process DTLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* verified memmove use cases, */ -/* released packet securely, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, added null */ -/* pointer checking, */ -/* resulting in version 6.1.3 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* resulting in version 6.1.10 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* removed duplicated alert, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_client_handshake(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *packet_buffer, UINT data_length, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_dtls_client_protocol_version_override.c b/nx_secure/src/nx_secure_dtls_client_protocol_version_override.c index 40c28c6d..f05675b5 100644 --- a/nx_secure/src/nx_secure_dtls_client_protocol_version_override.c +++ b/nx_secure/src/nx_secure_dtls_client_protocol_version_override.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_client_protocol_version_override(NX_SECURE_DTLS_SESSION *dtls_session, USHORT protocol_version) diff --git a/nx_secure/src/nx_secure_dtls_client_session_start.c b/nx_secure/src/nx_secure_dtls_client_session_start.c index bdfd51bd..b788e0cc 100644 --- a/nx_secure/src/nx_secure_dtls_client_session_start.c +++ b/nx_secure/src/nx_secure_dtls_client_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_client_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_socket, NXD_ADDRESS *ip_address, UINT port, UINT wait_option) { diff --git a/nx_secure/src/nx_secure_dtls_ecc_initialize.c b/nx_secure/src/nx_secure_dtls_ecc_initialize.c index 25240bdc..f7781712 100644 --- a/nx_secure/src/nx_secure_dtls_ecc_initialize.c +++ b/nx_secure/src/nx_secure_dtls_ecc_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_ecc_initialize(NX_SECURE_DTLS_SESSION *dtls_session, const USHORT *supported_groups, USHORT supported_group_count, diff --git a/nx_secure/src/nx_secure_dtls_hash_record.c b/nx_secure/src/nx_secure_dtls_hash_record.c index 96637e64..6b821820 100644 --- a/nx_secure/src/nx_secure_dtls_hash_record.c +++ b/nx_secure/src/nx_secure_dtls_hash_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,15 +69,6 @@ static UCHAR adjusted_header[5]; /* _nx_secure_dtls_send_record Send DTLS records */ /* _nx_secure_dtls_verify_mac Verify record MAC checksum */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_hash_record(NX_SECURE_DTLS_SESSION *dtls_session, ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], diff --git a/nx_secure/src/nx_secure_dtls_initialize.c b/nx_secure/src/nx_secure_dtls_initialize.c index 90ba9699..6c5b167a 100644 --- a/nx_secure/src/nx_secure_dtls_initialize.c +++ b/nx_secure/src/nx_secure_dtls_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_dtls_initialize(VOID) { diff --git a/nx_secure/src/nx_secure_dtls_packet_allocate.c b/nx_secure/src/nx_secure_dtls_packet_allocate.c index 3c4c6037..ff7349a5 100644 --- a/nx_secure/src/nx_secure_dtls_packet_allocate.c +++ b/nx_secure/src/nx_secure_dtls_packet_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _nx_secure_dtls_session_end Actual DTLS session end call. */ /* _nx_secure_dtls_session_receive Receive DTLS data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_packet_allocate(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_dtls_process_clienthello.c b/nx_secure/src/nx_secure_dtls_process_clienthello.c index 172ae831..92190018 100644 --- a/nx_secure/src/nx_secure_dtls_process_clienthello.c +++ b/nx_secure/src/nx_secure_dtls_process_clienthello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,29 +76,6 @@ static UINT _nx_secure_dtls_check_ciphersuite(const NX_SECURE_TLS_CIPHERSUITE_IN /* */ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* priority ciphersuite logic, */ -/* verified memcpy use cases, */ -/* fixed configuration problem */ -/* that would result in */ -/* compiler error, fixed */ -/* renegotiation bug, */ -/* improved negotiation logic, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_process_clienthello(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *packet_buffer, UINT message_length) @@ -649,14 +626,6 @@ NX_SECURE_TLS_ECDHE_HANDSHAKE_DATA *ecdhe_data; /* */ /* _nx_secure_dtls_process_clienthello Process ClientHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_ECC_CIPHERSUITE) && !defined(NX_SECURE_DISABLE_X509) static UINT _nx_secure_dtls_check_ciphersuite(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite_info, diff --git a/nx_secure/src/nx_secure_dtls_process_handshake_header.c b/nx_secure/src/nx_secure_dtls_process_handshake_header.c index 68c1133d..015dde27 100644 --- a/nx_secure/src/nx_secure_dtls_process_handshake_header.c +++ b/nx_secure/src/nx_secure_dtls_process_handshake_header.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,18 +65,6 @@ /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_process_handshake_header(UCHAR *packet_buffer, USHORT *message_type, UINT *header_size, UINT *message_length, diff --git a/nx_secure/src/nx_secure_dtls_process_header.c b/nx_secure/src/nx_secure_dtls_process_header.c index c5f43874..c42382c0 100644 --- a/nx_secure/src/nx_secure_dtls_process_header.c +++ b/nx_secure/src/nx_secure_dtls_process_header.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,18 +64,6 @@ /* */ /* _nx_secure_dtls_process_record Process DTLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_process_header(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, ULONG record_offset, USHORT *message_type, UINT *length, @@ -155,7 +143,7 @@ NX_SECURE_TLS_SESSION *tls_session; * - If the earlier message was NOT seen, check the sliding window to accept/ignore * 2) The incoming sequence is greater than the local count + 1 * - A message was dropped. We need to handle the out-of-order - * message. + * message. * - During the handshake, accept this record as the next valid message * - During the session, accept and update the sliding window. */ @@ -230,7 +218,7 @@ NX_SECURE_TLS_SESSION *tls_session; tls_session -> nx_secure_tls_remote_sequence_number[0] = remote_sequence_number[0]; tls_session -> nx_secure_tls_remote_sequence_number[1] = remote_sequence_number[1]; - /* The sequence number is larger than our current. This is a valid handshake record or + /* The sequence number is larger than our current. This is a valid handshake record or out-of-order newer application data record. Update the current sequence number after the MAC check. */ /* Swap back now that comparisons are done. */ NX_CHANGE_ULONG_ENDIAN(tls_session -> nx_secure_tls_remote_sequence_number[0]); diff --git a/nx_secure/src/nx_secure_dtls_process_helloverifyrequest.c b/nx_secure/src/nx_secure_dtls_process_helloverifyrequest.c index a2024383..209041b6 100644 --- a/nx_secure/src/nx_secure_dtls_process_helloverifyrequest.c +++ b/nx_secure/src/nx_secure_dtls_process_helloverifyrequest.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,19 +57,6 @@ /* */ /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* updated cookie handling, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_process_helloverifyrequest(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_dtls_process_record.c b/nx_secure/src/nx_secure_dtls_process_record.c index dba79b32..2287df25 100644 --- a/nx_secure/src/nx_secure_dtls_process_record.c +++ b/nx_secure/src/nx_secure_dtls_process_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,23 +71,6 @@ /* */ /* _nx_secure_dtls_session_receive Receive DTLS data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* adjusted logic for TLS */ -/* modifications, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_process_record(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, ULONG record_offset, ULONG *bytes_processed, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_dtls_psk_add.c b/nx_secure/src/nx_secure_dtls_psk_add.c index eccb925e..239f48ba 100644 --- a/nx_secure/src/nx_secure_dtls_psk_add.c +++ b/nx_secure/src/nx_secure_dtls_psk_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nx_secure_dtls_psk_add(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *pre_shared_key, diff --git a/nx_secure/src/nx_secure_dtls_receive_callback.c b/nx_secure/src/nx_secure_dtls_receive_callback.c index 9c93f82e..58b19498 100644 --- a/nx_secure/src/nx_secure_dtls_receive_callback.c +++ b/nx_secure/src/nx_secure_dtls_receive_callback.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,15 +75,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_dtls_receive_callback(NX_UDP_SOCKET *socket_ptr) { diff --git a/nx_secure/src/nx_secure_dtls_retransmit.c b/nx_secure/src/nx_secure_dtls_retransmit.c index ff25a0c4..b0e63198 100644 --- a/nx_secure/src/nx_secure_dtls_retransmit.c +++ b/nx_secure/src/nx_secure_dtls_retransmit.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* _nx_secure_dtls_session_start Actual DTLS session start call*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_dtls_retransmit(NX_SECURE_DTLS_SESSION *dtls_session) { diff --git a/nx_secure/src/nx_secure_dtls_retransmit_queue_flush.c b/nx_secure/src/nx_secure_dtls_retransmit_queue_flush.c index 65b82b6f..32678d39 100644 --- a/nx_secure/src/nx_secure_dtls_retransmit_queue_flush.c +++ b/nx_secure/src/nx_secure_dtls_retransmit_queue_flush.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,18 +63,6 @@ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* _nx_secure_dtls_session_start Actual DTLS session start call*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed packet leak, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ VOID _nx_secure_dtls_retransmit_queue_flush(NX_SECURE_DTLS_SESSION *dtls_session) { diff --git a/nx_secure/src/nx_secure_dtls_send_clienthello.c b/nx_secure/src/nx_secure_dtls_send_clienthello.c index fc4878e9..1e2c3b78 100644 --- a/nx_secure/src/nx_secure_dtls_send_clienthello.c +++ b/nx_secure/src/nx_secure_dtls_send_clienthello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,18 +73,6 @@ static UINT _nx_secure_dtls_send_clienthello_sec_spf_extensions(NX_SECURE_TLS_SE /* nx_secure_dtls_session_start */ /* nx_secure_dtls_client_handshake */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Yuxin Zhou Modified comment(s), and */ -/* updated cookie handling, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_send_clienthello(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *send_packet) { @@ -507,14 +495,6 @@ USHORT protocol_version; /* */ /* _nx_secure_dtls_send_clienthello Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE_ECC_CIPHERSUITE static UINT _nx_secure_dtls_send_clienthello_sec_spf_extensions(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nx_secure_dtls_send_handshake_record.c b/nx_secure/src/nx_secure_dtls_send_handshake_record.c index eb15b7ce..d2a6e259 100644 --- a/nx_secure/src/nx_secure_dtls_send_handshake_record.c +++ b/nx_secure/src/nx_secure_dtls_send_handshake_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,15 +66,6 @@ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* _nx_secure_dtls_session_start Actual DTLS session start call*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_send_handshake_record(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *send_packet, UCHAR handshake_type, diff --git a/nx_secure/src/nx_secure_dtls_send_helloverifyrequest.c b/nx_secure/src/nx_secure_dtls_send_helloverifyrequest.c index 6aa96bd9..e83c53e0 100644 --- a/nx_secure/src/nx_secure_dtls_send_helloverifyrequest.c +++ b/nx_secure/src/nx_secure_dtls_send_helloverifyrequest.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,15 +57,6 @@ /* */ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_send_helloverifyrequest(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_dtls_send_record.c b/nx_secure/src/nx_secure_dtls_send_record.c index dbac8621..99c71b6d 100644 --- a/nx_secure/src/nx_secure_dtls_send_record.c +++ b/nx_secure/src/nx_secure_dtls_send_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,23 +77,6 @@ /* _nx_secure_dtls_session_receive Receive DTLS data */ /* _nx_secure_dtls_session_send Actual DTLS session send call */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* checked seq number overflow,*/ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), and */ -/* removed packet release on */ -/* send failure, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_send_record(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *send_packet, UCHAR record_type, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_dtls_send_serverhello.c b/nx_secure/src/nx_secure_dtls_send_serverhello.c index 569b3e1d..a5bd0f3e 100644 --- a/nx_secure/src/nx_secure_dtls_send_serverhello.c +++ b/nx_secure/src/nx_secure_dtls_send_serverhello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,15 +61,6 @@ /* */ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_send_serverhello(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *send_packet) { diff --git a/nx_secure/src/nx_secure_dtls_server_create.c b/nx_secure/src/nx_secure_dtls_server_create.c index 2039de4b..39f1026f 100644 --- a/nx_secure/src/nx_secure_dtls_server_create.c +++ b/nx_secure/src/nx_secure_dtls_server_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -82,14 +82,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_create(NX_SECURE_DTLS_SERVER *server_ptr, NX_IP *ip_ptr, UINT port, ULONG timeout, VOID *session_buffer, UINT session_buffer_size, diff --git a/nx_secure/src/nx_secure_dtls_server_delete.c b/nx_secure/src/nx_secure_dtls_server_delete.c index 636f21d7..f5359983 100644 --- a/nx_secure/src/nx_secure_dtls_server_delete.c +++ b/nx_secure/src/nx_secure_dtls_server_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_delete(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nx_secure_dtls_server_ecc_initialize.c b/nx_secure/src/nx_secure_dtls_server_ecc_initialize.c index efeb7243..6d714553 100644 --- a/nx_secure/src/nx_secure_dtls_server_ecc_initialize.c +++ b/nx_secure/src/nx_secure_dtls_server_ecc_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_ecc_initialize(NX_SECURE_DTLS_SERVER *server_ptr, const USHORT *supported_groups, USHORT supported_group_count, diff --git a/nx_secure/src/nx_secure_dtls_server_handshake.c b/nx_secure/src/nx_secure_dtls_server_handshake.c index 64846cc2..7916e6a9 100644 --- a/nx_secure/src/nx_secure_dtls_server_handshake.c +++ b/nx_secure/src/nx_secure_dtls_server_handshake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -97,32 +97,6 @@ /* */ /* _nx_secure_dtls_process_record Process DTLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* verified memmove use cases, */ -/* fixed renegotiation bug, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* resulting in version 6.1.10 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* removed duplicated alert, */ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), and */ -/* released packet on failure, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_handshake(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *packet_buffer, UINT data_length, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_dtls_server_local_certificate_add.c b/nx_secure/src/nx_secure_dtls_server_local_certificate_add.c index 0bf6fca3..6ea1a9d3 100644 --- a/nx_secure/src/nx_secure_dtls_server_local_certificate_add.c +++ b/nx_secure/src/nx_secure_dtls_server_local_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,19 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_local_certificate_add(NX_SECURE_DTLS_SERVER *server_ptr, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_server_local_certificate_remove.c b/nx_secure/src/nx_secure_dtls_server_local_certificate_remove.c index c9e97d51..b316afcb 100644 --- a/nx_secure/src/nx_secure_dtls_server_local_certificate_remove.c +++ b/nx_secure/src/nx_secure_dtls_server_local_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,19 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_local_certificate_remove(NX_SECURE_DTLS_SERVER *server_ptr, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_server_notify_set.c b/nx_secure/src/nx_secure_dtls_server_notify_set.c index 28ace3e6..e94f92fa 100644 --- a/nx_secure/src/nx_secure_dtls_server_notify_set.c +++ b/nx_secure/src/nx_secure_dtls_server_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_notify_set(NX_SECURE_DTLS_SERVER *server_ptr, UINT (*disconnect_notify)(NX_SECURE_DTLS_SESSION *dtls_session), diff --git a/nx_secure/src/nx_secure_dtls_server_protocol_version_override.c b/nx_secure/src/nx_secure_dtls_server_protocol_version_override.c index 15ea4cef..53d0d4dc 100644 --- a/nx_secure/src/nx_secure_dtls_server_protocol_version_override.c +++ b/nx_secure/src/nx_secure_dtls_server_protocol_version_override.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_protocol_version_override(NX_SECURE_DTLS_SERVER *dtls_server, USHORT protocol_version) diff --git a/nx_secure/src/nx_secure_dtls_server_psk_add.c b/nx_secure/src/nx_secure_dtls_server_psk_add.c index c729763d..dbb7a0a2 100644 --- a/nx_secure/src/nx_secure_dtls_server_psk_add.c +++ b/nx_secure/src/nx_secure_dtls_server_psk_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nx_secure_dtls_server_psk_add(NX_SECURE_DTLS_SERVER *server_ptr, UCHAR *pre_shared_key, diff --git a/nx_secure/src/nx_secure_dtls_server_session_send.c b/nx_secure/src/nx_secure_dtls_server_session_send.c index 2519076a..fa4f3c23 100644 --- a/nx_secure/src/nx_secure_dtls_server_session_send.c +++ b/nx_secure/src/nx_secure_dtls_server_session_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr) { diff --git a/nx_secure/src/nx_secure_dtls_server_session_start.c b/nx_secure/src/nx_secure_dtls_server_session_start.c index d273b704..785b1974 100644 --- a/nx_secure/src/nx_secure_dtls_server_session_start.c +++ b/nx_secure/src/nx_secure_dtls_server_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_session_start(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) { diff --git a/nx_secure/src/nx_secure_dtls_server_start.c b/nx_secure/src/nx_secure_dtls_server_start.c index 33a6382e..688aba8a 100644 --- a/nx_secure/src/nx_secure_dtls_server_start.c +++ b/nx_secure/src/nx_secure_dtls_server_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ VOID _nx_secure_dtls_receive_callback(NX_UDP_SOCKET *socket_ptr); /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_start(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nx_secure_dtls_server_stop.c b/nx_secure/src/nx_secure_dtls_server_stop.c index d764c5be..fd947111 100644 --- a/nx_secure/src/nx_secure_dtls_server_stop.c +++ b/nx_secure/src/nx_secure_dtls_server_stop.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_stop(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nx_secure_dtls_server_trusted_certificate_add.c b/nx_secure/src/nx_secure_dtls_server_trusted_certificate_add.c index c7b68889..045566be 100644 --- a/nx_secure/src/nx_secure_dtls_server_trusted_certificate_add.c +++ b/nx_secure/src/nx_secure_dtls_server_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,19 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_trusted_certificate_add(NX_SECURE_DTLS_SERVER *server_ptr, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_server_trusted_certificate_remove.c b/nx_secure/src/nx_secure_dtls_server_trusted_certificate_remove.c index b52d3ad8..47b573f3 100644 --- a/nx_secure/src/nx_secure_dtls_server_trusted_certificate_remove.c +++ b/nx_secure/src/nx_secure_dtls_server_trusted_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,19 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_trusted_certificate_remove(NX_SECURE_DTLS_SERVER *server_ptr, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_server_x509_client_verify_configure.c b/nx_secure/src/nx_secure_dtls_server_x509_client_verify_configure.c index 34624e95..a9a6f946 100644 --- a/nx_secure/src/nx_secure_dtls_server_x509_client_verify_configure.c +++ b/nx_secure/src/nx_secure_dtls_server_x509_client_verify_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_x509_client_verify_configure(NX_SECURE_DTLS_SERVER *server_ptr, UINT certs_per_session, UCHAR *certs_buffer, ULONG buffer_size) diff --git a/nx_secure/src/nx_secure_dtls_server_x509_client_verify_disable.c b/nx_secure/src/nx_secure_dtls_server_x509_client_verify_disable.c index 59400342..8982ccd9 100644 --- a/nx_secure/src/nx_secure_dtls_server_x509_client_verify_disable.c +++ b/nx_secure/src/nx_secure_dtls_server_x509_client_verify_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -56,14 +56,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_server_x509_client_verify_disable(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nx_secure_dtls_session_cache.c b/nx_secure/src/nx_secure_dtls_session_cache.c index 1c5d129c..02984292 100644 --- a/nx_secure/src/nx_secure_dtls_session_cache.c +++ b/nx_secure/src/nx_secure_dtls_session_cache.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,18 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* fixed compiler errors when */ -/* IPv4 is disabled, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ VOID nx_secure_dtls_session_cache_delete(NX_SECURE_DTLS_SERVER *dtls_server, NXD_ADDRESS *ip_address, UINT remote_port, UINT local_port) { @@ -172,15 +160,6 @@ UINT i; /* */ /* _nx_secure_dtls_receive_callback DTLS receive callback function*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT nx_secure_dtls_session_cache_get_new(NX_SECURE_DTLS_SERVER *dtls_server, NX_SECURE_DTLS_SESSION **dtls_session, NXD_ADDRESS *ip_address, UINT remote_port, UINT local_port) { @@ -266,18 +245,6 @@ UINT i; /* */ /* _nx_secure_dtls_receive_callback DTLS receive callback function*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* fixed compiler errors when */ -/* IPv4 is disabled, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT nx_secure_dtls_session_cache_find(NX_SECURE_DTLS_SERVER *dtls_server, NX_SECURE_DTLS_SESSION **dtls_session, NXD_ADDRESS *ip_address, UINT remote_port, UINT local_port) { diff --git a/nx_secure/src/nx_secure_dtls_session_client_info_get.c b/nx_secure/src/nx_secure_dtls_session_client_info_get.c index 65bb9ed5..619b65b2 100644 --- a/nx_secure/src/nx_secure_dtls_session_client_info_get.c +++ b/nx_secure/src/nx_secure_dtls_session_client_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_client_info_get(NX_SECURE_DTLS_SESSION *dtls_session, NXD_ADDRESS *client_ip_address, UINT *client_port, UINT *local_port) diff --git a/nx_secure/src/nx_secure_dtls_session_create.c b/nx_secure/src/nx_secure_dtls_session_create.c index 8794014b..e00db9d7 100644 --- a/nx_secure/src/nx_secure_dtls_session_create.c +++ b/nx_secure/src/nx_secure_dtls_session_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,14 +75,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, const NX_SECURE_TLS_CRYPTO *crypto_table, diff --git a/nx_secure/src/nx_secure_dtls_session_delete.c b/nx_secure/src/nx_secure_dtls_session_delete.c index a64539d1..1577289b 100644 --- a/nx_secure/src/nx_secure_dtls_session_delete.c +++ b/nx_secure/src/nx_secure_dtls_session_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_delete(NX_SECURE_DTLS_SESSION *dtls_session) { diff --git a/nx_secure/src/nx_secure_dtls_session_end.c b/nx_secure/src/nx_secure_dtls_session_end.c index 115e65ef..0f654f6a 100644 --- a/nx_secure/src/nx_secure_dtls_session_end.c +++ b/nx_secure/src/nx_secure_dtls_session_end.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,21 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* resulting in version 6.1.10 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), */ -/* handled close notify packet,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_end(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) { diff --git a/nx_secure/src/nx_secure_dtls_session_local_certificate_add.c b/nx_secure/src/nx_secure_dtls_session_local_certificate_add.c index 63401a93..fb1ad572 100644 --- a/nx_secure/src/nx_secure_dtls_session_local_certificate_add.c +++ b/nx_secure/src/nx_secure_dtls_session_local_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,18 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_local_certificate_add(NX_SECURE_DTLS_SESSION *dtls_session, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_session_local_certificate_remove.c b/nx_secure/src/nx_secure_dtls_session_local_certificate_remove.c index 838f3a71..463fdee7 100644 --- a/nx_secure/src/nx_secure_dtls_session_local_certificate_remove.c +++ b/nx_secure/src/nx_secure_dtls_session_local_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,18 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_local_certificate_remove(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_session_receive.c b/nx_secure/src/nx_secure_dtls_session_receive.c index ccac1362..f7f82065 100644 --- a/nx_secure/src/nx_secure_dtls_session_receive.c +++ b/nx_secure/src/nx_secure_dtls_session_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,25 +72,6 @@ /* _nx_secure_dtls_session_start Actual DTLS session start call*/ /* _nx_secure_dtls_session_end End of a session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* fixed out-of-order handling,*/ -/* resulting in version 6.1.10 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* fixed compiler errors when */ -/* IPv4 is disabled, */ -/* resulting in version 6.1.12 */ -/* 10-31-2023 Tiejun Zhou Modified comment(s), and */ -/* released packet on failure, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_receive(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET **packet_ptr_ptr, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_dtls_session_reset.c b/nx_secure/src/nx_secure_dtls_session_reset.c index 78f51af9..8fc4f32d 100644 --- a/nx_secure/src/nx_secure_dtls_session_reset.c +++ b/nx_secure/src/nx_secure_dtls_session_reset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,18 +63,6 @@ /* _nx_secure_dtls_session_end End of a session */ /* nx_secure_dtls_session_cache_delete Delete a session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* updated cookie handling, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *dtls_session) { diff --git a/nx_secure/src/nx_secure_dtls_session_send.c b/nx_secure/src/nx_secure_dtls_session_send.c index 64783141..f677773f 100644 --- a/nx_secure/src/nx_secure_dtls_session_send.c +++ b/nx_secure/src/nx_secure_dtls_session_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,19 +61,6 @@ /* Application Code */ /* nx_secure_dtls_server_session_send Server session send packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* fixed compiler errors when */ -/* IPv4 is disabled, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT port) diff --git a/nx_secure/src/nx_secure_dtls_session_sliding_window_check.c b/nx_secure/src/nx_secure_dtls_session_sliding_window_check.c index 45fc3411..85fbdc96 100644 --- a/nx_secure/src/nx_secure_dtls_session_sliding_window_check.c +++ b/nx_secure/src/nx_secure_dtls_session_sliding_window_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,12 +61,6 @@ /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 01-31-2022 Timothy Stapko Initial Version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_sliding_window_check(NX_SECURE_DTLS_SESSION *dtls_session, ULONG *sequence_number) @@ -93,7 +87,7 @@ NX_SECURE_TLS_SESSION *tls_session; (sequence_number[0] == tls_session -> nx_secure_tls_remote_sequence_number[0] && sequence_number[1] > tls_session -> nx_secure_tls_remote_sequence_number[1])) { - /* Incoming sequence number is bigger than last seen. This is OK, new sequence number. + /* Incoming sequence number is bigger than last seen. This is OK, new sequence number. Outside window to the "right" side. */ return(NX_TRUE); } diff --git a/nx_secure/src/nx_secure_dtls_session_sliding_window_update.c b/nx_secure/src/nx_secure_dtls_session_sliding_window_update.c index 626876ad..1fdeda64 100644 --- a/nx_secure/src/nx_secure_dtls_session_sliding_window_update.c +++ b/nx_secure/src/nx_secure_dtls_session_sliding_window_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,12 +59,6 @@ /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 01-31-2022 Timothy Stapko Initial Version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_sliding_window_update(NX_SECURE_DTLS_SESSION *dtls_session, ULONG *sequence_number) diff --git a/nx_secure/src/nx_secure_dtls_session_start.c b/nx_secure/src/nx_secure_dtls_session_start.c index f903a8a2..7fa56d36 100644 --- a/nx_secure/src/nx_secure_dtls_session_start.c +++ b/nx_secure/src/nx_secure_dtls_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,16 +69,6 @@ /* _nx_secure_dtls_client_session_start Client session start */ /* _nx_secure_dtls_server_session_start Server session start */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_socket, UINT is_client, UINT wait_option) diff --git a/nx_secure/src/nx_secure_dtls_session_trusted_certificate_add.c b/nx_secure/src/nx_secure_dtls_session_trusted_certificate_add.c index 88152f4d..d3d1baf9 100644 --- a/nx_secure/src/nx_secure_dtls_session_trusted_certificate_add.c +++ b/nx_secure/src/nx_secure_dtls_session_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,18 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_trusted_certificate_add(NX_SECURE_DTLS_SESSION *dtls_session, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_session_trusted_certificate_remove.c b/nx_secure/src/nx_secure_dtls_session_trusted_certificate_remove.c index 31b0584c..c5f2f343 100644 --- a/nx_secure/src/nx_secure_dtls_session_trusted_certificate_remove.c +++ b/nx_secure/src/nx_secure_dtls_session_trusted_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,18 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_session_trusted_certificate_remove(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nx_secure_dtls_verify_mac.c b/nx_secure/src/nx_secure_dtls_verify_mac.c index 8d605c32..82b40852 100644 --- a/nx_secure/src/nx_secure_dtls_verify_mac.c +++ b/nx_secure/src/nx_secure_dtls_verify_mac.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,15 +65,6 @@ static UCHAR _generated_hash[NX_SECURE_TLS_MAX_HASH_SIZE]; /* */ /* _nx_secure_dtls_process_record Process DTLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_dtls_verify_mac(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *header_data, USHORT header_length, UCHAR *data, UINT *length) diff --git a/nx_secure/src/nx_secure_generate_client_key_exchange.c b/nx_secure/src/nx_secure_generate_client_key_exchange.c index 12557a34..0af26746 100644 --- a/nx_secure/src/nx_secure_generate_client_key_exchange.c +++ b/nx_secure/src/nx_secure_generate_client_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,16 +75,6 @@ static UCHAR _nx_secure_client_padded_pre_master[600]; /* _nx_secure_tls_send_client_key_exchange */ /* Send ClientKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_generate_client_key_exchange(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, NX_SECURE_TLS_KEY_MATERIAL *tls_key_material, NX_SECURE_TLS_CREDENTIALS *tls_credentials, diff --git a/nx_secure/src/nx_secure_generate_master_secret.c b/nx_secure/src/nx_secure_generate_master_secret.c index e507c494..c4cfecc8 100644 --- a/nx_secure/src/nx_secure_generate_master_secret.c +++ b/nx_secure/src/nx_secure_generate_master_secret.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,12 +72,6 @@ static UCHAR _nx_secure_tls_gen_keys_random[NX_SECURE_TLS_RANDOM_SIZE << 1]; /* */ /* _nx_secure_tls_generate_keys Generate session keys */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_generate_master_secret(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, const NX_CRYPTO_METHOD *session_prf_method, NX_SECURE_TLS_KEY_MATERIAL *tls_key_material, diff --git a/nx_secure/src/nx_secure_generate_premaster_secret.c b/nx_secure/src/nx_secure_generate_premaster_secret.c index fffeb6bb..dea98428 100644 --- a/nx_secure/src/nx_secure_generate_premaster_secret.c +++ b/nx_secure/src/nx_secure_generate_premaster_secret.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,16 +68,6 @@ /* _nx_secure_tls_generate_premaster_secret */ /* Generate pre-master secret */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_generate_premaster_secret(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, NX_SECURE_TLS_KEY_MATERIAL *tls_key_material, NX_SECURE_TLS_CREDENTIALS *tls_credentials, UINT session_type, USHORT *received_remote_credentials, diff --git a/nx_secure/src/nx_secure_generate_server_key_exchange.c b/nx_secure/src/nx_secure_generate_server_key_exchange.c index 2a3ea68a..fd093958 100644 --- a/nx_secure/src/nx_secure_generate_server_key_exchange.c +++ b/nx_secure/src/nx_secure_generate_server_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,12 +73,6 @@ /* _nx_secure_tls_send_server_key_exchange */ /* Send ServerKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_generate_server_key_exchange(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, UCHAR tls_1_3, NX_SECURE_TLS_CRYPTO *tls_crypto_table, NX_SECURE_TLS_HANDSHAKE_HASH *tls_handshake_hash, diff --git a/nx_secure/src/nx_secure_generate_session_keys.c b/nx_secure/src/nx_secure_generate_session_keys.c index 7cc7494c..ca139aa5 100644 --- a/nx_secure/src/nx_secure_generate_session_keys.c +++ b/nx_secure/src/nx_secure_generate_session_keys.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,12 +70,6 @@ static UCHAR _nx_secure_tls_gen_keys_random[NX_SECURE_TLS_RANDOM_SIZE << 1]; /* */ /* _nx_secure_tls_generate_keys Generate session keys */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_generate_session_keys(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, const NX_CRYPTO_METHOD *session_prf_method, NX_SECURE_TLS_KEY_MATERIAL *tls_key_material, diff --git a/nx_secure/src/nx_secure_module_hash_compute.c b/nx_secure/src/nx_secure_module_hash_compute.c index fcd4bafb..91d8bcf1 100644 --- a/nx_secure/src/nx_secure_module_hash_compute.c +++ b/nx_secure/src/nx_secure_module_hash_compute.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,14 +72,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT nx_secure_module_hash_compute(NX_CRYPTO_METHOD *hmac_ptr, UINT start_address, diff --git a/nx_secure/src/nx_secure_process_client_key_exchange.c b/nx_secure/src/nx_secure_process_client_key_exchange.c index 00546441..97fd37d6 100644 --- a/nx_secure/src/nx_secure_process_client_key_exchange.c +++ b/nx_secure/src/nx_secure_process_client_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -81,16 +81,6 @@ static UCHAR _nx_secure_client_padded_pre_master[600]; /* _nx_secure_tls_process_client_key_exchange */ /* Process ClientKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_process_client_key_exchange(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, UCHAR *packet_buffer, UINT message_length, USHORT *received_remote_credentials, diff --git a/nx_secure/src/nx_secure_process_server_key_exchange.c b/nx_secure/src/nx_secure_process_server_key_exchange.c index 6f043ec4..32ace90c 100644 --- a/nx_secure/src/nx_secure_process_server_key_exchange.c +++ b/nx_secure/src/nx_secure_process_server_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,16 +87,6 @@ static UCHAR decrypted_signature[512]; /* _nx_secure_tls_process_server_key_exchange */ /* Process ServerKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_process_server_key_exchange(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, NX_SECURE_TLS_CRYPTO *tls_crypto_table, USHORT protocol_version, UCHAR *packet_buffer, UINT message_length, diff --git a/nx_secure/src/nx_secure_remote_certificate_verify.c b/nx_secure/src/nx_secure_remote_certificate_verify.c index 66085746..c9e652fa 100644 --- a/nx_secure/src/nx_secure_remote_certificate_verify.c +++ b/nx_secure/src/nx_secure_remote_certificate_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,12 +63,6 @@ /* _nx_secure_tls_remote_certificate_verify */ /* Verify the server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_remote_certificate_verify(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT *certificate, ULONG current_time) diff --git a/nx_secure/src/nx_secure_session_keys_set.c b/nx_secure/src/nx_secure_session_keys_set.c index 07a2250e..df7b994d 100644 --- a/nx_secure/src/nx_secure_session_keys_set.c +++ b/nx_secure/src/nx_secure_session_keys_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,12 +69,6 @@ /* */ /* _nx_secure_tls_session_keys_set Set session keys */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_session_keys_set(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, NX_SECURE_TLS_KEY_MATERIAL *tls_key_material, UINT key_material_data_size, UINT is_client, UCHAR *session_cipher_initialized, diff --git a/nx_secure/src/nx_secure_tls_1_3_client_handshake.c b/nx_secure/src/nx_secure_tls_1_3_client_handshake.c index 7e9489ab..4099424a 100644 --- a/nx_secure/src/nx_secure_tls_1_3_client_handshake.c +++ b/nx_secure/src/nx_secure_tls_1_3_client_handshake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -98,32 +98,6 @@ /* */ /* _nx_secure_tls_process_record Process TLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Timothy Stapko Modified comment(s), added */ -/* support for fragmented TLS */ -/* Handshake messages, */ -/* resulting in version 6.1.4 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* updated alert message for */ -/* downgrade protection, */ -/* resulting in version 6.1.12 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* corrected metadata cleanup, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ /* State transition table for TLS 1.3 Client. * @@ -274,7 +248,7 @@ const UCHAR *server_random; status = _nx_secure_tls_process_serverhello(tls_session, packet_buffer, message_length); /* RFC 8446 4.1.3: - TLS 1.3 clients receiving a ServerHello indicating TLS 1.2 or below MUST check that + TLS 1.3 clients receiving a ServerHello indicating TLS 1.2 or below MUST check that the last 8 bytes are not equal to either of these values. */ if ((status == NX_SUCCESS) && (tls_session -> nx_secure_tls_1_3 == NX_FALSE)) { diff --git a/nx_secure/src/nx_secure_tls_1_3_crypto_init.c b/nx_secure/src/nx_secure_tls_1_3_crypto_init.c index 43a5d986..d697863c 100644 --- a/nx_secure/src/nx_secure_tls_1_3_crypto_init.c +++ b/nx_secure/src/nx_secure_tls_1_3_crypto_init.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ extern NX_SECURE_TLS_ECC _nx_secure_tls_ecc_info; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) diff --git a/nx_secure/src/nx_secure_tls_1_3_finished_hash_generate.c b/nx_secure/src/nx_secure_tls_1_3_finished_hash_generate.c index 8f128770..94e102e8 100644 --- a/nx_secure/src/nx_secure_tls_1_3_finished_hash_generate.c +++ b/nx_secure/src/nx_secure_tls_1_3_finished_hash_generate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,17 +65,6 @@ /* _nx_secure_tls_send_finished Send Finished message */ /* _nx_secure_tls_process_finished Process Finished message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* corrected hash cleanup, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) UINT _nx_secure_tls_1_3_finished_hash_generate(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nx_secure_tls_1_3_generate_keys.c b/nx_secure/src/nx_secure_tls_1_3_generate_keys.c index c44f3903..1974e6b8 100644 --- a/nx_secure/src/nx_secure_tls_1_3_generate_keys.c +++ b/nx_secure/src/nx_secure_tls_1_3_generate_keys.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,14 +86,6 @@ static UINT _nx_secure_tls_hkdf_extract(NX_SECURE_TLS_SESSION *tls_session, UCHA /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -193,17 +185,6 @@ UINT is_resumption_psk = NX_FALSE; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* cleanup for session cipher, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -463,14 +444,6 @@ UINT hash_size; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -653,14 +626,6 @@ UINT key_offset; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -731,14 +696,6 @@ const NX_CRYPTO_METHOD *hash_method; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -1042,14 +999,6 @@ UINT is_resumption_psk = NX_FALSE; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -1201,14 +1150,6 @@ UCHAR (*transcript_hashes)[NX_SECURE_TLS_MAX_HASH_SIZE] = tls_session->nx_secure /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -1370,20 +1311,11 @@ UINT hash_length; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) -/* Buffer for HKDF output. The HKDF temporary can technically be as big as - 514 bytes: 2 (length) + 1 (label length byte) + 255 (label) + 1 (context length byte) + 255 (context). +/* Buffer for HKDF output. The HKDF temporary can technically be as big as + 514 bytes: 2 (length) + 1 (label length byte) + 255 (label) + 1 (context length byte) + 255 (context). However, 100 bytes is sufficient for the mandatory ciphersuite. */ static UCHAR _nx_secure_tls_hkdf_temp_output[100]; static UINT _nx_secure_tls_hkdf_expand_label(NX_SECURE_TLS_SESSION *tls_session, UCHAR *secret, UINT secret_len, @@ -1554,14 +1486,6 @@ const NX_CRYPTO_METHOD *session_hmac_method = NX_NULL; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) diff --git a/nx_secure/src/nx_secure_tls_1_3_server_handshake.c b/nx_secure/src/nx_secure_tls_1_3_server_handshake.c index 65daa0ea..2ae1cd1c 100644 --- a/nx_secure/src/nx_secure_tls_1_3_server_handshake.c +++ b/nx_secure/src/nx_secure_tls_1_3_server_handshake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,32 +87,6 @@ /* */ /* _nx_secure_tls_process_record Process TLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Timothy Stapko Modified comment(s), added */ -/* support for fragmented TLS */ -/* Handshake messages, */ -/* resulting in version 6.1.4 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* removed duplicated alert, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* fixed handling of multiple */ -/* handshake messages, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) UINT _nx_secure_tls_1_3_server_handshake(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, @@ -306,7 +280,7 @@ NX_SECURE_TLS_SERVER_STATE old_server_state; tls_session -> nx_secure_tls_server_state = NX_SECURE_TLS_SERVER_STATE_FINISH_HANDSHAKE; break; -/* Invalid message types in tls 1.3. +/* Invalid message types in tls 1.3. case NX_SECURE_TLS_CLIENT_KEY_EXCHANGE: case NX_SECURE_TLS_HELLO_VERIFY_REQUEST: case NX_SECURE_TLS_HELLO_REQUEST: diff --git a/nx_secure/src/nx_secure_tls_1_3_session_keys_set.c b/nx_secure/src/nx_secure_tls_1_3_session_keys_set.c index e20beb36..f21cb703 100644 --- a/nx_secure/src/nx_secure_tls_1_3_session_keys_set.c +++ b/nx_secure/src/nx_secure_tls_1_3_session_keys_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,18 +66,6 @@ /* _nx_secure_tls_process_changecipherspec */ /* Process ChangeCipherSpec */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* cleanup for session cipher, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #define NX_SECURE_SOURCE_CODE #if (NX_SECURE_TLS_TLS_1_3_ENABLED) diff --git a/nx_secure/src/nx_secure_tls_1_3_transcript_hash_save.c b/nx_secure/src/nx_secure_tls_1_3_transcript_hash_save.c index 36ff236d..de8cc0cf 100644 --- a/nx_secure/src/nx_secure_tls_1_3_transcript_hash_save.c +++ b/nx_secure/src/nx_secure_tls_1_3_transcript_hash_save.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,18 +58,6 @@ /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) diff --git a/nx_secure/src/nx_secure_tls_active_certificate_set.c b/nx_secure/src/nx_secure_tls_active_certificate_set.c index efd8288b..610dd61c 100644 --- a/nx_secure/src/nx_secure_tls_active_certificate_set.c +++ b/nx_secure/src/nx_secure_tls_active_certificate_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,18 +68,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_active_certificate_set(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nx_secure_tls_allocate_handshake_packet.c b/nx_secure/src/nx_secure_tls_allocate_handshake_packet.c index 7a3602a5..7ffe4d7e 100644 --- a/nx_secure/src/nx_secure_tls_allocate_handshake_packet.c +++ b/nx_secure/src/nx_secure_tls_allocate_handshake_packet.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* _nx_secure_tls_session_renegotiate Renegotiate TLS session */ /* _nx_secure_tls_session_start Start TLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_allocate_handshake_packet(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET_POOL *packet_pool, diff --git a/nx_secure/src/nx_secure_tls_check_protocol_version.c b/nx_secure/src/nx_secure_tls_check_protocol_version.c index bde63a53..cf328332 100644 --- a/nx_secure/src/nx_secure_tls_check_protocol_version.c +++ b/nx_secure/src/nx_secure_tls_check_protocol_version.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -97,14 +97,6 @@ NX_SECURE_VERSIONS_LIST nx_secure_supported_versions_list[] = /* _nx_secure_tls_process_header Process record header */ /* _nx_secure_tls_process_serverhello Process ServerHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_check_protocol_version(NX_SECURE_TLS_SESSION *tls_session, USHORT protocol_version, UINT id) diff --git a/nx_secure/src/nx_secure_tls_ciphersuite_lookup.c b/nx_secure/src/nx_secure_tls_ciphersuite_lookup.c index bb00cdae..fd80ee5b 100644 --- a/nx_secure/src/nx_secure_tls_ciphersuite_lookup.c +++ b/nx_secure/src/nx_secure_tls_ciphersuite_lookup.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,15 +63,6 @@ /* _nx_secure_tls_process_clienthello Process ClientHello */ /* _nx_secure_tls_process_serverhello Process ServerHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), return */ -/* priority of selected suite, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_ciphersuite_lookup(NX_SECURE_TLS_SESSION *tls_session, UINT ciphersuite, NX_SECURE_TLS_CIPHERSUITE_INFO const **info, USHORT *priority) diff --git a/nx_secure/src/nx_secure_tls_client_handshake.c b/nx_secure/src/nx_secure_tls_client_handshake.c index 62f0be78..1d29e479 100644 --- a/nx_secure/src/nx_secure_tls_client_handshake.c +++ b/nx_secure/src/nx_secure_tls_client_handshake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -94,36 +94,6 @@ /* */ /* _nx_secure_tls_process_record Process TLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* fixed renegotiation bug, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Timothy Stapko Modified comment(s), added */ -/* support for fragmented TLS */ -/* Handshake messages, */ -/* resulting in version 6.1.4 */ -/* 03-02-2021 Timothy Stapko Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.5 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* removed duplicated alert, */ -/* resulting in version 6.1.12 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_client_handshake(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT data_length, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_client_psk_set.c b/nx_secure/src/nx_secure_tls_client_psk_set.c index 184147e0..218b80ce 100644 --- a/nx_secure/src/nx_secure_tls_client_psk_set.c +++ b/nx_secure/src/nx_secure_tls_client_psk_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,15 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES UINT _nx_secure_tls_client_psk_set(NX_SECURE_TLS_SESSION *tls_session, UCHAR *pre_shared_key, UINT psk_length, diff --git a/nx_secure/src/nx_secure_tls_ecc_generate_keys.c b/nx_secure/src/nx_secure_tls_ecc_generate_keys.c index 1db7de90..b31d2c45 100644 --- a/nx_secure/src/nx_secure_tls_ecc_generate_keys.c +++ b/nx_secure/src/nx_secure_tls_ecc_generate_keys.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -99,26 +99,6 @@ static const UCHAR _NX_CRYPTO_DER_OID_SHA_512[] = {0x30, 0x51, 0x30, 0x0d, /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), removed */ -/* internal unreachable logic, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_ecc_generate_keys(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, UCHAR tls_1_3, NX_SECURE_TLS_CRYPTO *tls_crypto_table, NX_SECURE_TLS_HANDSHAKE_HASH *tls_handshake_hash, diff --git a/nx_secure/src/nx_secure_tls_ecc_initialize.c b/nx_secure/src/nx_secure_tls_ecc_initialize.c index 20f4ab2e..ca346900 100644 --- a/nx_secure/src/nx_secure_tls_ecc_initialize.c +++ b/nx_secure/src/nx_secure_tls_ecc_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,17 +70,6 @@ extern const NX_CRYPTO_METHOD **_nx_secure_x509_ecc_curves; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), added */ -/* ECC curve table in X509, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_ecc_initialize(NX_SECURE_TLS_SESSION *tls_session, const USHORT *supported_groups, USHORT supported_group_count, diff --git a/nx_secure/src/nx_secure_tls_find_curve_method.c b/nx_secure/src/nx_secure_tls_find_curve_method.c index 44f88278..eb1057fd 100644 --- a/nx_secure/src/nx_secure_tls_find_curve_method.c +++ b/nx_secure/src/nx_secure_tls_find_curve_method.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,21 +76,6 @@ /* _nx_secure_tls_send_server_key_exchange */ /* Send ServerKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* curve priority return value,*/ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), added */ -/* ECC curve table in X509, */ -/* resulting in version 6.1.6 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_find_curve_method(NX_SECURE_TLS_ECC *tls_ecc, USHORT named_curve, const NX_CRYPTO_METHOD **curve_method, UINT *curve_priority) diff --git a/nx_secure/src/nx_secure_tls_finished_hash_generate.c b/nx_secure/src/nx_secure_tls_finished_hash_generate.c index d71e085f..8d4ac5da 100644 --- a/nx_secure/src/nx_secure_tls_finished_hash_generate.c +++ b/nx_secure/src/nx_secure_tls_finished_hash_generate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,18 +64,6 @@ static UCHAR handshake_hash[16 + 20]; /* We concatenate MD5 and SHA-1 hashes int /* _nx_secure_tls_send_finished Send Finished message */ /* _nx_secure_tls_process_finished Process Finished message */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_finished_hash_generate(NX_SECURE_TLS_SESSION *tls_session, UCHAR *finished_label, UCHAR *finished_hash) diff --git a/nx_secure/src/nx_secure_tls_generate_keys.c b/nx_secure/src/nx_secure_tls_generate_keys.c index c8c9e56e..4a200f94 100644 --- a/nx_secure/src/nx_secure_tls_generate_keys.c +++ b/nx_secure/src/nx_secure_tls_generate_keys.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,18 +65,6 @@ /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_generate_keys(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_generate_premaster_secret.c b/nx_secure/src/nx_secure_tls_generate_premaster_secret.c index c9bbd23d..f2d1785b 100644 --- a/nx_secure/src/nx_secure_tls_generate_premaster_secret.c +++ b/nx_secure/src/nx_secure_tls_generate_premaster_secret.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,22 +61,6 @@ /* _nx_secure_tls_process_client_key_exchange */ /* Process ClientKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), removed */ -/* internal unreachable logic, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_generate_premaster_secret(NX_SECURE_TLS_SESSION *tls_session, UINT id) { diff --git a/nx_secure/src/nx_secure_tls_handshake_hash_init.c b/nx_secure/src/nx_secure_tls_handshake_hash_init.c index f4680d51..72d92e21 100644 --- a/nx_secure/src/nx_secure_tls_handshake_hash_init.c +++ b/nx_secure/src/nx_secure_tls_handshake_hash_init.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* _nx_secure_tls_send_clienthello Send ClientHello */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_handshake_hash_init(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_handshake_hash_update.c b/nx_secure/src/nx_secure_tls_handshake_hash_update.c index cee5923f..9f22f729 100644 --- a/nx_secure/src/nx_secure_tls_handshake_hash_update.c +++ b/nx_secure/src/nx_secure_tls_handshake_hash_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,19 +66,6 @@ /* _nx_secure_tls_send_handshake_record Send TLS handshake record */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* compilation issue with */ -/* TLS 1.3 and disabling TLS */ -/* server, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_handshake_hash_update(NX_SECURE_TLS_SESSION *tls_session, UCHAR *data, UINT length) diff --git a/nx_secure/src/nx_secure_tls_handshake_process.c b/nx_secure/src/nx_secure_tls_handshake_process.c index 189b8f68..f1bc77ed 100644 --- a/nx_secure/src/nx_secure_tls_handshake_process.c +++ b/nx_secure/src/nx_secure_tls_handshake_process.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,16 +62,6 @@ /* _nx_secure_tls_session_start Start TLS session */ /* _nx_secure_tls_session_receive Receive TCP data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_handshake_process(NX_SECURE_TLS_SESSION *tls_session, UINT wait_option) { diff --git a/nx_secure/src/nx_secure_tls_hash_record.c b/nx_secure/src/nx_secure_tls_hash_record.c index e6896c1c..38c180bd 100644 --- a/nx_secure/src/nx_secure_tls_hash_record.c +++ b/nx_secure/src/nx_secure_tls_hash_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,21 +65,6 @@ /* */ /* _nx_secure_tls_verify_mac Verify record MAC checksum */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Timothy Stapko Modified comment(s), */ -/* fixed compiler warning, */ -/* resulting in version 6.1.7 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* adjusted parameters list, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_hash_record(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], diff --git a/nx_secure/src/nx_secure_tls_initialize.c b/nx_secure/src/nx_secure_tls_initialize.c index f1ff4841..4aa851cf 100644 --- a/nx_secure/src/nx_secure_tls_initialize.c +++ b/nx_secure/src/nx_secure_tls_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_tls_initialize(VOID) { diff --git a/nx_secure/src/nx_secure_tls_key_material_init.c b/nx_secure/src/nx_secure_tls_key_material_init.c index fd1661a0..872e8806 100644 --- a/nx_secure/src/nx_secure_tls_key_material_init.c +++ b/nx_secure/src/nx_secure_tls_key_material_init.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,17 +54,6 @@ /* */ /* _nx_secure_tls_session_reset Clear out the session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* cleared all key material, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_key_material_init(NX_SECURE_TLS_KEY_MATERIAL *key_material) { diff --git a/nx_secure/src/nx_secure_tls_local_certificate_add.c b/nx_secure/src/nx_secure_tls_local_certificate_add.c index 69ccee81..b4ef2e2b 100644 --- a/nx_secure/src/nx_secure_tls_local_certificate_add.c +++ b/nx_secure/src/nx_secure_tls_local_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,21 +63,6 @@ /* Application Code */ /* _nx_secure_tls_server_certificate_add Add server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_local_certificate_add(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nx_secure_tls_local_certificate_find.c b/nx_secure/src/nx_secure_tls_local_certificate_find.c index a23a4d59..08f1f60c 100644 --- a/nx_secure/src/nx_secure_tls_local_certificate_find.c +++ b/nx_secure/src/nx_secure_tls_local_certificate_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,21 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_local_certificate_find(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT **certificate, UCHAR *common_name, diff --git a/nx_secure/src/nx_secure_tls_local_certificate_remove.c b/nx_secure/src/nx_secure_tls_local_certificate_remove.c index b52598f8..779a0181 100644 --- a/nx_secure/src/nx_secure_tls_local_certificate_remove.c +++ b/nx_secure/src/nx_secure_tls_local_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,21 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_local_certificate_remove(NX_SECURE_TLS_SESSION *tls_session, UCHAR *common_name, UINT common_name_length) diff --git a/nx_secure/src/nx_secure_tls_map_error_to_alert.c b/nx_secure/src/nx_secure_tls_map_error_to_alert.c index 723b618d..71c598dd 100644 --- a/nx_secure/src/nx_secure_tls_map_error_to_alert.c +++ b/nx_secure/src/nx_secure_tls_map_error_to_alert.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,22 +59,6 @@ /* _nx_secure_tls_session_receive_records */ /* Receive TLS records */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* updated alert message for */ -/* downgrade protection, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ VOID _nx_secure_tls_map_error_to_alert(UINT error_number, UINT *alert_number, UINT *alert_level) { diff --git a/nx_secure/src/nx_secure_tls_metadata_size_calculate.c b/nx_secure/src/nx_secure_tls_metadata_size_calculate.c index c6c8cc58..4c38b867 100644 --- a/nx_secure/src/nx_secure_tls_metadata_size_calculate.c +++ b/nx_secure/src/nx_secure_tls_metadata_size_calculate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,21 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comment(s), and */ -/* improved the code, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_metadata_size_calculate(const NX_SECURE_TLS_CRYPTO *crypto_table, ULONG *metadata_size) diff --git a/nx_secure/src/nx_secure_tls_newest_supported_version.c b/nx_secure/src/nx_secure_tls_newest_supported_version.c index 23c161a7..cff2f688 100644 --- a/nx_secure/src/nx_secure_tls_newest_supported_version.c +++ b/nx_secure/src/nx_secure_tls_newest_supported_version.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ extern const NX_SECURE_VERSIONS_LIST nx_secure_supported_versions_list[]; /* _nx_secure_tls_send_clienthello Send ClientHello */ /* _nx_secure_tls_protocol_version_get Get current TLS version to use*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_tls_newest_supported_version(NX_SECURE_TLS_SESSION *session_ptr, USHORT *protocol_version, UINT id) @@ -142,12 +134,6 @@ INT i; /* _nx_secure_dtls_process_clienthello Send ClientHello */ /* _nx_secure_tls_process_clienthello Process ClientHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ void _nx_secure_tls_highest_supported_version_negotiate(NX_SECURE_TLS_SESSION *session_ptr, USHORT *protocol_version, UINT id) diff --git a/nx_secure/src/nx_secure_tls_packet_allocate.c b/nx_secure/src/nx_secure_tls_packet_allocate.c index 4b44090a..b283b64f 100644 --- a/nx_secure/src/nx_secure_tls_packet_allocate.c +++ b/nx_secure/src/nx_secure_tls_packet_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* _nx_secure_tls_session_receive_records */ /* Receive TLS records */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* fixed the packet leak, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_packet_allocate(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_packet_release.c b/nx_secure/src/nx_secure_tls_packet_release.c index 3b96d6ed..2f68f4a8 100644 --- a/nx_secure/src/nx_secure_tls_packet_release.c +++ b/nx_secure/src/nx_secure_tls_packet_release.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -77,12 +77,6 @@ /* nx_secure_tls_session_renegotiate.c */ /* nx_secure_tls_session_start.c */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_packet_release(NX_PACKET *packet_ptr) { diff --git a/nx_secure/src/nx_secure_tls_process_certificate_request.c b/nx_secure/src/nx_secure_tls_process_certificate_request.c index 30759a49..d62e4da4 100644 --- a/nx_secure/src/nx_secure_tls_process_certificate_request.c +++ b/nx_secure/src/nx_secure_tls_process_certificate_request.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,21 +64,6 @@ /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* _nx_secure_tls_client_handshake TLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.12 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_certificate_request(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_certificate_verify.c b/nx_secure/src/nx_secure_tls_process_certificate_verify.c index bf5357ec..0d5bcd0d 100644 --- a/nx_secure/src/nx_secure_tls_process_certificate_verify.c +++ b/nx_secure/src/nx_secure_tls_process_certificate_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,32 +78,6 @@ static const UCHAR _NX_SECURE_OID_SHA256[] = {0x30, 0x31, 0x30, 0x0d, 0x06, 0x09 /* */ /* None */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unnecessary code, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_certificate_verify(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_changecipherspec.c b/nx_secure/src/nx_secure_tls_process_changecipherspec.c index 29a8492d..22d903be 100644 --- a/nx_secure/src/nx_secure_tls_process_changecipherspec.c +++ b/nx_secure/src/nx_secure_tls_process_changecipherspec.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* _nx_secure_dtls_process_record Process DTLS record */ /* _nx_secure_tls_process_record Process TLS record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_changecipherspec(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_client_key_exchange.c b/nx_secure/src/nx_secure_tls_process_client_key_exchange.c index 3b9ec250..fbe2660d 100644 --- a/nx_secure/src/nx_secure_tls_process_client_key_exchange.c +++ b/nx_secure/src/nx_secure_tls_process_client_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,26 +62,6 @@ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Timothy Stapko Modified comment(s), */ -/* supported hardware EC */ -/* private key, */ -/* resulting in version 6.1.7 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_client_key_exchange(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length, UINT id) diff --git a/nx_secure/src/nx_secure_tls_process_clienthello.c b/nx_secure/src/nx_secure_tls_process_clienthello.c index 0e831a16..bbaf12a5 100644 --- a/nx_secure/src/nx_secure_tls_process_clienthello.c +++ b/nx_secure/src/nx_secure_tls_process_clienthello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,33 +80,6 @@ static UINT _nx_secure_tls_check_ciphersuite(const NX_SECURE_TLS_CIPHERSUITE_INF /* */ /* _nx_secure_tls_server_handshake TLS Server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* priority ciphersuite logic, */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* improved negotiation logic, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* ability to disable client */ -/* initiated renegotiation, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the bug of processing */ -/* extensions, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), fixed */ -/* TLS 1.3 version negotiation,*/ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_clienthello(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) @@ -169,11 +142,11 @@ USHORT no_extension = NX_FALSE; #endif #if !defined(NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION) - /* If Client initiated renegotiation is enabled, handle the renegotiation + /* If Client initiated renegotiation is enabled, handle the renegotiation handshake if appropriate. Otherwise return "no renegotiation allowed" error. */ if (tls_session -> nx_secure_tls_renegotation_enabled && tls_session -> nx_secure_tls_secure_renegotiation #if defined(NX_SECURE_TLS_DISABLE_CLIENT_INITIATED_RENEGOTIATION) - /* If client initiated renegotiation is disabled for TLS servers, only allow + /* If client initiated renegotiation is disabled for TLS servers, only allow server-initiated renegotiations requested by the server itself. */ && tls_session -> nx_secure_tls_server_renegotiation_requested #endif @@ -625,14 +598,6 @@ USHORT no_extension = NX_FALSE; /* */ /* _nx_secure_tls_server_handshake TLS Server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_ECC_CIPHERSUITE) && !defined(NX_SECURE_DISABLE_X509) static UINT _nx_secure_tls_check_ciphersuite(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite_info, diff --git a/nx_secure/src/nx_secure_tls_process_clienthello_extensions.c b/nx_secure/src/nx_secure_tls_process_clienthello_extensions.c index 732fa2c7..34a551b2 100644 --- a/nx_secure/src/nx_secure_tls_process_clienthello_extensions.c +++ b/nx_secure/src/nx_secure_tls_process_clienthello_extensions.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -93,19 +93,6 @@ static UINT _nx_secure_tls_process_clienthello_psk_extension(NX_SECURE_TLS_SESSI /* */ /* _nx_secure_tls_process_clienthello Process ClientHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* ability to disable client */ -/* initiated renegotiation, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_clienthello_extensions(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length, @@ -319,19 +306,6 @@ USHORT supported_version = tls_session -> nx_secure_tls_protocol_version; /* _nx_secure_tls_process_clienthello_extensions */ /* Process ClientHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* ability to disable client */ -/* initiated renegotiation, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #if !defined(NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION) static UINT _nx_secure_tls_proc_clienthello_sec_reneg_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -479,27 +453,6 @@ INT compare_value; /* */ /* _nx_secure_tls_process_clienthello Process ClientHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* curve priority logic, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* compilation issue with */ -/* TLS 1.3 and disabling TLS */ -/* server, */ -/* resulting in version 6.1.9 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_ECC_CIPHERSUITE) && !defined(NX_SECURE_DISABLE_X509) UINT _nx_secure_tls_proc_clienthello_sec_sa_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -753,25 +706,6 @@ UCHAR expected_signature = 0; /* _nx_secure_tls_process_serverhello_extensions */ /* Process ServerHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* compilation issue with */ -/* TLS 1.3 and disabling TLS */ -/* server, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), removed */ -/* public key format checking, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) && !defined(NX_SECURE_TLS_SERVER_DISABLED) @@ -1020,14 +954,6 @@ NX_SECURE_TLS_ECC *ecc_info; /* _nx_secure_tls_process_clienthello_extensions */ /* Process ClientHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_tls_proc_clienthello_supported_versions_extension(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, @@ -1120,19 +1046,6 @@ ULONG offset; /* _nx_secure_tls_process_clienthello_extensions */ /* Process ClientHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* compilation issue with */ -/* TLS 1.3 and disabling TLS */ -/* server, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ static VOID _nx_secure_tls_proc_clienthello_signature_algorithms_extension(NX_SECURE_TLS_SESSION *tls_session, const UCHAR *packet_buffer, @@ -1265,14 +1178,6 @@ NX_SECURE_X509_CERT *local_certificate = NX_NULL; /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_tls_get_signature_algorithm_id(UINT signature_algorithm, USHORT *signature_algorithm_id) { @@ -1348,18 +1253,6 @@ VOID _nx_secure_tls_get_signature_algorithm_id(UINT signature_algorithm, USHORT /* */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) && defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) static UINT _nx_secure_tls_process_clienthello_psk_extension(NX_SECURE_TLS_SESSION *tls_session, const UCHAR *packet_buffer, diff --git a/nx_secure/src/nx_secure_tls_process_encrypted_extensions.c b/nx_secure/src/nx_secure_tls_process_encrypted_extensions.c index 5acfc6fe..c1328c5e 100644 --- a/nx_secure/src/nx_secure_tls_process_encrypted_extensions.c +++ b/nx_secure/src/nx_secure_tls_process_encrypted_extensions.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,15 +58,6 @@ /* */ /* _nx_secure_tls_server_handshake Process extensions */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ciphersuite lookup method, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_encrypted_extensions(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_finished.c b/nx_secure/src/nx_secure_tls_process_finished.c index 9d47b043..3082361c 100644 --- a/nx_secure/src/nx_secure_tls_process_finished.c +++ b/nx_secure/src/nx_secure_tls_process_finished.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,21 +65,6 @@ static UCHAR generated_hash[NX_SECURE_TLS_MAX_HASH_SIZE]; /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* corrected hash cleanup, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_finished(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_handshake_header.c b/nx_secure/src/nx_secure_tls_process_handshake_header.c index 3dec44a3..43ae4e66 100644 --- a/nx_secure/src/nx_secure_tls_process_handshake_header.c +++ b/nx_secure/src/nx_secure_tls_process_handshake_header.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,21 +63,6 @@ /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unused code, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_handshake_header(UCHAR *packet_buffer, USHORT *message_type, UINT *header_size, UINT *message_length) diff --git a/nx_secure/src/nx_secure_tls_process_header.c b/nx_secure/src/nx_secure_tls_process_header.c index 861465f8..0afe563d 100644 --- a/nx_secure/src/nx_secure_tls_process_header.c +++ b/nx_secure/src/nx_secure_tls_process_header.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,15 +63,6 @@ /* */ /* _nx_secure_tls_process_record Process TLS record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_header(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *packet_ptr, ULONG record_offset, USHORT *message_type, UINT *length, diff --git a/nx_secure/src/nx_secure_tls_process_newsessionticket.c b/nx_secure/src/nx_secure_tls_process_newsessionticket.c index 3d346abd..e99a34a8 100644 --- a/nx_secure/src/nx_secure_tls_process_newsessionticket.c +++ b/nx_secure/src/nx_secure_tls_process_newsessionticket.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,16 +58,6 @@ /* */ /* _nx_secure_tls_client_handshake TLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) UINT _nx_secure_tls_process_newsessionticket(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, diff --git a/nx_secure/src/nx_secure_tls_process_record.c b/nx_secure/src/nx_secure_tls_process_record.c index afe48f06..6d2f7f33 100644 --- a/nx_secure/src/nx_secure_tls_process_record.c +++ b/nx_secure/src/nx_secure_tls_process_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,37 +75,6 @@ static VOID _nx_secure_tls_packet_trim(NX_PACKET *packet_ptr); /* _nx_secure_tls_session_receive_records */ /* Receive TLS records */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* fixed compiler warnings, */ -/* resulting in version 6.1 */ -/* 02-02-2021 Timothy Stapko Modified comment(s), added */ -/* support for fragmented TLS */ -/* Handshake messages, */ -/* resulting in version 6.1.4 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), checked */ -/* TLS state before processing,*/ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* TLS 1.3 compile issue, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unnecessary code, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* checked seq number overflow,*/ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.12 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), and */ -/* corrected data cleanup, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_record(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *packet_ptr, ULONG *bytes_processed, ULONG wait_option) @@ -632,12 +601,6 @@ NX_PACKET *decrypted_packet; /* */ /* _nx_secure_tls_process_record Process TLS records */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_secure_tls_packet_trim(NX_PACKET *packet_ptr) { diff --git a/nx_secure/src/nx_secure_tls_process_remote_certificate.c b/nx_secure/src/nx_secure_tls_process_remote_certificate.c index b7381ea0..0e1291e7 100644 --- a/nx_secure/src/nx_secure_tls_process_remote_certificate.c +++ b/nx_secure/src/nx_secure_tls_process_remote_certificate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,29 +71,6 @@ /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 04-25-2022 Timothy Stapko Modified comment(s), */ -/* removed unnecessary code, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* initialized metadata for */ -/* remote certificate, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_remote_certificate(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length, @@ -131,14 +108,14 @@ ULONG cert_buf_size; /* At this point, the packet buffer is filled with a TLS record. We can use the remainder of the buffer to hold certificate structures for parsing. The remote certificates will - remain in the packet buffer and only the X.509 parsing structure (NX_SECURE_X509_CERT) + remain in the packet buffer and only the X.509 parsing structure (NX_SECURE_X509_CERT) will be allocated. See _nx_secure_tls_process_remote_certificate for more info. */ /* Typical layout of packet buffer and certificate buffer. Cert buffer allocates top-down, X.509 parsing structures are allocated and used only until the certificate chain verification step. After that, the remote certs are cleared and then the endpoint certificate is copied into the cert buffer (only the endpoint) for later use. The packet buffer following this function (on success) should have the following layout (assuming no user-allocated certs): - | Packet buffer | Certificate buffer | - |<-----------data------------------>|--> free space <--| Endpoint Cert 1 | X.509 | + | Packet buffer | Certificate buffer | + |<-----------data------------------>|--> free space <--| Endpoint Cert 1 | X.509 | */ if (data_length > tls_session -> nx_secure_tls_packet_buffer_size) @@ -203,7 +180,7 @@ ULONG cert_buf_size; status = _nx_secure_x509_free_certificate_get(&tls_session -> nx_secure_tls_credentials.nx_secure_tls_certificate_store, &certificate); - /* If there are no free certificates, attempt to allocate from the packet reassembly buffer + /* If there are no free certificates, attempt to allocate from the packet reassembly buffer (the certificate buffer is carved from the packet buffer in nx_secure_tls_process_record). */ if (status != NX_SUCCESS) { @@ -219,7 +196,7 @@ ULONG cert_buf_size; certificate = (NX_SECURE_X509_CERT*)(&cert_buffer[cert_buf_size]); NX_SECURE_MEMSET(certificate, 0, sizeof(NX_SECURE_X509_CERT)); - /* Point structure to certificate being parsed. Note that the certificate + /* Point structure to certificate being parsed. Note that the certificate structure points directly into the packet buffer where the certificate is located - this certificate structure must NOT be used outside this function. */ certificate -> nx_secure_x509_certificate_raw_data_length = cert_length; @@ -332,7 +309,7 @@ ULONG cert_buf_size; make a copy and save it for later use. */ if(!certificate -> nx_secure_x509_user_allocated_cert) { - /* Free all certificates that we added to the packet buffer. Do this before the + /* Free all certificates that we added to the packet buffer. Do this before the call to nx_secure_x509_free_certificate_get so that if there are user-allocated certificates the endpoint is put into one of them. */ status = _nx_secure_tls_remote_certificate_free_all(tls_session); @@ -350,7 +327,7 @@ ULONG cert_buf_size; status = _nx_secure_x509_free_certificate_get(&tls_session -> nx_secure_tls_credentials.nx_secure_tls_certificate_store, &certificate); - /* If there are no free certificates, attempt to allocate from the packet reassembly buffer + /* If there are no free certificates, attempt to allocate from the packet reassembly buffer (the certificate buffer is carved from the packet buffer in nx_secure_tls_process_record). */ if (status != NX_SUCCESS) { diff --git a/nx_secure/src/nx_secure_tls_process_server_key_exchange.c b/nx_secure/src/nx_secure_tls_process_server_key_exchange.c index 2c733c7e..d8fc8888 100644 --- a/nx_secure/src/nx_secure_tls_process_server_key_exchange.c +++ b/nx_secure/src/nx_secure_tls_process_server_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,25 +67,6 @@ /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* _nx_secure_tls_client_handshake TLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unnecessary code, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), improved */ -/* buffer length verification, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_server_key_exchange(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_serverhello.c b/nx_secure/src/nx_secure_tls_process_serverhello.c index 1e33c5d8..02631b51 100644 --- a/nx_secure/src/nx_secure_tls_process_serverhello.c +++ b/nx_secure/src/nx_secure_tls_process_serverhello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,23 +68,6 @@ extern const UCHAR _nx_secure_tls_hello_retry_request_random[32]; /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* _nx_secure_tls_client_handshake TLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), added */ -/* priority ciphersuite logic, */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* TLS 1.3 compilation issue, */ -/* resulting in version 6.1.9 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), fixed */ -/* TLS 1.3 version negotiation,*/ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_serverhello(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length) diff --git a/nx_secure/src/nx_secure_tls_process_serverhello_extensions.c b/nx_secure/src/nx_secure_tls_process_serverhello_extensions.c index 14c28c30..d09a85dd 100644 --- a/nx_secure/src/nx_secure_tls_process_serverhello_extensions.c +++ b/nx_secure/src/nx_secure_tls_process_serverhello_extensions.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -99,18 +99,6 @@ static UINT _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair(NX_SECURE_TLS_SE /* */ /* _nx_secure_tls_server_handshake Process ServerHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* TLS 1.3 compilation issue, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_process_serverhello_extensions(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT message_length, @@ -423,14 +411,6 @@ USHORT supported_version = tls_session -> nx_secu /* _nx_secure_tls_process_serverhello_extensions */ /* Process ServerHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE static UINT _nx_secure_tls_proc_serverhello_ecc_point_formats(NX_SECURE_TLS_SESSION *tls_session, @@ -527,14 +507,6 @@ UINT offset; /* _nx_secure_tls_process_serverhello_extensions */ /* Process ServerHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE static UINT _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair(NX_SECURE_TLS_SESSION *tls_session, @@ -619,15 +591,6 @@ NX_CRYPTO_METHOD *crypto_method; /* _nx_secure_tls_process_serverhello_extensions */ /* Process ServerHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION static UINT _nx_secure_tls_proc_serverhello_sec_reneg_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -791,21 +754,6 @@ INT compare_value; /* _nx_secure_tls_process_serverhello_extensions */ /* Process ServerHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), removed */ -/* public key format checking, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -1033,14 +981,6 @@ NX_SECURE_TLS_ECC *ecc_info; /* _nx_secure_tls_process_serverhello_extensions */ /* Process ServerHello extensions*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_tls_proc_serverhello_supported_versions_extension(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, diff --git a/nx_secure/src/nx_secure_tls_protocol_version_get.c b/nx_secure/src/nx_secure_tls_protocol_version_get.c index 62029f51..d5bbd984 100644 --- a/nx_secure/src/nx_secure_tls_protocol_version_get.c +++ b/nx_secure/src/nx_secure_tls_protocol_version_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* _nx_secure_tls_process_clienthello Process ClientHello */ /* _nx_secure_tls_send_clienthello Send ClientHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_tls_protocol_version_get(NX_SECURE_TLS_SESSION *session_ptr, USHORT *protocol_version, UINT id) diff --git a/nx_secure/src/nx_secure_tls_psk_add.c b/nx_secure/src/nx_secure_tls_psk_add.c index a9ebc631..4a25317b 100644 --- a/nx_secure/src/nx_secure_tls_psk_add.c +++ b/nx_secure/src/nx_secure_tls_psk_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,19 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* fixed PSK size verification,*/ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nx_secure_tls_psk_add(NX_SECURE_TLS_SESSION *tls_session, UCHAR *pre_shared_key, diff --git a/nx_secure/src/nx_secure_tls_psk_binder_generate.c b/nx_secure/src/nx_secure_tls_psk_binder_generate.c index e7013e94..9d298eee 100644 --- a/nx_secure/src/nx_secure_tls_psk_binder_generate.c +++ b/nx_secure/src/nx_secure_tls_psk_binder_generate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,14 +87,6 @@ UINT i; /* _nx_secure_tls_send_clienthello_extensions */ /* Send ClientHello extensions */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) UINT _nx_secure_tls_psk_binder_generate(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_TLS_PSK_STORE *psk_entry) diff --git a/nx_secure/src/nx_secure_tls_psk_find.c b/nx_secure/src/nx_secure_tls_psk_find.c index b306c4cf..8e544d94 100644 --- a/nx_secure/src/nx_secure_tls_psk_find.c +++ b/nx_secure/src/nx_secure_tls_psk_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ /* _nx_secure_generate_premaster_secret Generate the shared secret */ /* used to generate keys later */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nx_secure_tls_psk_find(NX_SECURE_TLS_CREDENTIALS *tls_credentials, UCHAR **psk_data, UINT *psk_length, diff --git a/nx_secure/src/nx_secure_tls_psk_identity_find.c b/nx_secure/src/nx_secure_tls_psk_identity_find.c index 64e96f0d..75274a96 100644 --- a/nx_secure/src/nx_secure_tls_psk_identity_find.c +++ b/nx_secure/src/nx_secure_tls_psk_identity_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ /* Process an incoming TLS 1.3 */ /* PSK extension */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) && defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) UINT _nx_secure_tls_psk_identity_find(NX_SECURE_TLS_SESSION *tls_session, UCHAR **psk_data, UINT *psk_length, diff --git a/nx_secure/src/nx_secure_tls_record_hash_calculate.c b/nx_secure/src/nx_secure_tls_record_hash_calculate.c index c2daf613..23d0709b 100644 --- a/nx_secure/src/nx_secure_tls_record_hash_calculate.c +++ b/nx_secure/src/nx_secure_tls_record_hash_calculate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* _nx_secure_tls_send_record Send the TLS record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_record_hash_calculate(NX_SECURE_TLS_SESSION *tls_session, UCHAR *record_hash, UINT *hash_length) diff --git a/nx_secure/src/nx_secure_tls_record_hash_initialize.c b/nx_secure/src/nx_secure_tls_record_hash_initialize.c index b9c0206d..9b62ede6 100644 --- a/nx_secure/src/nx_secure_tls_record_hash_initialize.c +++ b/nx_secure/src/nx_secure_tls_record_hash_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* _nx_secure_tls_send_record Send the TLS record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_record_hash_initialize(NX_SECURE_TLS_SESSION *tls_session, ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], diff --git a/nx_secure/src/nx_secure_tls_record_hash_update.c b/nx_secure/src/nx_secure_tls_record_hash_update.c index 3e08819c..2bcdb672 100644 --- a/nx_secure/src/nx_secure_tls_record_hash_update.c +++ b/nx_secure/src/nx_secure_tls_record_hash_update.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* _nx_secure_tls_send_record Send the TLS record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_record_hash_update(NX_SECURE_TLS_SESSION *tls_session, UCHAR *data, UINT length) { diff --git a/nx_secure/src/nx_secure_tls_record_payload_decrypt.c b/nx_secure/src/nx_secure_tls_record_payload_decrypt.c index 5b328cef..7803d01c 100644 --- a/nx_secure/src/nx_secure_tls_record_payload_decrypt.c +++ b/nx_secure/src/nx_secure_tls_record_payload_decrypt.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -91,20 +91,6 @@ extern UCHAR _nx_secure_tls_record_block_buffer[NX_SECURE_TLS_MAX_CIPHER_BLOCK_S /* _nx_secure_dtls_process_record Process DTLS record data */ /* _nx_secure_tls_process_record Process TLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), fixed */ -/* AES-CBC padding oracle, */ -/* verified memcpy use cases, */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* reorganized internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_record_payload_decrypt(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *encrypted_packet, UINT offset, UINT message_length, NX_PACKET **decrypted_packet, @@ -526,15 +512,6 @@ UCHAR nonce[13]; /* */ /* _nx_secure_tls_record_payload_decrypt Decrypt TLS record payload */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* reorganized internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_tls_record_chained_packet_decrypt(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *encrypted_packet, UINT offset, @@ -724,15 +701,6 @@ const NX_CRYPTO_METHOD *session_cipher_method; /* _nx_secure_tls_record_chained_packet_decrypt */ /* Decrypt chained packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), fixed */ -/* the issue of endless loop, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_tls_record_packet_decrypt(NX_SECURE_TLS_SESSION *tls_session, const NX_CRYPTO_METHOD *session_cipher_method, @@ -944,12 +912,6 @@ UINT original_offset = offset; /* */ /* _nx_secure_tls_record_packet_decrypt Decrypt data in packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Timothy Stapko Initial Version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_tls_data_decrypt(NX_SECURE_TLS_SESSION *tls_session, UCHAR *input, UCHAR *output, UINT length) diff --git a/nx_secure/src/nx_secure_tls_record_payload_encrypt.c b/nx_secure/src/nx_secure_tls_record_payload_encrypt.c index 2d7e5f9a..a29624c4 100644 --- a/nx_secure/src/nx_secure_tls_record_payload_encrypt.c +++ b/nx_secure/src/nx_secure_tls_record_payload_encrypt.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,25 +67,6 @@ UCHAR _nx_secure_tls_record_block_buffer[NX_SECURE_TLS_MAX_CIPHER_BLOCK_SIZE]; /* _nx_secure_dtls_send_record Send DTLS encrypted record */ /* _nx_secure_tls_send_record Send TLS encrypted record */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed data copy in chained */ -/* packet, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), called */ -/* NX_CRYPTO_ENCRYPT_CALCULATE */ -/* to finalize the encryption */ -/* of this record, resulting */ -/* in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* reorganized internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_record_payload_encrypt(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet, ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], @@ -412,18 +393,6 @@ UCHAR *icv_ptr = NX_NULL; /* */ /* _nx_secure_tls_record_payload_encrypt Encrypt payload */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* reorganized internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_tls_record_data_encrypt_init(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet, ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], diff --git a/nx_secure/src/nx_secure_tls_remote_certificate_allocate.c b/nx_secure/src/nx_secure_tls_remote_certificate_allocate.c index 620435bc..a61a3606 100644 --- a/nx_secure/src/nx_secure_tls_remote_certificate_allocate.c +++ b/nx_secure/src/nx_secure_tls_remote_certificate_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,21 +73,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_remote_certificate_allocate(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate, diff --git a/nx_secure/src/nx_secure_tls_remote_certificate_buffer_allocate.c b/nx_secure/src/nx_secure_tls_remote_certificate_buffer_allocate.c index 40a9f74c..39baa3e6 100644 --- a/nx_secure/src/nx_secure_tls_remote_certificate_buffer_allocate.c +++ b/nx_secure/src/nx_secure_tls_remote_certificate_buffer_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,24 +72,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* removed parameter checking, */ -/* resulting in version 6.1.10 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), added */ -/* assert to check for zero, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_remote_certificate_buffer_allocate(NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) { diff --git a/nx_secure/src/nx_secure_tls_remote_certificate_free.c b/nx_secure/src/nx_secure_tls_remote_certificate_free.c index 7435a65d..08416ed5 100644 --- a/nx_secure/src/nx_secure_tls_remote_certificate_free.c +++ b/nx_secure/src/nx_secure_tls_remote_certificate_free.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,26 +65,6 @@ /* _nx_secure_tls_remote_certificate_free_all */ /* Free all remote certificates */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), fixed */ -/* certificate allocation bug, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved code coverage */ -/* results, */ -/* resulting in version 6.1.10 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_remote_certificate_free(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_DISTINGUISHED_NAME *name) diff --git a/nx_secure/src/nx_secure_tls_remote_certificate_free_all.c b/nx_secure/src/nx_secure_tls_remote_certificate_free_all.c index e343da08..ceb29a97 100644 --- a/nx_secure/src/nx_secure_tls_remote_certificate_free_all.c +++ b/nx_secure/src/nx_secure_tls_remote_certificate_free_all.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,18 +64,6 @@ /* _nx_secure_tls_session_renegotiate Renegotiate TLS session */ /* _nx_secure_tls_session_reset Clear TLS control block */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_remote_certificate_free_all(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_remote_certificate_verify.c b/nx_secure/src/nx_secure_tls_remote_certificate_verify.c index bfd3fcd7..335a2629 100644 --- a/nx_secure/src/nx_secure_tls_remote_certificate_verify.c +++ b/nx_secure/src/nx_secure_tls_remote_certificate_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,32 +65,6 @@ /* _nx_secure_tls_process_remote_certificate */ /* Process server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* improved code coverage */ -/* results, */ -/* resulting in version 6.1.10 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* checked expiration for all */ -/* the certs in the chain, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_remote_certificate_verify(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_send_alert.c b/nx_secure/src/nx_secure_tls_send_alert.c index de037346..5904acef 100644 --- a/nx_secure/src/nx_secure_tls_send_alert.c +++ b/nx_secure/src/nx_secure_tls_send_alert.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ /* _nx_secure_tls_session_receive_records */ /* Receive TLS records */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ VOID _nx_secure_tls_send_alert(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet, UCHAR alert_number, UCHAR alert_level) diff --git a/nx_secure/src/nx_secure_tls_send_certificate.c b/nx_secure/src/nx_secure_tls_send_certificate.c index 7c0c63c9..4b36b736 100644 --- a/nx_secure/src/nx_secure_tls_send_certificate.c +++ b/nx_secure/src/nx_secure_tls_send_certificate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,27 +66,6 @@ /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 04-25-2022 Zhen Kong Modified comment(s), removed */ -/* unreachable error code, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), */ -/* fixed packet buffer overrun,*/ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_certificate(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_send_certificate_request.c b/nx_secure/src/nx_secure_tls_send_certificate_request.c index 9f3f63cb..1a33b4d8 100644 --- a/nx_secure/src/nx_secure_tls_send_certificate_request.c +++ b/nx_secure/src/nx_secure_tls_send_certificate_request.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_certificate_request(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_tls_send_certificate_verify.c b/nx_secure/src/nx_secure_tls_send_certificate_verify.c index 9082b1a0..c022250a 100644 --- a/nx_secure/src/nx_secure_tls_send_certificate_verify.c +++ b/nx_secure/src/nx_secure_tls_send_certificate_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,36 +80,6 @@ static const UCHAR _NX_SECURE_OID_SHA256[] = {0x30, 0x31, 0x30, 0x0d, 0x06, 0x09 /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* _nx_secure_tls_client_handshake TLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 06-02-2021 Timothy Stapko Modified comment(s), */ -/* supported hardware EC */ -/* private key, */ -/* resulting in version 6.1.7 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Zhen Kong Modified comment(s), removed */ -/* unreachable code and branch,*/ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* updated parameters list, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_certificate_verify(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_tls_send_changecipherspec.c b/nx_secure/src/nx_secure_tls_send_changecipherspec.c index d299de96..bf6976da 100644 --- a/nx_secure/src/nx_secure_tls_send_changecipherspec.c +++ b/nx_secure/src/nx_secure_tls_send_changecipherspec.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_changecipherspec(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) { diff --git a/nx_secure/src/nx_secure_tls_send_client_key_exchange.c b/nx_secure/src/nx_secure_tls_send_client_key_exchange.c index 2805e63a..233245cd 100644 --- a/nx_secure/src/nx_secure_tls_send_client_key_exchange.c +++ b/nx_secure/src/nx_secure_tls_send_client_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,23 +63,6 @@ /* _nx_secure_dtls_client_handshake DTLS client state machine */ /* _nx_secure_tls_client_handshake TLS client state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Zhen Kong Modified comment(s), improved */ -/* internal logic to check data*/ -/* size and then improved code */ -/* coverage, resulting in */ -/* version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_client_key_exchange(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_tls_send_clienthello.c b/nx_secure/src/nx_secure_tls_send_clienthello.c index b16c13e5..124c5e4f 100644 --- a/nx_secure/src/nx_secure_tls_send_clienthello.c +++ b/nx_secure/src/nx_secure_tls_send_clienthello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -73,21 +73,6 @@ UINT _nx_secure_tls_send_clienthello_psk_extension(NX_SECURE_TLS_SESSION *tls_se /* _nx_secure_tls_session_renegotiate Renegotiate TLS session */ /* _nx_secure_tls_session_start Start TLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Zhen Kong Modified comment(s), removed */ -/* the code to copy session id,*/ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compile errors, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_clienthello(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) { diff --git a/nx_secure/src/nx_secure_tls_send_clienthello_extensions.c b/nx_secure/src/nx_secure_tls_send_clienthello_extensions.c index 57738098..0c9ce53b 100644 --- a/nx_secure/src/nx_secure_tls_send_clienthello_extensions.c +++ b/nx_secure/src/nx_secure_tls_send_clienthello_extensions.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -126,23 +126,6 @@ static UINT _nx_secure_tls_send_clienthello_sec_reneg_extension(NX_SECURE_TLS_SE /* */ /* _nx_secure_tls_send_clienthello Send TLS ClientHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yajun Xia Modified comment(s), */ -/* added exception case, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_clienthello_extensions(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, ULONG *packet_offset, @@ -318,17 +301,6 @@ UINT status; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unused code, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_DISABLE_X509 static UINT _nx_secure_tls_send_clienthello_sig_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -542,17 +514,6 @@ UCHAR sig_algo = 0; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) /* We need to access the supported versions table located in nx_secure_tls_check_protocol_version.c. */ @@ -682,15 +643,6 @@ INT i; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) static UINT _nx_secure_tls_send_clienthello_key_share_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -799,7 +751,7 @@ USHORT named_curve; packet_buffer[offset + 1] = (UCHAR)(ext & 0x00FF); offset += 2; - /* Add Total Length (2 bytes) and List length (2 bytes) to packet after we + /* Add Total Length (2 bytes) and List length (2 bytes) to packet after we fill in the key data. */ length_offset = offset; data_length = 0; @@ -885,18 +837,6 @@ USHORT named_curve; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* hash clone and cleanup, */ -/* resulting in version 6.1.8 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) @@ -1241,14 +1181,6 @@ NX_SECURE_TLS_PSK_STORE *psk_store; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) static UINT _nx_secure_tls_send_clienthello_psk_kem_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -1348,15 +1280,6 @@ USHORT length; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_SNI_EXTENSION_DISABLED static UINT _nx_secure_tls_send_clienthello_sni_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -1501,16 +1424,6 @@ UINT data_length; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION static UINT _nx_secure_tls_send_clienthello_sec_reneg_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -1676,14 +1589,6 @@ UINT data_length; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE_ECC_CIPHERSUITE static UINT _nx_secure_tls_send_clienthello_sec_spf_extensions(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nx_secure_tls_send_encrypted_extensions.c b/nx_secure/src/nx_secure_tls_send_encrypted_extensions.c index 0f786d05..df20659d 100644 --- a/nx_secure/src/nx_secure_tls_send_encrypted_extensions.c +++ b/nx_secure/src/nx_secure_tls_send_encrypted_extensions.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,15 +58,6 @@ /* */ /* _nx_secure_tls_server_handshake Process extensions */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ciphersuite lookup method. */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_encrypted_extensions(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) { diff --git a/nx_secure/src/nx_secure_tls_send_finished.c b/nx_secure/src/nx_secure_tls_send_finished.c index 892e71df..42a24d03 100644 --- a/nx_secure/src/nx_secure_tls_send_finished.c +++ b/nx_secure/src/nx_secure_tls_send_finished.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,20 +61,6 @@ /* _nx_secure_tls_client_handshake TLS client state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_finished(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) { diff --git a/nx_secure/src/nx_secure_tls_send_handshake_record.c b/nx_secure/src/nx_secure_tls_send_handshake_record.c index d4583d0f..8f6e57d3 100644 --- a/nx_secure/src/nx_secure_tls_send_handshake_record.c +++ b/nx_secure/src/nx_secure_tls_send_handshake_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,16 +65,6 @@ /* _nx_secure_tls_session_start Start TLS session */ /* _nx_secure_tls_session_renegotiate Renegotiate TLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* released packet securely, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_handshake_record(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet, UCHAR handshake_type, diff --git a/nx_secure/src/nx_secure_tls_send_hellorequest.c b/nx_secure/src/nx_secure_tls_send_hellorequest.c index 7799ab7a..3a8744bd 100644 --- a/nx_secure/src/nx_secure_tls_send_hellorequest.c +++ b/nx_secure/src/nx_secure_tls_send_hellorequest.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,15 +59,6 @@ /* */ /* _nx_secure_tls_session_renegotiate Renegotiate TLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION UINT _nx_secure_tls_send_hellorequest(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_tls_send_newsessionticket.c b/nx_secure/src/nx_secure_tls_send_newsessionticket.c index d5d0b8dc..824ef273 100644 --- a/nx_secure/src/nx_secure_tls_send_newsessionticket.c +++ b/nx_secure/src/nx_secure_tls_send_newsessionticket.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,15 +58,6 @@ /* */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) UINT _nx_secure_tls_send_newsessionticket(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_tls_send_record.c b/nx_secure/src/nx_secure_tls_send_record.c index 3b60dace..56f51e50 100644 --- a/nx_secure/src/nx_secure_tls_send_record.c +++ b/nx_secure/src/nx_secure_tls_send_record.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -75,28 +75,6 @@ /* Receive TLS records */ /* _nx_secure_tls_session_send Send session packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed race condition for */ -/* multithread transmission, */ -/* resulting in version 6.1 */ -/* 06-02-2021 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1.7 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), */ -/* used wait forever on */ -/* transmission mutex, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* checked seq number overflow,*/ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_record(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet, UCHAR record_type, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_send_server_key_exchange.c b/nx_secure/src/nx_secure_tls_send_server_key_exchange.c index 48cf4ad6..205b059b 100644 --- a/nx_secure/src/nx_secure_tls_send_server_key_exchange.c +++ b/nx_secure/src/nx_secure_tls_send_server_key_exchange.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,18 +59,6 @@ /* _nx_secure_dtls_server_handshake DTLS server state machine */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_server_key_exchange(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) diff --git a/nx_secure/src/nx_secure_tls_send_serverhello.c b/nx_secure/src/nx_secure_tls_send_serverhello.c index f5aa8a47..29ad8aa8 100644 --- a/nx_secure/src/nx_secure_tls_send_serverhello.c +++ b/nx_secure/src/nx_secure_tls_send_serverhello.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -76,21 +76,6 @@ const UCHAR _nx_secure_tls_1_1_random[8] = /* */ /* _nx_secure_tls_server_handshake TLS server state machine */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* compilation issue with */ -/* TLS 1.3 and disabling TLS */ -/* server, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_serverhello(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *send_packet) { @@ -162,7 +147,7 @@ UINT status; } /* RFC 8446 4.1.3: - TLS 1.3 servers which negotiate TLS 1.2 or below in response to a ClientHello + TLS 1.3 servers which negotiate TLS 1.2 or below in response to a ClientHello MUST set the last 8 bytes of their Random value specially in their ServerHello. */ if (tls_session -> nx_secure_tls_protocol_version == NX_SECURE_TLS_VERSION_TLS_1_2) { diff --git a/nx_secure/src/nx_secure_tls_send_serverhello_extensions.c b/nx_secure/src/nx_secure_tls_send_serverhello_extensions.c index d4213132..c6132beb 100644 --- a/nx_secure/src/nx_secure_tls_send_serverhello_extensions.c +++ b/nx_secure/src/nx_secure_tls_send_serverhello_extensions.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -88,21 +88,6 @@ static UINT _nx_secure_tls_send_serverhello_psk_extension(NX_SECURE_TLS_SESSION /* */ /* _nx_secure_tls_send_serverhello Send TLS ServerHello */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unused code, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Tiejun Zhou Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_send_serverhello_extensions(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, ULONG *packet_offset, @@ -256,17 +241,6 @@ UINT status = NX_SUCCESS; /* _nx_secure_tls_send_serverhello_extensions */ /* Send TLS ServerHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION static UINT _nx_secure_tls_send_serverhello_sec_reneg_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -423,14 +397,6 @@ UINT data_length; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) && !defined(NX_SECURE_TLS_SERVER_DISABLED) static UINT _nx_secure_tls_send_serverhello_supported_versions_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -526,20 +492,6 @@ UINT data_length; /* _nx_secure_tls_send_clienthello_extensions */ /* Send TLS ClientHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), fixed */ -/* compilation issue with */ -/* TLS 1.3 and disabling TLS */ -/* server, */ -/* resulting in version 6.1.9 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) && !defined(NX_SECURE_TLS_SERVER_DISABLED) static UINT _nx_secure_tls_send_serverhello_key_share_extension(NX_SECURE_TLS_SESSION *tls_session, @@ -770,14 +722,6 @@ USHORT named_curve; /* _nx_secure_tls_send_serverhello_extensions */ /* Send TLS ServerHello extension*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if (NX_SECURE_TLS_TLS_1_3_ENABLED) && defined (NX_SECURE_ENABLE_PSK_CIPHERSUITES) && !defined(NX_SECURE_TLS_SERVER_DISABLED) diff --git a/nx_secure/src/nx_secure_tls_server_certificate_add.c b/nx_secure/src/nx_secure_tls_server_certificate_add.c index a1711d68..500463cc 100644 --- a/nx_secure/src/nx_secure_tls_server_certificate_add.c +++ b/nx_secure/src/nx_secure_tls_server_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_server_certificate_add(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_tls_server_certificate_find.c b/nx_secure/src/nx_secure_tls_server_certificate_find.c index 20af9d0c..d13a2b4b 100644 --- a/nx_secure/src/nx_secure_tls_server_certificate_find.c +++ b/nx_secure/src/nx_secure_tls_server_certificate_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,21 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_server_certificate_find(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT **certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_tls_server_certificate_remove.c b/nx_secure/src/nx_secure_tls_server_certificate_remove.c index 4573ef0f..33bad264 100644 --- a/nx_secure/src/nx_secure_tls_server_certificate_remove.c +++ b/nx_secure/src/nx_secure_tls_server_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,21 +62,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_server_certificate_remove(NX_SECURE_TLS_SESSION *tls_session, UINT cert_id) { diff --git a/nx_secure/src/nx_secure_tls_server_handshake.c b/nx_secure/src/nx_secure_tls_server_handshake.c index 4c0531b9..f9f06b7f 100644 --- a/nx_secure/src/nx_secure_tls_server_handshake.c +++ b/nx_secure/src/nx_secure_tls_server_handshake.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,32 +87,6 @@ /* */ /* _nx_secure_tls_process_record Process TLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* released packet securely, */ -/* fixed certificate buffer */ -/* allocation, */ -/* resulting in version 6.1 */ -/* 12-31-2020 Timothy Stapko Modified comment(s), */ -/* improved buffer length */ -/* verification, */ -/* resulting in version 6.1.3 */ -/* 02-02-2021 Timothy Stapko Modified comment(s), added */ -/* support for fragmented TLS */ -/* Handshake messages, */ -/* resulting in version 6.1.4 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), */ -/* removed duplicated alert, */ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* fixed handling of multiple */ -/* handshake messages, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_server_handshake(NX_SECURE_TLS_SESSION *tls_session, UCHAR *packet_buffer, UINT data_length, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_session_alert_value_get.c b/nx_secure/src/nx_secure_tls_session_alert_value_get.c index 0c050e28..60888f76 100644 --- a/nx_secure/src/nx_secure_tls_session_alert_value_get.c +++ b/nx_secure/src/nx_secure_tls_session_alert_value_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_alert_value_get(NX_SECURE_TLS_SESSION *tls_session, UINT *alert_level, UINT *alert_value) diff --git a/nx_secure/src/nx_secure_tls_session_certificate_callback_set.c b/nx_secure/src/nx_secure_tls_session_certificate_callback_set.c index 51197bf5..de0714c4 100644 --- a/nx_secure/src/nx_secure_tls_session_certificate_callback_set.c +++ b/nx_secure/src/nx_secure_tls_session_certificate_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,14 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_certificate_callback_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*func_ptr)(NX_SECURE_TLS_SESSION *session, diff --git a/nx_secure/src/nx_secure_tls_session_client_callback_set.c b/nx_secure/src/nx_secure_tls_session_client_callback_set.c index 668e2c66..1286b1dd 100644 --- a/nx_secure/src/nx_secure_tls_session_client_callback_set.c +++ b/nx_secure/src/nx_secure_tls_session_client_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_client_callback_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*func_ptr)(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nx_secure_tls_session_client_verify_disable.c b/nx_secure/src/nx_secure_tls_session_client_verify_disable.c index 2f99916a..5ed0e8fc 100644 --- a/nx_secure/src/nx_secure_tls_session_client_verify_disable.c +++ b/nx_secure/src/nx_secure_tls_session_client_verify_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_client_verify_disable(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_session_client_verify_enable.c b/nx_secure/src/nx_secure_tls_session_client_verify_enable.c index 97961a86..e683747d 100644 --- a/nx_secure/src/nx_secure_tls_session_client_verify_enable.c +++ b/nx_secure/src/nx_secure_tls_session_client_verify_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_client_verify_enable(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_session_create.c b/nx_secure/src/nx_secure_tls_session_create.c index 04418e9c..dbfeb4d5 100644 --- a/nx_secure/src/nx_secure_tls_session_create.c +++ b/nx_secure/src/nx_secure_tls_session_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ /* Application Code */ /* _nx_secure_dtls_session_create Create DTLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, const NX_SECURE_TLS_CRYPTO *crypto_table, diff --git a/nx_secure/src/nx_secure_tls_session_create_ext.c b/nx_secure/src/nx_secure_tls_session_create_ext.c index 16bc8d26..cbd1dc8a 100644 --- a/nx_secure/src/nx_secure_tls_session_create_ext.c +++ b/nx_secure/src/nx_secure_tls_session_create_ext.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -71,32 +71,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed race condition for */ -/* multithread transmission, */ -/* added ECC initialization, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), and */ -/* added null pointer checking,*/ -/* resulting in version 6.1.10 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* added null pointer checking,*/ -/* removed unused code, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), and added*/ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ static UINT _find_cipher(UINT cipher_id, UINT cipher_role_id, UINT key_size, const NX_CRYPTO_METHOD **crypto_array, UINT array_size, const NX_CRYPTO_METHOD **crypto_method) diff --git a/nx_secure/src/nx_secure_tls_session_delete.c b/nx_secure/src/nx_secure_tls_session_delete.c index 39a5eee1..37918c01 100644 --- a/nx_secure/src/nx_secure_tls_session_delete.c +++ b/nx_secure/src/nx_secure_tls_session_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,17 +58,6 @@ /* Application Code */ /* _nx_secure_dtls_session_delete Delete the DTLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), and */ -/* fixed race condition for */ -/* multithread transmission, */ -/* fixed underflow issue, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_delete(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nx_secure_tls_session_end.c b/nx_secure/src/nx_secure_tls_session_end.c index 65dab515..20fc4ddf 100644 --- a/nx_secure/src/nx_secure_tls_session_end.c +++ b/nx_secure/src/nx_secure_tls_session_end.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,15 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_end(NX_SECURE_TLS_SESSION *tls_session, UINT wait_option) { diff --git a/nx_secure/src/nx_secure_tls_session_iv_size_get.c b/nx_secure/src/nx_secure_tls_session_iv_size_get.c index 1e81ac4d..b4c37705 100644 --- a/nx_secure/src/nx_secure_tls_session_iv_size_get.c +++ b/nx_secure/src/nx_secure_tls_session_iv_size_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ /* _nx_secure_tls_packet_allocate Allocate internal TLS packet */ /* _nx_secure_tls_send_record Send TLS records */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_iv_size_get(NX_SECURE_TLS_SESSION *tls_session, USHORT *iv_size) { diff --git a/nx_secure/src/nx_secure_tls_session_keys_set.c b/nx_secure/src/nx_secure_tls_session_keys_set.c index 283b9988..d90966a7 100644 --- a/nx_secure/src/nx_secure_tls_session_keys_set.c +++ b/nx_secure/src/nx_secure_tls_session_keys_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,24 +68,6 @@ /* _nx_secure_tls_process_changecipherspec */ /* Process ChangeCipherSpec */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* cleanup for session cipher, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* improved internal logic, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ #define NX_SECURE_SOURCE_CODE UINT _nx_secure_tls_session_keys_set(NX_SECURE_TLS_SESSION *tls_session, USHORT key_set) diff --git a/nx_secure/src/nx_secure_tls_session_packet_buffer_set.c b/nx_secure/src/nx_secure_tls_session_packet_buffer_set.c index b8e153f5..2366a5b0 100644 --- a/nx_secure/src/nx_secure_tls_session_packet_buffer_set.c +++ b/nx_secure/src/nx_secure_tls_session_packet_buffer_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr, UCHAR *buffer_ptr, ULONG buffer_size) diff --git a/nx_secure/src/nx_secure_tls_session_packet_pool_set.c b/nx_secure/src/nx_secure_tls_session_packet_pool_set.c index 4b3c443b..46e3dd48 100644 --- a/nx_secure/src/nx_secure_tls_session_packet_pool_set.c +++ b/nx_secure/src/nx_secure_tls_session_packet_pool_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,12 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_packet_pool_set(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET_POOL *packet_pool) diff --git a/nx_secure/src/nx_secure_tls_session_protocol_version_override.c b/nx_secure/src/nx_secure_tls_session_protocol_version_override.c index e3ce1a9e..933b5fba 100644 --- a/nx_secure/src/nx_secure_tls_session_protocol_version_override.c +++ b/nx_secure/src/nx_secure_tls_session_protocol_version_override.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,15 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_protocol_version_override(NX_SECURE_TLS_SESSION *tls_session, USHORT protocol_version) diff --git a/nx_secure/src/nx_secure_tls_session_receive.c b/nx_secure/src/nx_secure_tls_session_receive.c index 3204d368..58525d9b 100644 --- a/nx_secure/src/nx_secure_tls_session_receive.c +++ b/nx_secure/src/nx_secure_tls_session_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,23 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), added */ -/* conditional TLS 1.3 build, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), and */ -/* fixed renegotiation when */ -/* receiving in non-block mode,*/ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_receive(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET **packet_ptr_ptr, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_session_receive_records.c b/nx_secure/src/nx_secure_tls_session_receive_records.c index 6a3dd95e..97e62642 100644 --- a/nx_secure/src/nx_secure_tls_session_receive_records.c +++ b/nx_secure/src/nx_secure_tls_session_receive_records.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,21 +69,6 @@ /* _nx_secure_tls_session_receive Receive TCP data */ /* _nx_secure_tls_session_renegotiate Renegotiate TLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), added */ -/* conditional TLS 1.3 build, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), fixed */ -/* packet leak in TLS 1.3, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_receive_records(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET **packet_ptr_ptr, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_session_renegotiate.c b/nx_secure/src/nx_secure_tls_session_renegotiate.c index bc40c8be..d286ec44 100644 --- a/nx_secure/src/nx_secure_tls_session_renegotiate.c +++ b/nx_secure/src/nx_secure_tls_session_renegotiate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -78,34 +78,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), */ -/* fixed packet leak bug, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* option to disable client */ -/* initiated renegotiation, */ -/* resulting in version 6.1.9 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), changed */ -/* an error to assert, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), and */ -/* fixed renegotiation when */ -/* receiving in non-block mode,*/ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION UINT _nx_secure_tls_session_renegotiate(NX_SECURE_TLS_SESSION *tls_session, UINT wait_option) diff --git a/nx_secure/src/nx_secure_tls_session_renegotiate_callback_set.c b/nx_secure/src/nx_secure_tls_session_renegotiate_callback_set.c index 6450951a..a87e1ebb 100644 --- a/nx_secure/src/nx_secure_tls_session_renegotiate_callback_set.c +++ b/nx_secure/src/nx_secure_tls_session_renegotiate_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,15 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION UINT _nx_secure_tls_session_renegotiate_callback_set(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nx_secure_tls_session_reset.c b/nx_secure/src/nx_secure_tls_session_reset.c index ad9394ec..4d8698c9 100644 --- a/nx_secure/src/nx_secure_tls_session_reset.c +++ b/nx_secure/src/nx_secure_tls_session_reset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,30 +63,6 @@ /* _nx_secure_tls_session_delete Delete the TLS session */ /* _nx_secure_tls_session_end End of a session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), added */ -/* cleanup for session cipher, */ -/* resulting in version 6.1.8 */ -/* 10-15-2021 Timothy Stapko Modified comment(s), added */ -/* option to disable client */ -/* initiated renegotiation, */ -/* resulting in version 6.1.9 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), and */ -/* fixed renegotiation when */ -/* receiving in non-block mode,*/ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_reset(NX_SECURE_TLS_SESSION *session_ptr) { diff --git a/nx_secure/src/nx_secure_tls_session_send.c b/nx_secure/src/nx_secure_tls_session_send.c index fc4ea2e7..0d69d331 100644 --- a/nx_secure/src/nx_secure_tls_session_send.c +++ b/nx_secure/src/nx_secure_tls_session_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_send(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *packet_ptr, ULONG wait_option) diff --git a/nx_secure/src/nx_secure_tls_session_server_callback_set.c b/nx_secure/src/nx_secure_tls_session_server_callback_set.c index 4920cd4d..6901c4fd 100644 --- a/nx_secure/src/nx_secure_tls_session_server_callback_set.c +++ b/nx_secure/src/nx_secure_tls_session_server_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_server_callback_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*func_ptr)(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nx_secure_tls_session_sni_extension_parse.c b/nx_secure/src/nx_secure_tls_session_sni_extension_parse.c index 782830f1..d86c712a 100644 --- a/nx_secure/src/nx_secure_tls_session_sni_extension_parse.c +++ b/nx_secure/src/nx_secure_tls_session_sni_extension_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,15 +68,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_sni_extension_parse(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_TLS_HELLO_EXTENSION *extensions, diff --git a/nx_secure/src/nx_secure_tls_session_sni_extension_set.c b/nx_secure/src/nx_secure_tls_session_sni_extension_set.c index fe3671fa..a68dc3c4 100644 --- a/nx_secure/src/nx_secure_tls_session_sni_extension_set.c +++ b/nx_secure/src/nx_secure_tls_session_sni_extension_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,17 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), */ -/* fix compile error, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_sni_extension_set(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_DNS_NAME *dns_name) diff --git a/nx_secure/src/nx_secure_tls_session_start.c b/nx_secure/src/nx_secure_tls_session_start.c index 9905808b..46a26eb8 100644 --- a/nx_secure/src/nx_secure_tls_session_start.c +++ b/nx_secure/src/nx_secure_tls_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,21 +69,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), removed */ -/* internal unreachable logic, */ -/* resulting in version 6.1.11 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom packet pool support, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_start(NX_SECURE_TLS_SESSION *tls_session, NX_TCP_SOCKET *tcp_socket, UINT wait_option) diff --git a/nx_secure/src/nx_secure_tls_session_time_function_set.c b/nx_secure/src/nx_secure_tls_session_time_function_set.c index 730a5f0e..a7f41146 100644 --- a/nx_secure/src/nx_secure_tls_session_time_function_set.c +++ b/nx_secure/src/nx_secure_tls_session_time_function_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_time_function_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*time_func_ptr)(void)) diff --git a/nx_secure/src/nx_secure_tls_session_x509_client_verify_configure.c b/nx_secure/src/nx_secure_tls_session_x509_client_verify_configure.c index 3186de5d..ec9546d1 100644 --- a/nx_secure/src/nx_secure_tls_session_x509_client_verify_configure.c +++ b/nx_secure/src/nx_secure_tls_session_x509_client_verify_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -90,18 +90,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_session_x509_client_verify_configure(NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) { diff --git a/nx_secure/src/nx_secure_tls_shutdown.c b/nx_secure/src/nx_secure_tls_shutdown.c index 77ee7153..289d4d58 100644 --- a/nx_secure/src/nx_secure_tls_shutdown.c +++ b/nx_secure/src/nx_secure_tls_shutdown.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -55,14 +55,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_shutdown(VOID) { diff --git a/nx_secure/src/nx_secure_tls_trusted_certificate_add.c b/nx_secure/src/nx_secure_tls_trusted_certificate_add.c index d0d6601c..38c54382 100644 --- a/nx_secure/src/nx_secure_tls_trusted_certificate_add.c +++ b/nx_secure/src/nx_secure_tls_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,24 +65,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_trusted_certificate_add(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nx_secure_tls_trusted_certificate_remove.c b/nx_secure/src/nx_secure_tls_trusted_certificate_remove.c index bca409af..4af0e39f 100644 --- a/nx_secure/src/nx_secure_tls_trusted_certificate_remove.c +++ b/nx_secure/src/nx_secure_tls_trusted_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,21 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* updated X.509 return value, */ -/* resulting in version 6.1.6 */ -/* 03-08-2023 Yanwu Cai Modified comment(s), */ -/* fixed compiler errors when */ -/* x509 is disabled, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_trusted_certificate_remove(NX_SECURE_TLS_SESSION *tls_session, UCHAR *common_name, UINT common_name_length) diff --git a/nx_secure/src/nx_secure_tls_verify_mac.c b/nx_secure/src/nx_secure_tls_verify_mac.c index c51ddc4d..d7994da0 100644 --- a/nx_secure/src/nx_secure_tls_verify_mac.c +++ b/nx_secure/src/nx_secure_tls_verify_mac.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,26 +63,6 @@ /* */ /* _nx_secure_tls_process_record Process TLS record data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), fixed */ -/* AES-CBC padding oracle, */ -/* verified memcpy use cases, */ -/* supported chained packet, */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* reorganized internal logic, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* checked seq number overflow,*/ -/* resulting in version 6.1.12 */ -/* 10-31-2022 Yanwu Cai Modified comment(s), added */ -/* custom secret generation, */ -/* resulting in version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_tls_verify_mac(NX_SECURE_TLS_SESSION *tls_session, UCHAR *header_data, USHORT header_length, NX_PACKET *packet_ptr, ULONG offset, UINT *length) diff --git a/nx_secure/src/nx_secure_trusted_certificate_add.c b/nx_secure/src/nx_secure_trusted_certificate_add.c index 4af129aa..8c6a62ab 100644 --- a/nx_secure/src/nx_secure_trusted_certificate_add.c +++ b/nx_secure/src/nx_secure_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,12 +63,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_trusted_certificate_add(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nx_secure_verify_mac.c b/nx_secure/src/nx_secure_verify_mac.c index 9072602b..5a2c6c35 100644 --- a/nx_secure/src/nx_secure_verify_mac.c +++ b/nx_secure/src/nx_secure_verify_mac.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,12 +70,6 @@ static UCHAR _received_hash[NX_SECURE_TLS_MAX_HASH_SIZE]; /* */ /* _nx_secure_tls_verify_mac Verify record MAC checksum */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nx_secure_verify_mac(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, UCHAR *mac_secret, ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], UCHAR *header_data, USHORT header_length, NX_PACKET *packet_ptr, ULONG offset, UINT *length, diff --git a/nx_secure/src/nx_secure_x509.c b/nx_secure/src/nx_secure_x509.c index a8cf5b1d..ef446aff 100644 --- a/nx_secure/src/nx_secure_x509.c +++ b/nx_secure/src/nx_secure_x509.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -95,20 +95,6 @@ static UINT _nx_secure_x509_extract_oid_data(const UCHAR *buffer, UINT oid, UINT /* _nx_secure_x509_certificate_initialize */ /* Initialize certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 04-25-2022 Timothy Stapko Modified comment(s), */ -/* added parameter checking, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_parse(const UCHAR *buffer, UINT length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -283,18 +269,6 @@ UINT status; /* */ /* _nx_secure_x509_parse_public_key Parse public key in */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Timothy Stapko Modified comment(s), */ -/* removed parameter checking, */ -/* improved internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_extract_oid_data(const UCHAR *buffer, UINT oid, UINT oid_param, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -480,14 +454,6 @@ NX_SECURE_EC_PUBLIC_KEY *ec_pubkey; /* */ /* _nx_secure_x509_certificate_parse Extract public key data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_cert_data(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -686,14 +652,6 @@ UINT status; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_version(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -776,14 +734,6 @@ UINT status; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_serial_num(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -863,14 +813,6 @@ UINT status; /* _nx_secure_x509_parse_cert_data Parse certificate */ /* _nx_secure_x509_certificate_parse Extract public key data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_signature_algorithm(const UCHAR *buffer, ULONG length, UINT *bytes_processed, @@ -988,14 +930,6 @@ UCHAR oid_found = NX_CRYPTO_FALSE; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_issuer(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -1071,14 +1005,6 @@ UINT status; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_validity(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -1194,14 +1120,6 @@ const UCHAR *current_buffer; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_subject(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -1279,14 +1197,6 @@ UINT status; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_public_key(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -1463,17 +1373,6 @@ UINT status; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_unique_ids(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -1612,14 +1511,6 @@ UINT processed_id; /* */ /* _nx_secure_x509_parse_cert_data Parse certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_extensions(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) @@ -1733,17 +1624,6 @@ UINT status; /* */ /* _nx_secure_x509_certificate_parse Extract public key data */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_parse_signature_data(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CERT *cert) diff --git a/nx_secure/src/nx_secure_x509_asn1_tlv_block_parse.c b/nx_secure/src/nx_secure_x509_asn1_tlv_block_parse.c index 4d3bd52f..622f5933 100644 --- a/nx_secure/src/nx_secure_x509_asn1_tlv_block_parse.c +++ b/nx_secure/src/nx_secure_x509_asn1_tlv_block_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -114,17 +114,6 @@ /* _nx_secure_x509_subject_alt_names_find */ /* Find subject alt names */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_asn1_tlv_block_parse(const UCHAR *buffer, ULONG *buffer_length, USHORT *tlv_type, USHORT *tlv_tag_class, ULONG *tlv_length, diff --git a/nx_secure/src/nx_secure_x509_certificate_chain_verify.c b/nx_secure/src/nx_secure_x509_certificate_chain_verify.c index 7e32a41c..16882e47 100644 --- a/nx_secure/src/nx_secure_x509_certificate_chain_verify.c +++ b/nx_secure/src/nx_secure_x509_certificate_chain_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,24 +63,6 @@ /* Verify the server certificate */ /* _nx_secure_x509_crl_revocation_check Check revocation in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* reorganized internal logic, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* checked expiration for all */ -/* the certs in the chain, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_chain_verify(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT *certificate, ULONG current_time) diff --git a/nx_secure/src/nx_secure_x509_certificate_initialize.c b/nx_secure/src/nx_secure_x509_certificate_initialize.c index 3f45ea4b..188f05a6 100644 --- a/nx_secure/src/nx_secure_x509_certificate_initialize.c +++ b/nx_secure/src/nx_secure_x509_certificate_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -88,25 +88,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 03-02-2021 Timothy Stapko Modified comment(s), */ -/* removed unnecessary mutex, */ -/* resulting in version 6.1.5 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 06-02-2021 Timothy Stapko Modified comment(s), */ -/* supported hardware EC */ -/* private key, */ -/* resulting in version 6.1.7 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_initialize(NX_SECURE_X509_CERT *certificate, UCHAR *certificate_data, USHORT length, diff --git a/nx_secure/src/nx_secure_x509_certificate_list_add.c b/nx_secure/src/nx_secure_x509_certificate_list_add.c index 360f2c82..c83c6411 100644 --- a/nx_secure/src/nx_secure_x509_certificate_list_add.c +++ b/nx_secure/src/nx_secure_x509_certificate_list_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,17 +67,6 @@ /* _nx_secure_tls_process_remote_certificate */ /* Process server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_list_add(NX_SECURE_X509_CERT **list_head, NX_SECURE_X509_CERT *certificate, UINT duplicates_ok) diff --git a/nx_secure/src/nx_secure_x509_certificate_list_find.c b/nx_secure/src/nx_secure_x509_certificate_list_find.c index 77345aa3..5e36ebe4 100644 --- a/nx_secure/src/nx_secure_x509_certificate_list_find.c +++ b/nx_secure/src/nx_secure_x509_certificate_list_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* _nx_secure_x509_store_certificate_find */ /* Find a cert in a store */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_list_find(NX_SECURE_X509_CERT **list_head, NX_SECURE_X509_DISTINGUISHED_NAME *name, diff --git a/nx_secure/src/nx_secure_x509_certificate_list_remove.c b/nx_secure/src/nx_secure_x509_certificate_list_remove.c index d9be169f..0f9d5f35 100644 --- a/nx_secure/src/nx_secure_x509_certificate_list_remove.c +++ b/nx_secure/src/nx_secure_x509_certificate_list_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,17 +60,6 @@ /* _nx_secure_x509_store_certificate_remove */ /* Remove certificate from store */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_list_remove(NX_SECURE_X509_CERT **list_head, NX_SECURE_X509_DISTINGUISHED_NAME *name, UINT cert_id) diff --git a/nx_secure/src/nx_secure_x509_certificate_revocation_list_parse.c b/nx_secure/src/nx_secure_x509_certificate_revocation_list_parse.c index d582e9a1..deb85b6a 100644 --- a/nx_secure/src/nx_secure_x509_certificate_revocation_list_parse.c +++ b/nx_secure/src/nx_secure_x509_certificate_revocation_list_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -87,17 +87,6 @@ static UINT _nx_secure_x509_crl_extensions_parse(const UCHAR *buffer, ULONG leng /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_revocation_list_parse(const UCHAR *buffer, UINT length, UINT *bytes_processed, @@ -266,14 +255,6 @@ UINT status; /* _nx_secure_x509_certificate_revocation_list_parse */ /* Parse revocation list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_tbscert_list_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CRL *crl) @@ -451,14 +432,6 @@ UINT status; /* _nx_secure_x509_crl_tbscert_list_parse */ /* Parse TBSCertList in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_signature_algorithm_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, @@ -574,17 +547,6 @@ UCHAR oid_found = NX_CRYPTO_FALSE; /* _nx_secure_x509_certificate_revocation_list_parse */ /* Parse revocation list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* improved internal logic, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_signature_data_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CRL *crl) @@ -660,14 +622,6 @@ UINT status; /* _nx_secure_x509_crl_tbscert_list_parse */ /* Parse TBSCertList in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_version_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CRL *crl) @@ -747,14 +701,6 @@ UINT status; /* _nx_secure_x509_crl_tbscert_list_parse */ /* Parse TBSCertList in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_issuer_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CRL *crl) @@ -826,14 +772,6 @@ UINT status; /* _nx_secure_x509_crl_tbscert_list_parse */ /* Parse TBSCertList in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_update_times_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CRL *crl) @@ -936,14 +874,6 @@ const UCHAR *current_buffer; /* _nx_secure_x509_crl_tbscert_list_parse */ /* Parse TBSCertList in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_revoked_certs_list_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, @@ -1019,14 +949,6 @@ const UCHAR *current_buffer; /* _nx_secure_x509_crl_tbscert_list_parse */ /* Parse TBSCertList in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_extensions_parse(const UCHAR *buffer, ULONG length, UINT *bytes_processed, NX_SECURE_X509_CRL *crl) diff --git a/nx_secure/src/nx_secure_x509_certificate_verify.c b/nx_secure/src/nx_secure_x509_certificate_verify.c index c6185b5a..5e5ecde6 100644 --- a/nx_secure/src/nx_secure_x509_certificate_verify.c +++ b/nx_secure/src/nx_secure_x509_certificate_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,22 +69,6 @@ static UCHAR decrypted_signature[512]; /* This needs to hold the entire decrypte /* _nx_secure_x509_certificate_chain_verify */ /* Verify cert against stores */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* add KeyUsage check, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* removed unnecessary code, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_certificate_verify(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT *certificate, diff --git a/nx_secure/src/nx_secure_x509_common_name_dns_check.c b/nx_secure/src/nx_secure_x509_common_name_dns_check.c index 3a6b244c..d8a7ca61 100644 --- a/nx_secure/src/nx_secure_x509_common_name_dns_check.c +++ b/nx_secure/src/nx_secure_x509_common_name_dns_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -74,17 +74,6 @@ /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_common_name_dns_check(NX_SECURE_X509_CERT *certificate, const UCHAR *dns_tld, UINT dns_tld_length) diff --git a/nx_secure/src/nx_secure_x509_crl_revocation_check.c b/nx_secure/src/nx_secure_x509_crl_revocation_check.c index cd215428..e44dd4f0 100644 --- a/nx_secure/src/nx_secure_x509_crl_revocation_check.c +++ b/nx_secure/src/nx_secure_x509_crl_revocation_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,28 +80,6 @@ static UINT _nx_secure_x509_crl_parse_entry(const UCHAR *buffer, ULONG length, U /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 08-02-2021 Timothy Stapko Modified comment(s), */ -/* fixed compiler warnings, */ -/* resulting in version 6.1.8 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), */ -/* modified to improve code */ -/* coverage result, */ -/* resulting in version 6.1.11 */ -/* 07-29-2022 Yuxin Zhou Modified comment(s), and */ -/* checked expiration for all */ -/* the certs in the chain, */ -/* resulting in version 6.1.12 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_crl_revocation_check(const UCHAR *crl_data, UINT crl_length, NX_SECURE_X509_CERTIFICATE_STORE *store, @@ -265,14 +243,6 @@ UINT serial_number_length; /* */ /* _nx_secure_x509_crl_revocation_check Check revocation in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_crl_parse_entry(const UCHAR *buffer, ULONG length, UINT *bytes_processed, const UCHAR **serial_number, UINT *serial_number_length) diff --git a/nx_secure/src/nx_secure_x509_crl_verify.c b/nx_secure/src/nx_secure_x509_crl_verify.c index c604af6a..06f61fd5 100644 --- a/nx_secure/src/nx_secure_x509_crl_verify.c +++ b/nx_secure/src/nx_secure_x509_crl_verify.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -72,19 +72,6 @@ static UCHAR decrypted_signature[512]; /* This needs to hold the entire decrypte /* */ /* _nx_secure_x509_crl_revocation_check Check revocation in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), update */ -/* ECC find curve method, */ -/* add KeyUsage check, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_crl_verify(NX_SECURE_X509_CERT *certificate, NX_SECURE_X509_CRL *crl, NX_SECURE_X509_CERTIFICATE_STORE *store, diff --git a/nx_secure/src/nx_secure_x509_distinguished_name_compare.c b/nx_secure/src/nx_secure_x509_distinguished_name_compare.c index eb601cfe..8627f4d5 100644 --- a/nx_secure/src/nx_secure_x509_distinguished_name_compare.c +++ b/nx_secure/src/nx_secure_x509_distinguished_name_compare.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -80,17 +80,6 @@ static INT _nx_secure_x509_distinguished_name_field_compare(const UCHAR *field1, /* _nx_secure_x509_remote_endpoint_certificate_get */ /* Get remote host certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ INT _nx_secure_x509_distinguished_name_compare(NX_SECURE_X509_DISTINGUISHED_NAME *name, NX_SECURE_X509_DISTINGUISHED_NAME *compare_name, @@ -265,14 +254,6 @@ INT status = 0; /* _nx_secure_x509_distinguished_name_compare */ /* Compare distinguished name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static INT _nx_secure_x509_distinguished_name_field_compare(const UCHAR *field1, const UINT length1, const UCHAR *field2, const UINT length2) diff --git a/nx_secure/src/nx_secure_x509_distinguished_name_parse.c b/nx_secure/src/nx_secure_x509_distinguished_name_parse.c index aa3d9e9b..3d69cca3 100644 --- a/nx_secure/src/nx_secure_x509_distinguished_name_parse.c +++ b/nx_secure/src/nx_secure_x509_distinguished_name_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,17 +67,6 @@ static UINT _nx_secure_x509_extract_name_oid_data(const UCHAR *buffer, UINT oid, /* _nx_secure_x509_parse_issuer Parse issuer in certificate */ /* _nx_secure_x509_parse_subject Parse subject in certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_distinguished_name_parse(const UCHAR *buffer, UINT length, UINT *bytes_processed, NX_SECURE_X509_DISTINGUISHED_NAME *name) @@ -219,14 +208,6 @@ UINT oid; /* _nx_secure_x509_distinguished_name_parse */ /* Parse Distinguished Name */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_extract_name_oid_data(const UCHAR *buffer, UINT oid, ULONG length, UINT *bytes_processed, diff --git a/nx_secure/src/nx_secure_x509_dns_name_initialize.c b/nx_secure/src/nx_secure_x509_dns_name_initialize.c index 458146bf..41871901 100644 --- a/nx_secure/src/nx_secure_x509_dns_name_initialize.c +++ b/nx_secure/src/nx_secure_x509_dns_name_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,19 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), improved */ -/* buffer length verification, */ -/* verified memcpy use cases, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_dns_name_initialize(NX_SECURE_X509_DNS_NAME *dns_name, const UCHAR *name_string, USHORT length) diff --git a/nx_secure/src/nx_secure_x509_ec_private_key_parse.c b/nx_secure/src/nx_secure_x509_ec_private_key_parse.c index 51b90bdd..f5935140 100644 --- a/nx_secure/src/nx_secure_x509_ec_private_key_parse.c +++ b/nx_secure/src/nx_secure_x509_ec_private_key_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,21 +62,6 @@ /* _nx_secure_x509_certificate_initialize */ /* Initialize certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* ignored public key in EC */ -/* private key, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_ec_private_key_parse(const UCHAR *buffer, UINT length, UINT *bytes_processed, diff --git a/nx_secure/src/nx_secure_x509_expiration_check.c b/nx_secure/src/nx_secure_x509_expiration_check.c index de948e77..e0e46751 100644 --- a/nx_secure/src/nx_secure_x509_expiration_check.c +++ b/nx_secure/src/nx_secure_x509_expiration_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ static UINT _nx_secure_x509_asn1_time_to_unix_convert(const UCHAR *asn1_time, US /* _nx_secure_tls_remote_certificate_verify */ /* Verify the server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_expiration_check(NX_SECURE_X509_CERT *certificate, ULONG current_time) { @@ -158,19 +147,6 @@ static const UINT days_before_month[12] = {0, 31, 59, 90, 120, 151, 181, 212, 24 /* */ /* _nx_secure_x509_expiration_check Verify expiration of cert */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* changed LONG to ULONG to */ -/* extend the time range, */ -/* removed unused code, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ static UINT _nx_secure_x509_asn1_time_to_unix_convert(const UCHAR *asn1_time, USHORT asn1_length, USHORT format, ULONG *unix_time) diff --git a/nx_secure/src/nx_secure_x509_extended_key_usage_extension_parse.c b/nx_secure/src/nx_secure_x509_extended_key_usage_extension_parse.c index 97b8f07d..aceb7c74 100644 --- a/nx_secure/src/nx_secure_x509_extended_key_usage_extension_parse.c +++ b/nx_secure/src/nx_secure_x509_extended_key_usage_extension_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,17 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_extended_key_usage_extension_parse(NX_SECURE_X509_CERT *certificate, UINT key_usage) diff --git a/nx_secure/src/nx_secure_x509_extension_find.c b/nx_secure/src/nx_secure_x509_extension_find.c index d9d79d11..64c45871 100644 --- a/nx_secure/src/nx_secure_x509_extension_find.c +++ b/nx_secure/src/nx_secure_x509_extension_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,17 +67,6 @@ /* _nx_secure_x509_key_usage_extension_parse */ /* Parse KeyUsage extension */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_extension_find(NX_SECURE_X509_CERT *certificate, NX_SECURE_X509_EXTENSION *extension, USHORT extension_id) diff --git a/nx_secure/src/nx_secure_x509_find_certificate_methods.c b/nx_secure/src/nx_secure_x509_find_certificate_methods.c index 7d55d3a3..abca14c7 100644 --- a/nx_secure/src/nx_secure_x509_find_certificate_methods.c +++ b/nx_secure/src/nx_secure_x509_find_certificate_methods.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ /* _nx_secure_tls_send_certificate_verify */ /* Send certificate verify */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_find_certificate_methods(NX_SECURE_X509_CERT *cert, USHORT signature_algorithm, NX_SECURE_X509_CRYPTO **crypto_methods) diff --git a/nx_secure/src/nx_secure_x509_find_curve_method.c b/nx_secure/src/nx_secure_x509_find_curve_method.c index 463a2ae7..7e313041 100644 --- a/nx_secure/src/nx_secure_x509_find_curve_method.c +++ b/nx_secure/src/nx_secure_x509_find_curve_method.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -69,12 +69,6 @@ const NX_CRYPTO_METHOD **_nx_secure_x509_ecc_curves; /* _nx_secure_x509_certificate_verify Verify a certificate */ /* _nx_secure_x509_crl_verify Verify revocation list */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 04-02-2021 Timothy Stapko Initial Version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_find_curve_method(USHORT named_curve, const NX_CRYPTO_METHOD **curve_method) { diff --git a/nx_secure/src/nx_secure_x509_free_certificate_get.c b/nx_secure/src/nx_secure_x509_free_certificate_get.c index 2d977c6b..e051931e 100644 --- a/nx_secure/src/nx_secure_x509_free_certificate_get.c +++ b/nx_secure/src/nx_secure_x509_free_certificate_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,17 +59,6 @@ /* _nx_secure_tls_process_remote_certificate */ /* Process server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_free_certificate_get(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT **certificate) diff --git a/nx_secure/src/nx_secure_x509_key_usage_extension_parse.c b/nx_secure/src/nx_secure_x509_key_usage_extension_parse.c index 13e9d290..f0ab480d 100644 --- a/nx_secure/src/nx_secure_x509_key_usage_extension_parse.c +++ b/nx_secure/src/nx_secure_x509_key_usage_extension_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,18 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed parsing issue, */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_key_usage_extension_parse(NX_SECURE_X509_CERT *certificate, USHORT *bitfield) { diff --git a/nx_secure/src/nx_secure_x509_local_certificate_find.c b/nx_secure/src/nx_secure_x509_local_certificate_find.c index cb15c12d..f4b12722 100644 --- a/nx_secure/src/nx_secure_x509_local_certificate_find.c +++ b/nx_secure/src/nx_secure_x509_local_certificate_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,17 +60,6 @@ /* _nx_secure_tls_server_certificate_find */ /* Find server certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_local_certificate_find(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT **certificate, UINT cert_id) diff --git a/nx_secure/src/nx_secure_x509_local_device_certificate_get.c b/nx_secure/src/nx_secure_x509_local_device_certificate_get.c index 6e3d42ae..f24d9171 100644 --- a/nx_secure/src/nx_secure_x509_local_device_certificate_get.c +++ b/nx_secure/src/nx_secure_x509_local_device_certificate_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,17 +68,6 @@ /* _nx_secure_tls_send_server_key_exchange */ /* Send ServerKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_local_device_certificate_get(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_DISTINGUISHED_NAME *name, diff --git a/nx_secure/src/nx_secure_x509_oid_parse.c b/nx_secure/src/nx_secure_x509_oid_parse.c index cdc86ec7..c063a387 100644 --- a/nx_secure/src/nx_secure_x509_oid_parse.c +++ b/nx_secure/src/nx_secure_x509_oid_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -273,17 +273,6 @@ static const UINT _nx_secure_x509_oid_map_size = sizeof(_nx_secure_x509_oid_map) /* _nx_secure_x509_policy_qualifiers_parse */ /* Parse policy qualifiers */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ VOID _nx_secure_x509_oid_parse(const UCHAR *oid, ULONG length, UINT *oid_value) { diff --git a/nx_secure/src/nx_secure_x509_pkcs1_rsa_private_key_parse.c b/nx_secure/src/nx_secure_x509_pkcs1_rsa_private_key_parse.c index 5c6673c4..868ac74c 100644 --- a/nx_secure/src/nx_secure_x509_pkcs1_rsa_private_key_parse.c +++ b/nx_secure/src/nx_secure_x509_pkcs1_rsa_private_key_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ static VOID _nx_secure_asn1_parse_unsigned_integer(const UCHAR *data, ULONG leng /* _nx_secure_x509_certificate_initialize */ /* Initialize certificate */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_pkcs1_rsa_private_key_parse(const UCHAR *buffer, UINT length, UINT *bytes_processed, @@ -340,14 +329,6 @@ USHORT version; /* _nx_secure_x509_pkcs1_rsa_private_key_parse */ /* Parse RSA private key field */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ static VOID _nx_secure_asn1_parse_unsigned_integer(const UCHAR *data, ULONG length, const UCHAR **target, USHORT *target_length) diff --git a/nx_secure/src/nx_secure_x509_pkcs7_decode.c b/nx_secure/src/nx_secure_x509_pkcs7_decode.c index b09bc0c5..f54d84c3 100644 --- a/nx_secure/src/nx_secure_x509_pkcs7_decode.c +++ b/nx_secure/src/nx_secure_x509_pkcs7_decode.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* _nx_secure_tls_process_server_key_exchange */ /* Process ServerKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_pkcs7_decode(const UCHAR *signature_pointer, UINT signature_length, const UCHAR **signature_oid, UINT *signature_oid_length, diff --git a/nx_secure/src/nx_secure_x509_remote_endpoint_certificate_get.c b/nx_secure/src/nx_secure_x509_remote_endpoint_certificate_get.c index 3f7f8f56..fbe4aa6d 100644 --- a/nx_secure/src/nx_secure_x509_remote_endpoint_certificate_get.c +++ b/nx_secure/src/nx_secure_x509_remote_endpoint_certificate_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* _nx_secure_tls_process_server_key_exchange */ /* Process ServerKeyExchange */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_remote_endpoint_certificate_get(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_CERT **certificate) diff --git a/nx_secure/src/nx_secure_x509_store_certificate_add.c b/nx_secure/src/nx_secure_x509_store_certificate_add.c index 21586663..adfc3bee 100644 --- a/nx_secure/src/nx_secure_x509_store_certificate_add.c +++ b/nx_secure/src/nx_secure_x509_store_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ /* Add trusted certificate to */ /* TLS session */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_store_certificate_add(NX_SECURE_X509_CERT *certificate, NX_SECURE_X509_CERTIFICATE_STORE *store, UINT location) diff --git a/nx_secure/src/nx_secure_x509_store_certificate_find.c b/nx_secure/src/nx_secure_x509_store_certificate_find.c index af30305a..e0882b53 100644 --- a/nx_secure/src/nx_secure_x509_store_certificate_find.c +++ b/nx_secure/src/nx_secure_x509_store_certificate_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ /* Verify cert against stores */ /* _nx_secure_x509_crl_revocation_check Check revocation in crl */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_store_certificate_find(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_DISTINGUISHED_NAME *name, diff --git a/nx_secure/src/nx_secure_x509_store_certificate_remove.c b/nx_secure/src/nx_secure_x509_store_certificate_remove.c index 5e67339a..c73b9919 100644 --- a/nx_secure/src/nx_secure_x509_store_certificate_remove.c +++ b/nx_secure/src/nx_secure_x509_store_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,17 +70,6 @@ /* Remove certificate from TLS */ /* trusted store */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_store_certificate_remove(NX_SECURE_X509_CERTIFICATE_STORE *store, NX_SECURE_X509_DISTINGUISHED_NAME *name, diff --git a/nx_secure/src/nx_secure_x509_subject_alt_names_find.c b/nx_secure/src/nx_secure_x509_subject_alt_names_find.c index 40c67d3f..76d4a4c7 100644 --- a/nx_secure/src/nx_secure_x509_subject_alt_names_find.c +++ b/nx_secure/src/nx_secure_x509_subject_alt_names_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ /* */ /* _nx_secure_x509_common_name_dns_check Check Common Name by DNS */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nx_secure_x509_subject_alt_names_find(NX_SECURE_X509_EXTENSION *extension, const UCHAR *name, UINT name_length, USHORT name_type) diff --git a/nx_secure/src/nx_secure_x509_wildcard_compare.c b/nx_secure/src/nx_secure_x509_wildcard_compare.c index 33e1baf3..0b62d28d 100644 --- a/nx_secure/src/nx_secure_x509_wildcard_compare.c +++ b/nx_secure/src/nx_secure_x509_wildcard_compare.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ /* _nx_secure_x509_subject_alt_names_find */ /* Find subject alt names */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ INT _nx_secure_x509_wildcard_compare(const UCHAR *dns_name, UINT dns_name_len, const UCHAR *wildcard_name, UINT wildcard_len) diff --git a/nx_secure/src/nxe_secure_dtls_client_protocol_version_override.c b/nx_secure/src/nxe_secure_dtls_client_protocol_version_override.c index 0d0de59f..ff0bbf2f 100644 --- a/nx_secure/src/nxe_secure_dtls_client_protocol_version_override.c +++ b/nx_secure/src/nxe_secure_dtls_client_protocol_version_override.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_client_protocol_version_override(NX_SECURE_DTLS_SESSION *dtls_session, USHORT protocol_version) diff --git a/nx_secure/src/nxe_secure_dtls_client_session_start.c b/nx_secure/src/nxe_secure_dtls_client_session_start.c index 558a5627..821a2208 100644 --- a/nx_secure/src/nxe_secure_dtls_client_session_start.c +++ b/nx_secure/src/nxe_secure_dtls_client_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_client_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_socket, NXD_ADDRESS *ip_address, UINT port, UINT wait_option) { diff --git a/nx_secure/src/nxe_secure_dtls_ecc_initialize.c b/nx_secure/src/nxe_secure_dtls_ecc_initialize.c index 8d31640f..9fbc4577 100644 --- a/nx_secure/src/nxe_secure_dtls_ecc_initialize.c +++ b/nx_secure/src/nxe_secure_dtls_ecc_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_ecc_initialize(NX_SECURE_DTLS_SESSION *dtls_session, const USHORT *supported_groups, USHORT supported_group_count, diff --git a/nx_secure/src/nxe_secure_dtls_packet_allocate.c b/nx_secure/src/nxe_secure_dtls_packet_allocate.c index 51f50fea..d4e1e192 100644 --- a/nx_secure/src/nxe_secure_dtls_packet_allocate.c +++ b/nx_secure/src/nxe_secure_dtls_packet_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_packet_allocate(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG wait_option) diff --git a/nx_secure/src/nxe_secure_dtls_psk_add.c b/nx_secure/src/nxe_secure_dtls_psk_add.c index 2b966140..2b2b6a15 100644 --- a/nx_secure/src/nxe_secure_dtls_psk_add.c +++ b/nx_secure/src/nxe_secure_dtls_psk_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nxe_secure_dtls_psk_add(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *pre_shared_key, diff --git a/nx_secure/src/nxe_secure_dtls_server_create.c b/nx_secure/src/nxe_secure_dtls_server_create.c index d068177e..ccf3e11b 100644 --- a/nx_secure/src/nxe_secure_dtls_server_create.c +++ b/nx_secure/src/nxe_secure_dtls_server_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_create(NX_SECURE_DTLS_SERVER *server_ptr, NX_IP *ip_ptr, UINT port, ULONG timeout, VOID *session_buffer, UINT session_buffer_size, diff --git a/nx_secure/src/nxe_secure_dtls_server_delete.c b/nx_secure/src/nxe_secure_dtls_server_delete.c index 78c19935..aee639dd 100644 --- a/nx_secure/src/nxe_secure_dtls_server_delete.c +++ b/nx_secure/src/nxe_secure_dtls_server_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,14 +54,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_delete(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nxe_secure_dtls_server_ecc_initialize.c b/nx_secure/src/nxe_secure_dtls_server_ecc_initialize.c index 43366642..30f47909 100644 --- a/nx_secure/src/nxe_secure_dtls_server_ecc_initialize.c +++ b/nx_secure/src/nxe_secure_dtls_server_ecc_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_ecc_initialize(NX_SECURE_DTLS_SERVER *server_ptr, const USHORT *supported_groups, USHORT supported_group_count, diff --git a/nx_secure/src/nxe_secure_dtls_server_local_certificate_add.c b/nx_secure/src/nxe_secure_dtls_server_local_certificate_add.c index 6e2487e4..4efe5bd6 100644 --- a/nx_secure/src/nxe_secure_dtls_server_local_certificate_add.c +++ b/nx_secure/src/nxe_secure_dtls_server_local_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_local_certificate_add(NX_SECURE_DTLS_SERVER *server_ptr, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_server_local_certificate_remove.c b/nx_secure/src/nxe_secure_dtls_server_local_certificate_remove.c index cc413987..03d655b0 100644 --- a/nx_secure/src/nxe_secure_dtls_server_local_certificate_remove.c +++ b/nx_secure/src/nxe_secure_dtls_server_local_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_local_certificate_remove(NX_SECURE_DTLS_SERVER *server_ptr, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_server_notify_set.c b/nx_secure/src/nxe_secure_dtls_server_notify_set.c index deab460e..276eb0e2 100644 --- a/nx_secure/src/nxe_secure_dtls_server_notify_set.c +++ b/nx_secure/src/nxe_secure_dtls_server_notify_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -57,14 +57,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_notify_set(NX_SECURE_DTLS_SERVER *server_ptr, UINT (*disconnect_notify)(NX_SECURE_DTLS_SESSION *dtls_session), diff --git a/nx_secure/src/nxe_secure_dtls_server_protocol_version_override.c b/nx_secure/src/nxe_secure_dtls_server_protocol_version_override.c index d1dc9c55..6e394abf 100644 --- a/nx_secure/src/nxe_secure_dtls_server_protocol_version_override.c +++ b/nx_secure/src/nxe_secure_dtls_server_protocol_version_override.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,14 +60,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_protocol_version_override(NX_SECURE_DTLS_SERVER *dtls_server, USHORT protocol_version) diff --git a/nx_secure/src/nxe_secure_dtls_server_psk_add.c b/nx_secure/src/nxe_secure_dtls_server_psk_add.c index 3679c1d9..fc15e514 100644 --- a/nx_secure/src/nxe_secure_dtls_server_psk_add.c +++ b/nx_secure/src/nxe_secure_dtls_server_psk_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nxe_secure_dtls_server_psk_add(NX_SECURE_DTLS_SERVER *server_ptr, UCHAR *pre_shared_key, diff --git a/nx_secure/src/nxe_secure_dtls_server_session_send.c b/nx_secure/src/nxe_secure_dtls_server_session_send.c index 88e7488f..2909b61f 100644 --- a/nx_secure/src/nxe_secure_dtls_server_session_send.c +++ b/nx_secure/src/nxe_secure_dtls_server_session_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -56,14 +56,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr) { diff --git a/nx_secure/src/nxe_secure_dtls_server_session_start.c b/nx_secure/src/nxe_secure_dtls_server_session_start.c index 9f81aa8a..2cc9ace9 100644 --- a/nx_secure/src/nxe_secure_dtls_server_session_start.c +++ b/nx_secure/src/nxe_secure_dtls_server_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -55,14 +55,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_session_start(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) { diff --git a/nx_secure/src/nxe_secure_dtls_server_start.c b/nx_secure/src/nxe_secure_dtls_server_start.c index 5ea32dd8..8443dd62 100644 --- a/nx_secure/src/nxe_secure_dtls_server_start.c +++ b/nx_secure/src/nxe_secure_dtls_server_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,14 +54,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_start(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nxe_secure_dtls_server_stop.c b/nx_secure/src/nxe_secure_dtls_server_stop.c index 4f39537d..c727cc19 100644 --- a/nx_secure/src/nxe_secure_dtls_server_stop.c +++ b/nx_secure/src/nxe_secure_dtls_server_stop.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -54,14 +54,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_stop(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_add.c b/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_add.c index ce26e516..d6a2c7e4 100644 --- a/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_add.c +++ b/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_trusted_certificate_add(NX_SECURE_DTLS_SERVER *server_ptr, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_remove.c b/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_remove.c index 9ad234b4..b7d95367 100644 --- a/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_remove.c +++ b/nx_secure/src/nxe_secure_dtls_server_trusted_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_trusted_certificate_remove(NX_SECURE_DTLS_SERVER *server_ptr, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_configure.c b/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_configure.c index 644f1646..dc0588f1 100644 --- a/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_configure.c +++ b/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_x509_client_verify_configure(NX_SECURE_DTLS_SERVER *server_ptr, UINT certs_per_session, UCHAR *certs_buffer, ULONG buffer_size) diff --git a/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_disable.c b/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_disable.c index 03c4cbd3..99b0d04b 100644 --- a/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_disable.c +++ b/nx_secure/src/nxe_secure_dtls_server_x509_client_verify_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -56,14 +56,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_server_x509_client_verify_disable(NX_SECURE_DTLS_SERVER *server_ptr) { diff --git a/nx_secure/src/nxe_secure_dtls_session_client_info_get.c b/nx_secure/src/nxe_secure_dtls_session_client_info_get.c index f098238a..997c0452 100644 --- a/nx_secure/src/nxe_secure_dtls_session_client_info_get.c +++ b/nx_secure/src/nxe_secure_dtls_session_client_info_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_client_info_get(NX_SECURE_DTLS_SESSION *dtls_session, NXD_ADDRESS *client_ip_address, UINT *client_port, UINT *local_port) diff --git a/nx_secure/src/nxe_secure_dtls_session_create.c b/nx_secure/src/nxe_secure_dtls_session_create.c index e19a9c90..d68886b3 100644 --- a/nx_secure/src/nxe_secure_dtls_session_create.c +++ b/nx_secure/src/nxe_secure_dtls_session_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,14 +70,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, const NX_SECURE_TLS_CRYPTO *crypto_table, diff --git a/nx_secure/src/nxe_secure_dtls_session_delete.c b/nx_secure/src/nxe_secure_dtls_session_delete.c index 89f80f58..2880593b 100644 --- a/nx_secure/src/nxe_secure_dtls_session_delete.c +++ b/nx_secure/src/nxe_secure_dtls_session_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_delete(NX_SECURE_DTLS_SESSION *dtls_session) { diff --git a/nx_secure/src/nxe_secure_dtls_session_end.c b/nx_secure/src/nxe_secure_dtls_session_end.c index 6e177664..cd234f3f 100644 --- a/nx_secure/src/nxe_secure_dtls_session_end.c +++ b/nx_secure/src/nxe_secure_dtls_session_end.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_end(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) { diff --git a/nx_secure/src/nxe_secure_dtls_session_local_certificate_add.c b/nx_secure/src/nxe_secure_dtls_session_local_certificate_add.c index 4ee74dd3..b9155099 100644 --- a/nx_secure/src/nxe_secure_dtls_session_local_certificate_add.c +++ b/nx_secure/src/nxe_secure_dtls_session_local_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_local_certificate_add(NX_SECURE_DTLS_SESSION *dtls_session, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_session_local_certificate_remove.c b/nx_secure/src/nxe_secure_dtls_session_local_certificate_remove.c index 32bdbd35..1ceae1b9 100644 --- a/nx_secure/src/nxe_secure_dtls_session_local_certificate_remove.c +++ b/nx_secure/src/nxe_secure_dtls_session_local_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_local_certificate_remove(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_session_receive.c b/nx_secure/src/nxe_secure_dtls_session_receive.c index 9e81afba..6c7015c5 100644 --- a/nx_secure/src/nxe_secure_dtls_session_receive.c +++ b/nx_secure/src/nxe_secure_dtls_session_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_receive(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET **packet_ptr_ptr, ULONG wait_option) diff --git a/nx_secure/src/nxe_secure_dtls_session_reset.c b/nx_secure/src/nxe_secure_dtls_session_reset.c index 31ba2375..82bb92b5 100644 --- a/nx_secure/src/nxe_secure_dtls_session_reset.c +++ b/nx_secure/src/nxe_secure_dtls_session_reset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *session_ptr) { diff --git a/nx_secure/src/nxe_secure_dtls_session_send.c b/nx_secure/src/nxe_secure_dtls_session_send.c index b19dfc99..a5d95ed4 100644 --- a/nx_secure/src/nxe_secure_dtls_session_send.c +++ b/nx_secure/src/nxe_secure_dtls_session_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, NXD_ADDRESS *ip_address, UINT port) diff --git a/nx_secure/src/nxe_secure_dtls_session_start.c b/nx_secure/src/nxe_secure_dtls_session_start.c index 1ab66eff..41a61f3c 100644 --- a/nx_secure/src/nxe_secure_dtls_session_start.c +++ b/nx_secure/src/nxe_secure_dtls_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_socket, UINT is_client, UINT wait_option) diff --git a/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_add.c b/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_add.c index 1ad3590d..4a1f83d2 100644 --- a/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_add.c +++ b/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,14 +58,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_trusted_certificate_add(NX_SECURE_DTLS_SESSION *dtls_session, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_remove.c b/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_remove.c index 79dcdfc8..567a647a 100644 --- a/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_remove.c +++ b/nx_secure/src/nxe_secure_dtls_session_trusted_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,14 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_dtls_session_trusted_certificate_remove(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *common_name, UINT common_name_length, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_tls_active_certificate_set.c b/nx_secure/src/nxe_secure_tls_active_certificate_set.c index 4b0dceb4..696fef1e 100644 --- a/nx_secure/src/nxe_secure_tls_active_certificate_set.c +++ b/nx_secure/src/nxe_secure_tls_active_certificate_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_active_certificate_set(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nxe_secure_tls_client_psk_set.c b/nx_secure/src/nxe_secure_tls_client_psk_set.c index 13d375e6..350f3f57 100644 --- a/nx_secure/src/nxe_secure_tls_client_psk_set.c +++ b/nx_secure/src/nxe_secure_tls_client_psk_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,14 +68,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES UINT _nxe_secure_tls_client_psk_set(NX_SECURE_TLS_SESSION *tls_session, UCHAR *pre_shared_key, UINT psk_length, diff --git a/nx_secure/src/nxe_secure_tls_local_certificate_add.c b/nx_secure/src/nxe_secure_tls_local_certificate_add.c index 4e4b6411..c24cd5b7 100644 --- a/nx_secure/src/nxe_secure_tls_local_certificate_add.c +++ b/nx_secure/src/nxe_secure_tls_local_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_local_certificate_add(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nxe_secure_tls_local_certificate_find.c b/nx_secure/src/nxe_secure_tls_local_certificate_find.c index da388b71..85a8fe93 100644 --- a/nx_secure/src/nxe_secure_tls_local_certificate_find.c +++ b/nx_secure/src/nxe_secure_tls_local_certificate_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_local_certificate_find(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT **certificate, UCHAR *common_name, diff --git a/nx_secure/src/nxe_secure_tls_local_certificate_remove.c b/nx_secure/src/nxe_secure_tls_local_certificate_remove.c index adee8512..b9162f4f 100644 --- a/nx_secure/src/nxe_secure_tls_local_certificate_remove.c +++ b/nx_secure/src/nxe_secure_tls_local_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_local_certificate_remove(NX_SECURE_TLS_SESSION *tls_session, UCHAR *common_name, UINT common_name_length) diff --git a/nx_secure/src/nxe_secure_tls_metadata_size_calculate.c b/nx_secure/src/nxe_secure_tls_metadata_size_calculate.c index d1672e0c..f3895497 100644 --- a/nx_secure/src/nxe_secure_tls_metadata_size_calculate.c +++ b/nx_secure/src/nxe_secure_tls_metadata_size_calculate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_metadata_size_calculate(const NX_SECURE_TLS_CRYPTO *cipher_table, ULONG *metadata_size) diff --git a/nx_secure/src/nxe_secure_tls_packet_allocate.c b/nx_secure/src/nxe_secure_tls_packet_allocate.c index 71083fc7..8a80cfa4 100644 --- a/nx_secure/src/nxe_secure_tls_packet_allocate.c +++ b/nx_secure/src/nxe_secure_tls_packet_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_packet_allocate(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET_POOL *pool_ptr, NX_PACKET **packet_ptr, ULONG wait_option) diff --git a/nx_secure/src/nxe_secure_tls_psk_add.c b/nx_secure/src/nxe_secure_tls_psk_add.c index 120cc2d0..99983c89 100644 --- a/nx_secure/src/nxe_secure_tls_psk_add.c +++ b/nx_secure/src/nxe_secure_tls_psk_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #if defined(NX_SECURE_ENABLE_PSK_CIPHERSUITES) || defined(NX_SECURE_ENABLE_ECJPAKE_CIPHERSUITE) UINT _nxe_secure_tls_psk_add(NX_SECURE_TLS_SESSION *tls_session, UCHAR *pre_shared_key, UINT psk_length, diff --git a/nx_secure/src/nxe_secure_tls_remote_certificate_allocate.c b/nx_secure/src/nxe_secure_tls_remote_certificate_allocate.c index 2f0f9b19..36c99803 100644 --- a/nx_secure/src/nxe_secure_tls_remote_certificate_allocate.c +++ b/nx_secure/src/nxe_secure_tls_remote_certificate_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_remote_certificate_allocate(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate, diff --git a/nx_secure/src/nxe_secure_tls_remote_certificate_buffer_allocate.c b/nx_secure/src/nxe_secure_tls_remote_certificate_buffer_allocate.c index 20ebd172..c385cd61 100644 --- a/nx_secure/src/nxe_secure_tls_remote_certificate_buffer_allocate.c +++ b/nx_secure/src/nxe_secure_tls_remote_certificate_buffer_allocate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_remote_certificate_buffer_allocate(NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) { diff --git a/nx_secure/src/nxe_secure_tls_remote_certificate_free_all.c b/nx_secure/src/nxe_secure_tls_remote_certificate_free_all.c index d7cff97f..d90cea58 100644 --- a/nx_secure/src/nxe_secure_tls_remote_certificate_free_all.c +++ b/nx_secure/src/nxe_secure_tls_remote_certificate_free_all.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,14 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_remote_certificate_free_all(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nxe_secure_tls_server_certificate_add.c b/nx_secure/src/nxe_secure_tls_server_certificate_add.c index 20bfb463..6e3865de 100644 --- a/nx_secure/src/nxe_secure_tls_server_certificate_add.c +++ b/nx_secure/src/nxe_secure_tls_server_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_server_certificate_add(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_tls_server_certificate_find.c b/nx_secure/src/nxe_secure_tls_server_certificate_find.c index 50e5d020..a4256771 100644 --- a/nx_secure/src/nxe_secure_tls_server_certificate_find.c +++ b/nx_secure/src/nxe_secure_tls_server_certificate_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_server_certificate_find(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT **certificate, UINT cert_id) diff --git a/nx_secure/src/nxe_secure_tls_server_certificate_remove.c b/nx_secure/src/nxe_secure_tls_server_certificate_remove.c index 26f48311..88425395 100644 --- a/nx_secure/src/nxe_secure_tls_server_certificate_remove.c +++ b/nx_secure/src/nxe_secure_tls_server_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_server_certificate_remove(NX_SECURE_TLS_SESSION *tls_session, UINT cert_id) { diff --git a/nx_secure/src/nxe_secure_tls_session_alert_value_get.c b/nx_secure/src/nxe_secure_tls_session_alert_value_get.c index 99dca201..694cc60d 100644 --- a/nx_secure/src/nxe_secure_tls_session_alert_value_get.c +++ b/nx_secure/src/nxe_secure_tls_session_alert_value_get.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_alert_value_get(NX_SECURE_TLS_SESSION *tls_session, UINT *alert_level, UINT *alert_value) diff --git a/nx_secure/src/nxe_secure_tls_session_certificate_callback_set.c b/nx_secure/src/nxe_secure_tls_session_certificate_callback_set.c index a04ee43a..362f7b53 100644 --- a/nx_secure/src/nxe_secure_tls_session_certificate_callback_set.c +++ b/nx_secure/src/nxe_secure_tls_session_certificate_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_certificate_callback_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*func_ptr)(NX_SECURE_TLS_SESSION *session, diff --git a/nx_secure/src/nxe_secure_tls_session_client_callback_set.c b/nx_secure/src/nxe_secure_tls_session_client_callback_set.c index 2a3b9f67..db245738 100644 --- a/nx_secure/src/nxe_secure_tls_session_client_callback_set.c +++ b/nx_secure/src/nxe_secure_tls_session_client_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_client_callback_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*func_ptr)(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nxe_secure_tls_session_client_verify_disable.c b/nx_secure/src/nxe_secure_tls_session_client_verify_disable.c index 43363439..73ed5ae3 100644 --- a/nx_secure/src/nxe_secure_tls_session_client_verify_disable.c +++ b/nx_secure/src/nxe_secure_tls_session_client_verify_disable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_client_verify_disable(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nxe_secure_tls_session_client_verify_enable.c b/nx_secure/src/nxe_secure_tls_session_client_verify_enable.c index ba560f41..28b1a4b5 100644 --- a/nx_secure/src/nxe_secure_tls_session_client_verify_enable.c +++ b/nx_secure/src/nxe_secure_tls_session_client_verify_enable.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_client_verify_enable(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nxe_secure_tls_session_create.c b/nx_secure/src/nxe_secure_tls_session_create.c index f97a77fa..f7706522 100644 --- a/nx_secure/src/nxe_secure_tls_session_create.c +++ b/nx_secure/src/nxe_secure_tls_session_create.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, const NX_SECURE_TLS_CRYPTO *cipher_table, diff --git a/nx_secure/src/nxe_secure_tls_session_delete.c b/nx_secure/src/nxe_secure_tls_session_delete.c index 92794ff5..e6e42360 100644 --- a/nx_secure/src/nxe_secure_tls_session_delete.c +++ b/nx_secure/src/nxe_secure_tls_session_delete.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_delete(NX_SECURE_TLS_SESSION *tls_session) { diff --git a/nx_secure/src/nxe_secure_tls_session_end.c b/nx_secure/src/nxe_secure_tls_session_end.c index f0b9d3ea..6222ea25 100644 --- a/nx_secure/src/nxe_secure_tls_session_end.c +++ b/nx_secure/src/nxe_secure_tls_session_end.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_end(NX_SECURE_TLS_SESSION *tls_session, UINT wait_option) { diff --git a/nx_secure/src/nxe_secure_tls_session_packet_buffer_set.c b/nx_secure/src/nxe_secure_tls_session_packet_buffer_set.c index cde46cc3..b74afa80 100644 --- a/nx_secure/src/nxe_secure_tls_session_packet_buffer_set.c +++ b/nx_secure/src/nxe_secure_tls_session_packet_buffer_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr, UCHAR *buffer_ptr, ULONG buffer_size) diff --git a/nx_secure/src/nxe_secure_tls_session_packet_pool_set.c b/nx_secure/src/nxe_secure_tls_session_packet_pool_set.c index eeae568b..e63344da 100644 --- a/nx_secure/src/nxe_secure_tls_session_packet_pool_set.c +++ b/nx_secure/src/nxe_secure_tls_session_packet_pool_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,12 +61,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Yanwu Cai Initial Version 6.2.0 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_packet_pool_set(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET_POOL *packet_pool) diff --git a/nx_secure/src/nxe_secure_tls_session_protocol_version_override.c b/nx_secure/src/nxe_secure_tls_session_protocol_version_override.c index 231469ed..9170fb1c 100644 --- a/nx_secure/src/nxe_secure_tls_session_protocol_version_override.c +++ b/nx_secure/src/nxe_secure_tls_session_protocol_version_override.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -67,14 +67,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_protocol_version_override(NX_SECURE_TLS_SESSION *tls_session, USHORT protocol_version) diff --git a/nx_secure/src/nxe_secure_tls_session_receive.c b/nx_secure/src/nxe_secure_tls_session_receive.c index 9e01c05e..9109eacd 100644 --- a/nx_secure/src/nxe_secure_tls_session_receive.c +++ b/nx_secure/src/nxe_secure_tls_session_receive.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_receive(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET **packet_ptr_ptr, ULONG wait_option) diff --git a/nx_secure/src/nxe_secure_tls_session_renegotiate.c b/nx_secure/src/nxe_secure_tls_session_renegotiate.c index 6b9f8f68..11d0b3e8 100644 --- a/nx_secure/src/nxe_secure_tls_session_renegotiate.c +++ b/nx_secure/src/nxe_secure_tls_session_renegotiate.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -60,15 +60,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION UINT _nxe_secure_tls_session_renegotiate(NX_SECURE_TLS_SESSION *tls_session, UINT wait_option) diff --git a/nx_secure/src/nxe_secure_tls_session_renegotiate_callback_set.c b/nx_secure/src/nxe_secure_tls_session_renegotiate_callback_set.c index 479f831e..336c3e59 100644 --- a/nx_secure/src/nxe_secure_tls_session_renegotiate_callback_set.c +++ b/nx_secure/src/nxe_secure_tls_session_renegotiate_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,15 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* fixed renegotiation bug, */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_SECURE_TLS_DISABLE_SECURE_RENEGOTIATION UINT _nxe_secure_tls_session_renegotiate_callback_set(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nxe_secure_tls_session_reset.c b/nx_secure/src/nxe_secure_tls_session_reset.c index 5d2fdd56..b70cbafc 100644 --- a/nx_secure/src/nxe_secure_tls_session_reset.c +++ b/nx_secure/src/nxe_secure_tls_session_reset.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_reset(NX_SECURE_TLS_SESSION *session_ptr) { diff --git a/nx_secure/src/nxe_secure_tls_session_send.c b/nx_secure/src/nxe_secure_tls_session_send.c index 85ad1726..903e4155 100644 --- a/nx_secure/src/nxe_secure_tls_session_send.c +++ b/nx_secure/src/nxe_secure_tls_session_send.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 10-31-2023 Yanwu Cai Modified comment(s), added */ -/* record length checking, */ -/* resulting in version 6.3.0 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_send(NX_SECURE_TLS_SESSION *tls_session, NX_PACKET *packet_ptr, ULONG wait_option) diff --git a/nx_secure/src/nxe_secure_tls_session_server_callback_set.c b/nx_secure/src/nxe_secure_tls_session_server_callback_set.c index e3422f22..97fa5506 100644 --- a/nx_secure/src/nxe_secure_tls_session_server_callback_set.c +++ b/nx_secure/src/nxe_secure_tls_session_server_callback_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,14 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_server_callback_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*func_ptr)(NX_SECURE_TLS_SESSION *tls_session, diff --git a/nx_secure/src/nxe_secure_tls_session_sni_extension_parse.c b/nx_secure/src/nxe_secure_tls_session_sni_extension_parse.c index 1a2b7ede..4f40b73b 100644 --- a/nx_secure/src/nxe_secure_tls_session_sni_extension_parse.c +++ b/nx_secure/src/nxe_secure_tls_session_sni_extension_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_sni_extension_parse(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_TLS_HELLO_EXTENSION *extensions, diff --git a/nx_secure/src/nxe_secure_tls_session_sni_extension_set.c b/nx_secure/src/nxe_secure_tls_session_sni_extension_set.c index f096fcea..b462ebc3 100644 --- a/nx_secure/src/nxe_secure_tls_session_sni_extension_set.c +++ b/nx_secure/src/nxe_secure_tls_session_sni_extension_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_sni_extension_set(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_DNS_NAME *dns_name) diff --git a/nx_secure/src/nxe_secure_tls_session_start.c b/nx_secure/src/nxe_secure_tls_session_start.c index 3d4aa7e6..1b330b71 100644 --- a/nx_secure/src/nxe_secure_tls_session_start.c +++ b/nx_secure/src/nxe_secure_tls_session_start.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,14 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_start(NX_SECURE_TLS_SESSION *tls_session, NX_TCP_SOCKET *tcp_socket, UINT wait_option) diff --git a/nx_secure/src/nxe_secure_tls_session_time_function_set.c b/nx_secure/src/nxe_secure_tls_session_time_function_set.c index b486f02a..d2afdea8 100644 --- a/nx_secure/src/nxe_secure_tls_session_time_function_set.c +++ b/nx_secure/src/nxe_secure_tls_session_time_function_set.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -61,14 +61,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_time_function_set(NX_SECURE_TLS_SESSION *tls_session, ULONG (*time_func_ptr)(void)) diff --git a/nx_secure/src/nxe_secure_tls_session_x509_client_verify_configure.c b/nx_secure/src/nxe_secure_tls_session_x509_client_verify_configure.c index 98a816a5..00b32289 100644 --- a/nx_secure/src/nxe_secure_tls_session_x509_client_verify_configure.c +++ b/nx_secure/src/nxe_secure_tls_session_x509_client_verify_configure.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,17 +66,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 01-31-2022 Timothy Stapko Modified comment(s), */ -/* removed redundant checking, */ -/* resulting in version 6.1.10 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_session_x509_client_verify_configure(NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) { diff --git a/nx_secure/src/nxe_secure_tls_trusted_certificate_add.c b/nx_secure/src/nxe_secure_tls_trusted_certificate_add.c index 3bf55053..f2f2916f 100644 --- a/nx_secure/src/nxe_secure_tls_trusted_certificate_add.c +++ b/nx_secure/src/nxe_secure_tls_trusted_certificate_add.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -65,14 +65,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_trusted_certificate_add(NX_SECURE_TLS_SESSION *tls_session, NX_SECURE_X509_CERT *certificate) diff --git a/nx_secure/src/nxe_secure_tls_trusted_certificate_remove.c b/nx_secure/src/nxe_secure_tls_trusted_certificate_remove.c index 4a0fe16a..53cbd016 100644 --- a/nx_secure/src/nxe_secure_tls_trusted_certificate_remove.c +++ b/nx_secure/src/nxe_secure_tls_trusted_certificate_remove.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -66,14 +66,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* */ /**************************************************************************/ UINT _nxe_secure_tls_trusted_certificate_remove(NX_SECURE_TLS_SESSION *tls_session, UCHAR *common_name, UINT common_name_length) diff --git a/nx_secure/src/nxe_secure_x509_certificate_initialize.c b/nx_secure/src/nxe_secure_x509_certificate_initialize.c index 7251f04c..4155669b 100644 --- a/nx_secure/src/nxe_secure_x509_certificate_initialize.c +++ b/nx_secure/src/nxe_secure_x509_certificate_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -70,17 +70,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_certificate_initialize(NX_SECURE_X509_CERT *certificate, UCHAR *certificate_data, USHORT length, UCHAR *raw_data_buffer, diff --git a/nx_secure/src/nxe_secure_x509_common_name_dns_check.c b/nx_secure/src/nxe_secure_x509_common_name_dns_check.c index f5564fd0..594fda28 100644 --- a/nx_secure/src/nxe_secure_x509_common_name_dns_check.c +++ b/nx_secure/src/nxe_secure_x509_common_name_dns_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_common_name_dns_check(NX_SECURE_X509_CERT *certificate, const UCHAR *dns_tld, UINT dns_tld_length) diff --git a/nx_secure/src/nxe_secure_x509_crl_revocation_check.c b/nx_secure/src/nxe_secure_x509_crl_revocation_check.c index 2794f8eb..b1f25841 100644 --- a/nx_secure/src/nxe_secure_x509_crl_revocation_check.c +++ b/nx_secure/src/nxe_secure_x509_crl_revocation_check.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_crl_revocation_check(const UCHAR *crl_data, UINT crl_length, NX_SECURE_X509_CERTIFICATE_STORE *store, diff --git a/nx_secure/src/nxe_secure_x509_dns_name_initialize.c b/nx_secure/src/nxe_secure_x509_dns_name_initialize.c index c0407016..6ed6561f 100644 --- a/nx_secure/src/nxe_secure_x509_dns_name_initialize.c +++ b/nx_secure/src/nxe_secure_x509_dns_name_initialize.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,17 +64,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_dns_name_initialize(NX_SECURE_X509_DNS_NAME *dns_name, const UCHAR *name_string, USHORT length) diff --git a/nx_secure/src/nxe_secure_x509_extended_key_usage_extension_parse.c b/nx_secure/src/nxe_secure_x509_extended_key_usage_extension_parse.c index 75cebeb8..261c48e9 100644 --- a/nx_secure/src/nxe_secure_x509_extended_key_usage_extension_parse.c +++ b/nx_secure/src/nxe_secure_x509_extended_key_usage_extension_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_extended_key_usage_extension_parse(NX_SECURE_X509_CERT *certificate, UINT key_usage) diff --git a/nx_secure/src/nxe_secure_x509_extension_find.c b/nx_secure/src/nxe_secure_x509_extension_find.c index ae0f8df5..c1288b45 100644 --- a/nx_secure/src/nxe_secure_x509_extension_find.c +++ b/nx_secure/src/nxe_secure_x509_extension_find.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,17 +62,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_extension_find(NX_SECURE_X509_CERT *certificate, NX_SECURE_X509_EXTENSION *extension, USHORT extension_id) diff --git a/nx_secure/src/nxe_secure_x509_key_usage_extension_parse.c b/nx_secure/src/nxe_secure_x509_key_usage_extension_parse.c index 60995bad..46a22c8c 100644 --- a/nx_secure/src/nxe_secure_x509_key_usage_extension_parse.c +++ b/nx_secure/src/nxe_secure_x509_key_usage_extension_parse.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -63,17 +63,6 @@ NX_SECURE_CALLER_CHECKING_EXTERNS /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* 09-30-2020 Timothy Stapko Modified comment(s), */ -/* resulting in version 6.1 */ -/* 04-02-2021 Timothy Stapko Modified comment(s), */ -/* removed dependency on TLS, */ -/* resulting in version 6.1.6 */ -/* */ /**************************************************************************/ UINT _nxe_secure_x509_key_usage_extension_parse(NX_SECURE_X509_CERT *certificate, USHORT *bitfield) { diff --git a/ports/arc_em/metaware/inc/nx_port.h b/ports/arc_em/metaware/inc/nx_port.h index 8ad651f4..134dc5b6 100644 --- a/ports/arc_em/metaware/inc/nx_port.h +++ b/ports/arc_em/metaware/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo ARCv2_EM/MetaWare Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo ARCv2_EM/MetaWare Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/arc_hs/metaware/inc/nx_port.h b/ports/arc_hs/metaware/inc/nx_port.h index 9aac60be..0034d1a7 100644 --- a/ports/arc_hs/metaware/inc/nx_port.h +++ b/ports/arc_hs/metaware/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo ARC_HS/MetaWare Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo ARC_HS/MetaWare Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a15/gnu/inc/nx_port.h b/ports/cortex_a15/gnu/inc/nx_port.h index 45b707dd..8979a524 100644 --- a/ports/cortex_a15/gnu/inc/nx_port.h +++ b/ports/cortex_a15/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A15/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A15/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a5/ac5/inc/nx_port.h b/ports/cortex_a5/ac5/inc/nx_port.h index 833263fa..2329f5e1 100644 --- a/ports/cortex_a5/ac5/inc/nx_port.h +++ b/ports/cortex_a5/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A5/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A5/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a5/gnu/inc/nx_port.h b/ports/cortex_a5/gnu/inc/nx_port.h index d18e62e9..65813528 100644 --- a/ports/cortex_a5/gnu/inc/nx_port.h +++ b/ports/cortex_a5/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A7/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A7/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a5/iar/inc/nx_port.h b/ports/cortex_a5/iar/inc/nx_port.h index bff3484c..42c59118 100644 --- a/ports/cortex_a5/iar/inc/nx_port.h +++ b/ports/cortex_a5/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A5/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A5/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a5x/ac6/inc/nx_port.h b/ports/cortex_a5x/ac6/inc/nx_port.h index 06c30c2b..03b15c71 100644 --- a/ports/cortex_a5x/ac6/inc/nx_port.h +++ b/ports/cortex_a5x/ac6/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A5x/AC6 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A5x/AC6 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a7/ac5/inc/nx_port.h b/ports/cortex_a7/ac5/inc/nx_port.h index c4360c82..0c103d87 100644 --- a/ports/cortex_a7/ac5/inc/nx_port.h +++ b/ports/cortex_a7/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A7/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A7/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a7/gnu/inc/nx_port.h b/ports/cortex_a7/gnu/inc/nx_port.h index 2d12e683..9e32dc3f 100644 --- a/ports/cortex_a7/gnu/inc/nx_port.h +++ b/ports/cortex_a7/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A7/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A7/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a7/iar/inc/nx_port.h b/ports/cortex_a7/iar/inc/nx_port.h index a8f423e5..c0b9ad08 100644 --- a/ports/cortex_a7/iar/inc/nx_port.h +++ b/ports/cortex_a7/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A7/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A7/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a8/ac5/inc/nx_port.h b/ports/cortex_a8/ac5/inc/nx_port.h index ce805266..066813f4 100644 --- a/ports/cortex_a8/ac5/inc/nx_port.h +++ b/ports/cortex_a8/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A8/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A8/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a8/gnu/inc/nx_port.h b/ports/cortex_a8/gnu/inc/nx_port.h index b1d41e0e..e73c9028 100644 --- a/ports/cortex_a8/gnu/inc/nx_port.h +++ b/ports/cortex_a8/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A8/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A8/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a8/iar/inc/nx_port.h b/ports/cortex_a8/iar/inc/nx_port.h index 03bbb069..784de967 100644 --- a/ports/cortex_a8/iar/inc/nx_port.h +++ b/ports/cortex_a8/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A8/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A8/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a9/ac5/inc/nx_port.h b/ports/cortex_a9/ac5/inc/nx_port.h index 2d5bbdb3..bc2df57a 100644 --- a/ports/cortex_a9/ac5/inc/nx_port.h +++ b/ports/cortex_a9/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A9/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A9/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a9/gnu/inc/nx_port.h b/ports/cortex_a9/gnu/inc/nx_port.h index 0a9ef657..8a489758 100644 --- a/ports/cortex_a9/gnu/inc/nx_port.h +++ b/ports/cortex_a9/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A9/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A9/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a9/iar/inc/nx_port.h b/ports/cortex_a9/iar/inc/nx_port.h index 54559cbd..ab84d44f 100644 --- a/ports/cortex_a9/iar/inc/nx_port.h +++ b/ports/cortex_a9/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A9/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A9/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_a9/rvds/inc/nx_port.h b/ports/cortex_a9/rvds/inc/nx_port.h index 2d5bbdb3..bc2df57a 100644 --- a/ports/cortex_a9/rvds/inc/nx_port.h +++ b/ports/cortex_a9/rvds/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-A9/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-A9/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m0/ac5/inc/nx_port.h b/ports/cortex_m0/ac5/inc/nx_port.h index f973aabf..7ed39efb 100644 --- a/ports/cortex_m0/ac5/inc/nx_port.h +++ b/ports/cortex_m0/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M0/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M0/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m0/gnu/inc/nx_port.h b/ports/cortex_m0/gnu/inc/nx_port.h index dafa783c..7b9fa4c7 100644 --- a/ports/cortex_m0/gnu/inc/nx_port.h +++ b/ports/cortex_m0/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,19 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected the code of */ -/* getting system state, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -61,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -81,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -187,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M0/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M0/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m0/iar/inc/nx_port.h b/ports/cortex_m0/iar/inc/nx_port.h index 4eb60579..bbfbea32 100644 --- a/ports/cortex_m0/iar/inc/nx_port.h +++ b/ports/cortex_m0/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -181,7 +175,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M0/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M0/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m23/ac5/inc/nx_port.h b/ports/cortex_m23/ac5/inc/nx_port.h index e3a4aaaa..584f60bf 100644 --- a/ports/cortex_m23/ac5/inc/nx_port.h +++ b/ports/cortex_m23/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M23/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M23/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m23/gnu/inc/nx_port.h b/ports/cortex_m23/gnu/inc/nx_port.h index 9b9b89b5..5e2809ec 100644 --- a/ports/cortex_m23/gnu/inc/nx_port.h +++ b/ports/cortex_m23/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -183,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M23/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M23/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m23/iar/inc/nx_port.h b/ports/cortex_m23/iar/inc/nx_port.h index 6a365c50..88811fc2 100644 --- a/ports/cortex_m23/iar/inc/nx_port.h +++ b/ports/cortex_m23/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -181,7 +175,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M23/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M23/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m3/ac5/inc/nx_port.h b/ports/cortex_m3/ac5/inc/nx_port.h index 1bd10b30..ec789e0e 100644 --- a/ports/cortex_m3/ac5/inc/nx_port.h +++ b/ports/cortex_m3/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M3/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M3/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m3/gnu/inc/nx_port.h b/ports/cortex_m3/gnu/inc/nx_port.h index e1a8b5d5..7bab0772 100644 --- a/ports/cortex_m3/gnu/inc/nx_port.h +++ b/ports/cortex_m3/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,19 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected the code of */ -/* getting system state, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -61,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -81,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -187,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M3/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M3/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m3/iar/inc/nx_port.h b/ports/cortex_m3/iar/inc/nx_port.h index 4c68161a..f8039b93 100644 --- a/ports/cortex_m3/iar/inc/nx_port.h +++ b/ports/cortex_m3/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -181,7 +175,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M3/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M3/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m3/keil/inc/nx_port.h b/ports/cortex_m3/keil/inc/nx_port.h index 03cf75fd..a5f0077d 100644 --- a/ports/cortex_m3/keil/inc/nx_port.h +++ b/ports/cortex_m3/keil/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M3/Keil Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M3/Keil Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m33/ac5/inc/nx_port.h b/ports/cortex_m33/ac5/inc/nx_port.h index f1171286..e5d52267 100644 --- a/ports/cortex_m33/ac5/inc/nx_port.h +++ b/ports/cortex_m33/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,18 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Scott Larson Modified comment(s), and */ -/* fixed whitespace, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -207,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M33/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M33/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m33/ac6/inc/nx_port.h b/ports/cortex_m33/ac6/inc/nx_port.h index 93955840..d5285799 100644 --- a/ports/cortex_m33/ac6/inc/nx_port.h +++ b/ports/cortex_m33/ac6/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M33/AC6 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M33/AC6 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m33/gnu/inc/nx_port.h b/ports/cortex_m33/gnu/inc/nx_port.h index b1ced500..4788c0d7 100644 --- a/ports/cortex_m33/gnu/inc/nx_port.h +++ b/ports/cortex_m33/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,16 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 03-08-2023 Scott Larson Modified comment(s), and */ -/* fixed whitespace, */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -184,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M33/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M33/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m33/iar/inc/nx_port.h b/ports/cortex_m33/iar/inc/nx_port.h index 54be1421..b61368d7 100644 --- a/ports/cortex_m33/iar/inc/nx_port.h +++ b/ports/cortex_m33/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 03-08-2023 Scott Larson Modified comment(s), and */ -/* fixed whitespace, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -184,7 +175,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M33/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M33/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m4/ac5/inc/nx_port.h b/ports/cortex_m4/ac5/inc/nx_port.h index 7cd1cea0..4a847548 100644 --- a/ports/cortex_m4/ac5/inc/nx_port.h +++ b/ports/cortex_m4/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M4/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M4/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m4/gnu/inc/nx_port.h b/ports/cortex_m4/gnu/inc/nx_port.h index 88daa690..8c872a8a 100644 --- a/ports/cortex_m4/gnu/inc/nx_port.h +++ b/ports/cortex_m4/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,19 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected the code of */ -/* getting system state, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -61,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -81,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -187,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M4/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M4/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m4/iar/inc/nx_port.h b/ports/cortex_m4/iar/inc/nx_port.h index 20e68108..b7f6a200 100644 --- a/ports/cortex_m4/iar/inc/nx_port.h +++ b/ports/cortex_m4/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -181,7 +175,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M4/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M4/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m4/keil/inc/nx_port.h b/ports/cortex_m4/keil/inc/nx_port.h index 512827af..0c4c9932 100644 --- a/ports/cortex_m4/keil/inc/nx_port.h +++ b/ports/cortex_m4/keil/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M4/Keil Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M4/Keil Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m55/ac5/inc/nx_port.h b/ports/cortex_m55/ac5/inc/nx_port.h index 14596b4c..e01db9c2 100644 --- a/ports/cortex_m55/ac5/inc/nx_port.h +++ b/ports/cortex_m55/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -201,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M55/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M55/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m55/ac6/inc/nx_port.h b/ports/cortex_m55/ac6/inc/nx_port.h index eae5918a..0688884d 100644 --- a/ports/cortex_m55/ac6/inc/nx_port.h +++ b/ports/cortex_m55/ac6/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M55/AC6 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M55/AC6 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m55/gnu/inc/nx_port.h b/ports/cortex_m55/gnu/inc/nx_port.h index dc20f181..c379f240 100644 --- a/ports/cortex_m55/gnu/inc/nx_port.h +++ b/ports/cortex_m55/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M55/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M55/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m55/iar/inc/nx_port.h b/ports/cortex_m55/iar/inc/nx_port.h index e5536503..92501bc9 100644 --- a/ports/cortex_m55/iar/inc/nx_port.h +++ b/ports/cortex_m55/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M55/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M55/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m7/ac5/inc/nx_port.h b/ports/cortex_m7/ac5/inc/nx_port.h index 308c0f1e..8d4cc64f 100644 --- a/ports/cortex_m7/ac5/inc/nx_port.h +++ b/ports/cortex_m7/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M7/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M7/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m7/ac6/inc/nx_port.h b/ports/cortex_m7/ac6/inc/nx_port.h index b5b1d2b6..5cc077f6 100644 --- a/ports/cortex_m7/ac6/inc/nx_port.h +++ b/ports/cortex_m7/ac6/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Tiejun Zhou Initial Version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M7/AC6 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M7/AC6 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m7/gnu/inc/nx_port.h b/ports/cortex_m7/gnu/inc/nx_port.h index 37784fac..60ba7227 100644 --- a/ports/cortex_m7/gnu/inc/nx_port.h +++ b/ports/cortex_m7/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,19 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* 09-30-2020 Yuxin Zhou Modified comment(s), and */ -/* corrected the code of */ -/* getting system state, */ -/* resulting in version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -61,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -81,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -187,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M7/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M7/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m7/iar/inc/nx_port.h b/ports/cortex_m7/iar/inc/nx_port.h index 364141dd..c76a7ffa 100644 --- a/ports/cortex_m7/iar/inc/nx_port.h +++ b/ports/cortex_m7/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -181,7 +175,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M7/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M7/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m85/ac5/inc/nx_port.h b/ports/cortex_m85/ac5/inc/nx_port.h index 8e7eb18b..fde3334f 100644 --- a/ports/cortex_m85/ac5/inc/nx_port.h +++ b/ports/cortex_m85/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -201,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M85/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M85/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m85/ac6/inc/nx_port.h b/ports/cortex_m85/ac6/inc/nx_port.h index 3af527ba..ca3ad54a 100644 --- a/ports/cortex_m85/ac6/inc/nx_port.h +++ b/ports/cortex_m85/ac6/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M85/AC6 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M85/AC6 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m85/gnu/inc/nx_port.h b/ports/cortex_m85/gnu/inc/nx_port.h index de56a7dc..978445f4 100644 --- a/ports/cortex_m85/gnu/inc/nx_port.h +++ b/ports/cortex_m85/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M85/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M85/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_m85/iar/inc/nx_port.h b/ports/cortex_m85/iar/inc/nx_port.h index f35f3a10..60784514 100644 --- a/ports/cortex_m85/iar/inc/nx_port.h +++ b/ports/cortex_m85/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 03-08-2023 Scott Larson Initial Version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -180,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-M85/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-M85/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r4/ac5/inc/nx_port.h b/ports/cortex_r4/ac5/inc/nx_port.h index 850b1e5a..73f8519e 100644 --- a/ports/cortex_r4/ac5/inc/nx_port.h +++ b/ports/cortex_r4/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-R4/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-R4/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r4/ac6/inc/nx_port.h b/ports/cortex_r4/ac6/inc/nx_port.h index ce4ed53c..9178181f 100644 --- a/ports/cortex_r4/ac6/inc/nx_port.h +++ b/ports/cortex_r4/ac6/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -183,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-R4/AC6 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-R4/AC6 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r4/gnu/inc/nx_port.h b/ports/cortex_r4/gnu/inc/nx_port.h index 41ca876a..228ab268 100644 --- a/ports/cortex_r4/gnu/inc/nx_port.h +++ b/ports/cortex_r4/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -183,7 +174,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-R4/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-R4/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r4/iar/inc/nx_port.h b/ports/cortex_r4/iar/inc/nx_port.h index d729917c..186e53a4 100644 --- a/ports/cortex_r4/iar/inc/nx_port.h +++ b/ports/cortex_r4/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-R4/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-R4/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r5/ac5/inc/nx_port.h b/ports/cortex_r5/ac5/inc/nx_port.h index e38c2472..2da62d6d 100644 --- a/ports/cortex_r5/ac5/inc/nx_port.h +++ b/ports/cortex_r5/ac5/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-R5/AC5 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-R5/AC5 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r5/gnu/inc/nx_port.h b/ports/cortex_r5/gnu/inc/nx_port.h index 78ce1f1e..17f42ffe 100644 --- a/ports/cortex_r5/gnu/inc/nx_port.h +++ b/ports/cortex_r5/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif diff --git a/ports/cortex_r5/iar/inc/nx_port.h b/ports/cortex_r5/iar/inc/nx_port.h index 077d5b46..802d9af1 100644 --- a/ports/cortex_r5/iar/inc/nx_port.h +++ b/ports/cortex_r5/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -77,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -204,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Cortex-R5/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Cortex-R5/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/linux/gnu/inc/nx_port.h b/ports/linux/gnu/inc/nx_port.h index 12d84563..85727608 100644 --- a/ports/linux/gnu/inc/nx_port.h +++ b/ports/linux/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -53,7 +47,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -200,7 +194,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Linux/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Linux/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/mips/gnu/inc/nx_port.h b/ports/mips/gnu/inc/nx_port.h index 72bd747c..8d8f4c47 100644 --- a/ports/mips/gnu/inc/nx_port.h +++ b/ports/mips/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,13 +37,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 10-31-2022 Zhen Kong Initial PIC32x/Microchip */ -/* Support Version 6.2.0 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +47,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -70,9 +63,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 1ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 1ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -192,7 +185,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo PIC32x/MPLAB Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo PIC32x/MPLAB Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv1/ccrx/inc/nx_port.h b/ports/rxv1/ccrx/inc/nx_port.h index b9ec5331..b53598f2 100644 --- a/ports/rxv1/ccrx/inc/nx_port.h +++ b/ports/rxv1/ccrx/inc/nx_port.h @@ -1,10 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026-present Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,18 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -59,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -81,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -209,7 +198,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv1/CCRX Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv1/CCRX Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv1/gnu/inc/nx_port.h b/ports/rxv1/gnu/inc/nx_port.h index 880d9be0..0cb36d62 100644 --- a/ports/rxv1/gnu/inc/nx_port.h +++ b/ports/rxv1/gnu/inc/nx_port.h @@ -1,10 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026-present Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -56,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -78,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -184,7 +176,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv1/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv1/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv1/iar/inc/nx_port.h b/ports/rxv1/iar/inc/nx_port.h index 57a8454f..281b10ab 100644 --- a/ports/rxv1/iar/inc/nx_port.h +++ b/ports/rxv1/iar/inc/nx_port.h @@ -1,10 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026-present Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -56,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -78,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -205,7 +197,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv1/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv1/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv2/ccrx/inc/nx_port.h b/ports/rxv2/ccrx/inc/nx_port.h index 73c78966..c70ed414 100644 --- a/ports/rxv2/ccrx/inc/nx_port.h +++ b/ports/rxv2/ccrx/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,18 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -60,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -82,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -210,7 +198,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv2/CCRX Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv2/CCRX Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv2/gnu/inc/nx_port.h b/ports/rxv2/gnu/inc/nx_port.h index de9046c7..f9ccbff6 100644 --- a/ports/rxv2/gnu/inc/nx_port.h +++ b/ports/rxv2/gnu/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -79,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -185,7 +176,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv2/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv2/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv2/iar/inc/nx_port.h b/ports/rxv2/iar/inc/nx_port.h index 14669997..0fa74aaa 100644 --- a/ports/rxv2/iar/inc/nx_port.h +++ b/ports/rxv2/iar/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -57,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -79,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -206,7 +197,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv2/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv2/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv3/ccrx/inc/nx_port.h b/ports/rxv3/ccrx/inc/nx_port.h index 3f932b85..1bccf6d8 100644 --- a/ports/rxv3/ccrx/inc/nx_port.h +++ b/ports/rxv3/ccrx/inc/nx_port.h @@ -1,10 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026-present Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,18 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* 03-08-2023 Yajun Xia Modified comment(s), */ -/* removed duplicated macros, */ -/* resulting in version 6.2.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -59,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -81,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -209,7 +198,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv3/CCRX Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv3/CCRX Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv3/gnu/inc/nx_port.h b/ports/rxv3/gnu/inc/nx_port.h index 1038427b..6c4a9975 100644 --- a/ports/rxv3/gnu/inc/nx_port.h +++ b/ports/rxv3/gnu/inc/nx_port.h @@ -1,10 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026-present Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -56,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -78,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -184,7 +176,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv3/GNU Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv3/GNU Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/rxv3/iar/inc/nx_port.h b/ports/rxv3/iar/inc/nx_port.h index 95aa0ecb..42cd71ae 100644 --- a/ports/rxv3/iar/inc/nx_port.h +++ b/ports/rxv3/iar/inc/nx_port.h @@ -1,10 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation - * + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026-present Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -37,15 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* 04-25-2022 Yuxin Zhou Modified comment(s), and */ -/* renamed temporary variable, */ -/* resulting in version 6.1.11 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -56,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -78,9 +70,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -205,7 +197,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo RXv3/IAR Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo RXv3/IAR Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/win32/vs_2019/inc/nx_port.h b/ports/win32/vs_2019/inc/nx_port.h index 02c05acb..6ea9f79e 100644 --- a/ports/win32/vs_2019/inc/nx_port.h +++ b/ports/win32/vs_2019/inc/nx_port.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -38,12 +38,6 @@ /* real-time TCP/IP function identically on a variety of different */ /* processor architectures. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 09-30-2020 Yuxin Zhou Initial Version 6.1 */ -/* */ /**************************************************************************/ #ifndef NX_PORT_H @@ -54,7 +48,7 @@ #ifdef NX_INCLUDE_USER_DEFINE_FILE -/* Yes, include the user defines in nx_user.h. The defines in this file may +/* Yes, include the user defines in nx_user.h. The defines in this file may alternately be defined on the command line. */ #include "nx_user.h" @@ -74,9 +68,9 @@ /* Define various constants for the port. */ #ifndef NX_IP_PERIODIC_RATE -#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for - ports with 10ms timer interrupts. This - value may be defined instead at the +#define NX_IP_PERIODIC_RATE 100 /* Default IP periodic rate of 1 second for + ports with 10ms timer interrupts. This + value may be defined instead at the command line and this value will not be used. */ #endif @@ -201,7 +195,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) 2024 Microsoft Corporation. * NetX Duo Win32/VS2019 Version 6.4.1 *"; + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX Contributors. * NetX Duo Win32/VS2019 Version 6.5.0.202601 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/samples/demo_bsd_raw.c b/samples/demo_bsd_raw.c index 3a56753a..b1df47f8 100644 --- a/samples/demo_bsd_raw.c +++ b/samples/demo_bsd_raw.c @@ -1,4 +1,4 @@ -/* This is a small demo of the high-performance BSD socket using the NetX Duo TCP/IP stack. This +/* This is a small demo of the high-performance BSD socket using the NetX Duo TCP/IP stack. This demo concentrates on raw packet sending and receiving using a simulated Ethernet driver. */ #include "tx_api.h" diff --git a/samples/demo_bsd_tcp.c b/samples/demo_bsd_tcp.c index 784689bd..92f57de3 100644 --- a/samples/demo_bsd_tcp.c +++ b/samples/demo_bsd_tcp.c @@ -1,5 +1,5 @@ /* This is a small demo of BSD Wrapper for the high-performance NetX TCP/IP stack. - This demo used standard BSD services for TCP connection, disconnection, sending, and + This demo used standard BSD services for TCP connection, disconnection, sending, and receiving using a simulated Ethernet driver. */ @@ -196,7 +196,7 @@ struct sockaddr_in ClientAddr; ip_address.nxd_ip_address.v6[2] = 0; ip_address.nxd_ip_address.v6[3] = 0x101; - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = (INT)nxd_ipv6_address_set(&bsd_ip, iface_index, &ip_address, 64, &address_index); @@ -329,7 +329,7 @@ struct sockaddr_in ClientAddr; if (status == ERROR) { /* This is a blocking socket. If no data is received, but the connection is still good, - the EAGAIN error is set. If it was a non blocking socket, the EWOULDBLOCK socket + the EAGAIN error is set. If it was a non blocking socket, the EWOULDBLOCK socket error is set. */ if (errno == EAGAIN) { diff --git a/samples/demo_mqtt_client.c b/samples/demo_mqtt_client.c index 1814f2da..84bdd692 100644 --- a/samples/demo_mqtt_client.c +++ b/samples/demo_mqtt_client.c @@ -1,26 +1,26 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ -/* +/* - This is a small demonstration of the high-performance NetX TCP/IP stack + This is a small demonstration of the high-performance NetX TCP/IP stack MQTT client. This demo program establishes a connection to the Mosquitto server at IP address 10.0.10.1. It subscribes to a topic, send a message to the same topic. - The application shall be able to receive the same message from the broker. + The application shall be able to receive the same message from the broker. This demo assumes that the NetX Duo TCP/IP stack has been properly configured, with TCP module enabled. The entry function is "thread_mqtt_entry". Caller - needs to pass in the IP instance and an instance of a valid packet pool. + needs to pass in the IP instance and an instance of a valid packet pool. */ #include "nx_api.h" diff --git a/samples/demo_netx_duo_mdns.c b/samples/demo_netx_duo_mdns.c index b408f4dd..3258d047 100644 --- a/samples/demo_netx_duo_mdns.c +++ b/samples/demo_netx_duo_mdns.c @@ -577,8 +577,8 @@ UINT i = 200; UINT j = 0; #endif /* NX_MDNS_DISABLE_CLIENT */ #ifndef NX_MDNS_DISABLE_CLIENT -ULONG service_mask = 0x00000000; /* Set the service mask to select service types it wishes to monitor. - A list of services being monitored ar hard-coded +ULONG service_mask = 0x00000000; /* Set the service mask to select service types it wishes to monitor. + A list of services being monitored ar hard-coded in the table nx_mdns_service_types in nxd_mdns.c. */ #endif /* NX_MDNS_DISABLE_CLIENT */ diff --git a/samples/demo_netx_nat.c b/samples/demo_netx_nat.c index 7471d45a..46354119 100644 --- a/samples/demo_netx_nat.c +++ b/samples/demo_netx_nat.c @@ -1,8 +1,8 @@ -/* +/* demo_netx_nat.c - - This is a small demo of NAT (Network Address Translation) on the high-performance - NetX TCP/IP stack. This demo relies on ThreadX, NetX and NAT APIs to perform network + + This is a small demo of NAT (Network Address Translation) on the high-performance + NetX TCP/IP stack. This demo relies on ThreadX, NetX and NAT APIs to perform network address translation for IP packets traveling between private and external networks. this demo concentrates on the ICMP ping operation. */ @@ -66,7 +66,7 @@ UINT error_counter = 0; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_icmp; diff --git a/samples/demo_netx_ppp.c b/samples/demo_netx_ppp.c index a2cfbb23..991e003b 100644 --- a/samples/demo_netx_ppp.c +++ b/samples/demo_netx_ppp.c @@ -1,5 +1,5 @@ -/* This is a small demo of the high-performance NetX TCP/IP stack using PPP. - This demo concentrates on UDP packet sending and receiving using PPP on a +/* This is a small demo of the high-performance NetX TCP/IP stack using PPP. + This demo concentrates on UDP packet sending and receiving using PPP on a simulated serial link. */ #include "tx_api.h" @@ -341,7 +341,7 @@ void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/samples/demo_netx_pppoe_client.c b/samples/demo_netx_pppoe_client.c index 622fc29c..9463ac36 100644 --- a/samples/demo_netx_pppoe_client.c +++ b/samples/demo_netx_pppoe_client.c @@ -54,7 +54,7 @@ /* Defined NX_PPP_PPPOE_ENABLE if using PPP, since PPP module has been modified to match PPPoE module under this definition. */ #ifdef NX_PPP_PPPOE_ENABLE -/* If the driver is not initialized in other module, define NX_PPPOE_CLIENT_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . +/* If the driver is not initialized in other module, define NX_PPPOE_CLIENT_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . In this demo, the driver has been initialized in IP module. */ #ifndef NX_PPPOE_CLIENT_INITIALIZE_DRIVER_ENABLE @@ -262,7 +262,7 @@ ULONG ip_status; /* Get the PPPoE Server physical address and Session ID after establish PPPoE Session. */ /* - status = nx_pppoe_client_session_get(&pppoe_client, &server_mac_msw, &server_mac_lsw, &session_id); + status = nx_pppoe_client_session_get(&pppoe_client, &server_mac_msw, &server_mac_lsw, &session_id); if (status) error_counter++; */ diff --git a/samples/demo_netx_pppoe_server.c b/samples/demo_netx_pppoe_server.c index 0ceffdf8..5c9375e1 100644 --- a/samples/demo_netx_pppoe_server.c +++ b/samples/demo_netx_pppoe_server.c @@ -54,12 +54,12 @@ /* Defined NX_PPP_PPPOE_ENABLE if using PPP, since PPP module has been modified to match PPPoE module under this definition. */ #ifdef NX_PPP_PPPOE_ENABLE -/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . +/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . In this demo, the driver has been initialized in IP module. */ #ifndef NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE -/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: - If defined, enables the feature that controls the PPPoE session. +/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: + If defined, enables the feature that controls the PPPoE session. PPPoE server does not automatically response to the request until application call specific API. */ /* Define the block size. */ @@ -264,7 +264,7 @@ ULONG ip_status; #ifdef NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE /* Call function function to set the default service Name. */ - /* + /* PppInitInd(length, aData); */ #endif /* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE */ @@ -279,7 +279,7 @@ ULONG ip_status; /* Get the PPPoE Client physical address and Session ID after establish PPPoE Session. */ /* - status = nx_pppoe_server_session_get(&pppoe_server, interfaceHandle, &client_mac_msw, &client_mac_lsw, &session_id); + status = nx_pppoe_server_session_get(&pppoe_server, interfaceHandle, &client_mac_msw, &client_mac_lsw, &session_id); if (status) error_counter++; */ diff --git a/samples/demo_netx_secure_tls.c b/samples/demo_netx_secure_tls.c index 4f002ba9..47f30324 100644 --- a/samples/demo_netx_secure_tls.c +++ b/samples/demo_netx_secure_tls.c @@ -1,4 +1,4 @@ -/* This is a small demo of the NetX Secure TLS API running on a +/* This is a small demo of the NetX Secure TLS API running on a high-performance NetX TCP/IP stack. */ /* This demo works for IPv4 only */ @@ -354,8 +354,8 @@ static UCHAR remote_issuer_buffer[2000]; /* Pointer to the TLS ciphersuite table that is included in the platform-specific cryptography subdirectory. The table maps the cryptographic routines for the platform to function pointers usable by the TLS library. - - For TLS Web servers, define NX_SECURE_ENABLE_AEAD_CIPHER in NetX Crypto to + + For TLS Web servers, define NX_SECURE_ENABLE_AEAD_CIPHER in NetX Crypto to allow web browsers to connect using AES_128_GCM cipher suites. */ extern const NX_SECURE_TLS_CRYPTO nx_crypto_tls_ciphers_ecc; diff --git a/samples/demo_netxduo_dhcp.c b/samples/demo_netxduo_dhcp.c index f5ae954f..ef2674f9 100644 --- a/samples/demo_netxduo_dhcp.c +++ b/samples/demo_netxduo_dhcp.c @@ -297,11 +297,11 @@ NX_PACKET *my_packet; tx_thread_sleep(NX_IP_PERIODIC_RATE); } - /* Use this API to send a message to the server, e.g. a DECLINE if the IP address is owned by another host. + /* Use this API to send a message to the server, e.g. a DECLINE if the IP address is owned by another host. nx_dhcp_send_request(&dhcp_client, NX_DHCP_TYPE_DHCPDECLINE); */ - /* Use this API to release an IP address if the host is switching networks or running the host through DHCP cycles. + /* Use this API to release an IP address if the host is switching networks or running the host through DHCP cycles. nx_dhcp_release(&dhcp_client); */ diff --git a/samples/demo_netxduo_dhcpv6.c b/samples/demo_netxduo_dhcpv6.c index 52499617..bf9cc575 100644 --- a/samples/demo_netxduo_dhcpv6.c +++ b/samples/demo_netxduo_dhcpv6.c @@ -1,4 +1,4 @@ -/* This is a small demo of the NetX Duo DHCPv6 Client and Server for the high-performance +/* This is a small demo of the NetX Duo DHCPv6 Client and Server for the high-performance NetX Duo stack. */ #include @@ -194,7 +194,7 @@ NX_PACKET *my_packet; if (status) return; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_CLIENT_HARDWARE_TYPE_ETHERNET, 0); @@ -203,11 +203,11 @@ NX_PACKET *my_packet; if (status) return; - /* Create the DHCPv6 client's Identity Association (IA-NA) now. + /* Create the DHCPv6 client's Identity Association (IA-NA) now. Note that if this host had already been assigned in IPv6 lease, it would have to use the assigned T1 and T2 values in loading the DHCPv6 - client with an IANA block. + client with an IANA block. */ status = nx_dhcpv6_create_client_iana(&dhcp_client, DHCPV6_IANA_ID, DHCPV6_T1, DHCPV6_T2); @@ -227,8 +227,8 @@ NX_PACKET *my_packet; #ifdef GET_ONE_SPECIFIC_ADDRESS - /* Create an IA address option. - The client includs IA options for any IAs to which it wants the server to assign addresses. + /* Create an IA address option. + The client includs IA options for any IAs to which it wants the server to assign addresses. */ ia_ipv6_address.nxd_ip_version = NX_IP_VERSION_V6 ; ia_ipv6_address.nxd_ip_address.v6[0] = 0x20010db8; @@ -258,7 +258,7 @@ NX_PACKET *my_packet; /* Waiting for get the IPv6 address and do the duplicate address detection. */ /* - Note, if the host detect another host withe the same address, the DHCPv6 Client can automatically + Note, if the host detect another host withe the same address, the DHCPv6 Client can automatically declient the address. At time T1 for an IPv6 address, the DHCPv6 Client can automatically renew the address. At time T2 for an IPv6 address, the DHCPv6 Client can automatically rebind the address. At time valid lifetime for an IPv6 address, the DHCPv6 Client can automatically delete the IPv6 address. @@ -287,7 +287,7 @@ NX_PACKET *my_packet; if (status) return; - /* Get the IPv6 address. + /* Get the IPv6 address. Note, This API only applies to one IA. */ status = nx_dhcpv6_get_IP_address(&dhcp_client, &ipv6_address); @@ -295,7 +295,7 @@ NX_PACKET *my_packet; if (status) return; - /* Get IP address lease time. + /* Get IP address lease time. Note, This API only applies to one IA. */ status = nx_dhcpv6_get_lease_time_data(&dhcp_client, &T1, &T2, &preferred_lifetime, &valid_lifetime); @@ -322,7 +322,7 @@ NX_PACKET *my_packet; if (status) return; - /* If we want to release the address, we can send release message to + /* If we want to release the address, we can send release message to the server we are releasing the assigned address. */ status = nx_dhcpv6_request_release(&dhcp_client); @@ -387,7 +387,7 @@ UINT addresses_added; return; /* Note this example assumes a single global IP address on the primary interface. If otherwise - the host should call the service to set the network interface and global IP address index. + the host should call the service to set the network interface and global IP address index. UINT _nx_dhcpv6_server_interface_set(NX_DHCPV6_SERVER *dhcpv6_server_ptr, UINT interface_index, UINT address_index) */ @@ -408,7 +408,7 @@ UINT addresses_added; if (status) return; - /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. + /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. The DUID_TYPE and HW_TYPE are configurable options that are user defined in nx_dhcpv6_server.h. */ /* Set the DUID time as the start of the millenium. */ diff --git a/samples/demo_netxduo_dhcpv6_client.c b/samples/demo_netxduo_dhcpv6_client.c index 7a23e77d..20d3548c 100644 --- a/samples/demo_netxduo_dhcpv6_client.c +++ b/samples/demo_netxduo_dhcpv6_client.c @@ -217,7 +217,7 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; nxd_ipv6_enable(&client_ip); nxd_icmp_enable(&client_ip); - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_CLIENT_HARDWARE_TYPE_ETHERNET, 0); @@ -228,11 +228,11 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; return; } - /* Create the DHCPv6 client's Identity Association (IA-NA) now. + /* Create the DHCPv6 client's Identity Association (IA-NA) now. Note that if this host had already been assigned in IPv6 lease, it would have to use the assigned T1 and T2 values in loading the DHCPv6 - client with an IANA block. + client with an IANA block. */ status = nx_dhcpv6_create_client_iana(&dhcp_client, DHCPV6_IANA_ID, DHCPV6_T1, DHCPV6_T2); @@ -250,10 +250,10 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; ipv6_address.nxd_ip_address.v6[2] = 0x00000000; ipv6_address.nxd_ip_address.v6[3] = 0x0000abcd; - /* Create an IA address option. + /* Create an IA address option. Note that if this host had already been assigned in IPv6 lease, it - would have to use the assigned IPv6 address, preferred and valid lifetime - values in loading the DHCPv6 Client with an IA block. + would have to use the assigned IPv6 address, preferred and valid lifetime + values in loading the DHCPv6 Client with an IA block. */ status = nx_dhcpv6_add_client_ia(&dhcp_client, &ipv6_address,DHCPV6_RENEW_TIME, DHCPV6_REBIND_TIME); @@ -263,7 +263,7 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; return; } - /* If the DHCPv6 Client is configured for a maximum number of IA addresses + /* If the DHCPv6 Client is configured for a maximum number of IA addresses greater than 1, we can add another IA address if the device requires multiple global IPv6 addresses. */ if(NX_DHCPV6_MAX_IA_ADDRESS >= 2) @@ -296,9 +296,9 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; #ifdef NX_DHCPV6_REQUEST_FQDN_OPTION - /* Set the DHCPv6 Client FQDN option. - operation: NX_DHCPV6_CLIENT_DESIRES_UPDATE_AAAA_RR DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client. - NX_DHCPV6_CLIENT_DESIRES_SERVER_DO_DNS_UPDATE DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client to the server. + /* Set the DHCPv6 Client FQDN option. + operation: NX_DHCPV6_CLIENT_DESIRES_UPDATE_AAAA_RR DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client. + NX_DHCPV6_CLIENT_DESIRES_SERVER_DO_DNS_UPDATE DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client to the server. NX_DHCPV6_CLIENT_DESIRES_NO_SERVER_DNS_UPDATE DHCPv6 Client choose to request that the server perform no DNS updatest on its behalf. */ nx_dhcpv6_request_option_FQDN(&dhcp_client, "DHCPv6-Client", NX_DHCPV6_CLIENT_DESIRES_UPDATE_AAAA_RR); #endif /* NX_DHCPV6_REQUEST_FQDN_OPTION */ @@ -329,8 +329,8 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; if (status == NX_SUCCESS) { - /* If Duplicate Address Detection (DAD) is enabled in NetX Duo, e.g. #NX_DISABLE_IPV6_DAD - not defined, allow time for NetX Duo to verify the address is unique on our network. + /* If Duplicate Address Detection (DAD) is enabled in NetX Duo, e.g. #NX_DISABLE_IPV6_DAD + not defined, allow time for NetX Duo to verify the address is unique on our network. */ tx_thread_sleep(5 * NX_IP_PERIODIC_RATE); @@ -357,7 +357,7 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; } - /* Regardless if the DHCPv6 Client achieved a bound state, check for DAD + /* Regardless if the DHCPv6 Client achieved a bound state, check for DAD failures. */ if (address_failed_dad > 0) { @@ -380,7 +380,7 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; } /* Get the IPv6 address and related lifetimes by address index. This index is the - index into the DHCPv6 Client address table. Not to be confused with the IP + index into the DHCPv6 Client address table. Not to be confused with the IP instance address table! */ status = nx_dhcpv6_get_valid_ip_address_lease_time(&dhcp_client, address_index, &valid_ipv6_address, &preferred_lifetime, @@ -392,8 +392,8 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; error_counter++; } - /* Get the IANA options for when to start renew/rebind requests. These time - parameters are the same for all IPv6 addresses assigned in the Client + /* Get the IANA options for when to start renew/rebind requests. These time + parameters are the same for all IPv6 addresses assigned in the Client e.g. IANA returned from Server. */ status = nx_dhcpv6_get_iana_lease_time(&dhcp_client, &T1, &T2); @@ -404,8 +404,8 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; } /*****************************************************************************/ - /* These are 'legacy' DHCPv6 services and are for the most part identical to the services - above except they default to the primary global IPv6 address regardless if the + /* These are 'legacy' DHCPv6 services and are for the most part identical to the services + above except they default to the primary global IPv6 address regardless if the Client was assigned more than one global IPv6 address. */ /* Now check the assigned lease times. */ @@ -502,8 +502,8 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; return; } - /* If Duplicate Address Detection (DAD) is enabled in NetX Duo, e.g. #NX_DISABLE_IPV6_DAD - not defined, allow time for NetX Duo to verify the address is unique on our network. + /* If Duplicate Address Detection (DAD) is enabled in NetX Duo, e.g. #NX_DISABLE_IPV6_DAD + not defined, allow time for NetX Duo to verify the address is unique on our network. */ tx_thread_sleep(5 * NX_IP_PERIODIC_RATE); @@ -545,11 +545,11 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; memset(buffer, 0, sizeof(buffer)); /* Get the time zone. */ - nx_dhcpv6_get_other_option_data(&dhcp_client, NX_DHCPV6_NEW_POSIX_TIMEZONE_OPTION, buffer, 200); // Try to get DNS info got from DHCPv6 Server + nx_dhcpv6_get_other_option_data(&dhcp_client, NX_DHCPV6_NEW_POSIX_TIMEZONE_OPTION, buffer, 200); // Try to get DNS info got from DHCPv6 Server #endif /* At some point, we may wish to release the IPv6 address lease e.g. the device - is leaving the network or powering down. In that case we inform the + is leaving the network or powering down. In that case we inform the DHCPv6 Server that we are releasing the address lease. */ status = nx_dhcpv6_request_release(&dhcp_client); @@ -623,7 +623,7 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; error_counter++; } - /* Now delete the DHCPv6 client and release ThreadX and + /* Now delete the DHCPv6 client and release ThreadX and NetX Duo resources back to the system. */ nx_dhcpv6_client_delete(&dhcp_client); @@ -633,10 +633,10 @@ NX_DHCPV6_CLIENT_RECORD dhcpv6_client_record; } -/* This is the notification from the DHCPv6 Client task that it has changed - state in the DHCPv6 protocol, for example getting assigned an IPv6 lease and - achieving the bound state or an IPv6 lease expires and being reset to - the init state. +/* This is the notification from the DHCPv6 Client task that it has changed + state in the DHCPv6 protocol, for example getting assigned an IPv6 lease and + achieving the bound state or an IPv6 lease expires and being reset to + the init state. */ VOID dhcpv6_state_change_notify(NX_DHCPV6 *dhcpv6_ptr, UINT old_state, UINT new_state) { @@ -661,7 +661,7 @@ VOID dhcpv6_state_change_notify(NX_DHCPV6 *dhcpv6_ptr, UINT old_state, UINT new_ bound_addresses++; } - /* Check if the Client was bound, but failed the uniqueness check + /* Check if the Client was bound, but failed the uniqueness check (Duplicate Address Detection) and was reset to the INIT state. */ if ((old_state == NX_DHCPV6_STATE_SENDING_DECLINE) && (new_state == NX_DHCPV6_STATE_INIT)) { @@ -686,7 +686,7 @@ VOID dhcpv6_state_change_notify(NX_DHCPV6 *dhcpv6_ptr, UINT old_state, UINT new_ } /* This is the notification from the DHCPv6 Client task that it received an error - from the server (status code) in response to the Client's last DHCPv6 message. + from the server (status code) in response to the Client's last DHCPv6 message. */ VOID dhcpv6_server_error_handler(NX_DHCPV6 *dhcpv6_ptr, UINT op_code, UINT status_code, UINT message_type) diff --git a/samples/demo_netxduo_dns.c b/samples/demo_netxduo_dns.c index 88524a2f..2e778918 100644 --- a/samples/demo_netxduo_dns.c +++ b/samples/demo_netxduo_dns.c @@ -29,7 +29,7 @@ UCHAR local_cache[LOCAL_CACHE_SIZE]; UINT error_counter = 0; #ifdef FEATURE_NX_IPV6 -/* If IPv6 is enabled in NetX Duo, allow DNS Client to try using IPv6 +/* If IPv6 is enabled in NetX Duo, allow DNS Client to try using IPv6 #define USE_IPV6 */ #endif @@ -78,12 +78,12 @@ UINT status; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); @@ -239,7 +239,7 @@ USHORT host_port; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&client_ip, iface_index, &client_ipv6_address, 64, &address_index); @@ -584,7 +584,7 @@ USHORT host_port; #if defined(FEATURE_NX_IPV6) && !defined(NX_DISABLE_IPV4) - /* Create an IPv4 address for the reverse lookup. If the DNS client is IPv6 enabled, it will send this over + /* Create an IPv4 address for the reverse lookup. If the DNS client is IPv6 enabled, it will send this over IPv6 to the DNS server; otherwise it will send it over IPv4. In either case the respective server will return a PTR record if it has the information. */ test_ipduo_server_address.nxd_ip_version = NX_IP_VERSION_V4; diff --git a/samples/demo_netxduo_ftp.c b/samples/demo_netxduo_ftp.c index 94f82651..3d3de2aa 100644 --- a/samples/demo_netxduo_ftp.c +++ b/samples/demo_netxduo_ftp.c @@ -1,5 +1,5 @@ -/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo - relies on ThreadX, NetX, and FileX to show a simple file transfer from the client +/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo + relies on ThreadX, NetX, and FileX to show a simple file transfer from the client and then back to the server. */ @@ -82,7 +82,7 @@ NXD_ADDRESS client_ip_address; #endif -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ #ifdef USE_IPV6 @@ -314,7 +314,7 @@ UINT iface_index, address_index; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&client_ip, iface_index, &client_ip_address, 64, &address_index); @@ -616,7 +616,7 @@ UINT iface_index, address_index; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&server_ip, iface_index, &server_ip_address, 64, &address_index); diff --git a/samples/demo_netxduo_http.c b/samples/demo_netxduo_http.c index 5e17e69e..b567ef78 100644 --- a/samples/demo_netxduo_http.c +++ b/samples/demo_netxduo_http.c @@ -1,10 +1,10 @@ -/* This is a small demo of the NetX HTTP Client Server API running on a +/* This is a small demo of the NetX HTTP Client Server API running on a high-performance NetX TCP/IP stack. */ #include "tx_api.h" #include "nx_api.h" /* If not using FileX, define this option and define the file writing services - declared in filex_stub.h. + declared in filex_stub.h. #define NX_HTTP_NO_FILEX */ #ifndef NX_HTTP_NO_FILEX @@ -15,7 +15,7 @@ #include "nxd_http_client.h" #include "nxd_http_server.h" -/* For NetX Duo applications, determine which IP version to use. For IPv6, +/* For NetX Duo applications, determine which IP version to use. For IPv6, set IP_TYPE to 6; for IPv4 set to 4. Note that for IPv6, you must enable USE_DUO so the application 'knows' to enabled IPv6 services on the IP task. */ @@ -78,7 +78,7 @@ UINT authentication_check(NX_HTTP_SERVER *server_ptr, UINT request_type, NX_PARAMETER_NOT_USED(request_type); NX_PARAMETER_NOT_USED(resource); - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -263,7 +263,7 @@ NXD_ADDRESS client_ip_address; NX_PARAMETER_NOT_USED(thread_input); - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/samples/demo_netxduo_https.c b/samples/demo_netxduo_https.c index 27ad9784..6013bae8 100644 --- a/samples/demo_netxduo_https.c +++ b/samples/demo_netxduo_https.c @@ -1,22 +1,22 @@ /*************************************************************************** * Copyright (c) 2024 Microsoft Corporation - * Copyright (c) 2025 Eclipse ThreadX contributors - * + * Copyright (c) 2025 Eclipse ThreadX contributors + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ -/* This is a small demo of the NetX Web HTTP Client/Server API running on a +/* This is a small demo of the NetX Web HTTP Client/Server API running on a high-performance NetX TCP/IP stack. */ /* This demo works for IPv4 only */ #include "tx_api.h" #include "nx_api.h" /* If not using FileX, define this option and define the file writing services - declared in filex_stub.h. + declared in filex_stub.h. #define NX_WEB_HTTP_NO_FILEX */ #ifndef NX_WEB_HTTP_NO_FILEX @@ -482,7 +482,7 @@ UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_type, NX_PARAMETER_NOT_USED(request_type); NX_PARAMETER_NOT_USED(resource); - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -530,7 +530,7 @@ UINT status; } #endif -/* Callback invoked when HTTP(S) client processes a response header. This +/* Callback invoked when HTTP(S) client processes a response header. This example shows how the HTTP headers are extracted. */ VOID http_response_callback(NX_WEB_HTTP_CLIENT *client_ptr, CHAR *field_name, UINT field_name_length, CHAR *field_value, UINT field_value_length) @@ -675,7 +675,7 @@ ULONG bytes; /************* HTTP(S) Server *************************/ -/* Server request callback is invoked whenever an HTTP(S) client +/* Server request callback is invoked whenever an HTTP(S) client sends a request to the server port. */ UINT server_request_callback(NX_WEB_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, NX_PACKET *packet_ptr) { @@ -728,10 +728,10 @@ UINT server_port; NX_PARAMETER_NOT_USED(thread_input); /* Format the RAM disk - the memory for the RAM disk was setup in - tx_application_define above. + tx_application_define above. Important Note: The user must ensure there is enough RAM for the format - specified. Otherwise, memory corruption can occur. + specified. Otherwise, memory corruption can occur. */ status = fx_media_format(&ram_disk, _fx_ram_driver, // Driver entry @@ -746,7 +746,7 @@ UINT server_port; SECTOR_SIZE, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Determine if the RAM disk format was successful. */ if (status != FX_SUCCESS) diff --git a/samples/demo_netxduo_multihome_dhcp_client.c b/samples/demo_netxduo_multihome_dhcp_client.c index 131b6369..7524af1d 100644 --- a/samples/demo_netxduo_multihome_dhcp_client.c +++ b/samples/demo_netxduo_multihome_dhcp_client.c @@ -1,29 +1,29 @@ -/* This is a small demo of DHCP Client for multiple interfaces for the high-performance NetX IP stack. +/* This is a small demo of DHCP Client for multiple interfaces for the high-performance NetX IP stack. It is suggested that applications call interface specific API to do specific action on the specified - interface if DHCP is enabled on multiple interfaces at the same time. - Example of a device possibly with a secondary interfaces attached, and DHCP Client having only the secondary + interface if DHCP is enabled on multiple interfaces at the same time. + Example of a device possibly with a secondary interfaces attached, and DHCP Client having only the secondary interface enabled for DHCP: - -#if (NX_MAX_PHYSICAL_INTERFACES >= 2) && (NX_DHCP_CLIENT_MAX_RECORDS >= 2) - + +#if (NX_MAX_PHYSICAL_INTERFACES >= 2) && (NX_DHCP_CLIENT_MAX_RECORDS >= 2) + Client configured for DHCP enabled on more than one interface. Use the interface specific service to request Client IP on the secondary interface. - + status = nx_dhcp_interface_request_client_ip(&dhcp_client, 1, NX_DHCP_CLIENT_IP_ADDRESS_1, SKIP_DISCOVER_MESSAGE); -#else +#else Client is configured for one interface to be enabled for DHCP. Use the non-interface specific service to perform the request Client IP action on the interface index that the Client has set for DHCP. - + Note: the application must first call nx_dhcp_set_interface_index() to set the secondary interface as the interface to run DHCP on. Otherwise DHCP runs on the primary interface, by default. - + status = nx_dhcp_request_client_ip(&dhcp_client, NX_DHCP_CLIENT_IP_ADDRESS_1, SKIP_DISCOVER_MESSAGE); -#endif - +#endif + if (status) error_counter++; - + */ #include "tx_api.h" @@ -198,7 +198,7 @@ ULONG server_address; #endif /* REQUEST_CLIENT_IP */ /* Clear the broadcast flag. */ - /* nx_dhcp_clear_broadcast_flag(&dhcp_client) clears the broadcast flag on all DHCP enabled interfaces. + /* nx_dhcp_clear_broadcast_flag(&dhcp_client) clears the broadcast flag on all DHCP enabled interfaces. Suggest using nx_dhcp_interface_clear_broadcast_flag() to clear the flag on one interface if DHCP is enabled on multiple interfaces status = nx_dhcp_interface_clear_broadcast_flag(&dhcp_client, 1) clears the broadcast flag on the specified interface(1:second interface) */ @@ -213,7 +213,7 @@ ULONG server_address; error_counter++; /* Start the DHCP Client. */ - /* nx_dhcp_start(&dhcp_client) start DHCP for all DHCP enabled interfaces. + /* nx_dhcp_start(&dhcp_client) start DHCP for all DHCP enabled interfaces. Suggest using nx_dhcp_interface_start() to start DHCP on one interface if DHCP is enabled on multiple interfaces status = nx_dhcp_interface_start(&dhcp_client, 1) starts DHCP on the specified interface (1:second interface) */ @@ -240,12 +240,12 @@ ULONG server_address; /* Release the IP address the Client is bound to. - + Use the nx_dhcp_release() API to release an IP address if the host is switching networks or running the host through DHCP cycles. Note that it is not necessary to call nx_dhcp_reinitialize() or nx_dhcp_interface_reinitialize() after calling this function. DHCP on this interface (or interfaces) is ready to be restarted. */ - /* nx_dhcp_release(&dhcp_client) releases the DHCP generated IP address for all DHCP enabled interfaces. + /* nx_dhcp_release(&dhcp_client) releases the DHCP generated IP address for all DHCP enabled interfaces. Suggest using nx_dhcp_interface_release() to release the IP address on a specific interface if DHCP is enabled on multiple interfaces status = nx_dhcp_interface_release(&dhcp_client, 1) releases the IP address for the specified interface(1:second interface) */ @@ -254,14 +254,14 @@ ULONG server_address; error_counter++; /* Stopping the DHCP client. - + Use this API if the Client has not reached the BOUND state. This simply stops the DHCP Client. It does not clear any network parameters or reset the Client state to NOT STARTED. To do clear network parameters, and reset the state (e.g. before calling nx_dhcp_start() on the stopped interface(s), call nx_dhcp_reinitialize() or - nx_dhcp_interface_reinitialize() depending which interface(s) need to be reinitialized. + nx_dhcp_interface_reinitialize() depending which interface(s) need to be reinitialized. */ - /* nx_dhcp_stop(&dhcp_client) stops DHCP on all DHCP enabled interfaces. + /* nx_dhcp_stop(&dhcp_client) stops DHCP on all DHCP enabled interfaces. Suggest using nx_dhcp_interface_stop() to stop DHCP on a specific interface if DHCP is enabled on multiple interfaces status = nx_dhcp_interface_stop(&dhcp_client, 1) stop DHCP on the specified interface(1:second interface) */ @@ -273,10 +273,10 @@ ULONG server_address; tx_thread_sleep(NX_IP_PERIODIC_RATE); /* Reinitialize the Client for restarting DHCP. - + Use this API to clear the network parameters and restart the client in the not started state. */ - /* nx_dhcp_reinitialize(&dhcp_client) clears the network parameters on all DHCP enabled interfaces. + /* nx_dhcp_reinitialize(&dhcp_client) clears the network parameters on all DHCP enabled interfaces. Suggest using nx_dhcp_interface_reinitialize() to reinitialize DHCP on a specific interface if DHCP is enabled on multiple interfaces status = nx_dhcp_interface_reinitialize(&dhcp_client, 1) reinitializes DHCP on the specified interface(1:second interface) */ @@ -285,7 +285,7 @@ ULONG server_address; error_counter++; /* Resume the DHCP client thread. */ - /* nx_dhcp_start(&dhcp_client) start DHCP for all DHCP enabled interfaces. + /* nx_dhcp_start(&dhcp_client) start DHCP for all DHCP enabled interfaces. or nx_dhcp_interface_start(&dhcp_client, 1) to start DHCP for specified interface(1:second interface) */ status = nx_dhcp_start(&dhcp_client); if (status) diff --git a/samples/demo_netxduo_pop3_client.c b/samples/demo_netxduo_pop3_client.c index 23dbe5ce..8005540e 100644 --- a/samples/demo_netxduo_pop3_client.c +++ b/samples/demo_netxduo_pop3_client.c @@ -1,7 +1,7 @@ -/* - This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. - This demo relies on Thread, NetX and POP3 Client API to conduct - a POP3 mail session. +/* + This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. + This demo relies on Thread, NetX and POP3 Client API to conduct + a POP3 mail session. */ /* Note: This demo works for IPv4 only. */ @@ -68,7 +68,7 @@ UCHAR *free_memory_pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ /* Create Client packet pool. */ @@ -129,7 +129,7 @@ NX_PACKET *packet_ptr; tx_thread_sleep(NX_IP_PERIODIC_RATE); - /* Create a NetX POP3 Client instance with no byte or block memory pools. + /* Create a NetX POP3 Client instance with no byte or block memory pools. Note that it uses its password for its APOP shared secret. */ status = nx_pop3_client_create(&demo_client, NX_TRUE /* if true, enables Client to send APOP command to authenticate */, @@ -220,7 +220,7 @@ NX_PACKET *packet_ptr; /* Disconnect from the POP3 server. */ status = nx_pop3_client_quit(&demo_client); - /* Delete the POP3 Client. This will not delete the packet pool used by the POP3 Client to + /* Delete the POP3 Client. This will not delete the packet pool used by the POP3 Client to transmit messages. */ status = nx_pop3_client_delete(&demo_client); diff --git a/samples/demo_netxduo_smtp_client.c b/samples/demo_netxduo_smtp_client.c index f66c4d15..24a824c1 100644 --- a/samples/demo_netxduo_smtp_client.c +++ b/samples/demo_netxduo_smtp_client.c @@ -1,7 +1,7 @@ -/* - This is a small demo of the NetX SMTP Client on the high-performance NetX TCP/IP stack. - This demo relies on Thread, NetX and SMTP Client API to perform simple SMTP mail - transfers in an SMTP client application to an SMTP mail server. +/* + This is a small demo of the NetX SMTP Client on the high-performance NetX TCP/IP stack. + This demo relies on Thread, NetX and SMTP Client API to perform simple SMTP mail + transfers in an SMTP client application to an SMTP mail server. */ /* Note: This demo works for IPv4 only. */ @@ -25,7 +25,7 @@ "reports using the most universal Internet application, email.\r\n" -/* See the NetX SMTP Client User Guide for how to set the authentication type. +/* See the NetX SMTP Client User Guide for how to set the authentication type. The most common authentication type is PLAIN. */ #define CLIENT_AUTHENTICATION_TYPE NX_SMTP_CLIENT_AUTH_PLAIN @@ -74,11 +74,11 @@ CHAR *free_memory_pointer; /* Create SMTP Client packet pool. This is only for transmitting packets to the server. It need not be a separate packet pool than the IP default packet pool but for more efficient resource use, we use two different packet pools because the CLient SMTP messages - generally require more payload than IP control packets. + generally require more payload than IP control packets. - Packet payload depends on the SMTP Client application requirements. Size of packet payload - must include IP and TCP headers. For IPv6 connections, IP and TCP header data is 60 bytes. For IPv4 - IP and TCP header data is 40 bytes (not including TCP options). + Packet payload depends on the SMTP Client application requirements. Size of packet payload + must include IP and TCP headers. For IPv6 connections, IP and TCP header data is 60 bytes. For IPv4 + IP and TCP header data is 40 bytes (not including TCP options). */ status |= nx_packet_pool_create(&client_packet_pool, "SMTP Client Packet Pool", @@ -165,7 +165,7 @@ NXD_ADDRESS server_ip_address; server_ip_address.nxd_ip_version = NX_IP_VERSION_V4; server_ip_address.nxd_ip_address.v4 = SERVER_IP_ADDRESS; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ status = nxd_smtp_client_create(&demo_client, &client_ip, &client_packet_pool, diff --git a/samples/demo_netxduo_snmp.c b/samples/demo_netxduo_snmp.c index 85f580cb..df5050c4 100644 --- a/samples/demo_netxduo_snmp.c +++ b/samples/demo_netxduo_snmp.c @@ -1,5 +1,5 @@ -/* This is a small demo of the NetX SNMP Agent on the high-performance NetX TCP/IP stack. - This demo relies on ThreadX and NetX to show simple SNMP GET/GETNEXT/SET requests on +/* This is a small demo of the NetX SNMP Agent on the high-performance NetX TCP/IP stack. + This demo relies on ThreadX and NetX to show simple SNMP GET/GETNEXT/SET requests on the SNMP MIB-2 objects. */ #include "tx_api.h" @@ -43,11 +43,11 @@ NX_SNMP_SECURITY_KEY my_privacy_key; /* Define an error counter variable. */ UINT error_counter = 0; -/* This binds a secondary interfaces to the primary IP network interface +/* This binds a secondary interfaces to the primary IP network interface if SNMP is required for required for that interface. */ /* #define MULTI_HOMED_DEVICE */ -/* Define function prototypes. A generic ram driver is used in this demo. However to properly +/* Define function prototypes. A generic ram driver is used in this demo. However to properly run an SNMP agent demo, a real driver should be substituted. */ VOID thread_agent_entry(ULONG thread_input); @@ -173,7 +173,7 @@ NXD_ADDRESS agent_ipv6_address; #ifdef USE_IPV6 - /* If using IPv6, enable IPv6 and ICMPv6 services and get IPv6 addresses + /* If using IPv6, enable IPv6 and ICMPv6 services and get IPv6 addresses registered with NetX Dou. */ /* Enable IPv6 on the IP instance. */ @@ -217,7 +217,7 @@ NXD_ADDRESS agent_ipv6_address; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&ip_0, iface_index, &agent_ipv6_address, 64, &address_index); diff --git a/samples/demo_netxduo_sntp_client.c b/samples/demo_netxduo_sntp_client.c index 1488628b..e0618d3b 100644 --- a/samples/demo_netxduo_sntp_client.c +++ b/samples/demo_netxduo_sntp_client.c @@ -1,7 +1,7 @@ -/* - This is a small demo of the NetX SNTP Client on the high-performance NetX TCP/IP stack. +/* + This is a small demo of the NetX SNTP Client on the high-performance NetX TCP/IP stack. This demo relies on Thread, NetX and NetX SNTP Client API to execute the Simple Network Time - Protocol in unicast and broadcast modes. + Protocol in unicast and broadcast modes. */ @@ -44,7 +44,7 @@ TX_EVENT_FLAGS_GROUP sntp_flags; #define DEMO_SNTP_UPDATE_EVENT 1 -/* Configure the SNTP Client to use IPv6. If not enabled, the +/* Configure the SNTP Client to use IPv6. If not enabled, the Client will use IPv4. Note: IPv6 must be enabled in NetX Duo for the Client to communicate over IPv6. */ #ifdef FEATURE_NX_IPV6 @@ -259,7 +259,7 @@ NXD_ADDRESS client_ip_address; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&client_ip, iface_index, &client_ip_address, prefix, &address_index); @@ -295,7 +295,7 @@ NXD_ADDRESS client_ip_address; /* Initialize the Client for broadcast mode, no roundtrip calculation required and a broadcast SNTP service. */ #ifdef USE_IPV6 - /* Use the duo service to initialize the Client and set IPv6 SNTP all hosts multicast address. + /* Use the duo service to initialize the Client and set IPv6 SNTP all hosts multicast address. (Note: This can take either an IPv4 or IPv6 address.)*/ status = nxd_sntp_client_initialize_broadcast(&demo_sntp_client, &sntp_server_address, NX_NULL); #else @@ -311,10 +311,10 @@ NXD_ADDRESS client_ip_address; return; } - /* Set the base time which is approximately the number of seconds since the turn of the last century. + /* Set the base time which is approximately the number of seconds since the turn of the last century. If this is not available in SNTP format, the nx_sntp_client_utility_add_msecs_to_ntp_time service - can convert milliseconds to fraction. For how to compute NTP seconds from real time, read the - NetX SNTP User Guide. + can convert milliseconds to fraction. For how to compute NTP seconds from real time, read the + NetX SNTP User Guide. Otherwise set the base time to zero and set NX_SNTP_CLIENT_IGNORE_MAX_ADJUST_STARTUP to NX_TRUE for the SNTP CLient to accept the first time update without applying a minimum or maximum adjustment @@ -366,7 +366,7 @@ NXD_ADDRESS client_ip_address; /* If this happens repeatedly, consider stopping the SNTP Client thread, picking another SNTP server and resuming the SNTP Client thread task (more details about that in the comments at the end of this function). - + If SNTP Client configurable parameters are too restrictive, such as Max Adjustment, that may also cause valid server updates to be rejected. Configurable parameters, however, cannot be changed at run time.*/ @@ -399,7 +399,7 @@ NXD_ADDRESS client_ip_address; { /* No SNTP update event. - + In the meantime, if we have an RTC we might want to check its notion of time. In this demo, we simulate the passage of time on our 'RTC' really just the CPU counter, assuming that seconds and milliseconds have previously been set to a base (starting) time @@ -423,7 +423,7 @@ NXD_ADDRESS client_ip_address; } /* We can stop the SNTP service if for example we think the SNTP server has stopped sending updates. - + To restart the SNTP Client, simply call the nx_sntp_client_initialize_unicast or nx_sntp_client_initialize_broadcast using another SNTP server IP address as input, and resume the SNTP Client by calling nx_sntp_client_run_unicast or nx_sntp_client_run_braodcast. */ @@ -456,10 +456,10 @@ UINT leap_second_handler(NX_SNTP_CLIENT *client_ptr, UINT leap_indicator) } /* This application defined handler for handling a Kiss of Death packet is not - required by the SNTP Client. A KOD handler should determine + required by the SNTP Client. A KOD handler should determine if the Client task should continue vs. abort sending/receiving time data from its current time server, and if aborting if it should remove - the server from its active server list. + the server from its active server list. Note that the KOD list of codes is subject to change. The list below is current at the time of this software release. */ diff --git a/samples/demo_netxduo_telnet.c b/samples/demo_netxduo_telnet.c index 54175c72..c3df8d67 100644 --- a/samples/demo_netxduo_telnet.c +++ b/samples/demo_netxduo_telnet.c @@ -1,4 +1,4 @@ -/* This is a small demo of TELNET on the high-performance NetX TCP/IP stack. +/* This is a small demo of TELNET on the high-performance NetX TCP/IP stack. This demo relies on ThreadX and NetX to show a simple TELNET connection, send, server echo, and then disconnection from the TELNET server. */ @@ -22,7 +22,7 @@ NX_IP ip_client; /* If the Telnet connection requires IPv6 support, define USE_IPV6. Note that the NetX Duo Telnet Client and Server can communicate over IPv4 regardless - if IPv6 is enabled in NetX Duo. However to use IPv6 addressing, the + if IPv6 is enabled in NetX Duo. However to use IPv6 addressing, the FEATURE_NX_IPV6 must be defined in nx_user.h. */ #ifdef NX_DISABLE_IPV4 #define USE_IPV6 @@ -214,7 +214,7 @@ UINT iface_index, address_index; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&ip_server, iface_index, &server_ip_address, 64, &address_index); @@ -307,7 +307,7 @@ UINT iface_index, address_index; return; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&ip_client, iface_index, &client_ip_address, 64, &address_index); @@ -422,7 +422,7 @@ UINT iface_index, address_index; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -460,7 +460,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -470,7 +470,7 @@ UCHAR alpha; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/samples/demo_netxduo_tftp.c b/samples/demo_netxduo_tftp.c index bb02018b..4ae0608c 100644 --- a/samples/demo_netxduo_tftp.c +++ b/samples/demo_netxduo_tftp.c @@ -1,5 +1,5 @@ -/* This is a small demo of TFTP on the high-performance NetX TCP/IP stack. This demo - relies on ThreadX and NetX , to show a simple file transfer from the client +/* This is a small demo of TFTP on the high-performance NetX TCP/IP stack. This demo + relies on ThreadX and NetX , to show a simple file transfer from the client and then back to the server. */ /* Indicate if using a NetX TFTP services. To port a NetX TFTP application to NetX TFTP @@ -17,7 +17,7 @@ #define USE_DUO -/* If the host application is using NetX Duo, determine which IP version to use. +/* If the host application is using NetX Duo, determine which IP version to use. Make sure IPv6 in NetX Duo is enabled if planning to use TFTP over IPv6 */ #ifdef USE_DUO #define IP_TYPE 6 @@ -26,7 +26,7 @@ #define DEMO_STACK_SIZE 4096 #define DEMO_DATA "ABCDEFGHIJKLMNOPQRSTUVWXYZ " -/* To use another file storage utility define this symbol: +/* To use another file storage utility define this symbol: #define NX_TFTP_NO_FILEX */ @@ -124,8 +124,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -194,8 +194,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -402,9 +402,9 @@ UINT iface_index; #endif /*(IP_TYPE == 6) */ - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/samples/demo_rtsp_over_rtp.h b/samples/demo_rtsp_over_rtp.h index b85839b4..9373ed5f 100644 --- a/samples/demo_rtsp_over_rtp.h +++ b/samples/demo_rtsp_over_rtp.h @@ -72,7 +72,7 @@ extern TX_EVENT_FLAGS_GROUP demo_test_events; 2. DEMO_VIDEO_DATA_READ could be its default value NX_NULL if user does not implement video data reading and transmitting. Otherwise, user MUST! define a callback with the prototype "UINT (*demo_video_data_read_callback)(ULONG *ntp_msw, ULONG *ntp_lsw, UCHAR **data_ptr, ULONG *data_size)" and implement the callback function. - Both MJPEG and H264 video formats are frame based, so the callback function should return a complete frame data each time. + Both MJPEG and H264 video formats are frame based, so the callback function should return a complete frame data each time. 3. DEMO_AUDIO_DATA_READ could be its default value NX_NULL if user does not implement audio data reading and transmitting. Otherwise, user MUST! define a callback with the prototype "UINT (*demo_audio_data_read_callback)(ULONG *ntp_msw, ULONG *ntp_lsw, UCHAR **data_ptr, ULONG *data_size)" diff --git a/samples/demo_snmp_helper.h b/samples/demo_snmp_helper.h index 73279c7c..9f7ab339 100644 --- a/samples/demo_snmp_helper.h +++ b/samples/demo_snmp_helper.h @@ -1,4 +1,4 @@ -/* This is an include file for the NetX SNMP demo programs for setting up the MIB for +/* This is an include file for the NetX SNMP demo programs for setting up the MIB for user callback functions. It is not part of the official release of NetX SNMP Agent. */ #ifndef SNMP_HELPER_H diff --git a/samples/main.c b/samples/main.c index 8ae0cdde..1696ffbd 100644 --- a/samples/main.c +++ b/samples/main.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/cmake/filex b/test/cmake/filex index bb6e295a..9023227b 160000 --- a/test/cmake/filex +++ b/test/cmake/filex @@ -1 +1 @@ -Subproject commit bb6e295af079f3cd903272982106b0ddd9537422 +Subproject commit 9023227ba4cf4e12d010daed121f5148b80403d9 diff --git a/test/cmake/libs/tx_user.h b/test/cmake/libs/tx_user.h index 4b372d29..f909f0d3 100644 --- a/test/cmake/libs/tx_user.h +++ b/test/cmake/libs/tx_user.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,12 +40,6 @@ /* Note that all the defines in this file may also be made on the */ /* command line when building ThreadX library and application objects. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 William E. Lamie Initial Version 6.0 */ -/* */ /**************************************************************************/ #ifndef TX_USER_H diff --git a/test/cmake/netxduo64/nx_user.h b/test/cmake/netxduo64/nx_user.h index e0cc7417..4818c96d 100644 --- a/test/cmake/netxduo64/nx_user.h +++ b/test/cmake/netxduo64/nx_user.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,12 +40,6 @@ /* Note that all the defines in this file may also be made on the */ /* command line when building NetX library and application objects. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* */ /**************************************************************************/ #ifndef NX_USER_H diff --git a/test/cmake/netxduo_fast/libs/tx_user.h b/test/cmake/netxduo_fast/libs/tx_user.h index 2bf182c7..39125036 100644 --- a/test/cmake/netxduo_fast/libs/tx_user.h +++ b/test/cmake/netxduo_fast/libs/tx_user.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,12 +40,6 @@ /* Note that all the defines in this file may also be made on the */ /* command line when building ThreadX library and application objects. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 William E. Lamie Initial Version 6.0 */ -/* */ /**************************************************************************/ #ifndef TX_USER_H diff --git a/test/cmake/netxduo_fast/nx_user.h b/test/cmake/netxduo_fast/nx_user.h index 038d922e..337c59c3 100644 --- a/test/cmake/netxduo_fast/nx_user.h +++ b/test/cmake/netxduo_fast/nx_user.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -40,12 +40,6 @@ /* Note that all the defines in this file may also be made on the */ /* command line when building NetX library and application objects. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ -/* */ /**************************************************************************/ #define NX_IP_PERIODIC_RATE 1000UL \ No newline at end of file diff --git a/test/cmake/threadx b/test/cmake/threadx index 3726d790..7ad78c40 160000 --- a/test/cmake/threadx +++ b/test/cmake/threadx @@ -1 +1 @@ -Subproject commit 3726d7906b4808bfec7855fc088e073199df9120 +Subproject commit 7ad78c40e9702917264a9b722890110fdb909ebc diff --git a/test/regression/azure_iot/api_unit_test.c b/test/regression/azure_iot/api_unit_test.c index df53d42c..26590296 100644 --- a/test/regression/azure_iot/api_unit_test.c +++ b/test/regression/azure_iot/api_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/c2d_property_unit_test.c b/test/regression/azure_iot/c2d_property_unit_test.c index 8e4c22d3..1fa7ed14 100644 --- a/test/regression/azure_iot/c2d_property_unit_test.c +++ b/test/regression/azure_iot/c2d_property_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/c2d_unit_test.c b/test/regression/azure_iot/c2d_unit_test.c index abe57188..0a028c33 100644 --- a/test/regression/azure_iot/c2d_unit_test.c +++ b/test/regression/azure_iot/c2d_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/connection_non_block_ram_test.c b/test/regression/azure_iot/connection_non_block_ram_test.c index 379c3ad4..361e7a5b 100644 --- a/test/regression/azure_iot/connection_non_block_ram_test.c +++ b/test/regression/azure_iot/connection_non_block_ram_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/connection_sas_expiry_ram_test.c b/test/regression/azure_iot/connection_sas_expiry_ram_test.c index 3b50c05a..f5452298 100644 --- a/test/regression/azure_iot/connection_sas_expiry_ram_test.c +++ b/test/regression/azure_iot/connection_sas_expiry_ram_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/connection_unit_test.c b/test/regression/azure_iot/connection_unit_test.c index 29a3565a..646141b0 100644 --- a/test/regression/azure_iot/connection_unit_test.c +++ b/test/regression/azure_iot/connection_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/d2c_unit_test.c b/test/regression/azure_iot/d2c_unit_test.c index cedcdbc9..f3394726 100644 --- a/test/regression/azure_iot/d2c_unit_test.c +++ b/test/regression/azure_iot/d2c_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/device_cert_unit_test.c b/test/regression/azure_iot/device_cert_unit_test.c index 1edfa2f5..20b5b7ab 100644 --- a/test/regression/azure_iot/device_cert_unit_test.c +++ b/test/regression/azure_iot/device_cert_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/device_twin_unit_test.c b/test/regression/azure_iot/device_twin_unit_test.c index 30c5e499..e604b491 100644 --- a/test/regression/azure_iot/device_twin_unit_test.c +++ b/test/regression/azure_iot/device_twin_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/direct_method_unit_test.c b/test/regression/azure_iot/direct_method_unit_test.c index 33542032..e0c20dc5 100644 --- a/test/regression/azure_iot/direct_method_unit_test.c +++ b/test/regression/azure_iot/direct_method_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/initialization_unit_test.c b/test/regression/azure_iot/initialization_unit_test.c index 6f6ef8d7..c0792d0d 100644 --- a/test/regression/azure_iot/initialization_unit_test.c +++ b/test/regression/azure_iot/initialization_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/iot_provisioning_client_unit_test.c b/test/regression/azure_iot/iot_provisioning_client_unit_test.c index c6b878d5..869137fb 100644 --- a/test/regression/azure_iot/iot_provisioning_client_unit_test.c +++ b/test/regression/azure_iot/iot_provisioning_client_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/main.c b/test/regression/azure_iot/main.c index 8ca8a24d..1a17b43f 100644 --- a/test/regression/azure_iot/main.c +++ b/test/regression/azure_iot/main.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_adu_agent_unit_test.c b/test/regression/azure_iot/nx_azure_iot_adu_agent_unit_test.c index 02478ae0..876491fa 100644 --- a/test/regression/azure_iot/nx_azure_iot_adu_agent_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_adu_agent_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_json_reader_unit_test.c b/test/regression/azure_iot/nx_azure_iot_json_reader_unit_test.c index 6d2a9abd..b94eaf7e 100644 --- a/test/regression/azure_iot/nx_azure_iot_json_reader_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_json_reader_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_json_writer_unit_test.c b/test/regression/azure_iot/nx_azure_iot_json_writer_unit_test.c index 81288f5d..46affbf7 100644 --- a/test/regression/azure_iot/nx_azure_iot_json_writer_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_json_writer_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_pnp_client_command_unit_test.c b/test/regression/azure_iot/nx_azure_iot_pnp_client_command_unit_test.c index 3360fb20..4c4eb429 100644 --- a/test/regression/azure_iot/nx_azure_iot_pnp_client_command_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_pnp_client_command_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_pnp_client_properties_unit_test.c b/test/regression/azure_iot/nx_azure_iot_pnp_client_properties_unit_test.c index f807976d..9a3f8dd0 100644 --- a/test/regression/azure_iot/nx_azure_iot_pnp_client_properties_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_pnp_client_properties_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_pnp_client_telemetry_unit_test.c b/test/regression/azure_iot/nx_azure_iot_pnp_client_telemetry_unit_test.c index 09ef70a8..22a180ae 100644 --- a/test/regression/azure_iot/nx_azure_iot_pnp_client_telemetry_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_pnp_client_telemetry_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/nx_azure_iot_unit_test.c b/test/regression/azure_iot/nx_azure_iot_unit_test.c index bdd7cadd..d195bba7 100644 --- a/test/regression/azure_iot/nx_azure_iot_unit_test.c +++ b/test/regression/azure_iot/nx_azure_iot_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/trusted_cert_unit_test.c b/test/regression/azure_iot/trusted_cert_unit_test.c index bab83683..245f3cab 100644 --- a/test/regression/azure_iot/trusted_cert_unit_test.c +++ b/test/regression/azure_iot/trusted_cert_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/azure_iot/user_agent_string_unit_test.c b/test/regression/azure_iot/user_agent_string_unit_test.c index efcdf713..6f3cfadc 100644 --- a/test/regression/azure_iot/user_agent_string_unit_test.c +++ b/test/regression/azure_iot/user_agent_string_unit_test.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/bsd_test/netx_bsd_ioctl_nonblocking_test.c b/test/regression/bsd_test/netx_bsd_ioctl_nonblocking_test.c index 5bf761b3..46056930 100644 --- a/test/regression/bsd_test/netx_bsd_ioctl_nonblocking_test.c +++ b/test/regression/bsd_test/netx_bsd_ioctl_nonblocking_test.c @@ -835,7 +835,7 @@ char mac_ip1[6]; tx_semaphore_get(&sema_0, 5 * NX_IP_PERIODIC_RATE); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ retry = 0; sockfd = socket(AF_INET, SOCK_STREAM, 0); @@ -907,7 +907,7 @@ char mac_ip1[6]; error_counter++; - /* Now open another socket and attempt to connect to the an incorrect + /* Now open another socket and attempt to connect to the an incorrect remote host so we expect an unsuccessful connections. */ retry = 0; sockfd = socket(AF_INET, SOCK_STREAM, 0); diff --git a/test/regression/bsd_test/netx_bsd_raw_basic_blocking_test.c b/test/regression/bsd_test/netx_bsd_raw_basic_blocking_test.c index aeb55049..f9d1d7dd 100644 --- a/test/regression/bsd_test/netx_bsd_raw_basic_blocking_test.c +++ b/test/regression/bsd_test/netx_bsd_raw_basic_blocking_test.c @@ -297,7 +297,7 @@ char mac_ip1[6]; #endif test_raw_server_ipv4(); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ #if 0 sockfd = socket(AF_INET, SOCK_DGRAM, 0); diff --git a/test/regression/bsd_test/netx_bsd_raw_basic_rx_nohdr_blocking_test.c b/test/regression/bsd_test/netx_bsd_raw_basic_rx_nohdr_blocking_test.c index 34f765c2..fee06050 100644 --- a/test/regression/bsd_test/netx_bsd_raw_basic_rx_nohdr_blocking_test.c +++ b/test/regression/bsd_test/netx_bsd_raw_basic_rx_nohdr_blocking_test.c @@ -294,7 +294,7 @@ char mac_ip1[6]; #endif test_raw_server_ipv4(); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ #if 0 sockfd = socket(AF_INET, SOCK_DGRAM, 0); diff --git a/test/regression/bsd_test/netx_bsd_raw_pppoe_test.c b/test/regression/bsd_test/netx_bsd_raw_pppoe_test.c index c31905ec..ae5450b5 100644 --- a/test/regression/bsd_test/netx_bsd_raw_pppoe_test.c +++ b/test/regression/bsd_test/netx_bsd_raw_pppoe_test.c @@ -1,8 +1,8 @@ /* This NetX test concentrates on the BSD RAW Packet blocking operation for PPPoE traffic. */ -/* This test case covers the following scenarios: - Be able to create socket_1 of PPPOE_SESS for receiving SESS traffice, +/* This test case covers the following scenarios: + Be able to create socket_1 of PPPOE_SESS for receiving SESS traffice, socket_2 for receiving PPPOE_DISC traffic - socket_3 for sending either PPPOE_DISC or PPPOE_SESS traffic. + socket_3 for sending either PPPOE_DISC or PPPOE_SESS traffic. */ diff --git a/test/regression/bsd_test/netx_bsd_raw_rx_nohdr_basic_blocking_test.c b/test/regression/bsd_test/netx_bsd_raw_rx_nohdr_basic_blocking_test.c index 58c67ca5..4129880b 100644 --- a/test/regression/bsd_test/netx_bsd_raw_rx_nohdr_basic_blocking_test.c +++ b/test/regression/bsd_test/netx_bsd_raw_rx_nohdr_basic_blocking_test.c @@ -294,7 +294,7 @@ char mac_ip1[6]; #endif test_raw_server_ipv4(); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ #if 0 sockfd = socket(AF_INET, SOCK_DGRAM, 0); diff --git a/test/regression/bsd_test/netx_bsd_raw_tx_test.c b/test/regression/bsd_test/netx_bsd_raw_tx_test.c index 9e16bd2d..45de010b 100644 --- a/test/regression/bsd_test/netx_bsd_raw_tx_test.c +++ b/test/regression/bsd_test/netx_bsd_raw_tx_test.c @@ -23,7 +23,7 @@ static ULONG bsd_thread_area[DEMO_STACK_SIZE / sizeof(ULONG)]; static ULONG error_counter; -/* The IPv6 packet assumes +/* The IPv6 packet assumes src address fe80::f584:1fdb:425:a239 dst address ff02::1:ffd6:5775 */ @@ -40,7 +40,7 @@ char ipv6_packet[] = { 0x00, 0x1e, 0x8c, 0xd5, 0xd3, 0x1f }; -/* In this test case the source IP address must be +/* In this test case the source IP address must be 192.168.1.185, dest 157.56.52.38 Source MAC 18:a9:05:cc:8f:16 dst MAC 00:24:a5:b5:2c:58 diff --git a/test/regression/bsd_test/netx_bsd_tcp_basic_blocking_test.c b/test/regression/bsd_test/netx_bsd_tcp_basic_blocking_test.c index 4b98ff64..eca7932e 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_basic_blocking_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_basic_blocking_test.c @@ -699,7 +699,7 @@ int ret; #endif tx_semaphore_get(&sema_0, 5 * NX_IP_PERIODIC_RATE); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ sockfd = socket(AF_INET, SOCK_STREAM, 0); if(sockfd < 0) @@ -718,7 +718,7 @@ int ret; if(ret < 0) error_counter++; - /* Now open another socket and attempt to connect to the an incorrect + /* Now open another socket and attempt to connect to the an incorrect remote host so we expect an unsuccessful connections. */ sockfd = socket(AF_INET, SOCK_STREAM, 0); if(sockfd < 0) diff --git a/test/regression/bsd_test/netx_bsd_tcp_basic_nonblocking_test.c b/test/regression/bsd_test/netx_bsd_tcp_basic_nonblocking_test.c index 90208a3e..dcb89159 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_basic_nonblocking_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_basic_nonblocking_test.c @@ -691,7 +691,7 @@ char mac_ip1[6]; tx_semaphore_get(&sema_0, 5 * NX_IP_PERIODIC_RATE); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ retry = 0; sockfd = socket(AF_INET, SOCK_STREAM, 0); @@ -763,7 +763,7 @@ char mac_ip1[6]; error_counter++; - /* Now open another socket and attempt to connect to the an incorrect + /* Now open another socket and attempt to connect to the an incorrect remote host so we expect an unsuccessful connections. */ retry = 0; sockfd = socket(AF_INET, SOCK_STREAM, 0); diff --git a/test/regression/bsd_test/netx_bsd_tcp_clients_share_port_test.c b/test/regression/bsd_test/netx_bsd_tcp_clients_share_port_test.c index 6a5832a3..1544d814 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_clients_share_port_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_clients_share_port_test.c @@ -1,4 +1,4 @@ -/* This demoonstrates sharing a port between an IPv4 and IPv6 TCP client socket to send +/* This demoonstrates sharing a port between an IPv4 and IPv6 TCP client socket to send and receive packets (e.g emulates a socket that can send/receive iPv4 and Ipv6 packets) using a simulated Ethernet driver. */ @@ -392,7 +392,7 @@ NXD_ADDRESS ip_address; ip_address.nxd_ip_address.v6[3] = 0x101; - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&bsd_ip_server, 0, &ip_address, 64, &address_index); diff --git a/test/regression/bsd_test/netx_bsd_tcp_clients_shared_port_test.c b/test/regression/bsd_test/netx_bsd_tcp_clients_shared_port_test.c index 6ae1f9e0..d535193e 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_clients_shared_port_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_clients_shared_port_test.c @@ -1,4 +1,4 @@ -/* This demonstrates sharing a port between an IPv4 and IPv6 TCP client socket to send +/* This demonstrates sharing a port between an IPv4 and IPv6 TCP client socket to send and receive packets (e.g emulates a socket that can send/receive iPv4 and Ipv6 packets) using a simulated Ethernet driver. */ diff --git a/test/regression/bsd_test/netx_bsd_tcp_rcvbuf_test.c b/test/regression/bsd_test/netx_bsd_tcp_rcvbuf_test.c index 985785f7..9b3e20f6 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_rcvbuf_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_rcvbuf_test.c @@ -718,7 +718,7 @@ int ret; #endif tx_semaphore_get(&sema_0, 5 * NX_IP_PERIODIC_RATE); - /* Now open another socket and attempt to connect to the correct remote + /* Now open another socket and attempt to connect to the correct remote host but an unexpected port so we expect an unsuccessful connections. */ sockfd = socket(AF_INET, SOCK_STREAM, 0); if(sockfd < 0) @@ -737,7 +737,7 @@ int ret; if(ret < 0) error_counter++; - /* Now open another socket and attempt to connect to the an incorrect + /* Now open another socket and attempt to connect to the an incorrect remote host so we expect an unsuccessful connections. */ sockfd = socket(AF_INET, SOCK_STREAM, 0); if(sockfd < 0) diff --git a/test/regression/bsd_test/netx_bsd_tcp_servers_share_port_test.c b/test/regression/bsd_test/netx_bsd_tcp_servers_share_port_test.c index 4a364b78..4ca1f3b7 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_servers_share_port_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_servers_share_port_test.c @@ -1,4 +1,4 @@ -/* This demoonstrates sharing a port between an IPv4 and IPv6 TCP server socket to send +/* This demoonstrates sharing a port between an IPv4 and IPv6 TCP server socket to send and receive packets (e.g emulates a socket that can send/receive iPv4 and Ipv6 packets) using a simulated Ethernet driver. */ @@ -316,7 +316,7 @@ CHAR Server_Rcv_Buffer[100]; if (status == ERROR) { /* This is a blocking socket. If no data is received, but the connection is still good, - the EAGAIN error is set. If it was a non blocking socket, the EWOULDBLOCK socket + the EAGAIN error is set. If it was a non blocking socket, the EWOULDBLOCK socket error is set. */ if (errno == EAGAIN) { @@ -463,7 +463,7 @@ CHAR Server_Rcv_Buffer[100]; ip_address.nxd_ip_address.v6[2] = 0; ip_address.nxd_ip_address.v6[3] = 0x101; - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&bsd_ip_server, 0, &ip_address, 64, &address_index); @@ -576,7 +576,7 @@ CHAR Server_Rcv_Buffer[100]; if ((status == ERROR) || (status == 0)) { /* This is a blocking socket. If no data is received, but the connection is still good, - the EAGAIN error is set. If it was a non blocking socket, the EWOULDBLOCK socket + the EAGAIN error is set. If it was a non blocking socket, the EWOULDBLOCK socket error is set. */ if (errno == EAGAIN) { @@ -707,7 +707,7 @@ UINT address_index; ip_address.nxd_ip_address.v6[2] = 0; ip_address.nxd_ip_address.v6[3] = 0x1235; - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&bsd_ip_client, 0, &ip_address, 64, &address_index); diff --git a/test/regression/bsd_test/netx_bsd_tcp_servers_shared_port_test.c b/test/regression/bsd_test/netx_bsd_tcp_servers_shared_port_test.c index 53bd15fc..1540d156 100644 --- a/test/regression/bsd_test/netx_bsd_tcp_servers_shared_port_test.c +++ b/test/regression/bsd_test/netx_bsd_tcp_servers_shared_port_test.c @@ -1,4 +1,4 @@ -/* This demoonstrates sharing a port between an IPv4 and IPv6 TCP server socket to send +/* This demoonstrates sharing a port between an IPv4 and IPv6 TCP server socket to send and receive packets (e.g emulates a socket that can send/receive iPv4 and Ipv6 packets) using a simulated Ethernet driver. */ diff --git a/test/regression/bsd_test/netx_bsd_udp_bind_test.c b/test/regression/bsd_test/netx_bsd_udp_bind_test.c index ba12267e..fb936708 100644 --- a/test/regression/bsd_test/netx_bsd_udp_bind_test.c +++ b/test/regression/bsd_test/netx_bsd_udp_bind_test.c @@ -789,11 +789,11 @@ INT reuseaddr = 0; #endif } - /* Test UDP sockets binding to address1, 2, 3 are able to receive packets according to their + /* Test UDP sockets binding to address1, 2, 3 are able to receive packets according to their binding information */ test_udp_bind_to_three_interfaces(0, 1, 2); - /* Test UDP sockets binding to address1, 3, and another bind to INADDR_ANY. + /* Test UDP sockets binding to address1, 3, and another bind to INADDR_ANY. Traffic to address 1 goes to the INADDR_ANY bind. */ test_udp_bind_to_three_interfaces(0, 2, 3); diff --git a/test/regression/crypto_test/crypto_size_print.c b/test/regression/crypto_test/crypto_size_print.c index 7657446d..8b207211 100644 --- a/test/regression/crypto_test/crypto_size_print.c +++ b/test/regression/crypto_test/crypto_size_print.c @@ -3,15 +3,15 @@ * * Filename: main.c * - * Description: + * Description: * * Version: 1.0 * Created: 04/29/2020 04:45:06 PM * Revision: none * Compiler: gcc * - * Author: YOUR NAME (), - * Company: + * Author: YOUR NAME (), + * Company: * * ===================================================================================== */ @@ -62,7 +62,7 @@ int main() printf(" sizeof(NX_CRYPTO_MD5), %d\n", sizeof(NX_CRYPTO_MD5)); printf(" sizeof(NX_CRYPTO_SHA1), %d\n", sizeof(NX_CRYPTO_SHA1)); printf(" sizeof(NX_CRYPTO_SHA256), %d\n", sizeof(NX_CRYPTO_SHA256)); - // printf(" sizeof(NX_CRYPTO_SHA384), %d\n", sizeof(NX_CRYPTO_SHA384)); + // printf(" sizeof(NX_CRYPTO_SHA384), %d\n", sizeof(NX_CRYPTO_SHA384)); printf(" sizeof(NX_CRYPTO_SHA512), %d\n", sizeof(NX_CRYPTO_SHA512)); printf(" sizeof(NX_CRYPTO_TLS_PRF_1), %d\n", sizeof(NX_CRYPTO_TLS_PRF_1)); printf(" sizeof(NX_CRYPTO_TLS_PRF_SHA256), %d\n", sizeof(NX_CRYPTO_TLS_PRF_SHA256)); diff --git a/test/regression/dhcp_test/netx_dhcp_03_02_01_test.c b/test/regression/dhcp_test/netx_dhcp_03_02_01_test.c index 8634d65c..f295249a 100644 --- a/test/regression/dhcp_test/netx_dhcp_03_02_01_test.c +++ b/test/regression/dhcp_test/netx_dhcp_03_02_01_test.c @@ -1,4 +1,4 @@ -/* As the client has not received its network address, it MUST NOT fill in the 'ciaddr' field. And servers with knowledge of +/* As the client has not received its network address, it MUST NOT fill in the 'ciaddr' field. And servers with knowledge of * the client's configuration parameters respond with a DHCPACK message to the client. * rfc 2131, page 18, 3.2 Client-server interaction - resuing a previously allocated network address * diff --git a/test/regression/dhcp_test/netx_dhcp_03_05_01_test.c b/test/regression/dhcp_test/netx_dhcp_03_05_01_test.c index ecb43c1b..a9c07db4 100644 --- a/test/regression/dhcp_test/netx_dhcp_03_05_01_test.c +++ b/test/regression/dhcp_test/netx_dhcp_03_05_01_test.c @@ -1,6 +1,6 @@ /* If the client includes a list fo parameters in a DHCPDISCOVER message, it MUST include that list in any subsequent DHCPREQUEST messsages. * rfc 2131, page 21, 3.5 Client parameters in DHCP - * + * */ #include "tx_api.h" #include "nx_api.h" diff --git a/test/regression/dhcp_test/netx_dhcp_04_01_01_test.c b/test/regression/dhcp_test/netx_dhcp_04_01_01_test.c index 0e890c49..f2060d51 100644 --- a/test/regression/dhcp_test/netx_dhcp_04_01_01_test.c +++ b/test/regression/dhcp_test/netx_dhcp_04_01_01_test.c @@ -1,7 +1,7 @@ -/* A client that can't receive unicast IP datagrams until its protocol software has been configured with an IP address SHOULD set the BROADCAST +/* A client that can't receive unicast IP datagrams until its protocol software has been configured with an IP address SHOULD set the BROADCAST * bit in the 'flags' field to 1 in any DHCPDISCOVER or DHCPREQUEST messages that client sends. * rfc 2131, page 25, 4.1 Constructing and sending DHCP messages - * + * */ #include "tx_api.h" diff --git a/test/regression/dhcp_test/netx_dhcp_04_03_02_01_test.c b/test/regression/dhcp_test/netx_dhcp_04_03_02_01_test.c index 4fb052fd..81acccd8 100644 --- a/test/regression/dhcp_test/netx_dhcp_04_03_02_01_test.c +++ b/test/regression/dhcp_test/netx_dhcp_04_03_02_01_test.c @@ -1,4 +1,4 @@ -/* ciaddr' MUST be zero, 'requested IP address' MUST be filled in with the yiaddr value from the chosen DHCPOFFER +/* ciaddr' MUST be zero, 'requested IP address' MUST be filled in with the yiaddr value from the chosen DHCPOFFER * rfc 2131, page 31, 4.3.2 DHCPREQUEST message * */ diff --git a/test/regression/dhcp_test/netx_dhcp_04_03_02_02_test.c b/test/regression/dhcp_test/netx_dhcp_04_03_02_02_test.c index b0a54766..d936d7b8 100644 --- a/test/regression/dhcp_test/netx_dhcp_04_03_02_02_test.c +++ b/test/regression/dhcp_test/netx_dhcp_04_03_02_02_test.c @@ -1,4 +1,4 @@ -/* DHCPREQUEST generated during RENEWING state: 'server identifier' MUST NOT be filled in, 'requested IP address' option MUST NOT +/* DHCPREQUEST generated during RENEWING state: 'server identifier' MUST NOT be filled in, 'requested IP address' option MUST NOT * be filled in, 'ciaddr' MUST be filled in with client's IP address. * rfc 2131, page 32, 4.3.2 DHCPREQUEST message * diff --git a/test/regression/dhcp_test/netx_dhcp_04_03_02_03_test.c b/test/regression/dhcp_test/netx_dhcp_04_03_02_03_test.c index 35dc1bb1..6e628f4e 100644 --- a/test/regression/dhcp_test/netx_dhcp_04_03_02_03_test.c +++ b/test/regression/dhcp_test/netx_dhcp_04_03_02_03_test.c @@ -1,4 +1,4 @@ -/* DHCPREQUEST generated during REBINDING state: 'server identifier' MUST NOT be filled in, 'requested IP address' option MUST NOT +/* DHCPREQUEST generated during REBINDING state: 'server identifier' MUST NOT be filled in, 'requested IP address' option MUST NOT * be filled in, 'ciaddr' MUST be filled in with client's IP address. * rfc 2131, page 32, 4.3.2 DHCPREQUEST message * diff --git a/test/regression/dhcp_test/netx_dhcp_04_04_01_02_test.c b/test/regression/dhcp_test/netx_dhcp_04_04_01_02_test.c index b468210d..d1dc8668 100644 --- a/test/regression/dhcp_test/netx_dhcp_04_04_01_02_test.c +++ b/test/regression/dhcp_test/netx_dhcp_04_04_01_02_test.c @@ -1,5 +1,5 @@ -/* If the 'xid' of an arriving DHCPOFFER message does not match the 'xid' of the most recent DHCPDISCOVER message, - * the DHCPOFFER message must be silently discarded. +/* If the 'xid' of an arriving DHCPOFFER message does not match the 'xid' of the most recent DHCPDISCOVER message, + * the DHCPOFFER message must be silently discarded. * rfc 2131, page 36, 4.4.1 Initialization and allocation of network address */ #include "tx_api.h" diff --git a/test/regression/dhcp_test/netx_dhcp_basic_test.c b/test/regression/dhcp_test/netx_dhcp_basic_test.c index fadc5fc0..ef43e9b9 100644 --- a/test/regression/dhcp_test/netx_dhcp_basic_test.c +++ b/test/regression/dhcp_test/netx_dhcp_basic_test.c @@ -25,10 +25,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_activate_interfaces_test.c b/test/regression/dhcp_test/netx_dhcp_client_activate_interfaces_test.c index 368e3c3b..b6cf3b15 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_activate_interfaces_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_activate_interfaces_test.c @@ -5,8 +5,8 @@ There are two DHCP Client threads that independently activate the DHCP Client on the primary or secondary interface. When they reach the bound state, each interface Client deactivates the DHCP Client process and the DHCP Client goes back to the NOT STARTED state. - - There is one server thread handling DHCP Client messages on both interfaces. + + There is one server thread handling DHCP Client messages on both interfaces. */ @@ -217,7 +217,7 @@ static int offer_response1_size = 300; /* Frame (342 bytes) */ static char ack_response1[300] = { -//0x02, 0x01, 0x06, 0x00, 0x2a, 0x3e, 0xF0, 0x1D, +//0x02, 0x01, 0x06, 0x00, 0x2a, 0x3e, 0xF0, 0x1D, #ifdef __PRODUCT_NETXDUO__ 0x02, 0x01, 0x06, 0x00, 0x2a, 0x3e, 0xF0, 0x1D, #else diff --git a/test/regression/dhcp_test/netx_dhcp_client_interface_order_test.c b/test/regression/dhcp_test/netx_dhcp_client_interface_order_test.c index 1f4c73e4..42033fb2 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_interface_order_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_interface_order_test.c @@ -5,8 +5,8 @@ There are two DHCP Client threads that independently activate the DHCP Client on the primary or secondary interface. When they reach the bound state, each interface Client deactivates the DHCP Client process and the DHCP Client goes back to the NOT STARTED state. - - There is one server thread handling DHCP Client messages on both interfaces. + + There is one server thread handling DHCP Client messages on both interfaces. */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_ip_mutex_test.c b/test/regression/dhcp_test/netx_dhcp_client_ip_mutex_test.c index fd9c3374..e97d26c3 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_ip_mutex_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_ip_mutex_test.c @@ -3,12 +3,12 @@ /* This is the DHCP Client that will run on both interfaces independently. Interface 0 stays bound; interface 1 declines the IP address and tries again at the INIT state to get a unique IP address. - + Required: NX_MAX_PHYSICAL_INTERFACES >= 2 and NX_DHCP_CLIENT_MAX_INTERFACES >= 2. Also NX_DHCP_CLIENT_SEND_ARP_PROBE must be enabled. Requires longer timeout in regression test netxtestcontrol. - - There is one server thread handling DHCP Client messages on both interfaces. + + There is one server thread handling DHCP Client messages on both interfaces. */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_ntp_option_test.c b/test/regression/dhcp_test/netx_dhcp_client_ntp_option_test.c index 3d30dccb..60d4700e 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_ntp_option_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_ntp_option_test.c @@ -1,4 +1,4 @@ -/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP +/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP * broadcast address as the original DHCPDISCOVER message. * rfc 2131, page 16, 3.1 Client-server interaction - allocating a network address */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_parameter_request_test.c b/test/regression/dhcp_test/netx_dhcp_client_parameter_request_test.c index c2f62d7f..67c9fd6e 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_parameter_request_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_parameter_request_test.c @@ -1,4 +1,4 @@ -/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP +/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP * broadcast address as the original DHCPDISCOVER message. * rfc 2131, page 16, 3.1 Client-server interaction - allocating a network address */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_secondary_interface_test.c b/test/regression/dhcp_test/netx_dhcp_client_secondary_interface_test.c index 9320fc9e..7d9f4d01 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_secondary_interface_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_secondary_interface_test.c @@ -2,9 +2,9 @@ /* This test checks that the DHCP Client can run on the secondary interface, only using the nx_dhcp_set_interface_index for backward compatibility. - + Set MAX PHYSICAL INTERFACES to 2, NX_DHCP_CLIENT_MAX_INTERFACES to 1 - and run the demo. + and run the demo. */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_send_with_zero_source_address_test.c b/test/regression/dhcp_test/netx_dhcp_client_send_with_zero_source_address_test.c index 8db6a9f8..b7aa1ad5 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_send_with_zero_source_address_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_send_with_zero_source_address_test.c @@ -30,10 +30,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_client_server_source_port_test.c b/test/regression/dhcp_test/netx_dhcp_client_server_source_port_test.c index 0869186f..a240d9b4 100644 --- a/test/regression/dhcp_test/netx_dhcp_client_server_source_port_test.c +++ b/test/regression/dhcp_test/netx_dhcp_client_server_source_port_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on the DHCP operation to verify the DHCP server source port +/* This NetX test concentrates on the DHCP operation to verify the DHCP server source port is excluded from DHCP Client validation checks. Further the NetX /NetX Duo packet processing should forward packets for the UDP socket bound to 68 without requiring the source port be 67. */ diff --git a/test/regression/dhcp_test/netx_dhcp_coverage_test.c b/test/regression/dhcp_test/netx_dhcp_coverage_test.c index 418228a8..40f3cff8 100644 --- a/test/regression/dhcp_test/netx_dhcp_coverage_test.c +++ b/test/regression/dhcp_test/netx_dhcp_coverage_test.c @@ -41,10 +41,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_delete_test.c b/test/regression/dhcp_test/netx_dhcp_delete_test.c index 8b221ca3..e1a40eba 100644 --- a/test/regression/dhcp_test/netx_dhcp_delete_test.c +++ b/test/regression/dhcp_test/netx_dhcp_delete_test.c @@ -25,10 +25,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_enable_test.c b/test/regression/dhcp_test/netx_dhcp_enable_test.c index badc5f59..91fe454b 100644 --- a/test/regression/dhcp_test/netx_dhcp_enable_test.c +++ b/test/regression/dhcp_test/netx_dhcp_enable_test.c @@ -25,10 +25,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_get_option_value_test.c b/test/regression/dhcp_test/netx_dhcp_get_option_value_test.c index a9b6bb76..4bd94eb0 100644 --- a/test/regression/dhcp_test/netx_dhcp_get_option_value_test.c +++ b/test/regression/dhcp_test/netx_dhcp_get_option_value_test.c @@ -1,4 +1,4 @@ -/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP +/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP * broadcast address as the original DHCPDISCOVER message. * rfc 2131, page 16, 3.1 Client-server interaction - allocating a network address */ diff --git a/test/regression/dhcp_test/netx_dhcp_packet_process_test.c b/test/regression/dhcp_test/netx_dhcp_packet_process_test.c index ce205ba9..d6edd1cf 100644 --- a/test/regression/dhcp_test/netx_dhcp_packet_process_test.c +++ b/test/regression/dhcp_test/netx_dhcp_packet_process_test.c @@ -1,4 +1,4 @@ -/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP +/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP * broadcast address as the original DHCPDISCOVER message. * rfc 2131, page 16, 3.1 Client-server interaction - allocating a network address */ diff --git a/test/regression/dhcp_test/netx_dhcp_reinitialize_test.c b/test/regression/dhcp_test/netx_dhcp_reinitialize_test.c index 1bd72efe..3cd7d5cf 100644 --- a/test/regression/dhcp_test/netx_dhcp_reinitialize_test.c +++ b/test/regression/dhcp_test/netx_dhcp_reinitialize_test.c @@ -1,5 +1,5 @@ /* The test in this file references the test in netx_dhcp_basic_test.c - The introduced difference by this file is to test the special case when the + The introduced difference by this file is to test the special case when the gateway ip addressed is cleared before calling nx_dhcp_interface_reinitialize, purposing to meet the 100% coverage for _nx_dhcp_interface_reinitialize */ @@ -30,10 +30,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_release_test.c b/test/regression/dhcp_test/netx_dhcp_release_test.c index 03f5e494..d008f305 100644 --- a/test/regression/dhcp_test/netx_dhcp_release_test.c +++ b/test/regression/dhcp_test/netx_dhcp_release_test.c @@ -25,10 +25,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_send_request_internal_test.c b/test/regression/dhcp_test/netx_dhcp_send_request_internal_test.c index 8dacc96b..baa3c2f9 100644 --- a/test/regression/dhcp_test/netx_dhcp_send_request_internal_test.c +++ b/test/regression/dhcp_test/netx_dhcp_send_request_internal_test.c @@ -1,4 +1,4 @@ -/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP +/* The DHCPREQUEST message MUST use the same value in the DHCP message header's 'secs' field and be sent to the same IP * broadcast address as the original DHCPDISCOVER message. * rfc 2131, page 16, 3.1 Client-server interaction - allocating a network address */ diff --git a/test/regression/dhcp_test/netx_dhcp_server_small_packet_payload_test.c b/test/regression/dhcp_test/netx_dhcp_server_small_packet_payload_test.c index e5399745..d9a358b4 100644 --- a/test/regression/dhcp_test/netx_dhcp_server_small_packet_payload_test.c +++ b/test/regression/dhcp_test/netx_dhcp_server_small_packet_payload_test.c @@ -29,10 +29,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_start_test.c b/test/regression/dhcp_test/netx_dhcp_start_test.c index d724ba24..b0d8028c 100644 --- a/test/regression/dhcp_test/netx_dhcp_start_test.c +++ b/test/regression/dhcp_test/netx_dhcp_start_test.c @@ -29,10 +29,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcp_stop_test.c b/test/regression/dhcp_test/netx_dhcp_stop_test.c index e5147b4f..78e837ca 100644 --- a/test/regression/dhcp_test/netx_dhcp_stop_test.c +++ b/test/regression/dhcp_test/netx_dhcp_stop_test.c @@ -25,10 +25,10 @@ extern void test_control_return(UINT status); #define REQUEST_CLIENT_IP */ -/* If defined the client requests to jump to the boot state and skip the DISCOVER message. +/* If defined the client requests to jump to the boot state and skip the DISCOVER message. If REQUEST_CLIENT_IP is not defined, this has no effect. */ -/* -#define SKIP_DISCOVER_MESSAGE +/* +#define SKIP_DISCOVER_MESSAGE */ /* Define the ThreadX and NetX object control blocks... */ diff --git a/test/regression/dhcp_test/netx_dhcpv6_basic_test.c b/test/regression/dhcp_test/netx_dhcpv6_basic_test.c index aaa20681..aac2d09a 100644 --- a/test/regression/dhcp_test/netx_dhcpv6_basic_test.c +++ b/test/regression/dhcp_test/netx_dhcpv6_basic_test.c @@ -1,4 +1,4 @@ -/* This is a small demo of the NetX Duo DHCPv6 Client and Server for the high-performance +/* This is a small demo of the NetX Duo DHCPv6 Client and Server for the high-performance NetX Duo stack. */ #include @@ -216,7 +216,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); @@ -228,11 +228,11 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Create the DHCPv6 client's Identity Association (IA-NA) now. + /* Create the DHCPv6 client's Identity Association (IA-NA) now. Note that if this host had already been assigned in IPv6 lease, it would have to use the assigned T1 and T2 values in loading the DHCPv6 - client with an IANA block. + client with an IANA block. */ status = nx_dhcpv6_create_client_iana(&dhcp_client, DHCPV6_IANA_ID, DHCPV6_T1, DHCPV6_T2); @@ -336,7 +336,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Get IP address lease time. + /* Get IP address lease time. Note, This API only applies to one IA. */ status = nx_dhcpv6_get_lease_time_data(&dhcp_client, &T1, &T2, &preferred_lifetime, &valid_lifetime); @@ -502,7 +502,7 @@ UINT addresses_added; test_control_return(1); } - /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. + /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. The DUID_TYPE and HW_TYPE are configurable options that are user defined in nx_dhcpv6_server.h. */ /* Set the DUID time as the start of the millenium. */ diff --git a/test/regression/dhcp_test/netx_dhcpv6_client_process_server_duid_test.c b/test/regression/dhcp_test/netx_dhcpv6_client_process_server_duid_test.c index 180aa242..db49a69b 100644 --- a/test/regression/dhcp_test/netx_dhcpv6_client_process_server_duid_test.c +++ b/test/regression/dhcp_test/netx_dhcpv6_client_process_server_duid_test.c @@ -181,7 +181,7 @@ UINT status; test_control_return(1); } - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0x5acd54c7); diff --git a/test/regression/dhcp_test/netx_dhcpv6_extended_api_test.c b/test/regression/dhcp_test/netx_dhcpv6_extended_api_test.c index 0d1bf9a3..900116fc 100644 --- a/test/regression/dhcp_test/netx_dhcpv6_extended_api_test.c +++ b/test/regression/dhcp_test/netx_dhcpv6_extended_api_test.c @@ -1,4 +1,4 @@ -/* This is a small demo of the NetX Duo DHCPv6 Client and Server for the high-performance +/* This is a small demo of the NetX Duo DHCPv6 Client and Server for the high-performance NetX Duo stack. */ #include @@ -218,7 +218,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); @@ -230,11 +230,11 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Create the DHCPv6 client's Identity Association (IA-NA) now. + /* Create the DHCPv6 client's Identity Association (IA-NA) now. Note that if this host had already been assigned in IPv6 lease, it would have to use the assigned T1 and T2 values in loading the DHCPv6 - client with an IANA block. + client with an IANA block. */ status = nx_dhcpv6_create_client_iana(&dhcp_client, DHCPV6_IANA_ID, DHCPV6_T1, DHCPV6_T2); @@ -338,7 +338,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Get IP address lease time. + /* Get IP address lease time. Note, This API only applies to one IA. */ status = nx_dhcpv6_get_lease_time_data(&dhcp_client, &T1, &T2, &preferred_lifetime, &valid_lifetime); @@ -521,7 +521,7 @@ UINT addresses_added; test_control_return(1); } - /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. + /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. The DUID_TYPE and HW_TYPE are configurable options that are user defined in nx_dhcpv6_server.h. */ /* Set the DUID time as the start of the millenium. */ diff --git a/test/regression/dhcp_test/netx_dhcpv6_packet_loss_test.c b/test/regression/dhcp_test/netx_dhcpv6_packet_loss_test.c index ee785198..0cd57377 100644 --- a/test/regression/dhcp_test/netx_dhcpv6_packet_loss_test.c +++ b/test/regression/dhcp_test/netx_dhcpv6_packet_loss_test.c @@ -809,7 +809,7 @@ UINT status; test_control_return(1); } - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0x990ab526); @@ -840,9 +840,9 @@ UINT status; test_control_return(1); } - /* Set the DHCPv6 Client FQDN option. - operation: NX_DHCPV6_CLIENT_DESIRES_UPDATE_AAAA_RR DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client. - NX_DHCPV6_CLIENT_DESIRES_SERVER_DO_DNS_UPDATE DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client to the server. + /* Set the DHCPv6 Client FQDN option. + operation: NX_DHCPV6_CLIENT_DESIRES_UPDATE_AAAA_RR DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client. + NX_DHCPV6_CLIENT_DESIRES_SERVER_DO_DNS_UPDATE DHCPv6 Client choose to updating the FQDN-to-IPv6 address mapping for FQDN and address(es) used by the client to the server. NX_DHCPV6_CLIENT_DESIRES_NO_SERVER_DNS_UPDATE DHCPv6 Client choose to request that the server perform no DNS updatest on its behalf. */ status = nx_dhcpv6_request_option_FQDN(&dhcp_client, "DHCPv6-Client", NX_DHCPV6_CLIENT_DESIRES_UPDATE_AAAA_RR); @@ -1056,10 +1056,10 @@ ULONG message_word; return; } -/* This is the notification from the DHCPv6 Client task that it has changed - state in the DHCPv6 protocol, for example getting assigned an IPv6 lease and - achieving the bound state or an IPv6 lease expires and being reset to - the init state. +/* This is the notification from the DHCPv6 Client task that it has changed + state in the DHCPv6 protocol, for example getting assigned an IPv6 lease and + achieving the bound state or an IPv6 lease expires and being reset to + the init state. */ static VOID dhcpv6_state_change_notify(NX_DHCPV6 *dhcpv6_ptr, UINT old_state, UINT new_state) { diff --git a/test/regression/dhcp_test/netx_dhcpv6_server_iana_test.c b/test/regression/dhcp_test/netx_dhcpv6_server_iana_test.c index ea845ee9..a1a3e431 100644 --- a/test/regression/dhcp_test/netx_dhcpv6_server_iana_test.c +++ b/test/regression/dhcp_test/netx_dhcpv6_server_iana_test.c @@ -226,7 +226,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. + /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. The DUID_TYPE and HW_TYPE are configurable options that are user defined in nx_dhcpv6_server.h. */ /* Set the DUID time as the start of the millenium. */ diff --git a/test/regression/dhcp_test/netx_dhcpv6_user_option_add_test.c b/test/regression/dhcp_test/netx_dhcpv6_user_option_add_test.c index b2d8ef91..f016e005 100644 --- a/test/regression/dhcp_test/netx_dhcpv6_user_option_add_test.c +++ b/test/regression/dhcp_test/netx_dhcpv6_user_option_add_test.c @@ -349,7 +349,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); @@ -361,11 +361,11 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Create the DHCPv6 client's Identity Association (IA-NA) now. + /* Create the DHCPv6 client's Identity Association (IA-NA) now. Note that if this host had already been assigned in IPv6 lease, it would have to use the assigned T1 and T2 values in loading the DHCPv6 - client with an IANA block. + client with an IANA block. */ status = nx_dhcpv6_create_client_iana(&dhcp_client, DHCPV6_IANA_ID, DHCPV6_T1, DHCPV6_T2); @@ -476,7 +476,7 @@ NX_PACKET *my_packet; test_control_return(1); } - /* Get IP address lease time. + /* Get IP address lease time. Note, This API only applies to one IA. */ status = nx_dhcpv6_get_lease_time_data(&dhcp_client, &T1, &T2, &preferred_lifetime, &valid_lifetime); @@ -642,7 +642,7 @@ UINT addresses_added; test_control_return(1); } - /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. + /* Note: For DUID types that do not require time, the 'duid_time' input can be left at zero. The DUID_TYPE and HW_TYPE are configurable options that are user defined in nx_dhcpv6_server.h. */ /* Set the DUID time as the start of the millenium. */ diff --git a/test/regression/dns_test/netx_dns_abnormal_packet_test.c b/test/regression/dns_test/netx_dns_abnormal_packet_test.c index aa0138b0..ee26e472 100644 --- a/test/regression/dns_test/netx_dns_abnormal_packet_test.c +++ b/test/regression/dns_test/netx_dns_abnormal_packet_test.c @@ -202,12 +202,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_fake_response_test.c b/test/regression/dns_test/netx_dns_fake_response_test.c index 4e26c182..d870b599 100644 --- a/test/regression/dns_test/netx_dns_fake_response_test.c +++ b/test/regression/dns_test/netx_dns_fake_response_test.c @@ -79,12 +79,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_function_test.c b/test/regression/dns_test/netx_dns_function_test.c index bc356be1..a469f53c 100644 --- a/test/regression/dns_test/netx_dns_function_test.c +++ b/test/regression/dns_test/netx_dns_function_test.c @@ -172,12 +172,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_invalid_name_unencode_test.c b/test/regression/dns_test/netx_dns_invalid_name_unencode_test.c index a516ad24..105dd11a 100644 --- a/test/regression/dns_test/netx_dns_invalid_name_unencode_test.c +++ b/test/regression/dns_test/netx_dns_invalid_name_unencode_test.c @@ -117,12 +117,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_invalid_resource_get_test.c b/test/regression/dns_test/netx_dns_invalid_resource_get_test.c index 1edd176c..3f2370d4 100644 --- a/test/regression/dns_test/netx_dns_invalid_resource_get_test.c +++ b/test/regression/dns_test/netx_dns_invalid_resource_get_test.c @@ -116,12 +116,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_non_blocking_a_test.c b/test/regression/dns_test/netx_dns_non_blocking_a_test.c index 7d7b5f74..cb26ed81 100644 --- a/test/regression/dns_test/netx_dns_non_blocking_a_test.c +++ b/test/regression/dns_test/netx_dns_non_blocking_a_test.c @@ -79,12 +79,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_packet_double_release_test.c b/test/regression/dns_test/netx_dns_packet_double_release_test.c index f6e845ba..b6aabb25 100644 --- a/test/regression/dns_test/netx_dns_packet_double_release_test.c +++ b/test/regression/dns_test/netx_dns_packet_double_release_test.c @@ -80,12 +80,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_request_a_response_cname_a_smtp_live_com_test.c b/test/regression/dns_test/netx_dns_request_a_response_cname_a_smtp_live_com_test.c index 98e9e417..15b8b05b 100644 --- a/test/regression/dns_test/netx_dns_request_a_response_cname_a_smtp_live_com_test.c +++ b/test/regression/dns_test/netx_dns_request_a_response_cname_a_smtp_live_com_test.c @@ -165,12 +165,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/dns_test/netx_dns_source_port_test.c b/test/regression/dns_test/netx_dns_source_port_test.c index 6dd2ff1b..17884081 100644 --- a/test/regression/dns_test/netx_dns_source_port_test.c +++ b/test/regression/dns_test/netx_dns_source_port_test.c @@ -79,12 +79,12 @@ CHAR *pointer; #ifdef NX_DNS_CLIENT_USER_CREATE_PACKET_POOL - /* Create the packet pool for the DNS Client to send packets. + /* Create the packet pool for the DNS Client to send packets. - If the DNS Client is configured for letting the host application create + If the DNS Client is configured for letting the host application create the DNS packet pool, (see NX_DNS_CLIENT_USER_CREATE_PACKET_POOL option), see - nx_dns_create() for guidelines on packet payload size and pool size. - packet traffic for NetX Duo processes. + nx_dns_create() for guidelines on packet payload size and pool size. + packet traffic for NetX Duo processes. */ status = nx_packet_pool_create(&client_pool, "DNS Client Packet Pool", NX_DNS_PACKET_PAYLOAD, pointer, NX_DNS_PACKET_POOL_SIZE); diff --git a/test/regression/ftp_test/netx_ftp_access_control_commands_01_test.c b/test/regression/ftp_test/netx_ftp_access_control_commands_01_test.c index 3eb5323a..6e9269ce 100644 --- a/test/regression/ftp_test/netx_ftp_access_control_commands_01_test.c +++ b/test/regression/ftp_test/netx_ftp_access_control_commands_01_test.c @@ -55,7 +55,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_access_control_commands_02_test.c b/test/regression/ftp_test/netx_ftp_access_control_commands_02_test.c index c9cd13ec..f168d6da 100644 --- a/test/regression/ftp_test/netx_ftp_access_control_commands_02_test.c +++ b/test/regression/ftp_test/netx_ftp_access_control_commands_02_test.c @@ -55,7 +55,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_access_control_commands_03_test.c b/test/regression/ftp_test/netx_ftp_access_control_commands_03_test.c index 65f58124..a1fbb403 100644 --- a/test/regression/ftp_test/netx_ftp_access_control_commands_03_test.c +++ b/test/regression/ftp_test/netx_ftp_access_control_commands_03_test.c @@ -55,7 +55,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_access_control_commands_04_test.c b/test/regression/ftp_test/netx_ftp_access_control_commands_04_test.c index 1e99d14e..1206e9c6 100644 --- a/test/regression/ftp_test/netx_ftp_access_control_commands_04_test.c +++ b/test/regression/ftp_test/netx_ftp_access_control_commands_04_test.c @@ -56,7 +56,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_basic_test.c b/test/regression/ftp_test/netx_ftp_basic_test.c index f1920cb7..e441e32b 100644 --- a/test/regression/ftp_test/netx_ftp_basic_test.c +++ b/test/regression/ftp_test/netx_ftp_basic_test.c @@ -50,7 +50,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_client_file_write_fail_test.c b/test/regression/ftp_test/netx_ftp_client_file_write_fail_test.c index 06926dfd..fc0f59d2 100644 --- a/test/regression/ftp_test/netx_ftp_client_file_write_fail_test.c +++ b/test/regression/ftp_test/netx_ftp_client_file_write_fail_test.c @@ -1,5 +1,5 @@ -/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo - relies on ThreadX, NetX, and FileX to show a simple file transfer from the client +/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo + relies on ThreadX, NetX, and FileX to show a simple file transfer from the client to the server and a directory listing get using passive file transfer (PASV). */ @@ -486,7 +486,7 @@ UINT status; } } while ((status == NX_SUCCESS) && (packets_sent < 3)); - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); diff --git a/test/regression/ftp_test/netx_ftp_client_invalid_username_password_length_test.c b/test/regression/ftp_test/netx_ftp_client_invalid_username_password_length_test.c index d87ac302..c8edbe53 100644 --- a/test/regression/ftp_test/netx_ftp_client_invalid_username_password_length_test.c +++ b/test/regression/ftp_test/netx_ftp_client_invalid_username_password_length_test.c @@ -51,7 +51,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_client_packet_leak_test.c b/test/regression/ftp_test/netx_ftp_client_packet_leak_test.c index 7ab16d94..7ace989d 100644 --- a/test/regression/ftp_test/netx_ftp_client_packet_leak_test.c +++ b/test/regression/ftp_test/netx_ftp_client_packet_leak_test.c @@ -50,7 +50,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_client_pasv_denied.c b/test/regression/ftp_test/netx_ftp_client_pasv_denied.c index 5c9dcd94..3e85478f 100644 --- a/test/regression/ftp_test/netx_ftp_client_pasv_denied.c +++ b/test/regression/ftp_test/netx_ftp_client_pasv_denied.c @@ -1,5 +1,5 @@ -/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo - relies on ThreadX, NetX, and FileX to show a simple directory listing get from the client +/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo + relies on ThreadX, NetX, and FileX to show a simple directory listing get from the client in passive mode transfer, except the server refuses the passive mode request. */ diff --git a/test/regression/ftp_test/netx_ftp_client_pasv_file_read_test.c b/test/regression/ftp_test/netx_ftp_client_pasv_file_read_test.c index 610e33a1..8c59e4c3 100644 --- a/test/regression/ftp_test/netx_ftp_client_pasv_file_read_test.c +++ b/test/regression/ftp_test/netx_ftp_client_pasv_file_read_test.c @@ -1,5 +1,5 @@ -/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo - relies on ThreadX, NetX, and FileX to show a simple file transfer from the server +/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo + relies on ThreadX, NetX, and FileX to show a simple file transfer from the server to client, and a directory listing get, in passive transfer mode (PASV). */ @@ -473,7 +473,7 @@ UINT status; error_counter++; } - /* This does not send a command. The data socket is closed and the client state set to CONNECTED. + /* This does not send a command. The data socket is closed and the client state set to CONNECTED. The server initiates closing the file. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); diff --git a/test/regression/ftp_test/netx_ftp_client_pasv_file_write_test.c b/test/regression/ftp_test/netx_ftp_client_pasv_file_write_test.c index b63f87f5..ac01728a 100644 --- a/test/regression/ftp_test/netx_ftp_client_pasv_file_write_test.c +++ b/test/regression/ftp_test/netx_ftp_client_pasv_file_write_test.c @@ -1,5 +1,5 @@ -/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo - relies on ThreadX, NetX, and FileX to show a simple file transfer from the client +/* This is a small demo of NetX FTP on the high-performance NetX TCP/IP stack. This demo + relies on ThreadX, NetX, and FileX to show a simple file transfer from the client to the server and a directory listing get using passive file transfer (PASV). */ @@ -475,7 +475,7 @@ UINT status; } } while ((status == NX_SUCCESS) && (packets_sent < 2)); - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); diff --git a/test/regression/ftp_test/netx_ftp_commands_characters_test.c b/test/regression/ftp_test/netx_ftp_commands_characters_test.c index 5f5a4ba7..239d88ad 100644 --- a/test/regression/ftp_test/netx_ftp_commands_characters_test.c +++ b/test/regression/ftp_test/netx_ftp_commands_characters_test.c @@ -56,7 +56,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_commands_replys_test.c b/test/regression/ftp_test/netx_ftp_commands_replys_test.c index 24ea994b..b89de6aa 100644 --- a/test/regression/ftp_test/netx_ftp_commands_replys_test.c +++ b/test/regression/ftp_test/netx_ftp_commands_replys_test.c @@ -56,7 +56,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_control_connection_test.c b/test/regression/ftp_test/netx_ftp_control_connection_test.c index 6253f82d..bd85166b 100644 --- a/test/regression/ftp_test/netx_ftp_control_connection_test.c +++ b/test/regression/ftp_test/netx_ftp_control_connection_test.c @@ -51,7 +51,7 @@ extern void _nx_ram_network_driver_512(NX_IP_DRIVER *driver_req_ptr); static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_data_connection_test.c b/test/regression/ftp_test/netx_ftp_data_connection_test.c index a4917d1b..fa185a09 100644 --- a/test/regression/ftp_test/netx_ftp_data_connection_test.c +++ b/test/regression/ftp_test/netx_ftp_data_connection_test.c @@ -1,4 +1,4 @@ -/* No.4 Files are transferred only via the data connection. +/* No.4 Files are transferred only via the data connection. rfc959, page 9, 3. DATA TRANSFER FUNCTIONS */ #include "tx_api.h" #include "fx_api.h" @@ -51,7 +51,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_disconnection_event_test.c b/test/regression/ftp_test/netx_ftp_disconnection_event_test.c index cf5d3cc9..bed680ac 100644 --- a/test/regression/ftp_test/netx_ftp_disconnection_event_test.c +++ b/test/regression/ftp_test/netx_ftp_disconnection_event_test.c @@ -49,7 +49,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_establish_data_connection_03_test.c b/test/regression/ftp_test/netx_ftp_establish_data_connection_03_test.c index cdc342c3..6f6fd579 100644 --- a/test/regression/ftp_test/netx_ftp_establish_data_connection_03_test.c +++ b/test/regression/ftp_test/netx_ftp_establish_data_connection_03_test.c @@ -56,7 +56,7 @@ static void my_ftp_packet_receive_client(NX_IP *ip_ptr, NX_PACKET *packet_pt static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_establish_data_connection_05_test.c b/test/regression/ftp_test/netx_ftp_establish_data_connection_05_test.c index 5a6564f3..7f6bc341 100644 --- a/test/regression/ftp_test/netx_ftp_establish_data_connection_05_test.c +++ b/test/regression/ftp_test/netx_ftp_establish_data_connection_05_test.c @@ -52,7 +52,7 @@ extern void _nx_ram_network_driver_512(NX_IP_DRIVER *driver_req_ptr); static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_establish_data_connection_06_test.c b/test/regression/ftp_test/netx_ftp_establish_data_connection_06_test.c index 9edffcdd..e93da785 100644 --- a/test/regression/ftp_test/netx_ftp_establish_data_connection_06_test.c +++ b/test/regression/ftp_test/netx_ftp_establish_data_connection_06_test.c @@ -52,7 +52,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_establish_data_connection_08_test.c b/test/regression/ftp_test/netx_ftp_establish_data_connection_08_test.c index 88afde56..202e104e 100644 --- a/test/regression/ftp_test/netx_ftp_establish_data_connection_08_test.c +++ b/test/regression/ftp_test/netx_ftp_establish_data_connection_08_test.c @@ -54,7 +54,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_ipv6_epsv_test.c b/test/regression/ftp_test/netx_ftp_ipv6_epsv_test.c index 42f0afaa..ce182d62 100644 --- a/test/regression/ftp_test/netx_ftp_ipv6_epsv_test.c +++ b/test/regression/ftp_test/netx_ftp_ipv6_epsv_test.c @@ -53,7 +53,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login6(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, NXD_ADDRESS *client_ipduo_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout6(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, NXD_ADDRESS *client_ipduo_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); @@ -214,7 +214,7 @@ UINT iface_index, address_index; error_counter++; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&client_ip, iface_index, &client_ip_address, 64, &address_index); @@ -278,7 +278,7 @@ UINT iface_index, address_index; nx_packet_release(my_packet); } - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); @@ -310,7 +310,7 @@ UINT iface_index, address_index; error_counter++; } - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); @@ -392,7 +392,7 @@ UINT iface_index, address_index; error_counter++; } - /* Set the host global IP address. We are assuming a 64 + /* Set the host global IP address. We are assuming a 64 bit prefix here but this can be any value (< 128). */ status = nxd_ipv6_address_set(&server_ip, iface_index, &server_ip_address, 64, &address_index); diff --git a/test/regression/ftp_test/netx_ftp_pasv_port_test.c b/test/regression/ftp_test/netx_ftp_pasv_port_test.c index e576892e..730e3f69 100644 --- a/test/regression/ftp_test/netx_ftp_pasv_port_test.c +++ b/test/regression/ftp_test/netx_ftp_pasv_port_test.c @@ -49,7 +49,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_pasv_stor_test.c b/test/regression/ftp_test/netx_ftp_pasv_stor_test.c index f4b685a0..8b969563 100644 --- a/test/regression/ftp_test/netx_ftp_pasv_stor_test.c +++ b/test/regression/ftp_test/netx_ftp_pasv_stor_test.c @@ -54,7 +54,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); @@ -378,7 +378,7 @@ UINT data_port; error_counter++; } - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); diff --git a/test/regression/ftp_test/netx_ftp_pasv_twice_test.c b/test/regression/ftp_test/netx_ftp_pasv_twice_test.c index d75fd1fc..8a4c4384 100644 --- a/test/regression/ftp_test/netx_ftp_pasv_twice_test.c +++ b/test/regression/ftp_test/netx_ftp_pasv_twice_test.c @@ -49,7 +49,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); @@ -233,7 +233,7 @@ UINT status; nx_packet_release(my_packet); } - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); @@ -265,7 +265,7 @@ UINT status; error_counter++; } - /* This does not send a command. The data port is closed and the client state set to CONNECTED. + /* This does not send a command. The data port is closed and the client state set to CONNECTED. The server initiates closing the data socket connection. */ status = nx_ftp_client_file_close(&ftp_client, NX_IP_PERIODIC_RATE); diff --git a/test/regression/ftp_test/netx_ftp_rst_test.c b/test/regression/ftp_test/netx_ftp_rst_test.c index 69368d2b..e53af215 100644 --- a/test/regression/ftp_test/netx_ftp_rst_test.c +++ b/test/regression/ftp_test/netx_ftp_rst_test.c @@ -63,7 +63,7 @@ extern void _fx_ram_driver(FX_MEDIA *media_ptr); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_server_abnormal_packet_test.c b/test/regression/ftp_test/netx_ftp_server_abnormal_packet_test.c index 4bd5f0fb..997d00c6 100644 --- a/test/regression/ftp_test/netx_ftp_server_abnormal_packet_test.c +++ b/test/regression/ftp_test/netx_ftp_server_abnormal_packet_test.c @@ -51,7 +51,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_server_dangling_pointer_test.c b/test/regression/ftp_test/netx_ftp_server_dangling_pointer_test.c index 1039c4ba..6932103d 100644 --- a/test/regression/ftp_test/netx_ftp_server_dangling_pointer_test.c +++ b/test/regression/ftp_test/netx_ftp_server_dangling_pointer_test.c @@ -50,7 +50,7 @@ static void thread_server_entry(ULONG thread_input); static UINT send_data(CHAR *data); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_server_invalid_month_crash_test.c b/test/regression/ftp_test/netx_ftp_server_invalid_month_crash_test.c index c6deab96..29dfa7b5 100644 --- a/test/regression/ftp_test/netx_ftp_server_invalid_month_crash_test.c +++ b/test/regression/ftp_test/netx_ftp_server_invalid_month_crash_test.c @@ -53,7 +53,7 @@ static UINT ftp_client_directory_listing_get(NX_FTP_CLIENT *ftp_client_ptr, C NX_PACKET **packet_ptr, ULONG wait_option); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT ftp_server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT ftp_server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); @@ -423,7 +423,7 @@ UINT status; UINT index; UINT ipduo_size; - /* EPRT command: EPRT |2|1080::8:800:200C:417A|5282| + /* EPRT command: EPRT |2|1080::8:800:200C:417A|5282| RFC2428, Section2, Page3. */ buffer_ptr[0] = 'E'; @@ -676,7 +676,7 @@ UINT status; /* We have a packet, setup pointer to the buffer area. */ buffer_ptr = new_packet_ptr -> nx_packet_prepend_ptr; - /* Check for 1xx message, signaling the data port was connected properly and ready for + /* Check for 1xx message, signaling the data port was connected properly and ready for transfer. */ if (buffer_ptr[0] != '1') { diff --git a/test/regression/ftp_test/netx_ftp_server_list_command_test.c b/test/regression/ftp_test/netx_ftp_server_list_command_test.c index 75f2d866..f17e5850 100644 --- a/test/regression/ftp_test/netx_ftp_server_list_command_test.c +++ b/test/regression/ftp_test/netx_ftp_server_list_command_test.c @@ -52,7 +52,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); @@ -478,7 +478,7 @@ UINT status; /* We have a packet, setup pointer to the buffer area. */ buffer_ptr = new_packet_ptr -> nx_packet_prepend_ptr; - /* Check for 1xx message, signaling the data port was connected properly and ready for + /* Check for 1xx message, signaling the data port was connected properly and ready for transfer. */ if ((new_packet_ptr -> nx_packet_length < 3) || (buffer_ptr[0] != '1')) { diff --git a/test/regression/ftp_test/netx_ftp_server_mss_too_small_test.c b/test/regression/ftp_test/netx_ftp_server_mss_too_small_test.c index 81c4a495..bd981af1 100644 --- a/test/regression/ftp_test/netx_ftp_server_mss_too_small_test.c +++ b/test/regression/ftp_test/netx_ftp_server_mss_too_small_test.c @@ -56,7 +56,7 @@ static UINT send_data(CHAR *data); static VOID tcp_listen_callback(NX_TCP_SOCKET *socket_ptr, UINT port); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_service_commands_RETR_STOR_test.c b/test/regression/ftp_test/netx_ftp_service_commands_RETR_STOR_test.c index 63472ff9..926ae5fd 100644 --- a/test/regression/ftp_test/netx_ftp_service_commands_RETR_STOR_test.c +++ b/test/regression/ftp_test/netx_ftp_service_commands_RETR_STOR_test.c @@ -56,7 +56,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_service_commands_file_write_test.c b/test/regression/ftp_test/netx_ftp_service_commands_file_write_test.c index 00c17c2b..ace6e026 100644 --- a/test/regression/ftp_test/netx_ftp_service_commands_file_write_test.c +++ b/test/regression/ftp_test/netx_ftp_service_commands_file_write_test.c @@ -2,8 +2,8 @@ back to the FTP Client from the Server. The first file is small enough there is enough memory in the FileX ram disk space so it should succeed. The second file is large enough there is not enough ram disk space available so it should fail. Further, the test - checks that there are two STOR commands received by the FTP server as part of the - requirements for successful outcome. + checks that there are two STOR commands received by the FTP server as part of the + requirements for successful outcome. Note that the ram_disk_memory is much smaller than the typical FileX demo (only 3200 bytes) and the number of sectors is reduced from 256 to 25. */ @@ -76,7 +76,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_service_commands_nlist_test.c b/test/regression/ftp_test/netx_ftp_service_commands_nlist_test.c index 429694ba..d955a333 100644 --- a/test/regression/ftp_test/netx_ftp_service_commands_nlist_test.c +++ b/test/regression/ftp_test/netx_ftp_service_commands_nlist_test.c @@ -56,7 +56,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_service_commands_rename_test.c b/test/regression/ftp_test/netx_ftp_service_commands_rename_test.c index b025877c..6b02d5e4 100644 --- a/test/regression/ftp_test/netx_ftp_service_commands_rename_test.c +++ b/test/regression/ftp_test/netx_ftp_service_commands_rename_test.c @@ -55,7 +55,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_two_listen_test.c b/test/regression/ftp_test/netx_ftp_two_listen_test.c index 9c3ce4df..25614d0b 100644 --- a/test/regression/ftp_test/netx_ftp_two_listen_test.c +++ b/test/regression/ftp_test/netx_ftp_two_listen_test.c @@ -59,7 +59,7 @@ extern void _fx_ram_driver(FX_MEDIA *media_ptr); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/ftp_test/netx_ftp_user_data_type_test.c b/test/regression/ftp_test/netx_ftp_user_data_type_test.c index 7eb90173..dea1e623 100644 --- a/test/regression/ftp_test/netx_ftp_user_data_type_test.c +++ b/test/regression/ftp_test/netx_ftp_user_data_type_test.c @@ -53,7 +53,7 @@ static void client_thread_entry(ULONG thread_input); static void thread_server_entry(ULONG thread_input); static void my_ftp_packet_receive_server(NX_IP *ip_ptr, NX_PACKET *packet_ptr); -/* Define server login/logout functions. These are stubs for functions that would +/* Define server login/logout functions. These are stubs for functions that would validate a client login request. */ static UINT server_login(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); static UINT server_logout(struct NX_FTP_SERVER_STRUCT *ftp_server_ptr, ULONG client_ip_address, UINT client_port, CHAR *name, CHAR *password, CHAR *extra_info); diff --git a/test/regression/http_test/netx_http_basic_authenticate_test.c b/test/regression/http_test/netx_http_basic_authenticate_test.c index 3e9bc8f7..4cb9253e 100644 --- a/test/regression/http_test/netx_http_basic_authenticate_test.c +++ b/test/regression/http_test/netx_http_basic_authenticate_test.c @@ -66,7 +66,7 @@ static UINT authentication_check(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -80,7 +80,7 @@ static UINT authentication_check_extended(NX_HTTP_SERVER *server_ptr, UINT requ CHAR **password, UINT *password_length, CHAR **realm, UINT *realm_length) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -207,7 +207,7 @@ void thread_client_entry(ULONG thread_input) UINT status; NX_PACKET *send_packet; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_basic_test.c b/test/regression/http_test/netx_http_basic_test.c index 551f10a6..c2de35a0 100644 --- a/test/regression/http_test/netx_http_basic_test.c +++ b/test/regression/http_test/netx_http_basic_test.c @@ -58,7 +58,7 @@ static UINT authentication_check(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -180,7 +180,7 @@ UINT status; NX_PACKET *send_packet; NX_PACKET *recv_packet; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_client_change_connect_port_test.c b/test/regression/http_test/netx_http_client_change_connect_port_test.c index 9d989e97..0b9d4877 100644 --- a/test/regression/http_test/netx_http_client_change_connect_port_test.c +++ b/test/regression/http_test/netx_http_client_change_connect_port_test.c @@ -324,7 +324,7 @@ NX_PACKET *send_packet; /* wait for the server to set up */ tx_thread_sleep(20); - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, @@ -369,11 +369,11 @@ NX_PACKET *send_packet; /* Upload the 1st file to the server domain. */ #ifdef __PRODUCT_NETXDUO__ - status = nxd_http_client_put_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", + status = nxd_http_client_put_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", "name", "password", 103, 3 * NX_IP_PERIODIC_RATE); #else - status = nx_http_client_put_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", + status = nx_http_client_put_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", "name", "password", 103, 3 * NX_IP_PERIODIC_RATE); #endif @@ -432,11 +432,11 @@ NX_PACKET *send_packet; /* Send the 1st GET request to the server. */ #ifdef __PRODUCT_NETXDUO__ - status = nxd_http_client_get_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", + status = nxd_http_client_get_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", NX_NULL, 0, "name", "password", 100); #else - status = nx_http_client_get_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", + status = nx_http_client_get_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", NX_NULL, 0, "name", "password", 100); #endif /* USE_DUO */ diff --git a/test/regression/http_test/netx_http_delete_basic_test.c b/test/regression/http_test/netx_http_delete_basic_test.c index e905e1d2..114446fd 100644 --- a/test/regression/http_test/netx_http_delete_basic_test.c +++ b/test/regression/http_test/netx_http_delete_basic_test.c @@ -193,7 +193,7 @@ NX_PACKET *recv_packet; NX_PACKET *my_packet; CHAR *buffer_ptr; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_digest_authenticate_test.c b/test/regression/http_test/netx_http_digest_authenticate_test.c index ea1238c7..9dc6a6ee 100644 --- a/test/regression/http_test/netx_http_digest_authenticate_test.c +++ b/test/regression/http_test/netx_http_digest_authenticate_test.c @@ -1,4 +1,4 @@ -/* This case tests digest authentication. +/* This case tests digest authentication. HA1 = MD5("name:NetX Duo HTTP demo:password") = 01bb2595c9221423951ee86f3573b465 HA2 = MD5("GET:/index.htm") @@ -478,7 +478,7 @@ static UINT authentication_check(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -492,7 +492,7 @@ static UINT authentication_check_extended(NX_HTTP_SERVER *server_ptr, UINT requ CHAR **password, UINT *password_length, CHAR **realm, UINT *realm_length) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c b/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c index 6556c0e0..0532c5bb 100644 --- a/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c +++ b/test/regression/http_test/netx_http_digest_authenticate_timeout_test.c @@ -1,4 +1,4 @@ -/* This case tests digest authentication. +/* This case tests digest authentication. HA1 = MD5("name:NetX Duo HTTP demo:Placeholderpassword") = 01bb2595c9221423951ee86f3573b465 HA2 = MD5("GET:/index.htm") @@ -498,7 +498,7 @@ static UINT authentication_check(NX_HTTP_SERVER *server_ptr, UINT request_type, CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "Placeholderpassword"; diff --git a/test/regression/http_test/netx_http_get_content_length_test.c b/test/regression/http_test/netx_http_get_content_length_test.c index 0a5ffd82..c00653a8 100644 --- a/test/regression/http_test/netx_http_get_content_length_test.c +++ b/test/regression/http_test/netx_http_get_content_length_test.c @@ -294,7 +294,7 @@ UINT i; /* wait for the server to set up */ tx_thread_sleep(50); - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c b/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c index fde0e285..1cbbf873 100644 --- a/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c +++ b/test/regression/http_test/netx_http_get_contentlength_packetleak_test.c @@ -304,7 +304,7 @@ UINT previously_available = 0; /* wait for the server to set up */ tx_thread_sleep(50); - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_get_put_referred_URI_test.c b/test/regression/http_test/netx_http_get_put_referred_URI_test.c index 743e10ab..d2dec993 100644 --- a/test/regression/http_test/netx_http_get_put_referred_URI_test.c +++ b/test/regression/http_test/netx_http_get_put_referred_URI_test.c @@ -325,7 +325,7 @@ NX_PACKET *send_packet; /* wait for the server to set up */ tx_thread_sleep(20); - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, @@ -361,11 +361,11 @@ NX_PACKET *send_packet; /* Upload the 1st file to the server domain. */ #ifdef __PRODUCT_NETXDUO__ - status = nxd_http_client_put_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", + status = nxd_http_client_put_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", "name", "password", 103, 3 * NX_IP_PERIODIC_RATE); #else - status = nx_http_client_put_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", + status = nx_http_client_put_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", "name", "password", 103, 3 * NX_IP_PERIODIC_RATE); #endif @@ -408,11 +408,11 @@ NX_PACKET *send_packet; /* Send the 1st GET request to the server. */ #ifdef __PRODUCT_NETXDUO__ - status = nxd_http_client_get_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", + status = nxd_http_client_get_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", NX_NULL, 0, "name", "password", 100); #else - status = nx_http_client_get_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", + status = nx_http_client_get_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", NX_NULL, 0, "name", "password", 100); #endif /* USE_DUO */ diff --git a/test/regression/http_test/netx_http_head_basic_test.c b/test/regression/http_test/netx_http_head_basic_test.c index ea79310f..ddfa5194 100644 --- a/test/regression/http_test/netx_http_head_basic_test.c +++ b/test/regression/http_test/netx_http_head_basic_test.c @@ -193,7 +193,7 @@ NX_PACKET *recv_packet; NX_PACKET *my_packet; CHAR *buffer_ptr; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_if_modified_since_test.c b/test/regression/http_test/netx_http_if_modified_since_test.c index 8cd6e29d..31cae7fc 100644 --- a/test/regression/http_test/netx_http_if_modified_since_test.c +++ b/test/regression/http_test/netx_http_if_modified_since_test.c @@ -1,10 +1,10 @@ -/* This case tests filed If-Modified-field. - * if the requested variant has not been modified since the time specified in this field, - * an entity will not be returned from the server; instead, a 304 (not modified) response +/* This case tests filed If-Modified-field. + * if the requested variant has not been modified since the time specified in this field, + * an entity will not be returned from the server; instead, a 304 (not modified) response * will be returned without any message-body. * - * In this case, client get the index.htm with If-Modified-Since = 20130101, and index.htm is - * modified on 2013...., So server should send 304. + * In this case, client get the index.htm with If-Modified-Since = 20130101, and index.htm is + * modified on 2013...., So server should send 304. * */ #include "tx_api.h" @@ -226,7 +226,7 @@ NX_PACKET *recv_packet; NX_PACKET *my_packet; CHAR *buffer_ptr; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_post_basic_test.c b/test/regression/http_test/netx_http_post_basic_test.c index 5b5cb622..9d6084e8 100644 --- a/test/regression/http_test/netx_http_post_basic_test.c +++ b/test/regression/http_test/netx_http_post_basic_test.c @@ -197,7 +197,7 @@ NX_PACKET *recv_packet; NX_PACKET *my_packet; CHAR *buffer_ptr; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/http_test/netx_http_request_in_multiple_packets_test.c b/test/regression/http_test/netx_http_request_in_multiple_packets_test.c index 32926727..e39b56c6 100644 --- a/test/regression/http_test/netx_http_request_in_multiple_packets_test.c +++ b/test/regression/http_test/netx_http_request_in_multiple_packets_test.c @@ -199,7 +199,7 @@ NX_PACKET *recv_packet; /* wait for the server to set up */ tx_thread_sleep(NX_IP_PERIODIC_RATE); - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, @@ -235,11 +235,11 @@ NX_PACKET *recv_packet; /* Upload the 1st file to the server domain. */ #ifdef __PRODUCT_NETXDUO__ - status = nxd_http_client_put_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", + status = nxd_http_client_put_start(&my_client, &server_ip_address, "http://www.abc.com/client_test.htm", "name", "password", 103, 3 * NX_IP_PERIODIC_RATE); #else - status = nx_http_client_put_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", + status = nx_http_client_put_start(&my_client, server_ip_address, "http://www.abc.com/client_test.htm", "name", "password", 103, 3 * NX_IP_PERIODIC_RATE); #endif diff --git a/test/regression/http_test/netx_http_status_404_test.c b/test/regression/http_test/netx_http_status_404_test.c index 2a8a434d..30971e0a 100644 --- a/test/regression/http_test/netx_http_status_404_test.c +++ b/test/regression/http_test/netx_http_status_404_test.c @@ -22,8 +22,8 @@ extern void _fx_ram_driver(FX_MEDIA *media_ptr); extern void _nx_ram_network_driver_1024(NX_IP_DRIVER *driver_req_ptr); -/* This is a HTTP get packet captured by wireshark. - * curl 192.168.0.123/aaa.index +/* This is a HTTP get packet captured by wireshark. + * curl 192.168.0.123/aaa.index * */ static char pkt[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x57, 0xb8, 0xca, /* .."3DW.. */ @@ -199,7 +199,7 @@ CHAR *buffer_ptr; NX_PACKET *recv_packet; NX_PACKET *send_packet; - /* Format the RAM disk - the memory for the RAM disk was setup in + /* Format the RAM disk - the memory for the RAM disk was setup in tx_application_define above. This must be set up before the client(s) start sending requests. */ status = fx_media_format(&ram_disk, diff --git a/test/regression/interoperability_test/nx_pcap_network_driver.c b/test/regression/interoperability_test/nx_pcap_network_driver.c index 84e28d36..de16d7a3 100644 --- a/test/regression/interoperability_test/nx_pcap_network_driver.c +++ b/test/regression/interoperability_test/nx_pcap_network_driver.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -45,9 +45,9 @@ #define NX_MAX_PACKET_SIZE 1536 /* Define Ethernet address format. This is prepended to the incoming IP - and ARP/RARP messages. The frame beginning is 14 bytes, but for speed + and ARP/RARP messages. The frame beginning is 14 bytes, but for speed purposes, we are going to assume there are 16 bytes free in front of the - prepend pointer and that the prepend pointer is 32-bit aligned. + prepend pointer and that the prepend pointer is 32-bit aligned. Byte Offset Size Meaning @@ -357,7 +357,7 @@ UINT old_threshold = 0; _nx_pcap_send_packet(packet_ptr); - /* Remove the Ethernet header. In real hardware environments, this is typically + /* Remove the Ethernet header. In real hardware environments, this is typically done after a transmit complete interrupt. */ packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; @@ -396,7 +396,7 @@ UINT interface_index; interface_index = interface_ptr -> nx_interface_index; #endif - /* Process according to the driver request type in the IP control + /* Process according to the driver request type in the IP control block. */ switch (driver_req_ptr -> nx_ip_driver_command) { @@ -412,7 +412,7 @@ UINT interface_index; /* Device driver shall initialize the Ethernet Controller here. */ - /* Once the Ethernet controller is initialized, the driver needs to + /* Once the Ethernet controller is initialized, the driver needs to configure the NetX Interface Control block, as outlined below. */ #ifdef __PRODUCT_NETXDUO__ @@ -421,7 +421,7 @@ UINT interface_index; nx_ip_interface_mtu_set(ip_ptr, interface_index, (NX_LINK_MTU - NX_ETHERNET_SIZE)); /* Set the physical address (MAC address) of this IP instance. */ - /* For this pcap driver, the MAC address is constructed by + /* For this pcap driver, the MAC address is constructed by incrementing a base lsw value, to simulate multiple nodes hanging on the ethernet. */ nx_ip_interface_physical_address_set(ip_ptr, interface_index, @@ -450,8 +450,8 @@ UINT interface_index; case NX_LINK_ENABLE: { - /* Process driver link enable. An Ethernet driver shall enable the - transmit and reception logic. Once the IP stack issues the + /* Process driver link enable. An Ethernet driver shall enable the + transmit and reception logic. Once the IP stack issues the LINK_ENABLE command, the stack may start transmitting IP packets. */ @@ -487,13 +487,13 @@ UINT interface_index; #endif { - /* - The IP stack sends down a data packet for transmission. - The device driver needs to prepend a MAC header, and fill in the + /* + The IP stack sends down a data packet for transmission. + The device driver needs to prepend a MAC header, and fill in the Ethernet frame type (assuming Ethernet protocol for network transmission) based on the type of packet being transmitted. - The following sequence illustrates this process. + The following sequence illustrates this process. */ /* Place the ethernet frame at the front of the packet. */ @@ -552,7 +552,7 @@ UINT interface_index; /* At this point, the packet is a complete Ethernet frame, ready to be transmitted. The driver shall call the actual Ethernet transmit routine and put the packet - on the wire. + on the wire. In this example, the pcap network transmit routine is called. */ _nx_pcap_network_driver_output(packet_ptr); @@ -562,11 +562,11 @@ UINT interface_index; case NX_LINK_MULTICAST_JOIN: { - /* The IP layer issues this command to join a multicast group. Note that - multicast operation is required for IPv6. + /* The IP layer issues this command to join a multicast group. Note that + multicast operation is required for IPv6. On a typically Ethernet controller, the driver computes a hash value based - on MAC address, and programs the hash table. + on MAC address, and programs the hash table. It is likely the driver also needs to maintain an internal MAC address table. Later if a multicast address is removed, the driver needs @@ -601,20 +601,20 @@ UINT interface_index; case NX_LINK_DEFERRED_PROCESSING: { - /* Driver defined deferred processing. This is typically used to defer interrupt - processing to the thread level. + /* Driver defined deferred processing. This is typically used to defer interrupt + processing to the thread level. A typical use case of this command is: On receiving an Ethernet frame, the RX ISR does not process the received frame, but instead records such an event in its internal data structure, and issues - a notification to the IP stack (the driver sends the notification to the IP - helping thread by calling "_nx_ip_driver_deferred_processing()". When the IP stack - gets a notification of a pending driver deferred process, it calls the - driver with the NX_LINK_DEFERRED_PROCESSING command. The driver shall complete - the pending receive process. + a notification to the IP stack (the driver sends the notification to the IP + helping thread by calling "_nx_ip_driver_deferred_processing()". When the IP stack + gets a notification of a pending driver deferred process, it calls the + driver with the NX_LINK_DEFERRED_PROCESSING command. The driver shall complete + the pending receive process. */ - /* The pcap driver doesn't require a deferred process so it breaks out of + /* The pcap driver doesn't require a deferred process so it breaks out of the switch case. */ diff --git a/test/regression/interoperability_test/nx_secure_test/demo_tls_test_server.c b/test/regression/interoperability_test/nx_secure_test/demo_tls_test_server.c index 7d1362bb..c8d4b869 100644 --- a/test/regression/interoperability_test/nx_secure_test/demo_tls_test_server.c +++ b/test/regression/interoperability_test/nx_secure_test/demo_tls_test_server.c @@ -156,7 +156,7 @@ void server_thread_entry(ULONG thread_input) status = nx_secure_tls_session_packet_buffer_set(&tls_session, tls_packet_buffer, sizeof(tls_packet_buffer)); show_error_message_if_fail( NX_SUCCESS == status); - // Initialize our certificates + // Initialize our certificates nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_certificate, remote_cert_buffer, sizeof(remote_cert_buffer)); nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_issuer, remote_issuer_buffer, sizeof(remote_issuer_buffer)); diff --git a/test/regression/interoperability_test/nx_secure_test/nx_secure_1_0_1_1_echo_server_entry.c b/test/regression/interoperability_test/nx_secure_test/nx_secure_1_0_1_1_echo_server_entry.c index 99c5fa6a..f3067903 100644 --- a/test/regression/interoperability_test/nx_secure_test/nx_secure_1_0_1_1_echo_server_entry.c +++ b/test/regression/interoperability_test/nx_secure_test/nx_secure_1_0_1_1_echo_server_entry.c @@ -196,7 +196,7 @@ void server_thread_entry(ULONG thread_input) status = nx_secure_tls_session_packet_buffer_set(&tls_session, tls_packet_buffer, sizeof(tls_packet_buffer)); show_error_message_if_fail( NX_SUCCESS == status); - // Initialize our certificates + // Initialize our certificates nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_certificate, remote_cert_buffer, sizeof(remote_cert_buffer)); nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_issuer, remote_issuer_buffer, sizeof(remote_issuer_buffer)); diff --git a/test/regression/interoperability_test/nx_secure_test/nx_secure_client_certificate_verify_test_server_entry.c b/test/regression/interoperability_test/nx_secure_test/nx_secure_client_certificate_verify_test_server_entry.c index 97259b5c..530a37ba 100644 --- a/test/regression/interoperability_test/nx_secure_test/nx_secure_client_certificate_verify_test_server_entry.c +++ b/test/regression/interoperability_test/nx_secure_test/nx_secure_client_certificate_verify_test_server_entry.c @@ -135,7 +135,7 @@ void server_thread_entry(ULONG thread_input) /* Enable Client Certificate Verification. */ nx_secure_tls_session_client_verify_enable(&tls_session); - // Initialize our certificates + // Initialize our certificates nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_certificate, remote_cert_buffer, sizeof(remote_cert_buffer)); nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_issuer, remote_issuer_buffer, sizeof(remote_issuer_buffer)); diff --git a/test/regression/interoperability_test/nx_secure_test/nx_secure_echo_server_entry.c b/test/regression/interoperability_test/nx_secure_test/nx_secure_echo_server_entry.c index 02728690..fe3fa69e 100644 --- a/test/regression/interoperability_test/nx_secure_test/nx_secure_echo_server_entry.c +++ b/test/regression/interoperability_test/nx_secure_test/nx_secure_echo_server_entry.c @@ -134,7 +134,7 @@ void server_thread_entry(ULONG thread_input) status = nx_secure_tls_session_packet_buffer_set(&tls_session, tls_packet_buffer, sizeof(tls_packet_buffer)); show_error_message_if_fail( NX_SUCCESS == status); - // Initialize our certificates + // Initialize our certificates nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_certificate, remote_cert_buffer, sizeof(remote_cert_buffer)); nx_secure_tls_remote_certificate_allocate(&tls_session, &remote_issuer, remote_issuer_buffer, sizeof(remote_issuer_buffer)); diff --git a/test/regression/mdns_test/netx_mdns_bad_packet_test.c b/test/regression/mdns_test/netx_mdns_bad_packet_test.c index f199ca7b..c7f2e1a6 100644 --- a/test/regression/mdns_test/netx_mdns_bad_packet_test.c +++ b/test/regression/mdns_test/netx_mdns_bad_packet_test.c @@ -81,7 +81,7 @@ static unsigned char bad_packet2[] = { 0x00 /* . */ }; -/* Bad packet 3: pointer points to another pointer that +/* Bad packet 3: pointer points to another pointer that points back to the first pointer. */ static unsigned char bad_packet3[] = { 0x01, 0x00, 0x5e, 0x00, 0x00, 0xfb, 0x00, 0x1e, /* ..^..... */ diff --git a/test/regression/mdns_test/netx_mdns_ipv6_string_test.c b/test/regression/mdns_test/netx_mdns_ipv6_string_test.c index f5f7db3c..7888df74 100644 --- a/test/regression/mdns_test/netx_mdns_ipv6_string_test.c +++ b/test/regression/mdns_test/netx_mdns_ipv6_string_test.c @@ -219,7 +219,7 @@ UINT dns_sd_ptr_string_len = 0; tx_thread_sleep(5 * NX_IP_PERIODIC_RATE); /* Inject two packet to store the response in peer cache. - If the IPv6 address is added into cache as string, + If the IPv6 address is added into cache as string, The logic for deleting string in _nx_mdns_cache_delete_string() is incorrect. For example, Step1. Add ipv6_address_string (0x000080fe, ...). into cache. diff --git a/test/regression/mdns_test/netx_mdns_responder_cooperating_test.c b/test/regression/mdns_test/netx_mdns_responder_cooperating_test.c index e7288df0..5e4161d2 100644 --- a/test/regression/mdns_test/netx_mdns_responder_cooperating_test.c +++ b/test/regression/mdns_test/netx_mdns_responder_cooperating_test.c @@ -28,7 +28,7 @@ static UCHAR mdns_query; static UCHAR mdns_response; static UCHAR mdns_stack[DEMO_STACK_SIZE]; -/* A DNS-SD response +/* A DNS-SD response rdata: "_http._tcp.local" TTL: 4500 */ /* Frame (112 bytes) */ diff --git a/test/regression/mdns_test/netx_mdns_source_port_test.c b/test/regression/mdns_test/netx_mdns_source_port_test.c index f505cb0c..05ae6454 100644 --- a/test/regression/mdns_test/netx_mdns_source_port_test.c +++ b/test/regression/mdns_test/netx_mdns_source_port_test.c @@ -199,7 +199,7 @@ NX_MDNS_SERVICE service; error_counter++; /* Sleep one second and check whether RR is stored. */ - /* Multicast DNS implementations MUST silently ignore any + /* Multicast DNS implementations MUST silently ignore any Multicast DNS responses they receive where the source UDP port is not 5353. */ tx_thread_sleep(100); diff --git a/test/regression/mqtt_test/netx_mqtt_api_test.c b/test/regression/mqtt_test/netx_mqtt_api_test.c index a1206e74..3bff14c3 100644 --- a/test/regression/mqtt_test/netx_mqtt_api_test.c +++ b/test/regression/mqtt_test/netx_mqtt_api_test.c @@ -171,7 +171,7 @@ UCHAR message[4]; if(status != NXD_MQTT_INVALID_PARAMETER) SET_ERROR_COUNTER(&error_counter, __FILE__, __LINE__); - /* MQTT 5.10sp4: The following test was removed because MQTT shall + /* MQTT 5.10sp4: The following test was removed because MQTT shall allow user name being set and password not being set. */ #if 0 status = nxd_mqtt_client_login_set(&my_client, "username", 8, NX_NULL, 0); diff --git a/test/regression/mqtt_test/netx_mqtt_testcontrol.c b/test/regression/mqtt_test/netx_mqtt_testcontrol.c index a483b5db..cac87a53 100644 --- a/test/regression/mqtt_test/netx_mqtt_testcontrol.c +++ b/test/regression/mqtt_test/netx_mqtt_testcontrol.c @@ -212,7 +212,7 @@ void tx_application_define(void *first_unused_memory) test_free_memory_ptr = pointer; } -/* Define the test control thread. This thread is responsible for dispatching all of the +/* Define the test control thread. This thread is responsible for dispatching all of the tests in the ThreadX test suite. */ void test_control_thread_entry(ULONG thread_input) diff --git a/test/regression/mqtt_test/netx_mqtt_websocket_block_test.c b/test/regression/mqtt_test/netx_mqtt_websocket_block_test.c index bcc445f1..70aa5ef7 100644 --- a/test/regression/mqtt_test/netx_mqtt_websocket_block_test.c +++ b/test/regression/mqtt_test/netx_mqtt_websocket_block_test.c @@ -372,7 +372,7 @@ UCHAR digest[TEST_CONNECT_DIGEST_SIZE]; while (((buffer_ptr + 1) < packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != 0)) { - /* Check for the token. This signals a blank line, which also + /* Check for the token. This signals a blank line, which also specifies the start of the content. */ if ((*buffer_ptr == '\r') && (*(buffer_ptr + 1) == '\n')) diff --git a/test/regression/mqtt_test/netx_mqtt_websocket_non_block_test.c b/test/regression/mqtt_test/netx_mqtt_websocket_non_block_test.c index 300cfd96..351d1cf0 100644 --- a/test/regression/mqtt_test/netx_mqtt_websocket_non_block_test.c +++ b/test/regression/mqtt_test/netx_mqtt_websocket_non_block_test.c @@ -384,7 +384,7 @@ UCHAR digest[TEST_CONNECT_DIGEST_SIZE]; while (((buffer_ptr + 1) < packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != 0)) { - /* Check for the token. This signals a blank line, which also + /* Check for the token. This signals a blank line, which also specifies the start of the content. */ if ((*buffer_ptr == '\r') && (*(buffer_ptr + 1) == '\n')) diff --git a/test/regression/nat_test/netx_nat_entry_removed_after_timeout_test.c b/test/regression/nat_test/netx_nat_entry_removed_after_timeout_test.c index 9283f35e..849e9e1c 100644 --- a/test/regression/nat_test/netx_nat_entry_removed_after_timeout_test.c +++ b/test/regression/nat_test/netx_nat_entry_removed_after_timeout_test.c @@ -3,9 +3,9 @@ the NX_NAT_NON_TCP_SESSION_TIMEOUT and NX_NAT_TCP_SESSION_TIMEOUT expirations. This test verifies the entries are removed when the table checks for expired entries. - - Note that NX_NAT_ENABLE_REPLACEMENT is not necessary for this test. - + + Note that NX_NAT_ENABLE_REPLACEMENT is not necessary for this test. + */ #include "tx_api.h" @@ -78,7 +78,7 @@ static UINT found_entries = 0; static UINT removed_entries = 0; static UINT time_lapse = 0; -/* This is based on the NAT Non TCP Session default timeout of 120 ticks +/* This is based on the NAT Non TCP Session default timeout of 120 ticks and TCP Session timeout of 300 ticks for regression testing. */ #define TIME_SLICE 25 @@ -411,7 +411,7 @@ NX_NAT_TRANSLATION_ENTRY *entry_ptr; search_entry.peer_port = CONNECT_PEER_PORT+1; } - /* Check if the first UDP entry has expired. Ignore if it + /* Check if the first UDP entry has expired. Ignore if it has already expired and been removed. */ else if ((time_lapse > NX_NAT_NON_TCP_SESSION_TIMEOUT) && (found_entries == 0)) diff --git a/test/regression/nat_test/netx_nat_icmp_test.c b/test/regression/nat_test/netx_nat_icmp_test.c index 243c7219..080891e8 100644 --- a/test/regression/nat_test/netx_nat_icmp_test.c +++ b/test/regression/nat_test/netx_nat_icmp_test.c @@ -60,7 +60,7 @@ NX_PACKET_POOL nat_packet_pool; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_icmp; diff --git a/test/regression/nat_test/netx_nat_invalid_header_test.c b/test/regression/nat_test/netx_nat_invalid_header_test.c index 0b59d57e..b43eb619 100644 --- a/test/regression/nat_test/netx_nat_invalid_header_test.c +++ b/test/regression/nat_test/netx_nat_invalid_header_test.c @@ -62,7 +62,7 @@ NX_UDP_SOCKET external_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_udp; diff --git a/test/regression/nat_test/netx_nat_tcp_fragment_test.c b/test/regression/nat_test/netx_nat_tcp_fragment_test.c index 4f60019d..efd15f41 100644 --- a/test/regression/nat_test/netx_nat_tcp_fragment_test.c +++ b/test/regression/nat_test/netx_nat_tcp_fragment_test.c @@ -64,7 +64,7 @@ static UCHAR buffer[1024]; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp; diff --git a/test/regression/nat_test/netx_nat_tcp_port_test.c b/test/regression/nat_test/netx_nat_tcp_port_test.c index 186c7cdb..649d6a12 100644 --- a/test/regression/nat_test/netx_nat_tcp_port_test.c +++ b/test/regression/nat_test/netx_nat_tcp_port_test.c @@ -63,7 +63,7 @@ NX_TCP_SOCKET external_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp1; NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp2; diff --git a/test/regression/nat_test/netx_nat_tcp_port_test2.c b/test/regression/nat_test/netx_nat_tcp_port_test2.c index d1abaa7c..279a9027 100644 --- a/test/regression/nat_test/netx_nat_tcp_port_test2.c +++ b/test/regression/nat_test/netx_nat_tcp_port_test2.c @@ -64,7 +64,7 @@ NX_TCP_SOCKET external_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp1; NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp2; diff --git a/test/regression/nat_test/netx_nat_tcp_remove_oldest_udp_entry_test.c b/test/regression/nat_test/netx_nat_tcp_remove_oldest_udp_entry_test.c index 38bcb820..592636a8 100644 --- a/test/regression/nat_test/netx_nat_tcp_remove_oldest_udp_entry_test.c +++ b/test/regression/nat_test/netx_nat_tcp_remove_oldest_udp_entry_test.c @@ -4,19 +4,19 @@ test cases where the NAT table is manually filled in with a variety of non TCP and TCP entries. The non TCP response timeouts use the standard NAT timeout defined by NX_NAT_NON_TCP_SESSION_TIMEOUT. The TCP timeouts use the extended timeout - NX_NAT_TCP_SESSION_TIMEOUT. None of the entries should timeout. - + NX_NAT_TCP_SESSION_TIMEOUT. None of the entries should timeout. + Once the table is filled, the TCP client attempts to make a connection on a new port to an external host (we don't create the TCP server). The outbound SYN packet will require an entry for this outbound packet. - + The success case is if NAT removes the oldest non TCP entry and inerts the new TCP entry at the head of the list. - + Each test case varies with respect to where the oldest entry is to verify that the removal of the link leaves the remaining entries properly linked and the NAT available list parameters updated. - + */ #include "tx_api.h" diff --git a/test/regression/nat_test/netx_nat_tcp_test1.c b/test/regression/nat_test/netx_nat_tcp_test1.c index 90187752..30b2ca9a 100644 --- a/test/regression/nat_test/netx_nat_tcp_test1.c +++ b/test/regression/nat_test/netx_nat_tcp_test1.c @@ -62,7 +62,7 @@ NX_TCP_SOCKET external_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp; diff --git a/test/regression/nat_test/netx_nat_tcp_test2.c b/test/regression/nat_test/netx_nat_tcp_test2.c index 6e963230..c526c5f7 100644 --- a/test/regression/nat_test/netx_nat_tcp_test2.c +++ b/test/regression/nat_test/netx_nat_tcp_test2.c @@ -62,7 +62,7 @@ NX_TCP_SOCKET external_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_tcp; diff --git a/test/regression/nat_test/netx_nat_udp_fragment_test.c b/test/regression/nat_test/netx_nat_udp_fragment_test.c index d426f346..ab85181d 100644 --- a/test/regression/nat_test/netx_nat_udp_fragment_test.c +++ b/test/regression/nat_test/netx_nat_udp_fragment_test.c @@ -65,7 +65,7 @@ static UCHAR buffer[1024]; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_udp; diff --git a/test/regression/nat_test/netx_nat_udp_port_test.c b/test/regression/nat_test/netx_nat_udp_port_test.c index f733a8d4..14bba261 100644 --- a/test/regression/nat_test/netx_nat_udp_port_test.c +++ b/test/regression/nat_test/netx_nat_udp_port_test.c @@ -65,7 +65,7 @@ NX_UDP_SOCKET test_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_udp1; NX_NAT_TRANSLATION_ENTRY server_inbound_entry_udp2; diff --git a/test/regression/nat_test/netx_nat_udp_test.c b/test/regression/nat_test/netx_nat_udp_test.c index cee0324c..59c48e35 100644 --- a/test/regression/nat_test/netx_nat_udp_test.c +++ b/test/regression/nat_test/netx_nat_udp_test.c @@ -63,7 +63,7 @@ NX_UDP_SOCKET external_socket; #define NX_NAT_EXTERNAL_GATEWAY (IP_ADDRESS(192, 168, 0, 1)) #define NX_NAT_EXTERNAL_NETMASK (IP_ADDRESS(255, 255, 255, 0)) -/* Create NAT structures for preloading NAT tables with static +/* Create NAT structures for preloading NAT tables with static entries for local server hosts. */ NX_NAT_TRANSLATION_ENTRY server_inbound_entry_udp; diff --git a/test/regression/netxduo_test/netx_102_23_test.c b/test/regression/netxduo_test/netx_102_23_test.c index bb7f842b..ba44b9a8 100644 --- a/test/regression/netxduo_test/netx_102_23_test.c +++ b/test/regression/netxduo_test/netx_102_23_test.c @@ -4,7 +4,7 @@ 1. Connection. 2. Client sends a data packet. 3. Server receives the packet and replies an ACK packet. - 4. Check cwnd += min(N, MSS). N is acked bytes. + 4. Check cwnd += min(N, MSS). N is acked bytes. 5. Client sends a data packet again. 6. Set ssthresh = cwnd - 10. 7. Server starts congestion, after receives the packet, check cwnd = cwnd + MSS * MSS / cwnd. */ diff --git a/test/regression/netxduo_test/netx_10_24_01_test.c b/test/regression/netxduo_test/netx_10_24_01_test.c index ff64e92a..ba72f58f 100644 --- a/test/regression/netxduo_test/netx_10_24_01_test.c +++ b/test/regression/netxduo_test/netx_10_24_01_test.c @@ -1,10 +1,10 @@ /* 10.24 TCP, in CLOSE-WAIT, CLOSING or LAST-ACK state, MUST not change state after receiving a FIN. */ /*This is 10.24_01 in CLOSE-WAIT state*/ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.Disconnect the Server socket. 3.Drop the ACK packet sent form the Client to the Sever. - 4.The Server will retransmit the FIN packet. + 4.The Server will retransmit the FIN packet. 5.Check whether the state of the client socket has been changed. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_10_24_02_test.c b/test/regression/netxduo_test/netx_10_24_02_test.c index 6af5d55a..634eeea2 100644 --- a/test/regression/netxduo_test/netx_10_24_02_test.c +++ b/test/regression/netxduo_test/netx_10_24_02_test.c @@ -2,7 +2,7 @@ /*This is 10.24_02 in CLOSING state*/ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.Disconnect the Server socket. 3.Drop the FIN packet sent form the Sever to the Client. 4.Disconnect the Client socket. diff --git a/test/regression/netxduo_test/netx_10_24_03_test.c b/test/regression/netxduo_test/netx_10_24_03_test.c index 0c1adf54..d793ca78 100644 --- a/test/regression/netxduo_test/netx_10_24_03_test.c +++ b/test/regression/netxduo_test/netx_10_24_03_test.c @@ -2,12 +2,12 @@ /*This is 10.24_03 in LAST-ACK state*/ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.Disconnect the Server socket. 3.Drop the packet sent form the Client to the Sever. 4.Disconnect the Client socket. 5.Drop the packet sent form the Client to the Sever. - 6.The Server will retransmit the FIN packet. + 6.The Server will retransmit the FIN packet. 7.Check whether the state of the client socket has been changed. */ diff --git a/test/regression/netxduo_test/netx_10_25_test.c b/test/regression/netxduo_test/netx_10_25_test.c index 96304782..90682939 100644 --- a/test/regression/netxduo_test/netx_10_25_test.c +++ b/test/regression/netxduo_test/netx_10_25_test.c @@ -1,4 +1,4 @@ -/* 10.25 TCP, in ESTABLISHED state, SHOULD piggyback acknowledgement with +/* 10.25 TCP, in ESTABLISHED state, SHOULD piggyback acknowledgement with a segment being transmitted (whenever possible) without incurring undue delay. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_11_24_test.c b/test/regression/netxduo_test/netx_11_24_test.c index 8f0d6297..93be659c 100644 --- a/test/regression/netxduo_test/netx_11_24_test.c +++ b/test/regression/netxduo_test/netx_11_24_test.c @@ -1,7 +1,7 @@ /* 11.24 Local user initiates the close, TCP enters the FIN-WAIT-1 state. RECEIVEs are allowed in this state. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.Let Server's state to FIN_WAIT_1 3.Client sends some data to Server 4.Check if Server receives data successfully. */ diff --git a/test/regression/netxduo_test/netx_12_01_test.c b/test/regression/netxduo_test/netx_12_01_test.c index 17a80239..f7744bb6 100644 --- a/test/regression/netxduo_test/netx_12_01_test.c +++ b/test/regression/netxduo_test/netx_12_01_test.c @@ -1,4 +1,4 @@ -/* 12.01 TCP MUST be prepared to handle an illegal option length for MSS, in a SYN segment, without crashing; +/* 12.01 TCP MUST be prepared to handle an illegal option length for MSS, in a SYN segment, without crashing; a suggested procedure is to reset the connection and log the reason. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_12_17_test.c b/test/regression/netxduo_test/netx_12_17_test.c index 7fade9b6..43e6ed2f 100644 --- a/test/regression/netxduo_test/netx_12_17_test.c +++ b/test/regression/netxduo_test/netx_12_17_test.c @@ -4,7 +4,7 @@ 1. Client sends SYN to server and server returns SYN+ACK. 2. When client receives SYN+ACK packet, modify the length of MSS in 'my_tcp_packet_receive_12_17'. - 3. Pass the SYN+ACK packet to the default function . + 3. Pass the SYN+ACK packet to the default function . 4. Check whether the connection is reset */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_12_23_test.c b/test/regression/netxduo_test/netx_12_23_test.c index 9f548825..76006534 100644 --- a/test/regression/netxduo_test/netx_12_23_test.c +++ b/test/regression/netxduo_test/netx_12_23_test.c @@ -1,6 +1,6 @@ /* 12.23 TCP MUST implement sending the MSS option. */ -/* RFC 1122, Section 4.2.2.6, page 85, Maximum Segment Size Option: RFC-793 Section 3.1. +/* RFC 1122, Section 4.2.2.6, page 85, Maximum Segment Size Option: RFC-793 Section 3.1. TCP MUST implement both sending and receiving the Maximum Segment Size option. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_12_24_test.c b/test/regression/netxduo_test/netx_12_24_test.c index 2e0a93c9..8f06cca8 100644 --- a/test/regression/netxduo_test/netx_12_24_test.c +++ b/test/regression/netxduo_test/netx_12_24_test.c @@ -3,7 +3,7 @@ /* Procedure 1. Client send a SYN to Server. - 2. Use advanced_packet_process function to receive and deal with the SYN packet, + 2. Use advanced_packet_process function to receive and deal with the SYN packet, then change the MSS. */ diff --git a/test/regression/netxduo_test/netx_12_25_test.c b/test/regression/netxduo_test/netx_12_25_test.c index 12de964f..552932e0 100644 --- a/test/regression/netxduo_test/netx_12_25_test.c +++ b/test/regression/netxduo_test/netx_12_25_test.c @@ -3,7 +3,7 @@ /* Procedure 1. Client send a SYN to Server. - 2. Use packet_process function to receive and deal with the SYN packet, + 2. Use packet_process function to receive and deal with the SYN packet, then change the MSS to 536. 3. Use packet_process function to receive and deal with the SYN packet, Judge the MSS options. */ diff --git a/test/regression/netxduo_test/netx_12_26_test.c b/test/regression/netxduo_test/netx_12_26_test.c index 67b2da51..1b1ae010 100644 --- a/test/regression/netxduo_test/netx_12_26_test.c +++ b/test/regression/netxduo_test/netx_12_26_test.c @@ -1,10 +1,10 @@ -/* 12.26 TCP over IPv6 MUST assume a default send MSS of 1220 if MSS +/* 12.26 TCP over IPv6 MUST assume a default send MSS of 1220 if MSS option is not received at connection setup When using TCP over IPv6, the MSS must be computed as the maximum packet size minus 60 octets. */ /* Procedure 1. Client send a SYN to Server. - 2. Use packet_process function to receive and deal with the SYN packet, + 2. Use packet_process function to receive and deal with the SYN packet, then change the MSS option. 3. Use packet_process function to receive and deal with the SYN+ACK packet, Check the MSS. */ diff --git a/test/regression/netxduo_test/netx_12_27_test.c b/test/regression/netxduo_test/netx_12_27_test.c index 0c807efb..375c40eb 100644 --- a/test/regression/netxduo_test/netx_12_27_test.c +++ b/test/regression/netxduo_test/netx_12_27_test.c @@ -1,4 +1,4 @@ -/* 12.27 TCP MUST ignore MSS option in data segment When using TCP over IPv6, +/* 12.27 TCP MUST ignore MSS option in data segment When using TCP over IPv6, the MSS must be computed as the maximum packet size minus 60 octets. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_12_30_test.c b/test/regression/netxduo_test/netx_12_30_test.c index 8262fcac..7258ecef 100644 --- a/test/regression/netxduo_test/netx_12_30_test.c +++ b/test/regression/netxduo_test/netx_12_30_test.c @@ -1,5 +1,5 @@ -/* 12.30 TCP MAY send MSS option in every SYN segment even when its receive - MSS value is same as the default 1220 When using TCP over IPv6, the MSS +/* 12.30 TCP MAY send MSS option in every SYN segment even when its receive + MSS value is same as the default 1220 When using TCP over IPv6, the MSS must be computed as the maximum packet size minus 60 octets. */ /* Update diff --git a/test/regression/netxduo_test/netx_12_31_test.c b/test/regression/netxduo_test/netx_12_31_test.c index 2df0daa7..b6feeaa2 100644 --- a/test/regression/netxduo_test/netx_12_31_test.c +++ b/test/regression/netxduo_test/netx_12_31_test.c @@ -2,7 +2,7 @@ /* Procedure 1.Intercept the ACK + SYN packet - 2.Modify the option_words to the 1220 + 2.Modify the option_words to the 1220 3.Check whether the connection is reset */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_13_01_test.c b/test/regression/netxduo_test/netx_13_01_test.c index f3c92847..e9edab0b 100644 --- a/test/regression/netxduo_test/netx_13_01_test.c +++ b/test/regression/netxduo_test/netx_13_01_test.c @@ -1,7 +1,7 @@ /* 13.01 A full-sized segment MUST be acknowledged within a time of 0.5 sec. */ -/* RFC 1122, Section 4.2.3.2, page 96, When to Send an ACK Segment. - A TCP SHOULD implement a delayed ACK, but an ACK should not be excessively delayed; +/* RFC 1122, Section 4.2.3.2, page 96, When to Send an ACK Segment. + A TCP SHOULD implement a delayed ACK, but an ACK should not be excessively delayed; in particular, the delay MUST be less than 0.5 seconds, and in a stream of full-sized segments there SHOULD be an ACK for at least every second segment. */ diff --git a/test/regression/netxduo_test/netx_14_19_test.c b/test/regression/netxduo_test/netx_14_19_test.c index 31805f8f..c9127616 100644 --- a/test/regression/netxduo_test/netx_14_19_test.c +++ b/test/regression/netxduo_test/netx_14_19_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ diff --git a/test/regression/netxduo_test/netx_14_20_test.c b/test/regression/netxduo_test/netx_14_20_test.c index 94a03aa3..87cabcf8 100644 --- a/test/regression/netxduo_test/netx_14_20_test.c +++ b/test/regression/netxduo_test/netx_14_20_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ diff --git a/test/regression/netxduo_test/netx_16_02_test.c b/test/regression/netxduo_test/netx_16_02_test.c index c96f85ce..76447786 100644 --- a/test/regression/netxduo_test/netx_16_02_test.c +++ b/test/regression/netxduo_test/netx_16_02_test.c @@ -8,9 +8,9 @@ 1. Set 'nx_ip_tcp_packet_receive' pointer of client ip instance to 'my_tcp_packet_receive_16_02' to deal with ACK packet. 2. Client sends data to server whose length equals window size of server . 3. Server sends back ACK with window size 0. - 4. Client sends probe to server. + 4. Client sends probe to server. 5. Server sends back ACK with window size 0. - 6. Server receives data and window size is back to original. + 6. Server receives data and window size is back to original. 7. Check if connection is still open. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_16_21_test.c b/test/regression/netxduo_test/netx_16_21_test.c index 483a07b5..20de162e 100644 --- a/test/regression/netxduo_test/netx_16_21_test.c +++ b/test/regression/netxduo_test/netx_16_21_test.c @@ -4,7 +4,7 @@ 1. Set 'nx_ip_tcp_packet_receive' pointer of client ip instance to 'my_tcp_packet_receive_16_21' to deal with ACK packet. 2. Client sends data whose length equals window size of server to server. 3. Server sends back ACK with window size 0. - 4. Client sends probe to server. + 4. Client sends probe to server. 5. Server sends back ACK with window size 0. 6. Server receives data and window size is back to original. */ diff --git a/test/regression/netxduo_test/netx_16_22_test.c b/test/regression/netxduo_test/netx_16_22_test.c index 8c134fdb..42e286ef 100644 --- a/test/regression/netxduo_test/netx_16_22_test.c +++ b/test/regression/netxduo_test/netx_16_22_test.c @@ -4,7 +4,7 @@ 1. Set 'nx_ip_tcp_packet_receive' pointer of client ip instance to 'my_tcp_packet_receive_16_21' to deal with ACK packet. 2. Client sends data whose length equals window size of server to server. 3. Server sends back ACK with window size 0. - 4. Client sends probe to server. + 4. Client sends probe to server. 5. Server sends back ACK with window size 0. 6. Server receives data and window size is back to original. */ diff --git a/test/regression/netxduo_test/netx_1_02_test.c b/test/regression/netxduo_test/netx_1_02_test.c index 16729120..5f58af3d 100644 --- a/test/regression/netxduo_test/netx_1_02_test.c +++ b/test/regression/netxduo_test/netx_1_02_test.c @@ -2,7 +2,7 @@ /* Procedure 1. Client sends a SYN packet. - 2. Server receives the SYN packet and replies a SYN + ACK packet. + 2. Server receives the SYN packet and replies a SYN + ACK packet. 3. Client receives the SYN + ACK packet and replies an ACK packet. 4. Check the state of server is SYN_RCVD. 5. Check the packet is a ACK one. diff --git a/test/regression/netxduo_test/netx_1_04_ipv6_test.c b/test/regression/netxduo_test/netx_1_04_ipv6_test.c index 83597dd3..ab740505 100644 --- a/test/regression/netxduo_test/netx_1_04_ipv6_test.c +++ b/test/regression/netxduo_test/netx_1_04_ipv6_test.c @@ -1,4 +1,4 @@ -/* 1.04 TCP, in CLOSED state, must send a RST segment with zero SEQ number +/* 1.04 TCP, in CLOSED state, must send a RST segment with zero SEQ number in response to an incoming segment not containing RST and ACK flags. */ /* This case is based on IPv6. */ diff --git a/test/regression/netxduo_test/netx_1_04_test.c b/test/regression/netxduo_test/netx_1_04_test.c index 4c8051c9..11629a2f 100644 --- a/test/regression/netxduo_test/netx_1_04_test.c +++ b/test/regression/netxduo_test/netx_1_04_test.c @@ -1,4 +1,4 @@ -/* 1.04 TCP, in CLOSED state, must send a RST segment with zero SEQ number +/* 1.04 TCP, in CLOSED state, must send a RST segment with zero SEQ number in response to an incoming segment not containing RST and ACK flags. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_1_17_test.c b/test/regression/netxduo_test/netx_1_17_test.c index a4601b8e..bd8d39c8 100644 --- a/test/regression/netxduo_test/netx_1_17_test.c +++ b/test/regression/netxduo_test/netx_1_17_test.c @@ -2,7 +2,7 @@ /* Procedure 1. Create a client socket. - 2. Check the state of client is CLOSED and call connect command. + 2. Check the state of client is CLOSED and call connect command. 3. Check the packet is a SYN one. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_1_18_test.c b/test/regression/netxduo_test/netx_1_18_test.c index 7db7f53f..334b0010 100644 --- a/test/regression/netxduo_test/netx_1_18_test.c +++ b/test/regression/netxduo_test/netx_1_18_test.c @@ -2,7 +2,7 @@ /* Procedure 1. Client sends a SYN packet and becomes SYN_SENT state. - 2. Server receives the SYN packet and replies a SYN + ACK packet. + 2. Server receives the SYN packet and replies a SYN + ACK packet. 3. Check the state of client is SYN_SENT. 4. Let client deal with the SYN + ACK packet and checks the state of client is ESTABLISHED. */ diff --git a/test/regression/netxduo_test/netx_23_02_01_test.c b/test/regression/netxduo_test/netx_23_02_01_test.c index edfa6993..bf0ea2f7 100644 --- a/test/regression/netxduo_test/netx_23_02_01_test.c +++ b/test/regression/netxduo_test/netx_23_02_01_test.c @@ -3,7 +3,7 @@ /* Procedure 1. Client send a SYN to Server. - 2. Use packet_process function to receive and deal with the SYN packet,change the IP address. + 2. Use packet_process function to receive and deal with the SYN packet,change the IP address. 3. Check whether the SYN packet is rejected. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_23_02_02_test.c b/test/regression/netxduo_test/netx_23_02_02_test.c index 8f378a38..8820ad5d 100644 --- a/test/regression/netxduo_test/netx_23_02_02_test.c +++ b/test/regression/netxduo_test/netx_23_02_02_test.c @@ -1,4 +1,4 @@ -/* 23.02.2 TCP in LISTEN state, MUST reject an incoming SYN with +/* 23.02.2 TCP in LISTEN state, MUST reject an incoming SYN with multicast addresses as source IP address. */ /* Update @@ -6,7 +6,7 @@ multicast addresses as source IP address. */ /* Procedure 1. Client send a SYN to Server. - 2. Use packet_process function to receive and deal with the SYN packet,change the IP address. + 2. Use packet_process function to receive and deal with the SYN packet,change the IP address. 3. Judge the packet. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_23_02_03_test.c b/test/regression/netxduo_test/netx_23_02_03_test.c index d79b36cd..04425af9 100644 --- a/test/regression/netxduo_test/netx_23_02_03_test.c +++ b/test/regression/netxduo_test/netx_23_02_03_test.c @@ -1,4 +1,4 @@ -/* 23.02.03 TCP in LISTEN state, MUST reject an incoming SYN with +/* 23.02.03 TCP in LISTEN state, MUST reject an incoming SYN with broadcast address(subnet-directed broadcast--128.1.2.255) as source IP address. */ /* Update @@ -6,7 +6,7 @@ /* Procedure 1. Client send a SYN to Server. - 2. Use packet_process function to receive and deal with the SYN packet. + 2. Use packet_process function to receive and deal with the SYN packet. 3. Use packet_process function to receive and deal with the SYN packet,Judge the packet. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_23_02_04_test.c b/test/regression/netxduo_test/netx_23_02_04_test.c index b88cc5f5..6cf5cad1 100644 --- a/test/regression/netxduo_test/netx_23_02_04_test.c +++ b/test/regression/netxduo_test/netx_23_02_04_test.c @@ -1,4 +1,4 @@ -/* 23.02.04 TCP in LISTEN state, MUST reject an incoming SYN with +/* 23.02.04 TCP in LISTEN state, MUST reject an incoming SYN with local subnet address (128.1.2.0) as source IP address. */ /* Update @@ -6,7 +6,7 @@ /* Procedure 1. Client send a SYN to Server. - 2. Use packet_process function to receive and deal with the SYN packet. + 2. Use packet_process function to receive and deal with the SYN packet. 3. Use packet_process function to receive and deal with the SYN packet,Judge the packet. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_3_04_test.c b/test/regression/netxduo_test/netx_3_04_test.c index 58ac78e1..e4789aa0 100644 --- a/test/regression/netxduo_test/netx_3_04_test.c +++ b/test/regression/netxduo_test/netx_3_04_test.c @@ -1,9 +1,9 @@ -/* 3.04:TCP, in ESTABLISHED state, - MUST return ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, - and remain in same state If the connection is in a synchronized state, - any unacceptable segment (out of window sequence number or unacceptable acknowledgment number) - must elicit only an empty acknowledgment segment containing the current send-sequence number - and an acknowledgment indicating the next sequence number expected to be received, +/* 3.04:TCP, in ESTABLISHED state, + MUST return ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, + and remain in same state If the connection is in a synchronized state, + any unacceptable segment (out of window sequence number or unacceptable acknowledgment number) + must elicit only an empty acknowledgment segment containing the current send-sequence number + and an acknowledgment indicating the next sequence number expected to be received, and the connection remains in the same state. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_3_17_test.c b/test/regression/netxduo_test/netx_3_17_test.c index 9fe1a117..141d997b 100644 --- a/test/regression/netxduo_test/netx_3_17_test.c +++ b/test/regression/netxduo_test/netx_3_17_test.c @@ -1,4 +1,4 @@ -/* 3.17 TCP in SYN-SENT state MUST send RST after receiving a segment carrying +/* 3.17 TCP in SYN-SENT state MUST send RST after receiving a segment carrying an unacceptable ACK and send the SYN again, SEQ number is taken from SEG.ACK. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_3_18_test.c b/test/regression/netxduo_test/netx_3_18_test.c index 0e6be36c..d2e2298d 100644 --- a/test/regression/netxduo_test/netx_3_18_test.c +++ b/test/regression/netxduo_test/netx_3_18_test.c @@ -1,9 +1,9 @@ -/* 3.18:TCP, in FINWAIT-1 state, - MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, - and remain in same state If the connection is in a synchronized state, - any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) - must elicit only an empty acknowledgment segment containing the current send-sequence number - and an acknowledgment indicating the next sequence number expected to be received, +/* 3.18:TCP, in FINWAIT-1 state, + MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, + and remain in same state If the connection is in a synchronized state, + any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) + must elicit only an empty acknowledgment segment containing the current send-sequence number + and an acknowledgment indicating the next sequence number expected to be received, and the connection remains in the same state. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_3_19_test.c b/test/regression/netxduo_test/netx_3_19_test.c index a269dd46..8aff8c85 100644 --- a/test/regression/netxduo_test/netx_3_19_test.c +++ b/test/regression/netxduo_test/netx_3_19_test.c @@ -1,9 +1,9 @@ -/* 3.19:TCP, in FINWAIT-2 state, - MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, - and remain in same state If the connection is in a synchronized state, - any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) - must elicit only an empty acknowledgment segment containing the current send-sequence number - and an acknowledgment indicating the next sequence number expected to be received, +/* 3.19:TCP, in FINWAIT-2 state, + MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, + and remain in same state If the connection is in a synchronized state, + any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) + must elicit only an empty acknowledgment segment containing the current send-sequence number + and an acknowledgment indicating the next sequence number expected to be received, and the connection remains in the same state. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_3_20_test.c b/test/regression/netxduo_test/netx_3_20_test.c index 65132844..0b5ba144 100644 --- a/test/regression/netxduo_test/netx_3_20_test.c +++ b/test/regression/netxduo_test/netx_3_20_test.c @@ -1,8 +1,8 @@ /* 3.20:TCP, in CLOSING state, - MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, - and remain in same state If the connection is in a synchronized state, + MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, + and remain in same state If the connection is in a synchronized state, any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) - must elicit only an empty acknowledgment segment containing the current send-sequence number + must elicit only an empty acknowledgment segment containing the current send-sequence number and an acknowledgment indicating the next sequence number expected to be received, and the connection remains in the same state. */ diff --git a/test/regression/netxduo_test/netx_3_21_test.c b/test/regression/netxduo_test/netx_3_21_test.c index 5f3bfb59..d2c0c371 100644 --- a/test/regression/netxduo_test/netx_3_21_test.c +++ b/test/regression/netxduo_test/netx_3_21_test.c @@ -1,9 +1,9 @@ -/* 3.21:TCP, in LAST-ACK state, - MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, - and remain in same state If the connection is in a synchronized state, - any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) - must elicit only an empty acknowledgment segment containing the current send-sequence number - and an acknowledgment indicating the next sequence number expected to be received, +/* 3.21:TCP, in LAST-ACK state, + MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, + and remain in same state If the connection is in a synchronized state, + any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) + must elicit only an empty acknowledgment segment containing the current send-sequence number + and an acknowledgment indicating the next sequence number expected to be received, and the connection remains in the same state. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_3_23_test.c b/test/regression/netxduo_test/netx_3_23_test.c index 2655abfe..b8264fff 100644 --- a/test/regression/netxduo_test/netx_3_23_test.c +++ b/test/regression/netxduo_test/netx_3_23_test.c @@ -1,9 +1,9 @@ -/* 3.23:TCP, in CLOSE-WAIT state, - MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, - and remain in same state If the connection is in a synchronized state, - any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) - must elicit only an empty acknowledgment segment containing the current send-sequence number - and an acknowledgment indicating the next sequence number expected to be received, +/* 3.23:TCP, in CLOSE-WAIT state, + MUST return an ACK with proper SEQ and ACK numbers after recv a seg with OTW SEQ or unacc ACK number, + and remain in same state If the connection is in a synchronized state, + any unacceptable segment (out of window sequence number or unacceptible acknowledgment number) + must elicit only an empty acknowledgment segment containing the current send-sequence number + and an acknowledgment indicating the next sequence number expected to be received, and the connection remains in the same state. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_5_19_test.c b/test/regression/netxduo_test/netx_5_19_test.c index 130f27b5..a6b4f432 100644 --- a/test/regression/netxduo_test/netx_5_19_test.c +++ b/test/regression/netxduo_test/netx_5_19_test.c @@ -3,7 +3,7 @@ /* Procedure 1. Connection. 2. Client calls disconnect and sends a FIN packet.. - 3. Client interrupts the FIN packet and calls send command. + 3. Client interrupts the FIN packet and calls send command. 4. Check the state of client is FIN_WAIT_1 and the status is NX_NOT_CONNECTED. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_5_20_test.c b/test/regression/netxduo_test/netx_5_20_test.c index ef218b13..c2315b70 100644 --- a/test/regression/netxduo_test/netx_5_20_test.c +++ b/test/regression/netxduo_test/netx_5_20_test.c @@ -3,8 +3,8 @@ /* Procedure 1. Connection. 2. Client calls disconnect and sends a FIN packet.. -3. Server replies an ACK packet. -4. Client receives the ACK packet and calls send command. +3. Server replies an ACK packet. +4. Client receives the ACK packet and calls send command. 5. Check the state of client is FIN_WAIT_2 and the status is NX_NOT_CONNECTED. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_5_22_test.c b/test/regression/netxduo_test/netx_5_22_test.c index c1365f60..75e3f568 100644 --- a/test/regression/netxduo_test/netx_5_22_test.c +++ b/test/regression/netxduo_test/netx_5_22_test.c @@ -3,8 +3,8 @@ /* Procedure 1. Connection. 2. Client calls disconnect and sends a FIN packet.. - 3. Server interrupts the FIN packet and call disconnect command. - 4. Client receives the FIN packet and becomes CLOSING state. + 3. Server interrupts the FIN packet and call disconnect command. + 4. Client receives the FIN packet and becomes CLOSING state. 5. Client calls send command and checks the status is NX_NOT_CONNECTED. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_5_23_test.c b/test/regression/netxduo_test/netx_5_23_test.c index cd3ef955..e67a2667 100644 --- a/test/regression/netxduo_test/netx_5_23_test.c +++ b/test/regression/netxduo_test/netx_5_23_test.c @@ -3,7 +3,7 @@ /* Procedure 1. Connection. 2. Client calls disconnect and sends a FIN packet.. - 3. Server replies an ACK packet and calls disconnect command. + 3. Server replies an ACK packet and calls disconnect command. 4. Server becomes LSAT_ACK state. 5. Server calls send command and checks the status is NX_NOT_CONNECTED. */ diff --git a/test/regression/netxduo_test/netx_5_25_test.c b/test/regression/netxduo_test/netx_5_25_test.c index c8f4ba7e..fd40f7eb 100644 --- a/test/regression/netxduo_test/netx_5_25_test.c +++ b/test/regression/netxduo_test/netx_5_25_test.c @@ -2,9 +2,9 @@ /* Procedure 1. Client sends a SYN packet and becomes SYN_SENT state. -2. Server receives the SYN packet and becomes SYN_RCVD state. +2. Server receives the SYN packet and becomes SYN_RCVD state. 3. Server calls the send command. -4. Check the status, test error. +4. Check the status, test error. 5. After entering ESTABLISHED state, check if server sends the packet. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_6_22_01_test.c b/test/regression/netxduo_test/netx_6_22_01_test.c index 5f52dd19..d913d80c 100644 --- a/test/regression/netxduo_test/netx_6_22_01_test.c +++ b/test/regression/netxduo_test/netx_6_22_01_test.c @@ -1,4 +1,4 @@ -/* 6.22.01 If RECEIVE call arrives in ESTABLISHED or FINWAIT-1 state, +/* 6.22.01 If RECEIVE call arrives in ESTABLISHED or FINWAIT-1 state, TCP MUST reassemble queued incoming segments and return to the application. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_6_22_02_test.c b/test/regression/netxduo_test/netx_6_22_02_test.c index 406999f3..4b8b8290 100644 --- a/test/regression/netxduo_test/netx_6_22_02_test.c +++ b/test/regression/netxduo_test/netx_6_22_02_test.c @@ -1,4 +1,4 @@ -/* 6.22.02 If RECEIVE call arrives in FINWAIT-2 state, +/* 6.22.02 If RECEIVE call arrives in FINWAIT-2 state, TCP MUST reassemble queued incoming segments and return to the application. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_6_23_test.c b/test/regression/netxduo_test/netx_6_23_test.c index d93375a9..4e1a477f 100644 --- a/test/regression/netxduo_test/netx_6_23_test.c +++ b/test/regression/netxduo_test/netx_6_23_test.c @@ -3,7 +3,7 @@ /* Procedure 1. Connection. 2. Server sends a data packet. - 3. Server calls disconnect command and sends a FIN packet. + 3. Server calls disconnect command and sends a FIN packet. 4. Client replies the FIN packet and becomes CLOSE_WAIT state. 5. Client calls receive command and checks the status is SUCCESS. */ diff --git a/test/regression/netxduo_test/netx_6_24_test.c b/test/regression/netxduo_test/netx_6_24_test.c index 975e13ce..740af2a9 100644 --- a/test/regression/netxduo_test/netx_6_24_test.c +++ b/test/regression/netxduo_test/netx_6_24_test.c @@ -2,7 +2,7 @@ /* Procedure 1. Connection. - 2. Server calls disconnect command and sends a FIN packet. + 2. Server calls disconnect command and sends a FIN packet. 3. Client replies the FIN packet and becomes CLOSE_WAIT state. 4. Client calls receive command and checks the status is NX_NOT_CONNECTED. */ diff --git a/test/regression/netxduo_test/netx_6_25_test.c b/test/regression/netxduo_test/netx_6_25_test.c index e1b3800a..2ab36bfc 100644 --- a/test/regression/netxduo_test/netx_6_25_test.c +++ b/test/regression/netxduo_test/netx_6_25_test.c @@ -2,7 +2,7 @@ /* Procedure 1. Connection. - 2. Server calls disconnect command and sends a FIN packet. + 2. Server calls disconnect command and sends a FIN packet. 3. Client replies an ACK packet and calls disconnect command. 4. Client calls receive command. 5. Check the state of client is LAST_ACK and TCP return NX_NOT_CONNECTED. */ diff --git a/test/regression/netxduo_test/netx_8_02_test.c b/test/regression/netxduo_test/netx_8_02_test.c index a99ac3ec..5748d5f7 100644 --- a/test/regression/netxduo_test/netx_8_02_test.c +++ b/test/regression/netxduo_test/netx_8_02_test.c @@ -1,4 +1,4 @@ -/* 8.2 :TCP in LISTEN state, +/* 8.2 :TCP in LISTEN state, TCP MUST send RST in response to incoming segment with ACK and remain in the same state, SEQ number of RST is taken from SEG.ACK. */ diff --git a/test/regression/netxduo_test/netx_9_17_test.c b/test/regression/netxduo_test/netx_9_17_test.c index ac871e5d..9fcf4235 100644 --- a/test/regression/netxduo_test/netx_9_17_test.c +++ b/test/regression/netxduo_test/netx_9_17_test.c @@ -1,11 +1,11 @@ /* 9.17 TCP, in SYN-RCVD state, reached through active OPEN, MUST inform "connection refused" to application on recv a RST. and socket state MUST go to CLOSED state on RST.*/ -/* RFC 793, Section 3.9, page 70, Event Processing. -The user need not be informed. If this connection was -initiated with an active OPEN (i.e., came from SYN-SENT state) -then the connection was refused, signalthe user "connection refused". -In either case, all segmentson the retransmission queue should be removed. +/* RFC 793, Section 3.9, page 70, Event Processing. +The user need not be informed. If this connection was +initiated with an active OPEN (i.e., came from SYN-SENT state) +then the connection was refused, signalthe user "connection refused". +In either case, all segmentson the retransmission queue should be removed. And in the active OPEN case, enter the CLOSED state and delete the TCB,and return. */ /* Procedure diff --git a/test/regression/netxduo_test/netx_9_18_test.c b/test/regression/netxduo_test/netx_9_18_test.c index 19436193..76f0fa9a 100644 --- a/test/regression/netxduo_test/netx_9_18_test.c +++ b/test/regression/netxduo_test/netx_9_18_test.c @@ -1,6 +1,6 @@ /* 9.18 TCP, in ESTABLISHED state, MUST return to CLOSED state on RESET. */ -/* RFC 793, Section 3.9, page 70, Event Processing. +/* RFC 793, Section 3.9, page 70, Event Processing. ESTABLISHED If the RST bit is set then, Users should receive an unsolicited general "connection reset" signal. Enter the CLOSED state, delete the TCB, diff --git a/test/regression/netxduo_test/netx_9_19_01_test.c b/test/regression/netxduo_test/netx_9_19_01_test.c index 88351e13..66a5412e 100644 --- a/test/regression/netxduo_test/netx_9_19_01_test.c +++ b/test/regression/netxduo_test/netx_9_19_01_test.c @@ -1,6 +1,6 @@ /* 9.19.01 TCP, in FINWAIT-1 state, MUST return to CLOSED state on RST. */ -/* RFC 793, Section 3.9, page 70, Event Processing. +/* RFC 793, Section 3.9, page 70, Event Processing. FIN-WAIT-1 If the RST bit is set then, Users should receive an unsolicited general "connection reset" signal. Enter the CLOSED state, delete the TCB, diff --git a/test/regression/netxduo_test/netx_9_19_02_test.c b/test/regression/netxduo_test/netx_9_19_02_test.c index 8e97aa17..d88b2980 100644 --- a/test/regression/netxduo_test/netx_9_19_02_test.c +++ b/test/regression/netxduo_test/netx_9_19_02_test.c @@ -1,6 +1,6 @@ /* 9.19.02 TCP, in FINWAIT-2 state, MUST return to CLOSED state on RST. */ -/* RFC 793, Section 3.9, page 70, Event Processing. +/* RFC 793, Section 3.9, page 70, Event Processing. FIN-WAIT-2 If the RST bit is set then, Users should receive an unsolicited general "connection reset" signal. Enter the CLOSED state, delete the TCB, diff --git a/test/regression/netxduo_test/netx_arp_auto_entry_test.c b/test/regression/netxduo_test/netx_arp_auto_entry_test.c index d110c79d..46210797 100644 --- a/test/regression/netxduo_test/netx_arp_auto_entry_test.c +++ b/test/regression/netxduo_test/netx_arp_auto_entry_test.c @@ -23,7 +23,7 @@ static VOID thread_0_entry(ULONG thread_input); extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); -/* ARP packet. +/* ARP packet. * src MAC: 20:0b:c7:94:45:96 * src IP: 1.2.3.5. * dst MAC: 00:00:00:00:00:00 diff --git a/test/regression/netxduo_test/netx_arp_invalid_type_test.c b/test/regression/netxduo_test/netx_arp_invalid_type_test.c index cd7f4817..2a2db08a 100644 --- a/test/regression/netxduo_test/netx_arp_invalid_type_test.c +++ b/test/regression/netxduo_test/netx_arp_invalid_type_test.c @@ -23,7 +23,7 @@ static VOID thread_0_entry(ULONG thread_input); extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); -/* ARP packet. +/* ARP packet. * Type: 0003. */ static char ra_pkt[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x20, 0x0b, /* ...... . */ diff --git a/test/regression/netxduo_test/netx_arp_no_duplicate_entry_test.c b/test/regression/netxduo_test/netx_arp_no_duplicate_entry_test.c index 5b5186a5..7952cb42 100644 --- a/test/regression/netxduo_test/netx_arp_no_duplicate_entry_test.c +++ b/test/regression/netxduo_test/netx_arp_no_duplicate_entry_test.c @@ -1,5 +1,5 @@ /* Send ARP packets using the deferred receive service. This test checks that duplicate ARP entries are - not created, that existing matching ARP entries will be updated regardless of message type, and ARP probe + not created, that existing matching ARP entries will be updated regardless of message type, and ARP probe packets (zero sender IP address) are not entered into the ARP cache. */ #include "nx_api.h" @@ -47,9 +47,9 @@ static char arp_request_pkt[] = { }; -/* Second ARP request packet +/* Second ARP request packet * src MAC: 20:0b:c7:94:45:97 The test is to check if the 20:0b:c7:94:45:96 entry is updated to 20:0b:c7:94:45:97 - there should not be duplicate entries for 1.2.3.5. + there should not be duplicate entries for 1.2.3.5. * src IP: 1.2.3.5. * target MAC: 00:00:00:00:00:00 * target IP: 1.2.3.4. */ @@ -101,8 +101,8 @@ static char arp_probe_pkt[] = { }; -/* Third ARP request packet -- The test is to check that NetX does not create a duplicate entry for 1.2.3.5. - * src MAC: 20:0b:c7:94:45:97 +/* Third ARP request packet -- The test is to check that NetX does not create a duplicate entry for 1.2.3.5. + * src MAC: 20:0b:c7:94:45:97 * src IP: 1.2.3.5. * target MAC: 00:00:00:00:00:00 * target IP: 1.2.3.4. */ diff --git a/test/regression/netxduo_test/netx_forward_multicast_test.c b/test/regression/netxduo_test/netx_forward_multicast_test.c index a95b517d..8dcdf7b7 100644 --- a/test/regression/netxduo_test/netx_forward_multicast_test.c +++ b/test/regression/netxduo_test/netx_forward_multicast_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on the multicast forward. +/* This NetX test concentrates on the multicast forward. * Multicast packet must not be forward. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_icmp_multiple_ping6_test2.c b/test/regression/netxduo_test/netx_icmp_multiple_ping6_test2.c index bc6b7703..2607faf1 100644 --- a/test/regression/netxduo_test/netx_icmp_multiple_ping6_test2.c +++ b/test/regression/netxduo_test/netx_icmp_multiple_ping6_test2.c @@ -1,7 +1,7 @@ /* This NetX test concentrates on the ICMPv6 ping operation. */ /* thread 0 send ICMPv6 Echo Request to the existent IP address IP_ADDRESS(1, 2, 3, 5), - thread 1 send ICMPv6 Echo Request to the existent IP address IP_ADDRESS(1, 2, 3, 5), + thread 1 send ICMPv6 Echo Request to the existent IP address IP_ADDRESS(1, 2, 3, 5), Delay the first ICMPv6 Echo Reply in driver, let thread 1 first receive the ICMPv6 Echo Reply before thread 0 receive the ICMPv6 Echo Reply. */ diff --git a/test/regression/netxduo_test/netx_icmp_send_error_message_test_1.c b/test/regression/netxduo_test/netx_icmp_send_error_message_test_1.c index d537e302..67985761 100644 --- a/test/regression/netxduo_test/netx_icmp_send_error_message_test_1.c +++ b/test/regression/netxduo_test/netx_icmp_send_error_message_test_1.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on sending the ICMP error message. +/* This NetX test concentrates on sending the ICMP error message. * The destination of incoming packet is link-layer broadcast address. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_icmpv6_error_test.c b/test/regression/netxduo_test/netx_icmpv6_error_test.c index 46f68999..2be4a6f9 100644 --- a/test/regression/netxduo_test/netx_icmpv6_error_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_error_test.c @@ -52,7 +52,7 @@ static ULONG dest_unreachable_count; static ULONG parameter_problem_count; static NX_PACKET *test_packet[10]; -/* Packet to trigger parameter problem message. +/* Packet to trigger parameter problem message. * src: 2001::1000:1 * dst: ff02::1 */ static const unsigned char pkt1[] = { @@ -70,7 +70,7 @@ static const unsigned char pkt1[] = { 0x03, 0x04, 0x05 /* ... */ }; -/* Packet to trigger parameter problem message. +/* Packet to trigger parameter problem message. * src: fe80::1000:1 * dst: ff02::1 */ static const unsigned char pkt2[] = { @@ -444,7 +444,7 @@ UINT i; my_packet -> nx_packet_length = sizeof(pkt2) - 14; my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_length; - /* Directly receive the packet to let IP 1 send parameter problem packet. + /* Directly receive the packet to let IP 1 send parameter problem packet. * Since lla_2 is not ready, no ICMPV6 message could be sent from link local address. */ _nx_ip_packet_deferred_receive(&ip_1, my_packet); diff --git a/test/regression/netxduo_test/netx_icmpv6_invalid_length_test.c b/test/regression/netxduo_test/netx_icmpv6_invalid_length_test.c index eb907ce1..6e99428e 100644 --- a/test/regression/netxduo_test/netx_icmpv6_invalid_length_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_invalid_length_test.c @@ -24,7 +24,7 @@ static VOID thread_0_entry(ULONG thread_input); extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); -/* RA packet. +/* RA packet. * ICMPv6 option type: 0. * ICMPv6 option length: 8. * Actual ICMPv6 option length: 4. */ diff --git a/test/regression/netxduo_test/netx_icmpv6_invalid_length_test2.c b/test/regression/netxduo_test/netx_icmpv6_invalid_length_test2.c index f7d684cf..d89695bb 100644 --- a/test/regression/netxduo_test/netx_icmpv6_invalid_length_test2.c +++ b/test/regression/netxduo_test/netx_icmpv6_invalid_length_test2.c @@ -23,7 +23,7 @@ static VOID thread_0_entry(ULONG thread_input); extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); -/* NS packet. +/* NS packet. * ICMPv6 type: 135. * ICMPv6 code: 0. * The length of ICMPv6 payload is 8. */ diff --git a/test/regression/netxduo_test/netx_icmpv6_invalid_na.c b/test/regression/netxduo_test/netx_icmpv6_invalid_na.c index c848d36d..09aee46a 100644 --- a/test/regression/netxduo_test/netx_icmpv6_invalid_na.c +++ b/test/regression/netxduo_test/netx_icmpv6_invalid_na.c @@ -23,7 +23,7 @@ static VOID thread_0_entry(ULONG thread_input); extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); -/* NA packet. +/* NA packet. * target Address: FE80::211:22FF:FE33:4456 */ static char na_pkt[86] = { 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, /* ........ */ diff --git a/test/regression/netxduo_test/netx_icmpv6_mtu_option_test.c b/test/regression/netxduo_test/netx_icmpv6_mtu_option_test.c index f367a479..6112a22d 100644 --- a/test/regression/netxduo_test/netx_icmpv6_mtu_option_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_mtu_option_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on the IPv6 process ICMPv6 Option for MTU 0. +/* This NetX test concentrates on the IPv6 process ICMPv6 Option for MTU 0. change last two bytes from 0x05, 0x00 to 0x00, 0x00 */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_icmpv6_na_test.c b/test/regression/netxduo_test/netx_icmpv6_na_test.c index 4ebef5c2..3ba16c01 100644 --- a/test/regression/netxduo_test/netx_icmpv6_na_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_na_test.c @@ -1,8 +1,8 @@ /* Test the process of NA packet. Section 7.2.5, RFC 4861 - * 1. Inject RA packet with TLLA. - * 2. Inject NA packet with different LLA. All flags are not set. + * 1. Inject RA packet with TLLA. + * 2. Inject NA packet with different LLA. All flags are not set. * 3. Router should not be modified since overwrite bit is not set and TLLA is different. - * 4. Inject NA packet with no TLLA. All flags are not set. + * 4. Inject NA packet with no TLLA. All flags are not set. * 5. Router should be deleted since no TLLA. */ #include "nx_api.h" diff --git a/test/regression/netxduo_test/netx_icmpv6_ra_address_full_test.c b/test/regression/netxduo_test/netx_icmpv6_ra_address_full_test.c index 60d6d4a5..de7eec99 100644 --- a/test/regression/netxduo_test/netx_icmpv6_ra_address_full_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_ra_address_full_test.c @@ -24,8 +24,8 @@ extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); /* RA packet. - * destination: 0xfe80::1. - * reachable time: 1ms. + * destination: 0xfe80::1. + * reachable time: 1ms. * retrans timer: 1ms. */ static char ra_pkt[] = { 0x33, 0x33, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* 33...... */ diff --git a/test/regression/netxduo_test/netx_icmpv6_ra_router_full_test.c b/test/regression/netxduo_test/netx_icmpv6_ra_router_full_test.c index dc5b59f0..4edd9cce 100644 --- a/test/regression/netxduo_test/netx_icmpv6_ra_router_full_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_ra_router_full_test.c @@ -24,8 +24,8 @@ extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); /* RA packet. - * destination: 0xfe80::1. - * reachable time: 1ms. + * destination: 0xfe80::1. + * reachable time: 1ms. * retrans timer: 1ms. */ static char ra_pkt[] = { 0x33, 0x33, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* 33...... */ diff --git a/test/regression/netxduo_test/netx_icmpv6_redirect_test.c b/test/regression/netxduo_test/netx_icmpv6_redirect_test.c index 73c45294..e5b62528 100644 --- a/test/regression/netxduo_test/netx_icmpv6_redirect_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_redirect_test.c @@ -69,7 +69,7 @@ static const unsigned char pkt2[102] = { }; -/* ICMPv6 redirect to 3ffe:501:ffff::200:ff:fe00:100. +/* ICMPv6 redirect to 3ffe:501:ffff::200:ff:fe00:100. * MTU in MTU option is 1484 */ static const unsigned char pkt3[110] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x56, 0x00, 0x00, /* .."3DV.. */ @@ -89,7 +89,7 @@ static const unsigned char pkt3[110] = { }; -/* ICMPv6 redirect to 3ffe:501:ffff::200:ff:fe00:100. +/* ICMPv6 redirect to 3ffe:501:ffff::200:ff:fe00:100. * MTU in MTU option is 1244 */ static const unsigned char pkt4[110] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x56, 0x00, 0x00, /* .."3DV.. */ @@ -108,7 +108,7 @@ static const unsigned char pkt4[110] = { 0x00, 0x00, 0x00, 0x00, 0xa1, 0xa1 /* ...... */ }; -/* ICMPv6 redirect to 3ffe:501:ffff::200:ff:fe00:100. +/* ICMPv6 redirect to 3ffe:501:ffff::200:ff:fe00:100. * MTU in MTU option is 1200, less than NX_MINIMUM_IPV6_PATH_MTU */ static const unsigned char pkt5[110] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x56, 0x00, 0x00, /* .."3DV.. */ diff --git a/test/regression/netxduo_test/netx_icmpv6_solicitated_ra_test.c b/test/regression/netxduo_test/netx_icmpv6_solicitated_ra_test.c index def43b1d..c54a8a97 100644 --- a/test/regression/netxduo_test/netx_icmpv6_solicitated_ra_test.c +++ b/test/regression/netxduo_test/netx_icmpv6_solicitated_ra_test.c @@ -24,8 +24,8 @@ extern VOID test_control_return(UINT status); extern VOID _nx_ram_network_driver_1500(struct NX_IP_DRIVER_STRUCT *driver_req); /* RA packet. - * destination: 0xfe80::1. - * reachable time: 1ms. + * destination: 0xfe80::1. + * reachable time: 1ms. * retrans timer: 1ms. */ static char ra_pkt[] = { 0x33, 0x33, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* 33...... */ diff --git a/test/regression/netxduo_test/netx_igmp_branch_test.c b/test/regression/netxduo_test/netx_igmp_branch_test.c index 6b930e5b..7f565dcd 100644 --- a/test/regression/netxduo_test/netx_igmp_branch_test.c +++ b/test/regression/netxduo_test/netx_igmp_branch_test.c @@ -198,7 +198,7 @@ UINT packet_available; - /* Test _nx_igmp_multicast_interface_leave_internal + /* Test _nx_igmp_multicast_interface_leave_internal 173 [ - + ]: 42 : if (ip_ptr -> nx_ip_igmp_router_version == NX_IGMP_HOST_VERSION_1) 174 : : { 177 : 0 : tx_mutex_put(&(ip_ptr -> nx_ip_protection)); diff --git a/test/regression/netxduo_test/netx_igmp_checksum_computation_test.c b/test/regression/netxduo_test/netx_igmp_checksum_computation_test.c index 63752cc3..00e2e641 100644 --- a/test/regression/netxduo_test/netx_igmp_checksum_computation_test.c +++ b/test/regression/netxduo_test/netx_igmp_checksum_computation_test.c @@ -1,5 +1,5 @@ /* This NetX test case verifies that the IGMP packet data is included in the checksum, not just the header, - and that it handles 2 byte data when there is zero length left. Also it must handled chained + and that it handles 2 byte data when there is zero length left. Also it must handled chained packets. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_igmp_interface_indirect_report_send_test.c b/test/regression/netxduo_test/netx_igmp_interface_indirect_report_send_test.c index fac3d854..37a3aba4 100644 --- a/test/regression/netxduo_test/netx_igmp_interface_indirect_report_send_test.c +++ b/test/regression/netxduo_test/netx_igmp_interface_indirect_report_send_test.c @@ -4,7 +4,7 @@ report (because it detects a new router. The timeout in the multicast entry for that group address is reset to one so that an IGMP report is sent out on the next periodic. For 5.9, this service is an internal function and only supports - sending join IGMP reports. + sending join IGMP reports. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_igmp_router_query_test.c b/test/regression/netxduo_test/netx_igmp_router_query_test.c index 4136e2cb..56a99f5e 100644 --- a/test/regression/netxduo_test/netx_igmp_router_query_test.c +++ b/test/regression/netxduo_test/netx_igmp_router_query_test.c @@ -117,7 +117,7 @@ UINT status; } /* Sleep 2000 ticks to trigger the NX_IP_PERIODIC_EVENT event - 1. Receive the IGMP Host response message, + 1. Receive the IGMP Host response message, 2. Send the IGMP Router query message with invalid checksum, 3. Send the IGMP Router query message, 4. Send the IGMP Router query message with not joined group address, @@ -217,7 +217,7 @@ UINT i; /* Prepare a IGMP Router Query and send on the "all hosts" multicast address. */ - /* Calculate the IGMP response message size and store it in the + /* Calculate the IGMP response message size and store it in the packet header. */ my_packet -> nx_packet_length = NX_IGMP_HEADER_SIZE; @@ -291,7 +291,7 @@ UINT i; /* Prepare a IGMP Router Query and send on the "all hosts" multicast address. */ - /* Calculate the IGMP response message size and store it in the + /* Calculate the IGMP response message size and store it in the packet header. */ my_packet -> nx_packet_length = NX_IGMP_HEADER_SIZE; @@ -337,7 +337,7 @@ UINT i; /* Prepare a IGMP Router Query and send on the "all hosts" multicast address. */ - /* Calculate the IGMP response message size and store it in the + /* Calculate the IGMP response message size and store it in the packet header. */ my_packet -> nx_packet_length = NX_IGMP_HEADER_SIZE; @@ -382,7 +382,7 @@ UINT i; /* Prepare a IGMP Router Query and send on the "all hosts" multicast address. */ - /* Calculate the IGMP response message size and store it in the + /* Calculate the IGMP response message size and store it in the packet header. */ my_packet -> nx_packet_length = NX_IGMP_HEADER_SIZE; diff --git a/test/regression/netxduo_test/netx_ip_address_conflict_detection_test.c b/test/regression/netxduo_test/netx_ip_address_conflict_detection_test.c index d1849e17..4d620aef 100644 --- a/test/regression/netxduo_test/netx_ip_address_conflict_detection_test.c +++ b/test/regression/netxduo_test/netx_ip_address_conflict_detection_test.c @@ -296,7 +296,7 @@ NX_PACKET *my_packet[30]; /* Delay before announcing. */ tx_thread_sleep(NX_IP_PERIODIC_RATE * NX_ARP_ANNOUNCE_WAIT); - /* It is now time to go into an announce phase to indicate local IP address is ours! + /* It is now time to go into an announce phase to indicate local IP address is ours! Note:NetX do not give up its address during announce pahse. */ for (i = 0; i < NX_ARP_ANNOUNCE_NUM; i++) { diff --git a/test/regression/netxduo_test/netx_ip_branch_test.c b/test/regression/netxduo_test/netx_ip_branch_test.c index fc4df347..5e02176f 100644 --- a/test/regression/netxduo_test/netx_ip_branch_test.c +++ b/test/regression/netxduo_test/netx_ip_branch_test.c @@ -2,7 +2,7 @@ * _nx_ip_deferred_link_status_process.c * _nx_ip_interface_detach.c * _nx_ip_max_payload_size_find.c - * _nx_ip_packet_receive.c + * _nx_ip_packet_receive.c */ #include "nx_ip.h" diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_packet_copy_test.c b/test/regression/netxduo_test/netx_ip_fragmentation_packet_copy_test.c index 8be8696d..73828d76 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_packet_copy_test.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_packet_copy_test.c @@ -2,7 +2,7 @@ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: * 1. Client send 1500 bytes to Server. - * 2. Driver copy the second fragment packet and send the copy packet to Server. + * 2. Driver copy the second fragment packet and send the copy packet to Server. * 3. Check if Server receive the 1500 bytes. */ diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_packet_delay_test.c b/test/regression/netxduo_test/netx_ip_fragmentation_packet_delay_test.c index d4e40233..3fe79370 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_packet_delay_test.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_packet_delay_test.c @@ -2,7 +2,7 @@ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: * 1. Client send 1500 bytes to Server. - * 2. Driver delay the second fragment packet. + * 2. Driver delay the second fragment packet. * 3. Check if Server receive the 1500 bytes. */ diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_packet_drop_test.c b/test/regression/netxduo_test/netx_ip_fragmentation_packet_drop_test.c index 20a0700a..215f4039 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_packet_drop_test.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_packet_drop_test.c @@ -2,7 +2,7 @@ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: * 1. Client send 1500 bytes to Server. - * 2. Driver drop the first fragment packet. + * 2. Driver drop the first fragment packet. * 3. Check if Server receive the 1500 bytes. */ @@ -164,7 +164,7 @@ UINT packet_length; test_control_return(1); } - /* Let Socket 0 send all packet and fragment timeout. + /* Let Socket 0 send all packet and fragment timeout. Cover the branch [ + - ]: if ((ipv4_header -> nx_ip_header_word_1 & NX_IP_OFFSET_MASK) == 0) in _nx_ip_fragment_cleanup() */ tx_thread_sleep(70 * NX_IP_PERIODIC_RATE); diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_time_exceeded_message_test.c b/test/regression/netxduo_test/netx_ip_fragmentation_time_exceeded_message_test.c index d1e8bf0d..7e8af734 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_time_exceeded_message_test.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_time_exceeded_message_test.c @@ -1,13 +1,13 @@ /* This NetX test concentrates on ICMP Time Exceeded Message for IP fragmentation. */ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_ICMPV4_ERROR_MESSAGE is not defined. NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: - * 1. ip_0 send ICMP Ping with 600 bytes to ip_2. It is fragmented into three packets. - * 2. Delay 5 seconds for second fragmentation packet of ip_0 to update the timeout of fragmentation to let ip_1 fragmentation timeout first. + * 1. ip_0 send ICMP Ping with 600 bytes to ip_2. It is fragmented into three packets. + * 2. Delay 5 seconds for second fragmentation packet of ip_0 to update the timeout of fragmentation to let ip_1 fragmentation timeout first. * 3. Delay NX_IP_TIME_TO_LIVE + 4 seconds for third fragmentation of ip_0, send the third fragmentation before ip_0 fragmentation timeout, after ip_1 fragmentation timeout. - * 4. ip_1 send ICMP Ping with 600 bytes to ip_2. It is fragmented into three packets. - * 5. Discard the third fragmentation packet of ip_1 to let ip_1 fragmentation timeout. - * 6. Check if ip_1 instance get the fragmentation time exceeded message from ip_2 instance. - * 7. Check if ip_1 instance get the response from ip_2 instance. + * 4. ip_1 send ICMP Ping with 600 bytes to ip_2. It is fragmented into three packets. + * 5. Discard the third fragmentation packet of ip_1 to let ip_1 fragmentation timeout. + * 6. Check if ip_1 instance get the fragmentation time exceeded message from ip_2 instance. + * 7. Check if ip_1 instance get the response from ip_2 instance. * 7. Check if ip_0 instance get the response from ip_2 instance. */ diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_wrong_destination_address_test.c b/test/regression/netxduo_test/netx_ip_fragmentation_wrong_destination_address_test.c index e5d24d7a..e790691a 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_wrong_destination_address_test.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_wrong_destination_address_test.c @@ -2,7 +2,7 @@ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: * 1. Client send UDP 1500 bytes to Server. - * 2. Modify the destination address with 255.255.255.255 for second fragment packet. + * 2. Modify the destination address with 255.255.255.255 for second fragment packet. * 3. Check if Server receive the 1500 bytes. */ diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test.c b/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test.c index bfe42c30..8c41a118 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test.c @@ -2,7 +2,7 @@ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: * 1. Client send UDP 1500 bytes to Server. - * 2. Modify the protocol with ICMP for second fragment packet. + * 2. Modify the protocol with ICMP for second fragment packet. * 3. Check if Server receive the 1500 bytes. */ diff --git a/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test2.c b/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test2.c index 4937ec9a..c865cee6 100644 --- a/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test2.c +++ b/test/regression/netxduo_test/netx_ip_fragmentation_wrong_protocol_field_test2.c @@ -2,8 +2,8 @@ /* Requirement: __PRODUCT_NETXDUO__ is defined, NX_DISABLE_FRAGMENTATION is not defined. */ /* Test sequence: * 1. Client send UDP 1500 bytes to Server. - * 2. Modify the protocol with ICMP and delay one second for first fragment packet. - * 2. Modify the protocol with ICMP for second fragment packet. + * 2. Modify the protocol with ICMP and delay one second for first fragment packet. + * 2. Modify the protocol with ICMP for second fragment packet. * 3. Check if Server receive the 1500 bytes. */ diff --git a/test/regression/netxduo_test/netx_ip_gateway_address_test.c b/test/regression/netxduo_test/netx_ip_gateway_address_test.c index 41108e87..8901e5e5 100644 --- a/test/regression/netxduo_test/netx_ip_gateway_address_test.c +++ b/test/regression/netxduo_test/netx_ip_gateway_address_test.c @@ -203,7 +203,7 @@ NX_PACKET *packet_ptr; } #endif /* NX_DISABLE_IP_INFO */ - /* Send a packet out of network through the second interface. + /* Send a packet out of network through the second interface. * But the default gateway is set at first interface. */ nx_udp_socket_source_send(&socket_0, packet_ptr, IP_ADDRESS(1, 4, 3, 5), 12, 1); diff --git a/test/regression/netxduo_test/netx_ip_idle_scan_test.c b/test/regression/netxduo_test/netx_ip_idle_scan_test.c index 9f9614dc..d70789f0 100644 --- a/test/regression/netxduo_test/netx_ip_idle_scan_test.c +++ b/test/regression/netxduo_test/netx_ip_idle_scan_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on idle-scan as described in https://www.youtube.com/watch?v=v5QEB-T6pH0. +/* This NetX test concentrates on idle-scan as described in https://www.youtube.com/watch?v=v5QEB-T6pH0. Idle scans are a way for an attacker to perform a port scan in a way that might evade network restrictions and detection mechanisms. The basic defense is to avoid predictably incrementing the IP Identification field. */ #include "nx_api.h" diff --git a/test/regression/netxduo_test/netx_ipv6_branch_test.c b/test/regression/netxduo_test/netx_ipv6_branch_test.c index f1dd93b4..ec3b2945 100644 --- a/test/regression/netxduo_test/netx_ipv6_branch_test.c +++ b/test/regression/netxduo_test/netx_ipv6_branch_test.c @@ -429,7 +429,7 @@ UINT address_index; ip_0.nx_ipv6_default_router_table[0].nx_ipv6_default_router_entry_neighbor_cache_ptr = NX_NULL; #if (NX_MAX_PHYSICAL_INTERFACES > 1) - /* Hit the branch + /* Hit the branch 156 [ + + ][ + - ]: 408 : if ((rt_entry -> nx_ipv6_default_router_entry_flag & NX_IPV6_ROUTE_TYPE_VALID) && 157 : 378 : (rt_entry -> nx_ipv6_default_router_entry_interface_ptr == if_ptr)) */ diff --git a/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test1.c b/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test1.c index aa82b00d..f525e725 100644 --- a/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test1.c +++ b/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test1.c @@ -1,15 +1,15 @@ /* This NetX test concentrates on basic IPv6 fragmentation. */ /* Test sequence: - * 1. ip_0 allocate 1000 bytes. + * 1. ip_0 allocate 1000 bytes. * 2. ip_0 discard the packets excpet the header packet, packet length also is 1000. - * 3. ip_0 call nxd_ip_raw_packet_send to send packet. - * 4. ip_0 call nx_ipv6_fragment_process to fragment packet and send the fragmentation packets. + * 3. ip_0 call nxd_ip_raw_packet_send to send packet. + * 4. ip_0 call nx_ipv6_fragment_process to fragment packet and send the fragmentation packets. * 5. check if the driver receive fragmentation packet form ip_0. Test pointer: * 1. in _nx_ipv6_packet_copy failure since the next packet of source packet is NX_NULL, cover the following code. if ((source_pkt == NX_NULL) || (dest_pkt == NX_NULL)) return(NX_NOT_SUCCESSFUL); - * 2. in nx_ipv6_fragment_process failure since _nx_ipv6_packet_copy failure, cover the following code: + * 2. in nx_ipv6_fragment_process failure since _nx_ipv6_packet_copy failure, cover the following code: // Copy the rest of the frame. if (_nx_ipv6_packet_copy(source_packet, first_fragment, fragment_size)) break; diff --git a/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test2.c b/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test2.c index 77b42145..5a0c449a 100644 --- a/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test2.c +++ b/test/regression/netxduo_test/netx_ipv6_fragmentation_error_test2.c @@ -1,17 +1,17 @@ /* This NetX test concentrates on basic IPv6 fragmentation. */ /* Test sequence: - * 1. ip_0 allocate one packets. + * 1. ip_0 allocate one packets. * 1. ip_0 add the Hop-by-Hop Option, 2 bytes(next header, option length) + 128 bytes(option length). - * 1. ip_0 append the data 1000 bytes. + * 1. ip_0 append the data 1000 bytes. * 2. ip_0 discard the packets excpet the header packet, packet length also is 2 + 128 + 1000. - * 3. ip_0 call nxd_ip_raw_packet_send to send the packet with Hop-by-Hop Option. - * 4. ip_0 call nx_ipv6_fragment_process to fragment packet and send the fragmentation packets. + * 3. ip_0 call nxd_ip_raw_packet_send to send the packet with Hop-by-Hop Option. + * 4. ip_0 call nx_ipv6_fragment_process to fragment packet and send the fragmentation packets. * 5. check if the driver receive fragmentation packet form ip_0. Test pointer: * 1. in _nx_ipv6_packet_copy failure since the next packet of source packet is NX_NULL, cover the following code. if ((source_pkt == NX_NULL) || (dest_pkt == NX_NULL)) return(NX_NOT_SUCCESSFUL); - * 2. in nx_ipv6_fragment_process failure since _nx_ipv6_packet_copy failure, cover the following code: + * 2. in nx_ipv6_fragment_process failure since _nx_ipv6_packet_copy failure, cover the following code: // For the first packet, the prepend pointer is already at the begining of the IP header. if (_nx_ipv6_packet_copy(source_packet, first_fragment, fragment_size)) break; diff --git a/test/regression/netxduo_test/netx_ipv6_hop_by_hop_fragment_test.c b/test/regression/netxduo_test/netx_ipv6_hop_by_hop_fragment_test.c index 120f10b4..eb46d95f 100644 --- a/test/regression/netxduo_test/netx_ipv6_hop_by_hop_fragment_test.c +++ b/test/regression/netxduo_test/netx_ipv6_hop_by_hop_fragment_test.c @@ -31,7 +31,7 @@ static UINT packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT *operat /* ICMPv6 echo request packet with hop by hop option. * src: 0xFE80::1 - * dst: 0xFE80::2 + * dst: 0xFE80::2 * length of ping data: 1400. */ static char icmp_pkt[] = { 0xa4, 0x1f, 0x72, 0x53, 0xa0, 0xf7, 0x18, 0x03, /* ..rS.... */ diff --git a/test/regression/netxduo_test/netx_ipv6_invalid_packet_receive_test.c b/test/regression/netxduo_test/netx_ipv6_invalid_packet_receive_test.c index 24cb2e90..8325ba8c 100644 --- a/test/regression/netxduo_test/netx_ipv6_invalid_packet_receive_test.c +++ b/test/regression/netxduo_test/netx_ipv6_invalid_packet_receive_test.c @@ -306,7 +306,7 @@ NX_IPV6_HEADER *ip_header_ptr; /* Convert to host byte order. */ NX_CHANGE_ULONG_ENDIAN(ip_header_ptr -> nx_ip_header_word_1); - /* Set the address state as NX_IPV6_ADDR_STATE_UNKNOWN, and receive the packet again, then recover the state. + /* Set the address state as NX_IPV6_ADDR_STATE_UNKNOWN, and receive the packet again, then recover the state. Cover the code if (interface_ipv6_address_next -> nxd_ipv6_address_state != NX_IPV6_ADDR_STATE_UNKNOWN) in _nx_ipv6_packet_receive. */ ip_1.nx_ipv6_address[0].nxd_ipv6_address_state = NX_IPV6_ADDR_STATE_UNKNOWN; _nx_ipv6_packet_receive(&ip_1, my_packet); diff --git a/test/regression/netxduo_test/netx_ipv6_multicast_ping_test1.c b/test/regression/netxduo_test/netx_ipv6_multicast_ping_test1.c index ae020154..6656de9f 100644 --- a/test/regression/netxduo_test/netx_ipv6_multicast_ping_test1.c +++ b/test/regression/netxduo_test/netx_ipv6_multicast_ping_test1.c @@ -1,10 +1,10 @@ -/* This NetX test concentrates on the basic multicast ICMPv6 operation. - * Two nodes (A and B) with link local addresses. - * Let node A finish DAD first. - * Let node A ping all node multicast address. +/* This NetX test concentrates on the basic multicast ICMPv6 operation. + * Two nodes (A and B) with link local addresses. + * Let node A finish DAD first. + * Let node A ping all node multicast address. * Since the state of address for node B is still tentative, B would not respond A. - * Let node B finish DAD. - * Let node A ping all node multicast address. + * Let node B finish DAD. + * Let node A ping all node multicast address. * Check the return status of ping from A. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_ipv6_pmtu_test.c b/test/regression/netxduo_test/netx_ipv6_pmtu_test.c index 9882528a..94c1374d 100644 --- a/test/regression/netxduo_test/netx_ipv6_pmtu_test.c +++ b/test/regression/netxduo_test/netx_ipv6_pmtu_test.c @@ -1,4 +1,4 @@ -/* This test case is modified from IPv6 TAHI 4-13. +/* This test case is modified from IPv6 TAHI 4-13. * It aims to test PMTU when NA is received. */ #include "nx_api.h" diff --git a/test/regression/netxduo_test/netx_low_watermark_test.c b/test/regression/netxduo_test/netx_low_watermark_test.c index 55c4d2d3..a46f04ce 100644 --- a/test/regression/netxduo_test/netx_low_watermark_test.c +++ b/test/regression/netxduo_test/netx_low_watermark_test.c @@ -142,7 +142,7 @@ UINT max; /* Setup driver callback. */ advanced_packet_process_callback = packet_process; - /* 1. Do not set low watermark or receive queue maximum. + /* 1. Do not set low watermark or receive queue maximum. * All packets in pool_1 should be queued in TCP socket. * */ verify_tcp(0, POOL_1_COUNT, 0, POOL_1_COUNT); diff --git a/test/regression/netxduo_test/netx_tcp_ack_check_issue_test.c b/test/regression/netxduo_test/netx_tcp_ack_check_issue_test.c index 0e257888..5761f6ca 100644 --- a/test/regression/netxduo_test/netx_tcp_ack_check_issue_test.c +++ b/test/regression/netxduo_test/netx_tcp_ack_check_issue_test.c @@ -1,5 +1,5 @@ /* This NetX test concentrates a bug in nx_tcp_socket_state_ack_check.c. */ -/* When the packet is in TCP transmit queue but not sent by driver yet, +/* When the packet is in TCP transmit queue but not sent by driver yet, * an incoming ACK packet will trigger an ACK response. That is a bug. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_tcp_advertised_window_update_test.c b/test/regression/netxduo_test/netx_tcp_advertised_window_update_test.c index dcca5772..93f0e5e3 100644 --- a/test/regression/netxduo_test/netx_tcp_advertised_window_update_test.c +++ b/test/regression/netxduo_test/netx_tcp_advertised_window_update_test.c @@ -178,7 +178,7 @@ char *msg = MSG; error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 37 + /* Packet 1 contains bytes 0 - 37 Packet 2 contains bytes 38 - 75 */ memcpy(my_packet1 -> nx_packet_prepend_ptr, &msg[0], 38); @@ -189,7 +189,7 @@ char *msg = MSG; my_packet2 -> nx_packet_length = 38; my_packet2 -> nx_packet_append_ptr = my_packet2 -> nx_packet_prepend_ptr + 38; - /* Set a fixed sequence number to make sure + /* Set a fixed sequence number to make sure "nx_tcp_socket_state_ack_check.c: ((INT)tcp_header_ptr -> nx_tcp_sequence_number - (INT)ending_rx_sequence > 0)" will not be hit. */ client_socket.nx_tcp_socket_tx_sequence = 0x00221122; diff --git a/test/regression/netxduo_test/netx_tcp_branch_test.c b/test/regression/netxduo_test/netx_tcp_branch_test.c index 5cbe96d0..e68ff8de 100644 --- a/test/regression/netxduo_test/netx_tcp_branch_test.c +++ b/test/regression/netxduo_test/netx_tcp_branch_test.c @@ -9,7 +9,7 @@ * _nx_tcp_server_socket_listen.c * _nx_tcp_socket_mss_set.c * _nx_tcp_socket_state_fin_wait2.c - * _nx_tcp_socket_state_data_trim.c + * _nx_tcp_socket_state_data_trim.c * _nx_tcp_client_socket_unbind.c * _nx_tcp_socket_disconnect.c * _nx_tcp_client_bind_cleanup.c @@ -762,7 +762,7 @@ UINT i; #ifdef __PRODUCT_NETXDUO__ /* Test _nx_tcp_socket_state_syn_received */ - /* Test line: + /* Test line: 140 [ + - ][ + + ]: 2278 : if ((tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) && 141 : 2278 : (tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence)) */ @@ -817,12 +817,12 @@ UINT i; /* Test nx_tcp_socket_state_last_ack.c - 117 [ + - ]: 1188 : if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) + 117 [ + - ]: 1188 : if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) */ tcp_header.nx_tcp_header_word_3 = 0; _nx_tcp_socket_state_last_ack(&tcp_socket, &tcp_header); - /* + /* 121 [ + + ][ + - ]: 1188 : if ((tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence) && 122 : 1187 : (tcp_header_ptr -> nx_tcp_sequence_number == socket_ptr -> nx_tcp_socket_rx_sequence)) */ @@ -860,7 +860,7 @@ UINT i; tcp_socket.nx_tcp_socket_receive_queue_head = NX_NULL; _nx_tcp_socket_receive(&tcp_socket, &packet_ptr, 0); - /* Test nx_tcp_server_socket_relisten() + /* Test nx_tcp_server_socket_relisten() 174 [ + + ][ - + ]: 2078 : if ((socket_ptr -> nx_tcp_socket_bound_next) || 175 : 2076 : (socket_ptr -> nx_tcp_socket_bind_in_progress)) */ @@ -879,7 +879,7 @@ UINT i; /* Test nx_tcp_socket_state_fin_wait1.c: 132 [ + + ][ + - ]: 12 : else if ((socket_ptr -> nx_tcp_socket_fin_acked) && 133 [ + - ]: 1 : (socket_ptr -> nx_tcp_socket_fin_received) && - 134 : 1 : (socket_ptr -> nx_tcp_socket_fin_sequence == socket_ptr -> nx_tcp_socket_rx_sequence)) + 134 : 1 : (socket_ptr -> nx_tcp_socket_fin_sequence == socket_ptr -> nx_tcp_socket_rx_sequence)) */ @@ -914,7 +914,7 @@ UINT i; tcp_socket.nx_tcp_socket_fin_sequence = tcp_socket.nx_tcp_socket_rx_sequence + 1; _nx_tcp_socket_state_fin_wait1(&tcp_socket); - /* Test nx_tcp_socket_state_closing.c + /* Test nx_tcp_socket_state_closing.c 118 [ + - ]: 1 : if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) */ tcp_header.nx_tcp_header_word_3 = 0; @@ -962,7 +962,7 @@ UINT i; _nx_tcp_socket_delete(&tcp_socket); tcp_socket.nx_tcp_socket_bind_in_progress = TX_NULL; - /* Test nx_tcp_fast_periodic_processing.c + /* Test nx_tcp_fast_periodic_processing.c 216 [ + + ][ + + ]: 2559 : else if (socket_ptr -> nx_tcp_socket_transmit_sent_head || 217 [ + - ]: 137 : ((socket_ptr -> nx_tcp_socket_tx_window_advertised == 0) && 218 : 137 : (socket_ptr -> nx_tcp_socket_state <= NX_TCP_CLOSE_WAIT))) @@ -972,7 +972,7 @@ UINT i; tcp_socket.nx_tcp_socket_state = NX_TCP_FIN_WAIT_2; _nx_tcp_fast_periodic_processing(&ip_0); - /* Test nx_tcp_fast_periodic_processing.c + /* Test nx_tcp_fast_periodic_processing.c 231 [ + + ][ + + ]: 2374 : else if ((socket_ptr -> nx_tcp_socket_state == NX_TCP_FIN_WAIT_1) || 232 [ - + ]: 2371 : (socket_ptr -> nx_tcp_socket_state == NX_TCP_CLOSING) || 233 : 2371 : (socket_ptr -> nx_tcp_socket_state == NX_TCP_LAST_ACK)) @@ -982,7 +982,7 @@ UINT i; tcp_socket.nx_tcp_socket_state = NX_TCP_LAST_ACK; _nx_tcp_fast_periodic_processing(&ip_0); - /* Test nx_tcp_fast_periodic_processing.c + /* Test nx_tcp_fast_periodic_processing.c 187 [ + + ][ + + ]: 2857 : else if (((socket_ptr -> nx_tcp_socket_timeout_retries >= socket_ptr -> nx_tcp_socket_timeout_max_retries) && 188 [ + + ]: 2856 : (socket_ptr -> nx_tcp_socket_zero_window_probe_has_data == NX_FALSE)) || 189 [ + - ]: 4 : ((socket_ptr -> nx_tcp_socket_zero_window_probe_failure >= socket_ptr -> nx_tcp_socket_timeout_max_retries) && @@ -1005,7 +1005,7 @@ UINT i; _nx_tcp_no_connection_reset(&ip_0, my_packet[0], &tcp_header); - /* Test nx_tcp_packet_process.c + /* Test nx_tcp_packet_process.c 402 [ + - ]: 2261852 : if (socket_ptr -> nx_tcp_socket_connect_ip.nxd_ip_version == packet_ptr -> nx_packet_ip_version) */ tcp_socket.nx_tcp_socket_id = NX_TCP_ID; @@ -1028,7 +1028,7 @@ UINT i; _nx_ip_packet_deferred_receive(&ip_0, packet_ptr); - /* Test nx_tcp_packet_process.c + /* Test nx_tcp_packet_process.c 409 [ + - ]: 2261688 : if (socket_ptr -> nx_tcp_socket_connect_ip.nxd_ip_address.v4 == *source_ip) */ tcp_socket.nx_tcp_socket_connect_ip.nxd_ip_version = NX_IP_VERSION_V4; @@ -1047,7 +1047,7 @@ UINT i; #ifdef FEATURE_NX_IPV6 - /* Test nx_tcp_packet_process.c + /* Test nx_tcp_packet_process.c 415 [ + - ]: 164 : else if (CHECK_IPV6_ADDRESSES_SAME(socket_ptr -> nx_tcp_socket_connect_ip.nxd_ip_address.v6, source_ip)) */ nxd_ipv6_address_set(&ip_0, 0, NX_NULL, 10, NX_NULL); @@ -1175,7 +1175,7 @@ UINT i; /* Test nx_tcp_packet_process.c - 900 [ + - ][ + - ]: 6 : if ((*queued_source_ip == *source_ip) && (queued_source_port == source_port)) + 900 [ + - ][ + - ]: 6 : if ((*queued_source_ip == *source_ip) && (queued_source_port == source_port)) */ ip_0.nx_ip_tcp_active_listen_requests -> nx_tcp_listen_port = 80; ip_0.nx_ip_tcp_active_listen_requests -> nx_tcp_listen_queue_current = 0; @@ -1342,7 +1342,7 @@ UINT i; /* Test _nx_tcp_socket_state_transmit_check() */ - /* Hit condition: + /* Hit condition: 169 [ + + ][ + - ]: 332 : if ((tx_window_current) && 170 : 262 : (socket_ptr -> nx_tcp_socket_transmit_sent_count < socket_ptr -> nx_tcp_socket_transmit_queue_maximum)) */ /* suspension list is set to NULL. */ @@ -1541,7 +1541,7 @@ UINT i; /* Test _nx_tcp_socket_send_internal() */ #ifndef NX_DISABLE_PACKET_CHAIN - /* Hit condition: + /* Hit condition: 377 [ + + ][ + + ]: 125717 : else if ((packet_ptr -> nx_packet_next != NX_NULL) && 378 [ + - ]: 6631 : ((packet_ptr -> nx_packet_length + data_offset) < pool_ptr -> nx_packet_pool_payload_size) && 379 : 6631 : (pool_ptr -> nx_packet_pool_available > 0)) @@ -1565,7 +1565,7 @@ UINT i; pool_0.nx_packet_pool_available = packet_counter; - /* Hit condition: + /* Hit condition: 391 [ + - ][ + + ]: 5 : while ((current_packet != NX_NULL) && (current_packet -> nx_packet_prepend_ptr == current_packet -> nx_packet_append_ptr)) 399 [ - + ]: 2 : NX_ASSERT(current_packet != NX_NULL); @@ -1586,7 +1586,7 @@ UINT i; #endif /* NX_DISABLE_ASSERT */ - /* Hit condition: + /* Hit condition: 454 [ + - ]: 1 : if (preempted == NX_TRUE) */ nx_packet_allocate(&pool_0, &my_packet[0], NX_TCP_PACKET, NX_NO_WAIT); @@ -1606,7 +1606,7 @@ UINT i; pool_0.nx_packet_pool_available = packet_counter; tcp_socket.nx_tcp_socket_tx_window_advertised = 65535; - /* Hit condition: + /* Hit condition: 490 [ + - ]: 2 : if (preempted == NX_TRUE) */ nx_packet_allocate(&pool_0, &my_packet[0], NX_TCP_PACKET, NX_NO_WAIT); @@ -1623,7 +1623,7 @@ UINT i; _nx_tcp_socket_send_internal(&tcp_socket, my_packet[0], 0); tcp_socket.nx_tcp_socket_tx_window_advertised = 65535; - /* Hit condition: + /* Hit condition: 550 [ + - ]: 1 : if (preempted == NX_TRUE) */ nx_packet_allocate(&pool_0, &my_packet[0], NX_TCP_PACKET, NX_NO_WAIT); @@ -1761,7 +1761,7 @@ NX_PACKET *packet_ptr; /* Test _nx_tcp_socket_send_internal() */ - /* Hit condition: + /* Hit condition: 867 [ + + ][ + - ]: 281 : else if ((wait_option) && (_tx_thread_current_ptr != &(ip_ptr -> nx_ip_thread))) */ nx_packet_allocate(&pool_0, &packet_ptr, NX_TCP_PACKET, NX_NO_WAIT); @@ -1911,7 +1911,7 @@ NX_PACKET *packet_ptr; /* Test nx_tcp_socket_state_ack_check.c 479 [ - + ]: 12 : if (tcp_header_ptr -> nx_tcp_acknowledgment_number < ending_packet_sequence) 480 : : { - 481 : : + 481 : : 482 : : / * ACK does not cover the search packet. Break out of the loop. * / 483 : 0 : break; 484 : : } @@ -2116,7 +2116,7 @@ static VOID thread_for_assert_entry_1(ULONG thread_input) { NX_PACKET *test_packet; - /* Hit condition: + /* Hit condition: 391 [ + - ][ + + ]: 5 : while ((current_packet != NX_NULL) && (current_packet -> nx_packet_prepend_ptr == current_packet -> nx_packet_append_ptr)) 399 [ - + ]: 2 : NX_ASSERT(current_packet != NX_NULL); diff --git a/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test.c b/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test.c index b331ece2..3c66f58c 100644 --- a/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test.c +++ b/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on delayed retransmission TCP packet. +/* This NetX test concentrates on delayed retransmission TCP packet. * 1. Send packet A. * 2. Drop packet A in driver. * 3. Send packet B, C and D. diff --git a/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test2.c b/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test2.c index 74204503..5d9204a3 100644 --- a/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test2.c +++ b/test/regression/netxduo_test/netx_tcp_delayed_retransmission_test2.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on delayed retransmission TCP packet. +/* This NetX test concentrates on delayed retransmission TCP packet. * 1. Send packet A. * 2. Drop packet A in driver. * 4. Retransmit packet A. diff --git a/test/regression/netxduo_test/netx_tcp_dropped_packet_test2.c b/test/regression/netxduo_test/netx_tcp_dropped_packet_test2.c index 78f1cadd..f5447791 100644 --- a/test/regression/netxduo_test/netx_tcp_dropped_packet_test2.c +++ b/test/regression/netxduo_test/netx_tcp_dropped_packet_test2.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on TCP packet drop. +/* This NetX test concentrates on TCP packet drop. * Client sends 5 packet to server. Each packet size is MSS. * The first and the third packets are dropped. */ diff --git a/test/regression/netxduo_test/netx_tcp_duplicate_accept_test.c b/test/regression/netxduo_test/netx_tcp_duplicate_accept_test.c index 874b6efd..09571c61 100644 --- a/test/regression/netxduo_test/netx_tcp_duplicate_accept_test.c +++ b/test/regression/netxduo_test/netx_tcp_duplicate_accept_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on calling nx_tcp_server_socket_accept() for multiple times. +/* This NetX test concentrates on calling nx_tcp_server_socket_accept() for multiple times. * It verifies a bug that TCP server would send SYN+ACK on each accept() call. The ACK number in each packet is different. */ #include "nx_api.h" diff --git a/test/regression/netxduo_test/netx_tcp_ipv6_basic_processing_test.c b/test/regression/netxduo_test/netx_tcp_ipv6_basic_processing_test.c index 018f40b0..a3884985 100644 --- a/test/regression/netxduo_test/netx_tcp_ipv6_basic_processing_test.c +++ b/test/regression/netxduo_test/netx_tcp_ipv6_basic_processing_test.c @@ -1,4 +1,4 @@ -/* This NetX test use the second interface send a larger packet with IPv6 address +/* This NetX test use the second interface send a larger packet with IPv6 address to test the TCP MSS process procedure. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_tcp_ipv6_delayed_retransmission_test.c b/test/regression/netxduo_test/netx_tcp_ipv6_delayed_retransmission_test.c index 05a94165..361b2af2 100644 --- a/test/regression/netxduo_test/netx_tcp_ipv6_delayed_retransmission_test.c +++ b/test/regression/netxduo_test/netx_tcp_ipv6_delayed_retransmission_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on delayed retransmission TCP packet. +/* This NetX test concentrates on delayed retransmission TCP packet. * 1. Send packet A. * 2. Drop packet A in driver. * 3. Send packet B, C and D. diff --git a/test/regression/netxduo_test/netx_tcp_ipv6_interface2_mss_test.c b/test/regression/netxduo_test/netx_tcp_ipv6_interface2_mss_test.c index e08475d6..c77eea00 100644 --- a/test/regression/netxduo_test/netx_tcp_ipv6_interface2_mss_test.c +++ b/test/regression/netxduo_test/netx_tcp_ipv6_interface2_mss_test.c @@ -1,4 +1,4 @@ -/* This NetX test use the second interface send a larger packet with IPv6 address +/* This NetX test use the second interface send a larger packet with IPv6 address to test the TCP MSS process procedure. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_tcp_keepalive_test.c b/test/regression/netxduo_test/netx_tcp_keepalive_test.c index 4e61b091..0b3c3d81 100644 --- a/test/regression/netxduo_test/netx_tcp_keepalive_test.c +++ b/test/regression/netxduo_test/netx_tcp_keepalive_test.c @@ -1,5 +1,5 @@ -/* This NetX test concentrates on the basic TCP Keepalive operation. - keepalive expiration time is 60s, +/* This NetX test concentrates on the basic TCP Keepalive operation. + keepalive expiration time is 60s, After initial expiration, retry every 10s, Retry a maximum of 10 tims. */ diff --git a/test/regression/netxduo_test/netx_tcp_multiple_send_test2.c b/test/regression/netxduo_test/netx_tcp_multiple_send_test2.c index e2ecc7a6..802d075f 100644 --- a/test/regression/netxduo_test/netx_tcp_multiple_send_test2.c +++ b/test/regression/netxduo_test/netx_tcp_multiple_send_test2.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on sending TCP packets in multiple threads simultaneously. +/* This NetX test concentrates on sending TCP packets in multiple threads simultaneously. Hit the conidtion in _nx_tcp_socket_send_internal: 684 [ + - ]: if (send_packet != packet_ptr) */ #include "nx_api.h" diff --git a/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test4.c b/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test4.c index c3b22cf6..d96ba2a8 100644 --- a/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test4.c +++ b/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test4.c @@ -1,7 +1,7 @@ /* This NetX test concentrates on fast retransmit. */ /* Procedure: -1. Client connect with Server. The sequence number of client is modified to the edge of 32 bit number. +1. Client connect with Server. The sequence number of client is modified to the edge of 32 bit number. 2. Client send five segments to Server. 3. Drop the first segment in the driver. 4. Server send three duplicate ACKs with acknowledgment number as the sequence number of first segment. diff --git a/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test5.c b/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test5.c index 40c1a20e..91820daf 100644 --- a/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test5.c +++ b/test/regression/netxduo_test/netx_tcp_new_reno_algorithm_test5.c @@ -1,7 +1,7 @@ /* This NetX test concentrates on fast retransmit. */ /* Procedure: -1. Client connect with Server. The sequence number of client is modified to the edge of 32 bit number. +1. Client connect with Server. The sequence number of client is modified to the edge of 32 bit number. 2. Client send five segments to Server. 3. Drop the first segment in the driver. 4. Server send three duplicate ACKs with acknowledgment number as the sequence number of first segment. diff --git a/test/regression/netxduo_test/netx_tcp_odd_window_test.c b/test/regression/netxduo_test/netx_tcp_odd_window_test.c index 563a39ac..4c40725f 100644 --- a/test/regression/netxduo_test/netx_tcp_odd_window_test.c +++ b/test/regression/netxduo_test/netx_tcp_odd_window_test.c @@ -1,5 +1,5 @@ /* This NetX test concentrates on the odd window of TCP transmission. */ -/* Window size is 800 bytes. Payload size of pool is 512. +/* Window size is 800 bytes. Payload size of pool is 512. * 1. Host A sends 1 byte. So the remaining window is 799. * 2. Host A sends 1499 bytes. */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test.c index 7345ddad..b3d69081 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test.c @@ -184,7 +184,7 @@ ULONG seq1, seq2; error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 37 + /* Packet 1 contains bytes 0 - 37 Packet 2 contains bytes 38 - 75 Packet 3 contains bytes 76 - 113 Packet 4 contains bytes 76 - 85 diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_10.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_10.c index 8364d98b..bcc323bb 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_10.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_10.c @@ -169,7 +169,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 60 - 79 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 20 - 45 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_11.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_11.c index aa0831ad..ec5d9c9f 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_11.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_11.c @@ -168,7 +168,7 @@ ULONG bytes_available; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 60 - 79 + /* Packet 1 contains bytes 60 - 79 Packet 2 contains bytes 20 - 39 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 0 - 29 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_12.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_12.c index 26339452..65f997e8 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_12.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_12.c @@ -172,7 +172,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 20 - 39 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 30 - 49 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_13.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_13.c index 66c22476..451c88c9 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_13.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_13.c @@ -171,7 +171,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 40 - 59 Packet 3 contains bytes 80 - 99 packet 4 contains bytes 45 - 79 diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_14.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_14.c index 6591bdf5..936b1061 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_14.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_14.c @@ -179,7 +179,7 @@ ULONG seq1, seq2; error_counter++; /* Fill in the packet with data. */ - /* The full message to send is: 11122222333333344444444 + /* The full message to send is: 11122222333333344444444 Packet 1 sends: 111 Packet 2 sends: 111222223333333 Packet 3 sends: 22222333333344444444 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_15.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_15.c index 0556c80f..043f6aae 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_15.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_15.c @@ -183,12 +183,12 @@ ULONG seq1; error_counter++; /* Fill in the packet with data. */ - /* The full message to send is: 11122222333333344444444555 + /* The full message to send is: 11122222333333344444444555 Packet 1 sends: 111 Packet 2 sends: 555 - Packet 3 sends: 111222223333333 + Packet 3 sends: 111222223333333 Packet 4 sends: 4444 - Packet 5 sends: 33444444 + Packet 5 sends: 33444444 */ status = nx_packet_data_append(my_packet1, &msg[0], 3, &pool_0, TX_WAIT_FOREVER); diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_16.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_16.c index feb3a93c..6e9628f6 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_16.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_16.c @@ -182,7 +182,7 @@ ULONG seq1, seq2; } /* Fill in the packet with data. */ - /* The full message to send is: 0x0100000002000000......00010000 + /* The full message to send is: 0x0100000002000000......00010000 Packet 1 sends: 0x0100000002000000......40000000 Packet 2 sends: 0x0100000002000000......C0000000 Packet 3 sends: 0x4100000042000000......00010000 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_17.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_17.c index 82fed792..cff453de 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_17.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_17.c @@ -182,7 +182,7 @@ ULONG seq1; } /* Fill in the packet with data. */ - /* The full message to send is: 0x0100000002000000......00010000 + /* The full message to send is: 0x0100000002000000......00010000 Packet 1 sends: 0x0100000002000000......40000000 Packet 2 sends: 0xC1000000C2000000......00010000 Packet 3 sends: 0x0100000002000000......C0000000 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_18.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_18.c index 04be4126..578975d8 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_18.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_18.c @@ -179,7 +179,7 @@ ULONG seq1, seq2; error_counter++; /* Fill in the packet with data. */ - /* The full message to send is: 11122222333333344444444 + /* The full message to send is: 11122222333333344444444 Packet 1 sends: 111 Packet 2 sends: 111222223333333 Packet 3 sends: 22222333333344444444 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_2.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_2.c index 0291eb91..626c898d 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_2.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_2.c @@ -181,7 +181,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 37 + /* Packet 1 contains bytes 0 - 37 Packet 2 contains bytes 38 - 75 Packet 3 contains bytes 76 - 113 packet 23 contains bytes 37 - 112 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_3.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_3.c index a9e3d780..bdfa410f 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_3.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_3.c @@ -182,7 +182,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 37 + /* Packet 1 contains bytes 0 - 37 Packet 2 contains bytes 38 - 75 Packet 3 contains bytes 76 - 113 packet 23 contains bytes 37 - 113 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_4.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_4.c index 8279c702..cd8793a0 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_4.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_4.c @@ -168,7 +168,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 20 - 39 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 20 - 39 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_5.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_5.c index 09fda62c..7ad1fb09 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_5.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_5.c @@ -179,7 +179,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 40 - 59 Packet 3 contains bytes 80 - 99 packet 123 contains bytes 20 - 59 diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_6.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_6.c index db57b018..354cec35 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_6.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_6.c @@ -167,7 +167,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 20 - 39 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 40 - 59 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_7.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_7.c index 5d70c601..ee81e7ff 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_7.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_7.c @@ -170,8 +170,8 @@ UINT old_threshold; error_counter++; /* Fill in the packet with data. */ - /* Packet 0 contains bytes 0 - 19 - Packet 1 contains bytes 20 - 39 + /* Packet 0 contains bytes 0 - 19 + Packet 1 contains bytes 20 - 39 Packet 2 contains bytes 40 - 59 Packet 3 contains bytes 60 - 79 Packet 4 contains bytes 0 - 19 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_8.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_8.c index 59fed687..ace253e5 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_8.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_8.c @@ -167,7 +167,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 20 - 39 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 0 - 59 */ diff --git a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_9.c b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_9.c index 7cd1e271..acf1fbf0 100644 --- a/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_9.c +++ b/test/regression/netxduo_test/netx_tcp_overlapping_packet_test_9.c @@ -168,7 +168,7 @@ static void thread_0_entry(ULONG thread_input) error_counter++; /* Fill in the packet with data. */ - /* Packet 1 contains bytes 0 - 19 + /* Packet 1 contains bytes 0 - 19 Packet 2 contains bytes 20 - 39 Packet 3 contains bytes 40 - 59 packet 4 contains bytes 25 - 30 */ diff --git a/test/regression/netxduo_test/netx_tcp_race_condition_test2.c b/test/regression/netxduo_test/netx_tcp_race_condition_test2.c index 945b280e..10e7f7b6 100644 --- a/test/regression/netxduo_test/netx_tcp_race_condition_test2.c +++ b/test/regression/netxduo_test/netx_tcp_race_condition_test2.c @@ -178,7 +178,7 @@ NX_PACKET *my_packet; } } - /* Cover nx_tcp_socket_send_internal.c + /* Cover nx_tcp_socket_send_internal.c [+ -] line 837 if (preempted == NX_TRUE) */ tx_thread_resume(&thread_test); status = nx_tcp_socket_send(&client_socket, my_packet, 5 * NX_IP_PERIODIC_RATE); @@ -230,7 +230,7 @@ NX_PACKET *my_packet; error_counter++; } - /* Cover nx_tcp_socket_send_internal.c + /* Cover nx_tcp_socket_send_internal.c [+ -] line 1072 if (socket_ptr -> nx_tcp_socket_zero_window_probe_has_data == NX_FALSE) */ status = nx_tcp_socket_send(&client_socket, my_packet, NX_NO_WAIT); if (status == NX_SUCCESS) @@ -238,7 +238,7 @@ NX_PACKET *my_packet; error_counter++; } - /* Cover nx_tcp_socket_send_internal.c + /* Cover nx_tcp_socket_send_internal.c [+ -] line 846 if (send_packet != packet_ptr) */ tx_thread_resume(&thread_test); status = nx_tcp_socket_send(&client_socket, my_packet, 5 * NX_IP_PERIODIC_RATE); diff --git a/test/regression/netxduo_test/netx_tcp_send_fail_test2.c b/test/regression/netxduo_test/netx_tcp_send_fail_test2.c index 2aab6bad..e2642d7f 100644 --- a/test/regression/netxduo_test/netx_tcp_send_fail_test2.c +++ b/test/regression/netxduo_test/netx_tcp_send_fail_test2.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on sending partial TCP data due to pool empty. +/* This NetX test concentrates on sending partial TCP data due to pool empty. * The payload size of packet pool is 512. * The window size is 800. * Size of transmitting data is 1800. diff --git a/test/regression/netxduo_test/netx_tcp_send_fail_test3.c b/test/regression/netxduo_test/netx_tcp_send_fail_test3.c index 441e6719..2227b864 100644 --- a/test/regression/netxduo_test/netx_tcp_send_fail_test3.c +++ b/test/regression/netxduo_test/netx_tcp_send_fail_test3.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on sending partial TCP data due to window size. The length of packet is verified after send. +/* This NetX test concentrates on sending partial TCP data due to window size. The length of packet is verified after send. * The payload size of packet pool is 1516. * The MSS and window is 1460. * Size of transmitting data is 1500. diff --git a/test/regression/netxduo_test/netx_tcp_window_update_test.c b/test/regression/netxduo_test/netx_tcp_window_update_test.c index 23ea06f5..f51a6e35 100644 --- a/test/regression/netxduo_test/netx_tcp_window_update_test.c +++ b/test/regression/netxduo_test/netx_tcp_window_update_test.c @@ -2,8 +2,8 @@ /* Procedure 1. Client socket connects to server socket. -2. Client sends five packets to server. The size of each packet is 1/5 of window size. Then the send window should be zero. -3. Drop the second packet from client to server. +2. Client sends five packets to server. The size of each packet is 1/5 of window size. Then the send window should be zero. +3. Drop the second packet from client to server. 4. Try to send 1/5 of window size from client to server without wait. It should fail since send window is zero. */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test2.c b/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test2.c index 8b16494e..c8a9f1e5 100644 --- a/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test2.c +++ b/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test2.c @@ -1,10 +1,10 @@ /* This NetX test concentrates on the wrapping of TX sequence numbers. */ /* Client sends two packets with sequences: * 0xFFFFFFEF ~ 0xFFFFFFFE, length is 16, - * 0xFFFFFFFF ~ 0x0000000E, length is 16. + * 0xFFFFFFFF ~ 0x0000000E, length is 16. * The seconds packet is dropped. - * Server will ACK 0xFFFFFFFF. - * + * Server will ACK 0xFFFFFFFF. + * * Packets like following. * * | | | diff --git a/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test3.c b/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test3.c index f6526a57..6f0489ae 100644 --- a/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test3.c +++ b/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test3.c @@ -1,10 +1,10 @@ /* This NetX test concentrates on the wrapping of TX sequence numbers. */ /* Client sends two packets with sequences: * 0xFFFFFFFF ~ 0x0000000E, length is 16, - * 0x0000000F ~ 0x0000001E, length is 16. + * 0x0000000F ~ 0x0000001E, length is 16. * The seconds packet is dropped. - * Server will ACK 0x0000000F. - * + * Server will ACK 0x0000000F. + * * Packets like following. * * | | | diff --git a/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test4.c b/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test4.c index 042a6ade..221cf5d8 100644 --- a/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test4.c +++ b/test/regression/netxduo_test/netx_tcp_wrapping_sequence_test4.c @@ -1,11 +1,11 @@ /* This NetX test concentrates on the wrapping of TX sequence numbers. */ /* Client sends three packets with sequences: * 0xFFFFFFDF ~ 0xFFFFFFEE, length is 16, - * 0xFFFFFFEF ~ 0xFFFFFFFE, length is 16. - * 0xFFFFFFFF ~ 0x0000000E, length is 16. + * 0xFFFFFFEF ~ 0xFFFFFFFE, length is 16. + * 0xFFFFFFFF ~ 0x0000000E, length is 16. * The seconds packet is dropped. - * Server will ACK 0xFFFFFFF0. - * + * Server will ACK 0xFFFFFFF0. + * * Packets like following. * * | | | | diff --git a/test/regression/netxduo_test/netx_tcp_zero_window_probe_2_test.c b/test/regression/netxduo_test/netx_tcp_zero_window_probe_2_test.c index 1d1e9eb0..e4134bb3 100644 --- a/test/regression/netxduo_test/netx_tcp_zero_window_probe_2_test.c +++ b/test/regression/netxduo_test/netx_tcp_zero_window_probe_2_test.c @@ -1,4 +1,4 @@ -/* This case verifies bug reported by trac #138. +/* This case verifies bug reported by trac #138. * https://192.168.100.2/trac/netx/ticket/138 */ #include "tx_api.h" diff --git a/test/regression/netxduo_test/netx_udp_branch_test.c b/test/regression/netxduo_test/netx_udp_branch_test.c index 57cb6310..68ef13b7 100644 --- a/test/regression/netxduo_test/netx_udp_branch_test.c +++ b/test/regression/netxduo_test/netx_udp_branch_test.c @@ -332,7 +332,7 @@ NX_IPV6_HEADER *ipv6_header_ptr; /* Test _nx_udp_socket_receive() */ /* Hit condition: - [ + - ][ + + ]: if ((!socket_ptr -> nx_udp_socket_disable_checksum && (*(temp_ptr + 1) & NX_LOWER_16_MASK)) || + [ + - ][ + + ]: if ((!socket_ptr -> nx_udp_socket_disable_checksum && (*(temp_ptr + 1) & NX_LOWER_16_MASK)) || [ + + ] ((*packet_ptr) -> nx_packet_ip_version == NX_IP_VERSION_V6)) */ nx_udp_socket_bind(&socket_0, 1234, NX_NO_WAIT); /* Allocate the packet. queue one packet on receive list. */ diff --git a/test/regression/netxduo_test/netx_udp_packet_receive_test.c b/test/regression/netxduo_test/netx_udp_packet_receive_test.c index eade5c54..b5506cb7 100644 --- a/test/regression/netxduo_test/netx_udp_packet_receive_test.c +++ b/test/regression/netxduo_test/netx_udp_packet_receive_test.c @@ -1,4 +1,4 @@ -/* Here are the test points. +/* Here are the test points. * socket's port is not equal to the source port * multi threads suspend for the packet * udp queue is full diff --git a/test/regression/netxduo_test/netx_udp_port_table_udpate_test.c b/test/regression/netxduo_test/netx_udp_port_table_udpate_test.c index 212f55d1..6ac26e4a 100644 --- a/test/regression/netxduo_test/netx_udp_port_table_udpate_test.c +++ b/test/regression/netxduo_test/netx_udp_port_table_udpate_test.c @@ -1,4 +1,4 @@ -/* This NetX test concentrates on the UDP port table is updated +/* This NetX test concentrates on the UDP port table is updated * when the receiving socket is not the header of port table. */ diff --git a/test/regression/nx_secure_test/hash_clone/nx_crypto_ciphersuites_hc.c b/test/regression/nx_secure_test/hash_clone/nx_crypto_ciphersuites_hc.c index 3175f36f..e48a0501 100644 --- a/test/regression/nx_secure_test/hash_clone/nx_crypto_ciphersuites_hc.c +++ b/test/regression/nx_secure_test/hash_clone/nx_crypto_ciphersuites_hc.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/test/regression/nx_secure_test/key_usage_certs.c b/test/regression/nx_secure_test/key_usage_certs.c index 395b26a8..93b0eca6 100644 --- a/test/regression/nx_secure_test/key_usage_certs.c +++ b/test/regression/nx_secure_test/key_usage_certs.c @@ -1,4 +1,4 @@ -/* +/* KeyUsage Test PKI - root CA has correct KeyUsage - Certificate Sign, CRL Sign @@ -12,14 +12,14 @@ KeyUsage Test PKI - ICA CRL should be rejected because ICA has improper key usage - ICA CRL fails verification at KeyUsage Check -PKI structure +PKI structure root_ca_cert - root_crl # Good - Correct KeyUsage | \ | revoked_cert # Good - Correct KeyUsage in root CA, but revoked in CRL | - ica_cert - ica_crl # BAD - wrong Key Usage + ica_cert - ica_crl # BAD - wrong Key Usage | -device_cert # Bad - wrong key usage in ICA +device_cert # Bad - wrong key usage in ICA */ @@ -143,7 +143,7 @@ unsigned int ica_crl_der_len = 443; /* "device_cert" not revoked */ -/* +/* unsigned char ica_crl_der[] = { 0x30, 0x82, 0x01, 0xa1, 0x30, 0x81, 0x8a, 0x02, 0x01, 0x01, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, diff --git a/test/regression/nx_secure_test/nx_crypto_ciphersuites_regression.c b/test/regression/nx_secure_test/nx_crypto_ciphersuites_regression.c index f7f6121d..5bbd6d6b 100644 --- a/test/regression/nx_secure_test/nx_crypto_ciphersuites_regression.c +++ b/test/regression/nx_secure_test/nx_crypto_ciphersuites_regression.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -56,12 +56,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 05-19-2020 Timothy Stapko Initial Version 6.0 */ -/* */ /**************************************************************************/ /* Define cryptographic methods for use with TLS. */ diff --git a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c index 484fa2a7..a55a78aa 100644 --- a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c +++ b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c @@ -1,5 +1,5 @@ /* This test concentrates on DTLS retransmit ChangeCipherSpec message. */ -/* RFC 6347, section 4.2.5. +/* RFC 6347, section 4.2.5. As with TLS, the ChangeCipherSpec message is not technically a handshake message but MUST be treated as part of the same flight as the associated Finished message for the purposes of timeout and diff --git a/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c b/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c index a39fba08..b63a9cd0 100644 --- a/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c +++ b/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c @@ -164,7 +164,7 @@ ULONG current_seq; EXPECT_EQ(NX_FALSE, status); /************************************************************************************/ - /* Now check the window by setting bits - 0xFFFFFFFF is all packets seen - all + /* Now check the window by setting bits - 0xFFFFFFFF is all packets seen - all incoming sequence numbers less than the expected should fail. */ dtls_session.nx_secure_dtls_sliding_window = SLIDING_WINDOW_SET; @@ -253,7 +253,7 @@ ULONG current_seq; /************************************************************************************/ - /* Now check the window update by setting and checking sequence numbers. Clear the + /* Now check the window update by setting and checking sequence numbers. Clear the window to start. */ dtls_session.nx_secure_dtls_sliding_window = 0; diff --git a/test/regression/nx_secure_test/nx_secure_expiration_time_test.c b/test/regression/nx_secure_test/nx_secure_expiration_time_test.c index 28b418d8..9ee8a310 100644 --- a/test/regression/nx_secure_test/nx_secure_expiration_time_test.c +++ b/test/regression/nx_secure_test/nx_secure_expiration_time_test.c @@ -76,7 +76,7 @@ UINT index; printf("year: %d, month: %d, day: %d, hour: %d, minute: %d, second: %d\n", year, month, day, hour, minute, second); /* Now we have our time in integers, calculate leap years. We aren't concerned with years outside the UNIX - time range of 1970-2038 so we can assume every 4 years starting with 1972 is a leap year (years divisible + time range of 1970-2038 so we can assume every 4 years starting with 1972 is a leap year (years divisible by 100 are NOT leap years unless also divisible by 400, which the year 2000 is). Using integer division gives us the floor of the number of 4 year periods, so add 1. */ if(year >= 70) diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c index 483b21b0..884c635d 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c @@ -1,5 +1,5 @@ /* Length and bounds checking tests. Length fields are the most likely to be exploited by an attacker so we need to be sure all of our parsing is checking them correctly. -One idea: generate a number of valid TLS handshake messages but use random lengths for each length field. +One idea: generate a number of valid TLS handshake messages but use random lengths for each length field. Focus particularly on ClientHello and ServerHello extensions. Bugs like Heartbleed in OpenSSL occur in those extensions. Pay close attention to any length fields in the extensions. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c index 463c2186..6081f683 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c @@ -335,7 +335,7 @@ UINT i; nx_tcp_socket_delete(&client_socket_0); } -/* Rewrite the session start function. +/* Rewrite the session start function. For the first loop, client will send ClientHello with two KeyShares. For the second loop, client will send ClientHello with empty KeyShare. */ static UINT tls_session_start_test(NX_SECURE_TLS_SESSION *tls_session, NX_TCP_SOCKET *tcp_socket, diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c index ff7f1923..436c39c7 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c @@ -381,7 +381,7 @@ UINT i = 0; } } -/* Rewrite the session start function. +/* Rewrite the session start function. For the first loop, client will send ClientHello with two KeyShares. For the second loop, client will send ClientHello with empty KeyShare. */ static UINT test_count = 0; diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c index 4d45a7a8..d2278212 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c @@ -1,5 +1,5 @@ /* Length and bounds checking tests. Length fields are the most likely to be exploited by an attacker so we need to be sure all of our parsing is checking them correctly. -One idea: generate a number of valid TLS handshake messages but use random lengths for each length field. +One idea: generate a number of valid TLS handshake messages but use random lengths for each length field. Focus particularly on ClientHello and ServerHello extensions. Bugs like Heartbleed in OpenSSL occur in those extensions. Pay close attention to any length fields in the extensions. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_alert_test.c b/test/regression/nx_secure_test/nx_secure_tls_alert_test.c index 14a9e0f2..fa5fe398 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_alert_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_alert_test.c @@ -39,14 +39,14 @@ UINT alert_level; /* Unsupported or otherwise incorrect alerts. NX_SECURE_TLS_ALERT_EXPORT_RESTRICTION_RESERVED - NX_SECURE_TLS_ALERT_INSUFFICIENT_SECURITY - NX_SECURE_TLS_ALERT_USER_CANCELED - NX_SECURE_TLS_ALERT_ACCESS_DENIED - NX_SECURE_TLS_ALERT_DECRYPTION_FAILED_RESERVED - NX_SECURE_TLS_ALERT_RECORD_OVERFLOW - NX_SECURE_TLS_ALERT_DECOMPRESSION_FAILURE - NX_SECURE_TLS_ALERT_NO_CERTIFICATE_RESERVED - NX_SECURE_TLS_ALERT_UNSUPPORTED_EXTENSION + NX_SECURE_TLS_ALERT_INSUFFICIENT_SECURITY + NX_SECURE_TLS_ALERT_USER_CANCELED + NX_SECURE_TLS_ALERT_ACCESS_DENIED + NX_SECURE_TLS_ALERT_DECRYPTION_FAILED_RESERVED + NX_SECURE_TLS_ALERT_RECORD_OVERFLOW + NX_SECURE_TLS_ALERT_DECOMPRESSION_FAILURE + NX_SECURE_TLS_ALERT_NO_CERTIFICATE_RESERVED + NX_SECURE_TLS_ALERT_UNSUPPORTED_EXTENSION */ /* Unexpected message alerts. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c b/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c index 90bb8103..08618907 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c @@ -465,7 +465,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) return(0x5976833BL); } @@ -586,7 +586,7 @@ ULONG bytes; /* Accept a client socket connection. */ status = nx_tcp_server_socket_accept(&server_socket, NX_IP_PERIODIC_RATE); - //tx_thread_suspend(&ntest_0); + //tx_thread_suspend(&ntest_0); /* Check for error. */ @@ -685,7 +685,7 @@ ULONG bytes; #ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES /* For PSK ciphersuites, add a PSK and identity hint. For the client, we need to add the identity - and set it for the particular server with which we want to communicate. + and set it for the particular server with which we want to communicate. "Client_identity" is the identity hint used by default in the OpenSSL s_server application when uisng PSK ciphersuites. */ nx_secure_tls_psk_add(&client_tls_session, tls_psk, sizeof(tls_psk), "Client_identity", 15, "12345678", 8); @@ -708,7 +708,7 @@ ULONG bytes; if(status) error_counter++; - //tx_thread_resume(&ntest_0); + //tx_thread_resume(&ntest_0); nx_secure_tls_session_start(&client_tls_session, &client_socket, NX_WAIT_FOREVER); diff --git a/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c b/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c index b6037c59..fd8d58de 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c b/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c index 6dc12be6..5d10d82e 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c index c4269085..d1da1a34 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c @@ -894,7 +894,7 @@ UCHAR test_iv[16]; nx_packet_release(send_packet); EXPECT_EQ(NX_SUCCESS, status); - /* No remote endpoint certificate is allocated earlier. + /* No remote endpoint certificate is allocated earlier. As of 5.12, it is OK if no certificates are allocated - _nx_secure_tls_process_remote_certificate will instead allocate certificate space from the packet reassembly buffer. This function as tested now should return an incorrect message length error. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c index da6aec46..3d0e4ce3 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c @@ -576,7 +576,7 @@ UINT public_key_size = 2; session.nx_secure_public_cipher_metadata_size, session.nx_secure_public_auth_metadata_area, session.nx_secure_public_auth_metadata_size); - // EXPECT_EQ(NX_CRYPTO_NOT_SUCCESSFUL, status); + // EXPECT_EQ(NX_CRYPTO_NOT_SUCCESSFUL, status); /* Cover line 279 */ fake_crypto_method.nx_crypto_cleanup = fake_cleanup; diff --git a/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c b/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c index 25b83656..8ec27ed4 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c @@ -1,5 +1,5 @@ /* Length and bounds checking tests. Length fields are the most likely to be exploited by an attacker so we need to be sure all of our parsing is checking them correctly. -One idea: generate a number of valid TLS handshake messages but use random lengths for each length field. +One idea: generate a number of valid TLS handshake messages but use random lengths for each length field. Focus particularly on ClientHello and ServerHello extensions. Bugs like Heartbleed in OpenSSL occur in those extensions. Pay close attention to any length fields in the extensions. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c index d7b72733..3bae3ab9 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c @@ -478,7 +478,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) return(0x5976833BL); } @@ -1159,7 +1159,7 @@ int hash_size; { #ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES /* For PSK ciphersuites, add a PSK and identity hint. For the client, we need to add the identity - and set it for the particular server with which we want to communicate. + and set it for the particular server with which we want to communicate. "Client_identity" is the identity hint used by default in the OpenSSL s_server application when uisng PSK ciphersuites. */ nx_secure_tls_psk_add(&client_tls_session, tls_psk, sizeof(tls_psk), "Client_identity", 15, "12345678", 8); diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c index 41e5c56b..21db158f 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ @@ -795,7 +795,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c index 0b658b7d..5f00b115 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c @@ -1,5 +1,5 @@ -/* This test concentrates on fragmented TLS handshake message across multiple TLS records -(e.g. when a certificate message is splitted into multiple fragments). +/* This test concentrates on fragmented TLS handshake message across multiple TLS records +(e.g. when a certificate message is splitted into multiple fragments). The Cipher Suite used was TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (0xc024). */ #include "nx_api.h" @@ -187,7 +187,7 @@ static UCHAR frame1[] = { }; UINT frame1_len = 1514; -/* Frame 2 consists of certificate(continuation), server_key_exchange, +/* Frame 2 consists of certificate(continuation), server_key_exchange, certificate_request, server_hello_done*/ static UCHAR frame2[] = { 0x00, 0x15, 0x5d, 0x64, 0x1a, 0x03, 0x00, 0x15, 0x5d, 0xb9, 0x20, 0x17, diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c index fa2fcb19..051922c3 100755 --- a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c @@ -1,4 +1,4 @@ -/* This test concentrates on fragmented TLS handshake message across multiple TLS records +/* This test concentrates on fragmented TLS handshake message across multiple TLS records (e.g. when a certificate message is splitted into multiple fragments). The Cipher Suite used was TLS_RSA_WITH_AES_128_GCM_SHA256 (0x009c). */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c b/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c index 85a346c7..c01114ae 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c @@ -408,7 +408,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c b/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c index 91c71b4b..714688ec 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c @@ -660,7 +660,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) return(0x5976833BL); } @@ -801,7 +801,7 @@ ULONG bytes; /* Accept a client socket connection. */ status = nx_tcp_server_socket_accept(&server_socket, NX_IP_PERIODIC_RATE); - //tx_thread_suspend(&ntest_0); + //tx_thread_suspend(&ntest_0); /* Check for error. */ @@ -905,7 +905,7 @@ ULONG bytes; #ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES /* For PSK ciphersuites, add a PSK and identity hint. For the client, we need to add the identity - and set it for the particular server with which we want to communicate. + and set it for the particular server with which we want to communicate. "Client_identity" is the identity hint used by default in the OpenSSL s_server application when uisng PSK ciphersuites. */ nx_secure_tls_psk_add(&client_tls_session, tls_psk, sizeof(tls_psk), "Client_identity", 15, "12345678", 8); @@ -928,7 +928,7 @@ ULONG bytes; if(status) error_counter++; - //tx_thread_resume(&ntest_0); + //tx_thread_resume(&ntest_0); status = nx_secure_tls_session_start(&client_tls_session, &client_socket, NX_WAIT_FOREVER); diff --git a/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c b/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c index c70d530e..56e1a6ad 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ diff --git a/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c b/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c index 6bee5391..3b72d26f 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c @@ -710,7 +710,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c b/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c index c34861cb..22ed9a6e 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c @@ -678,7 +678,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c b/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c index ac9dca15..ee8e5a6a 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c @@ -1,4 +1,4 @@ -/* This test verifies that a TLS server will select the top-priority ciphersuite in the local ciphersuite table from the selection provided +/* This test verifies that a TLS server will select the top-priority ciphersuite in the local ciphersuite table from the selection provided by the remote client. The priority is determined by the order in the ciphersuite table, thus the highest priority ciphersuite has the lowest-value index in the table. */ #include "tx_api.h" @@ -397,7 +397,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c index ac55be69..3adbac15 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c @@ -106,7 +106,7 @@ NX_SECURE_X509_CERTIFICATE_STORE *store; tls_session.nx_secure_tls_secure_renegotiation = NX_TRUE; tls_session.nx_secure_tls_socket_type = NX_SECURE_TLS_SESSION_TYPE_CLIENT; status = _nx_secure_tls_session_renegotiate(&tls_session, NX_NO_WAIT); - //EXPECT_EQ(NX_SECURE_TLS_ALLOCATE_PACKET_FAILED, status); + //EXPECT_EQ(NX_SECURE_TLS_ALLOCATE_PACKET_FAILED, status); nx_packet_pool_delete(&pool_0); diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c index 38e6aa5b..197cf890 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c @@ -231,7 +231,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c b/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c index 804ce00c..12098a3c 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c @@ -459,7 +459,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ static ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) return(0x5976833BL); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c b/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c index 4faf54e8..3b85467a 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c +++ b/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ @@ -425,7 +425,7 @@ UINT status; /* Timestamp function - should return Unix time formatted 32-bit integer. */ ULONG tls_timestamp_function(void) { - // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) + // Return a fixed epoch - 1500939067 seconds = 07/24/2017 @ 11:31pm (UTC) // 1541030400 = 0x5BDA4200L = 11/01/2018 @ 12:00AM (UTC) return(0x5BDA4200L); } diff --git a/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c b/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c index 50327f7d..b2f1b025 100644 --- a/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c +++ b/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c @@ -1,7 +1,7 @@ /* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */ /* Procedure - 1.Connection successfully + 1.Connection successfully 2.First Client sends 40 data to Server, then check if the last_sent changed 3.Then Client sends more 20 data to Server, also check if the last_sent changed 4.If the last_sent changed, the SWS avoidance algorithm has not been used. */ @@ -477,7 +477,7 @@ ULONG bytes; /* Accept a client socket connection. */ status = nx_tcp_server_socket_accept(&server_socket, NX_IP_PERIODIC_RATE); - //tx_thread_suspend(&ntest_0); + //tx_thread_suspend(&ntest_0); /* Check for error. */ @@ -638,7 +638,7 @@ ULONG bytes; #ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES /* For PSK ciphersuites, add a PSK and identity hint. For the client, we need to add the identity - and set it for the particular server with which we want to communicate. + and set it for the particular server with which we want to communicate. "Client_identity" is the identity hint used by default in the OpenSSL s_server application when uisng PSK ciphersuites. */ nx_secure_tls_psk_add(&client_tls_session, tls_psk, sizeof(tls_psk), "Client_identity", 15, "12345678", 8); @@ -652,7 +652,7 @@ ULONG bytes; if(status) error_counter++; - //tx_thread_resume(&ntest_0); + //tx_thread_resume(&ntest_0); status = nx_secure_tls_session_start(&client_tls_session, &client_socket, NX_WAIT_FOREVER); diff --git a/test/regression/pop3_test/netx_pop3_abnormal_packet_test.c b/test/regression/pop3_test/netx_pop3_abnormal_packet_test.c index d51e91ec..b13f527b 100644 --- a/test/regression/pop3_test/netx_pop3_abnormal_packet_test.c +++ b/test/regression/pop3_test/netx_pop3_abnormal_packet_test.c @@ -1,5 +1,5 @@ -/* - This tests POP3 client process abnormal packet. +/* + This tests POP3 client process abnormal packet. */ #include "tx_api.h" @@ -56,7 +56,7 @@ UCHAR *free_memory_pointer; free_memory_pointer = free_memory_pointer + DEMO_STACK_SIZE; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ /* Create Client packet pool. */ diff --git a/test/regression/pop3_test/netx_pop3_mail_receive_test.c b/test/regression/pop3_test/netx_pop3_mail_receive_test.c index 01e62020..99f946d6 100644 --- a/test/regression/pop3_test/netx_pop3_mail_receive_test.c +++ b/test/regression/pop3_test/netx_pop3_mail_receive_test.c @@ -1,10 +1,10 @@ -/* - This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. - This demo relies on Thread, NetX and POP3 Client API to conduct - a POP3 mail session. +/* + This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. + This demo relies on Thread, NetX and POP3 Client API to conduct + a POP3 mail session. The POP3 'server' is a TCP socket that sends responses and downloads a mail item - of three packets. + of three packets. */ #include "tx_api.h" @@ -275,7 +275,7 @@ UCHAR *free_memory_pointer; free_memory_pointer = free_memory_pointer + DEMO_STACK_SIZE; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ /* Create Client packet pool. */ @@ -432,7 +432,7 @@ NX_PACKET *packet_ptr; /* Let the IP instance get initialized with driver parameters. */ tx_thread_sleep(10); - /* Create a NetX POP3 Client instance with no byte or block memory pools. + /* Create a NetX POP3 Client instance with no byte or block memory pools. Note that it uses its password for its APOP shared secret. */ status = nx_pop3_client_create(&pop3_client, NX_FALSE /* if true, enables Client to send APOP command to authenticate */, @@ -463,7 +463,7 @@ NX_PACKET *packet_ptr; /* This submits a RETR request and gets the mail message size. */ status = nx_pop3_client_mail_item_get(&pop3_client, mail_item, &mail_item_size); - /* Loop to get the next mail message packet until the last mail item + /* Loop to get the next mail message packet until the last mail item packet is downloaded. */ do { diff --git a/test/regression/pop3_test/netx_pop3_packet_with_endmarker_test.c b/test/regression/pop3_test/netx_pop3_packet_with_endmarker_test.c index 56b70944..d118afd4 100644 --- a/test/regression/pop3_test/netx_pop3_packet_with_endmarker_test.c +++ b/test/regression/pop3_test/netx_pop3_packet_with_endmarker_test.c @@ -1,7 +1,7 @@ -/* - This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. - This demo relies on Thread, NetX and POP3 Client API to conduct - a POP3 mail session. +/* + This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. + This demo relies on Thread, NetX and POP3 Client API to conduct + a POP3 mail session. The POP3 'server' is a TCP socket that sends responses and downloads a mail item of three packets. The third packet of the second mail item only contains the POP# @@ -337,7 +337,7 @@ UCHAR *free_memory_pointer; free_memory_pointer = free_memory_pointer + DEMO_STACK_SIZE; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ /* Create Client packet pool. */ @@ -521,7 +521,7 @@ NX_PACKET *packet_ptr; /* Let the IP instance get initialized with driver parameters. */ tx_thread_sleep(10); - /* Create a NetX POP3 Client instance with no byte or block memory pools. + /* Create a NetX POP3 Client instance with no byte or block memory pools. Note that it uses its password for its APOP shared secret. */ status = nx_pop3_client_create(&pop3_client, NX_FALSE /* if true, enables Client to send APOP command to authenticate */, @@ -552,7 +552,7 @@ NX_PACKET *packet_ptr; /* This submits a RETR request and gets the mail message size. */ status = nx_pop3_client_mail_item_get(&pop3_client, mail_item, &mail_item_size); - /* Loop to get the next mail message packet until the last mail item + /* Loop to get the next mail message packet until the last mail item packet is downloaded. */ do { diff --git a/test/regression/pop3_test/netx_pop3_two_mails_received_test.c b/test/regression/pop3_test/netx_pop3_two_mails_received_test.c index 9c964662..9b02c3f6 100644 --- a/test/regression/pop3_test/netx_pop3_two_mails_received_test.c +++ b/test/regression/pop3_test/netx_pop3_two_mails_received_test.c @@ -1,10 +1,10 @@ -/* - This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. - This demo relies on Thread, NetX and POP3 Client API to conduct - a POP3 mail session. +/* + This is a small demo of POP3 Client on the high-performance NetX TCP/IP stack. + This demo relies on Thread, NetX and POP3 Client API to conduct + a POP3 mail session. The POP3 'server' is a TCP socket that sends responses and downloads 2 mail items - of three packets each. + of three packets each. */ #include "tx_api.h" @@ -346,7 +346,7 @@ UCHAR *free_memory_pointer; free_memory_pointer = free_memory_pointer + DEMO_STACK_SIZE; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ /* Create Client packet pool. */ @@ -532,7 +532,7 @@ NX_PACKET *packet_ptr; /* Let the IP instance get initialized with driver parameters. */ tx_thread_sleep(10); - /* Create a NetX POP3 Client instance with no byte or block memory pools. + /* Create a NetX POP3 Client instance with no byte or block memory pools. Note that it uses its password for its APOP shared secret. */ status = nx_pop3_client_create(&pop3_client, NX_FALSE /* if true, enables Client to send APOP command to authenticate */, @@ -563,7 +563,7 @@ NX_PACKET *packet_ptr; /* This submits a RETR request and gets the mail message size. */ status = nx_pop3_client_mail_item_get(&pop3_client, mail_item, &mail_item_size); - /* Loop to get the next mail message packet until the last mail item + /* Loop to get the next mail message packet until the last mail item packet is downloaded. */ do { diff --git a/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c b/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c index bc6a4aff..cd4bc9df 100644 --- a/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c +++ b/test/regression/ppp_test/netx_ppp_IPCP_nak_test.c @@ -389,7 +389,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c b/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c index 7d5edb19..596bb7c3 100644 --- a/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c +++ b/test/regression/ppp_test/netx_ppp_IPCP_retransmit_test.c @@ -379,7 +379,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_IPCP_timeout.c b/test/regression/ppp_test/netx_ppp_IPCP_timeout.c index 2c0a6d7e..7f71a2cd 100644 --- a/test/regression/ppp_test/netx_ppp_IPCP_timeout.c +++ b/test/regression/ppp_test/netx_ppp_IPCP_timeout.c @@ -1,15 +1,15 @@ /* This demo tests the nx_ppp_restart() function. To simulate a link down in the middle of the IPCP negotiation, the thread_0/PPP_0 promotes the PPP 1 instance to LCP complete, and its IPCP state to STARTED. - Then the PPP0 instance is suspended as part of simulating link down. + Then the PPP0 instance is suspended as part of simulating link down. PPP_1 should go into a FAILED state after the max number of retries, and call the link down callback. NetX PPP has a restart function which reinitializes the PPP instance so it can restart the PPP protocol using nx_ppp_restart(). The process is started again, PPP 0 is resumed, and thread 0 promotes the PPP 1 instance ahead - to the LCP complete state, and ICP start state. After the second link down event, the test is complete. + to the LCP complete state, and ICP start state. After the second link down event, the test is complete. - This test verifies that the NetX PPP properly clears and restarts a PPP instance, including resetting + This test verifies that the NetX PPP properly clears and restarts a PPP instance, including resetting the PPP state to restart the IPCP negotiation. */ diff --git a/test/regression/ppp_test/netx_ppp_LCP_timeout.c b/test/regression/ppp_test/netx_ppp_LCP_timeout.c index c8f786de..9c9ea39d 100644 --- a/test/regression/ppp_test/netx_ppp_LCP_timeout.c +++ b/test/regression/ppp_test/netx_ppp_LCP_timeout.c @@ -1,12 +1,12 @@ -/* This demo tests the nx_ppp_restart() function. The PPP_1 instance is never started. - So PPP_0 fails to complete the LCP protocol. After so many attempts at the LCP +/* This demo tests the nx_ppp_restart() function. The PPP_1 instance is never started. + So PPP_0 fails to complete the LCP protocol. After so many attempts at the LCP protocol, the PPP_0 should go into a FAILED state and call the link down callback. - NetX PPP has a restart function which reinitializes the PPP instance so it can + NetX PPP has a restart function which reinitializes the PPP instance so it can restart the PPP protocol again. - This test runs until the second link down event occurs. This is considered a successful - outcome because it verifies the NetX PPP properly resets the LCP state, removes packets on - the receive queue, resets the buffer markers, and clears authentication status. + This test runs until the second link down event occurs. This is considered a successful + outcome because it verifies the NetX PPP properly resets the LCP state, removes packets on + the receive queue, resets the buffer markers, and clears authentication status. */ diff --git a/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c b/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c index a9b426ed..3332c1d7 100644 --- a/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c +++ b/test/regression/ppp_test/netx_ppp_PAP_bad_password_test.c @@ -273,7 +273,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c b/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c index 578208a8..8dfc17d4 100644 --- a/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c +++ b/test/regression/ppp_test/netx_ppp_PAP_bad_username_test.c @@ -277,7 +277,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_acfc_option_test.c b/test/regression/ppp_test/netx_ppp_acfc_option_test.c index ab4abc28..e1617a13 100644 --- a/test/regression/ppp_test/netx_ppp_acfc_option_test.c +++ b/test/regression/ppp_test/netx_ppp_acfc_option_test.c @@ -386,7 +386,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c b/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c index c4fac994..33081dba 100644 --- a/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c +++ b/test/regression/ppp_test/netx_ppp_chap_bad_secret_failed_retry_test.c @@ -4,7 +4,7 @@ In this test, both PPP instances restart() when notified of NAK/CHAP failure. PPP1 reloads the responder value with the same secret and should not succeed on the next CHAP authentication challenges. However it should be able to abort further attempts - after a certain number of retries (2). + after a certain number of retries (2). */ #include "nx_ppp.h" @@ -360,7 +360,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c b/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c index 21b2b79f..8cfc50e6 100644 --- a/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c +++ b/test/regression/ppp_test/netx_ppp_chap_bad_secret_passed_on_retry_test.c @@ -3,7 +3,7 @@ to authenticate itself with ppp_0, needs to handle the NAK authentication failure. In this test, both PPP instances restart() when notified of NAK/CHAP failure. PPP1 reloads the responder value with the correct secret and should succeed on the next - CHAP authentication challenge. + CHAP authentication challenge. */ #include "tx_api.h" @@ -401,7 +401,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_check_boundary_test.c b/test/regression/ppp_test/netx_ppp_check_boundary_test.c index 95aab81a..ff806d55 100644 --- a/test/regression/ppp_test/netx_ppp_check_boundary_test.c +++ b/test/regression/ppp_test/netx_ppp_check_boundary_test.c @@ -1,4 +1,4 @@ -/* This test should be done with the PACKET CHAIN option enabled. It tests that the PPP instance can +/* This test should be done with the PACKET CHAIN option enabled. It tests that the PPP instance can handle receiving chained packets, including when the data, CRC checksum and PPP frame closing sequence occur on or around the packet buffer boundary. It should run to completion. */ @@ -379,7 +379,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_pap_basic_test.c b/test/regression/ppp_test/netx_ppp_pap_basic_test.c index 4c978084..51f3e5e7 100644 --- a/test/regression/ppp_test/netx_ppp_pap_basic_test.c +++ b/test/regression/ppp_test/netx_ppp_pap_basic_test.c @@ -413,7 +413,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c b/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c index db6e2417..41f74818 100644 --- a/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c +++ b/test/regression/ppp_test/netx_ppp_pap_null_name_password_test.c @@ -267,7 +267,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_pfc_option_test.c b/test/regression/ppp_test/netx_ppp_pfc_option_test.c index e1b689c7..82209ae2 100644 --- a/test/regression/ppp_test/netx_ppp_pfc_option_test.c +++ b/test/regression/ppp_test/netx_ppp_pfc_option_test.c @@ -386,7 +386,7 @@ static void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/ppp_test/netx_ppp_request_dns_server_test.c b/test/regression/ppp_test/netx_ppp_request_dns_server_test.c index 2494bbe2..18617479 100644 --- a/test/regression/ppp_test/netx_ppp_request_dns_server_test.c +++ b/test/regression/ppp_test/netx_ppp_request_dns_server_test.c @@ -1,4 +1,4 @@ -/* This tests the use of requesting and processing primary and secondary DNS servers +/* This tests the use of requesting and processing primary and secondary DNS servers as part of the IPCP handshake. */ #include "tx_api.h" @@ -267,7 +267,7 @@ void invalid_packet_handler(NX_PACKET *packet_ptr) /* Print out the non-PPP byte. In Windows, the string "CLIENT" will be sent before Windows PPP starts. Once CLIENT is received, we need to send "CLIENTSERVER" to establish communication. It's also possible - to receive modem commands here that might need some response to + to receive modem commands here that might need some response to continue. */ nx_packet_release(packet_ptr); } diff --git a/test/regression/pppoe_test/netx_pppoe_ac_name_test.c b/test/regression/pppoe_test/netx_pppoe_ac_name_test.c index a1b2752a..87c128b7 100644 --- a/test/regression/pppoe_test/netx_pppoe_ac_name_test.c +++ b/test/regression/pppoe_test/netx_pppoe_ac_name_test.c @@ -12,11 +12,11 @@ extern void test_control_return(UINT); /* Defined NX_PPP_PPPOE_ENABLE if use PPP, since PPP module has been modified to match PPPoE moduler under this definition. */ -/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . +/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . In this demo, the driver has been initialized in IP module. */ -/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: - If defined, enables the feature that controls the PPPoE session. +/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: + If defined, enables the feature that controls the PPPoE session. PPPoE server does not automatically response to the request until application call specific API. */ /* Define the block size. */ @@ -61,11 +61,11 @@ extern void _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr); /* Define the callback functions. */ static void pppoe_server_packet_receive(UINT interfaceHandle, ULONG length, UCHAR *data, UINT packet_id); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_server_packet_send(NX_PACKET *packet_ptr); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_client_packet_send(NX_PACKET *packet_ptr); static void pppoe_client_packet_receive(NX_PACKET *packet_ptr); diff --git a/test/regression/pppoe_test/netx_pppoe_api_extended_test.c b/test/regression/pppoe_test/netx_pppoe_api_extended_test.c index 07b027da..2df869c5 100644 --- a/test/regression/pppoe_test/netx_pppoe_api_extended_test.c +++ b/test/regression/pppoe_test/netx_pppoe_api_extended_test.c @@ -52,11 +52,11 @@ extern void _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr); /* Define the callback functions. */ static void pppoe_server_packet_receive(UINT interfaceHandle, ULONG length, UCHAR *data, UINT packet_id); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_server_packet_send(NX_PACKET *packet_ptr); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_client_packet_send(NX_PACKET *packet_ptr); static void pppoe_client_packet_receive(NX_PACKET *packet_ptr); diff --git a/test/regression/pppoe_test/netx_pppoe_api_test.c b/test/regression/pppoe_test/netx_pppoe_api_test.c index 41286234..9f08f242 100644 --- a/test/regression/pppoe_test/netx_pppoe_api_test.c +++ b/test/regression/pppoe_test/netx_pppoe_api_test.c @@ -52,11 +52,11 @@ extern void _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr); /* Define the callback functions. */ static void pppoe_server_packet_receive(UINT interfaceHandle, ULONG length, UCHAR *data, UINT packet_id); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_server_packet_send(NX_PACKET *packet_ptr); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_client_packet_send(NX_PACKET *packet_ptr); static void pppoe_client_packet_receive(NX_PACKET *packet_ptr); diff --git a/test/regression/pppoe_test/netx_pppoe_basic_test.c b/test/regression/pppoe_test/netx_pppoe_basic_test.c index ec6fae88..79a402e1 100644 --- a/test/regression/pppoe_test/netx_pppoe_basic_test.c +++ b/test/regression/pppoe_test/netx_pppoe_basic_test.c @@ -12,11 +12,11 @@ extern void test_control_return(UINT); /* Defined NX_PPP_PPPOE_ENABLE if use PPP, since PPP module has been modified to match PPPoE moduler under this definition. */ -/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . +/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . In this demo, the driver has been initialized in IP module. */ -/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: - If defined, enables the feature that controls the PPPoE session. +/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: + If defined, enables the feature that controls the PPPoE session. PPPoE server does not automatically response to the request until application call specific API. */ /* Define the block size. */ @@ -61,11 +61,11 @@ extern void _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr); /* Define the callback functions. */ static void pppoe_server_packet_receive(UINT interfaceHandle, ULONG length, UCHAR *data, UINT packet_id); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_server_packet_send(NX_PACKET *packet_ptr); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_client_packet_send(NX_PACKET *packet_ptr); static void pppoe_client_packet_receive(NX_PACKET *packet_ptr); diff --git a/test/regression/pppoe_test/netx_pppoe_session_control_test.c b/test/regression/pppoe_test/netx_pppoe_session_control_test.c index d782c03d..cb80f5a1 100644 --- a/test/regression/pppoe_test/netx_pppoe_session_control_test.c +++ b/test/regression/pppoe_test/netx_pppoe_session_control_test.c @@ -12,11 +12,11 @@ extern void test_control_return(UINT); /* Defined NX_PPP_PPPOE_ENABLE if use PPP, since PPP module has been modified to match PPPoE moduler under this definition. */ -/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . +/* If the driver is not initialized in other module, define NX_PPPOE_SERVER_INITIALIZE_DRIVER_ENABLE to initialize the driver in PPPoE module . In this demo, the driver has been initialized in IP module. */ -/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: - If defined, enables the feature that controls the PPPoE session. +/* NX_PPPOE_SERVER_SESSION_CONTROL_ENABLE: + If defined, enables the feature that controls the PPPoE session. PPPoE server does not automatically response to the request until application call specific API. */ /* Define the block size. */ @@ -58,11 +58,11 @@ extern void _nx_ppp_driver(NX_IP_DRIVER *driver_req_ptr); /***** Substitute your Ethernet driver entry function here *********/ extern void _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_server_packet_send(NX_PACKET *packet_ptr); -/* Define the porting layer function for PPP. +/* Define the porting layer function for PPP. Functions to be provided by PPP for calling by the PPPoE Stack. */ static void ppp_client_packet_send(NX_PACKET *packet_ptr); static void pppoe_client_packet_receive(NX_PACKET *packet_ptr); diff --git a/test/regression/ptp_test/netx_ptp_client_ipv6_test.c b/test/regression/ptp_test/netx_ptp_client_ipv6_test.c index 3bd113b7..2f773214 100644 --- a/test/regression/ptp_test/netx_ptp_client_ipv6_test.c +++ b/test/regression/ptp_test/netx_ptp_client_ipv6_test.c @@ -1,4 +1,4 @@ -/* PTP IPv6 test. This test case validates PTP client synchronize over IPv6. +/* PTP IPv6 test. This test case validates PTP client synchronize over IPv6. To run this test case, NetXDuo must be built with NX_ENABLE_IPV6_MULTICAST and FEATURE_NX_IPV6. */ diff --git a/test/regression/ptp_test/netx_ptp_utility.c b/test/regression/ptp_test/netx_ptp_utility.c index a6f384ac..0521712b 100644 --- a/test/regression/ptp_test/netx_ptp_utility.c +++ b/test/regression/ptp_test/netx_ptp_utility.c @@ -338,7 +338,7 @@ NX_PTP_TIME *t1; t2 is timestamp of Sync received. t3 is timestamp of DelayRequest sent. Also equals client_clock in the test t4 is timestamp of DelayRequest in DelayResponse packet. - + meanPathDelay between client and server is, [(t2-t1)+(t4-t3)]/2 diff --git a/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c b/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c index 8ef0a47c..2a1e093e 100644 --- a/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c +++ b/test/regression/smtp_test/netx_smtp_abnormal_packet_test.c @@ -211,7 +211,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c b/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c index 5fc07863..d2f1f4ab 100644 --- a/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_logon_function_test.c @@ -215,7 +215,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c b/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c index f7198571..3cf00f70 100644 --- a/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_no_type_function_test.c @@ -212,7 +212,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_auth_no_type_test.c b/test/regression/smtp_test/netx_smtp_auth_no_type_test.c index 66e17fcb..06a4db24 100644 --- a/test/regression/smtp_test/netx_smtp_auth_no_type_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_no_type_test.c @@ -212,7 +212,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_auth_none_test.c b/test/regression/smtp_test/netx_smtp_auth_none_test.c index 9dc41e10..52b44941 100644 --- a/test/regression/smtp_test/netx_smtp_auth_none_test.c +++ b/test/regression/smtp_test/netx_smtp_auth_none_test.c @@ -1,6 +1,6 @@ /* This NetX tests an SMTP Server configured for no authentication (the server response to EHLO message contains no AUTH parameters). The client if configured - for LOGIN or PLAIN authentication can still try to authenticate itself but the + for LOGIN or PLAIN authentication can still try to authenticate itself but the server may send an error message which will cause the client to abort. In this test case, the Client is configured for AUTH NONE, so the Client should @@ -211,7 +211,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_basic_function_test.c b/test/regression/smtp_test/netx_smtp_basic_function_test.c index 6e73d0c1..96bb82a9 100644 --- a/test/regression/smtp_test/netx_smtp_basic_function_test.c +++ b/test/regression/smtp_test/netx_smtp_basic_function_test.c @@ -212,7 +212,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_invalid_release_test.c b/test/regression/smtp_test/netx_smtp_invalid_release_test.c index f70786a0..7153f764 100644 --- a/test/regression/smtp_test/netx_smtp_invalid_release_test.c +++ b/test/regression/smtp_test/netx_smtp_invalid_release_test.c @@ -211,7 +211,7 @@ CHAR *pointer; error_counter++; - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c b/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c index dae680e4..ec474fae 100644 --- a/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c +++ b/test/regression/smtp_test/netx_smtp_missing_last_250_EHLO_message_test.c @@ -1,5 +1,5 @@ /* This NetX tests the SMTP client for handling a server 250 reply to EHLO which has multiple - 250 parameters but none of them have the 'final' 250 code e.g. 250 followed by space. + 250 parameters but none of them have the 'final' 250 code e.g. 250 followed by space. Therefore the SMTP client should abort the connection. The simulated server should not count a failed nx_tcp_socket_receive() if it is sending the 'last' EHLO packet because the Client is 'mute' waiting for the 250 packet with the last 250 marker. */ @@ -255,7 +255,7 @@ CHAR *pointer; #endif /* FEATURE_NX_IPV6 */ - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) diff --git a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c index 5f91e06a..9daea52c 100644 --- a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c +++ b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_auth_last_message_test.c @@ -1,5 +1,5 @@ /* This NetX tests the SMTP client for handling a server 250 reply to EHLO which has multiple - 250 parameters. The AUTH parameters are located in the second packet, not the first! + 250 parameters. The AUTH parameters are located in the second packet, not the first! Note that the Client authentication type must be PLAIN for the sequence to succeed. */ @@ -250,7 +250,7 @@ CHAR *pointer; #endif /* FEATURE_NX_IPV6 */ - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) @@ -456,7 +456,7 @@ ULONG actual_status; if (i == 2) { - /* The Client should be muted; it is waiting for the + /* The Client should be muted; it is waiting for the second part of the EHLO message. */ /* But we still want to send the next part of the EHLO message. */ diff --git a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c index bc294129..fdb9a801 100644 --- a/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c +++ b/test/regression/smtp_test/netx_smtp_two_packet_EHLO_message_test.c @@ -1,5 +1,5 @@ /* This NetX tests the SMTP client for handling a server 250 reply to EHLO which has multiple - 250 parameters. It is supposed to parse the entire message over one or more packets for + 250 parameters. It is supposed to parse the entire message over one or more packets for the last 250 code. The last 250 code is followed by a space after the 250 code. The previous 250 codes should have hyphens after them as per the SMTP protocol in RFC 2821*/ @@ -254,7 +254,7 @@ CHAR *pointer; #endif /* FEATURE_NX_IPV6 */ - /* The demo client username and password is the authentication + /* The demo client username and password is the authentication data used when the server attempts to authentication the client. */ #if defined(__PRODUCT_NETXDUO__) @@ -459,7 +459,7 @@ ULONG actual_status; if (i == 2) { - /* The Client should be muted; it is waiting for the + /* The Client should be muted; it is waiting for the second part of the EHLO message. */ /* But we still want to send the next part of the EHLO message. */ diff --git a/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c b/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c index ace2e572..c0d9f9d4 100644 --- a/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c +++ b/test/regression/snmp_test/netx_snmp_abnormal_packet_test.c @@ -26,7 +26,7 @@ static VOID v3_mib2_variable_update(NX_IP *ip_ptr, NX_SNMP_AGENT *agent_ptr); static UINT query_response_complete = NX_FALSE; /* to synchronize when the agent sends the SNMP trap */ #define QUERY_COUNT 4 -/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. +/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. #define VERBOSE */ @@ -450,7 +450,7 @@ UINT v3_mib2_set_processing(NX_SNMP_AGENT *agent_ptr, UCHAR *object_requested return(NX_SUCCESS); } -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_basic_v2_test.c b/test/regression/snmp_test/netx_snmp_basic_v2_test.c index 03c8dabe..199473ea 100644 --- a/test/regression/snmp_test/netx_snmp_basic_v2_test.c +++ b/test/regression/snmp_test/netx_snmp_basic_v2_test.c @@ -1,7 +1,7 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends three requests, Get, Get Next, and Get Bulk, and the SNMP agent responds. A successful - result means the Agent received and sent the expected number of messages, and no - internal SNMP errors were encountered. + result means the Agent received and sent the expected number of messages, and no + internal SNMP errors were encountered. The MIB database is defined in demo_snmp_helper.h */ @@ -204,7 +204,7 @@ UINT status; if ((v2_my_agent.nx_snmp_agent_get_requests != 1) || (v2_my_agent.nx_snmp_agent_getnext_requests != 1) || (v2_my_agent.nx_snmp_agent_getbulk_requests != 1) || - //(v2_my_agent.nx_snmp_agent_total_get_variables != 8) || + //(v2_my_agent.nx_snmp_agent_total_get_variables != 8) || (v2_my_agent.nx_snmp_agent_packets_received != 3) || (v2_my_agent.nx_snmp_agent_packets_sent != 3) || (v2_my_agent.nx_snmp_agent_getresponse_sent != 3)) @@ -625,7 +625,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_no_security_function_test.c b/test/regression/snmp_test/netx_snmp_no_security_function_test.c index 883c9582..22b0b4fd 100644 --- a/test/regression/snmp_test/netx_snmp_no_security_function_test.c +++ b/test/regression/snmp_test/netx_snmp_no_security_function_test.c @@ -1,6 +1,6 @@ -/* This NetX test is a simple contact between agent and browser with no security. Note that - NX_SNMP_FUNCTION_TESTING must be defined in nxd_snmp.c or else timer tick data (boot time, SysTimerTick, will not match the - 'pre-recorded' data that the NetX SNMP Agent responses re compared with, and the test will fail. +/* This NetX test is a simple contact between agent and browser with no security. Note that + NX_SNMP_FUNCTION_TESTING must be defined in nxd_snmp.c or else timer tick data (boot time, SysTimerTick, will not match the + 'pre-recorded' data that the NetX SNMP Agent responses re compared with, and the test will fail. */ #include "tx_api.h" @@ -69,7 +69,7 @@ static NOSEC_MIB_ENTRY mib2_mib[] = { {NX_NULL, NX_NULL, NX_NULL, NX_NULL} }; -/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. +/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. #define VERBOSE */ @@ -449,7 +449,7 @@ UINT j; printf("%d. 0%x 0%x ", j, *(agent_packet -> nx_packet_prepend_ptr + j), work_ptr[j]); #endif - /* It is unlikely this logic is needed as long as NX_SNMP_FUNCTION_TESTING is defined, + /* It is unlikely this logic is needed as long as NX_SNMP_FUNCTION_TESTING is defined, and the sysUpTime is always updated to 1. */ if (*(agent_packet -> nx_packet_prepend_ptr + j) != work_ptr[j]) @@ -780,7 +780,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_setget_integers_test.c b/test/regression/snmp_test/netx_snmp_setget_integers_test.c index 2519f6da..0d573ba5 100644 --- a/test/regression/snmp_test/netx_snmp_setget_integers_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_integers_test.c @@ -2,9 +2,9 @@ a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET and GET request for an IPv6 address and compares the IPv6 retrieved from the MIB - to be correct if NETX Duo is in use only. + to be correct if NETX Duo is in use only. - The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are + The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are provided in GetSetIPv4v6Address.c. */ @@ -623,7 +623,7 @@ UINT status; } -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c b/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c index 7163199e..856e45f7 100644 --- a/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_ip_address_test.c @@ -2,9 +2,9 @@ a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET and GET request for an IPv6 address and compares the IPv6 retrieved from the MIB - to be correct if NETX Duo is in use only. + to be correct if NETX Duo is in use only. - The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are + The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are provided in GetSetIPv4v6Address.c. */ @@ -676,7 +676,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_setget_misc_test.c b/test/regression/snmp_test/netx_snmp_setget_misc_test.c index e5a85044..8b69f074 100644 --- a/test/regression/snmp_test/netx_snmp_setget_misc_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_misc_test.c @@ -2,9 +2,9 @@ a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET and GET request for an IPv6 address and compares the IPv6 retrieved from the MIB - to be correct if NETX Duo is in use only. + to be correct if NETX Duo is in use only. - The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are + The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are provided in GetSetIPv4v6Address.c. */ @@ -50,7 +50,7 @@ static NX_UDP_SOCKET snmp_manager_socket; #define SNMP_AGENT_ADDRESS IP_ADDRESS(10,0,0,10) /* counter32, counter64 msb counter 64 lsb, timertic */ -//ULONG test_data[] = {30541989, 30541989}; +//ULONG test_data[] = {30541989, 30541989}; #define COUNTER32_VAL 30541989 #define COUNTER64_VAL 3054198999 #define COUNTER64_VAL0 0xD2 // part of number stored in msw @@ -689,7 +689,7 @@ UINT status; } -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c b/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c index d5c194f7..9508c730 100644 --- a/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c +++ b/test/regression/snmp_test/netx_snmp_setget_octet_strings_test.c @@ -2,9 +2,9 @@ a set request for an OID that specifies an IPv4 address. Then it sends a GET request for the same OID and compares it to what it just set it to. It sends another SET and GET request for an IPv6 address and compares the IPv6 retrieved from the MIB - to be correct if NETX Duo is in use only. + to be correct if NETX Duo is in use only. - The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are + The MIB database is defined in snmp_demo_helper.h. The SNMP browser queries are provided in GetSetIPv4v6Address.c. */ @@ -638,7 +638,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c index c31b4e57..feadded4 100644 --- a/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v1_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv1 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -461,7 +461,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c index 0b29cc80..7b90a3e7 100644 --- a/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v1_object_id_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv1 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -383,7 +383,7 @@ UINT mib2_set_processing(NX_SNMP_AGENT *agent_ptr, UCHAR *object_requested, N /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c b/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c index c9bcbc31..84c8c71f 100644 --- a/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c +++ b/test/regression/snmp_test/netx_snmp_v1_packet_double_release_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv1 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -418,7 +418,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c index 327963c0..0dc88f99 100644 --- a/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -434,7 +434,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c b/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c index 3bb7df06..fb541d69 100644 --- a/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_get_bulk_request_test.c @@ -1,7 +1,7 @@ /* This NetX test concentrates on the SNMPv2 get bulk request. The first exchange is to 'contact' the SNMP agent. Then the manager makes a bulk request. The test is successful if the internal statistics show the correct number of variables requested, requests received, and bulk responses - sent, and there are no internal errors. This does not require packet chaining. + sent, and there are no internal errors. This does not require packet chaining. */ #include "tx_api.h" @@ -373,7 +373,7 @@ static void snmp_test_initialize() /* Contact - no security*/ snmp_query[0].snmp_query_pkt_data = &get_next_request_packet[0]; snmp_query[0].snmp_query_pkt_size = get_next_request_size; - //snmp_query[1].snmp_query_pkt_data = &get_bulk_request_packet[0]; + //snmp_query[1].snmp_query_pkt_data = &get_bulk_request_packet[0]; //snmp_query[1].snmp_query_pkt_size = get_bulk_request_size; @@ -568,7 +568,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c b/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c index 693f07a0..131049ac 100644 --- a/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_send_trap_test.c @@ -626,7 +626,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c b/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c index aeaf3f88..e89e0a00 100644 --- a/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c +++ b/test/regression/snmp_test/netx_snmp_v2_unknown_oid_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -398,7 +398,7 @@ static void snmp_test_initialize() snmp_query[1].snmp_query_pkt_size = simple_get_query_size; // snmp_query[2].snmp_query_pkt_data = &simple_get_bulk_query_pkt[0]; - // snmp_query[2].snmp_query_pkt_size = simple_get_bulk_query_size; + // snmp_query[2].snmp_query_pkt_size = simple_get_bulk_query_size; } @@ -591,7 +591,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c index 9e7c675e..122882cc 100644 --- a/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -477,7 +477,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c index 2bda98af..fb6dcc50 100644 --- a/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_decrypt_pdu_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -481,7 +481,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c index 796b6c83..d5e7fe16 100644 --- a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -474,7 +474,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c index 06777e86..afd0c4ff 100644 --- a/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_encrypt_pdu_padding_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -482,7 +482,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c b/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c index 422c8c65..1eec2315 100644 --- a/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_md5_failed_security_test.c @@ -1,7 +1,7 @@ -/* This NetX test concentrates on the SNMPv3 operation with MD5 security. The test uses a different authentiation and +/* This NetX test concentrates on the SNMPv3 operation with MD5 security. The test uses a different authentiation and encryption password than is received from the SNMP Manager. The test is successful if the SNMP Agent rejects the SNMP - manager response, sets an authentication error to notify the calling application authentication failed, and does not send a - response back to the SNMP Manager. + manager response, sets an authentication error to notify the calling application authentication failed, and does not send a + response back to the SNMP Manager. */ #include "tx_api.h" @@ -31,7 +31,7 @@ static VOID v3_mib2_variable_update(NX_IP *ip_ptr, NX_SNMP_AGENT *agent_ptr); static UINT query_response_complete = NX_FALSE; /* to synchronize when the agent sends the SNMP trap */ #define QUERY_COUNT 2 -/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. +/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. #define VERBOSE */ @@ -616,7 +616,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c b/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c index 610fbdcc..faff02da 100644 --- a/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_md5_security_extended_test.c @@ -1,5 +1,5 @@ /* This NetX test concentrates on the SNMPv3 operation with MD5 security. The test examines the response packet length - and internal statistics of processing a v3 response to pass the test. + and internal statistics of processing a v3 response to pass the test. */ #include "tx_api.h" @@ -29,7 +29,7 @@ static VOID v3_mib2_variable_update(NX_IP *ip_ptr, NX_SNMP_AGENT *agent_ptr); static UINT query_response_complete = NX_FALSE; /* to synchronize when the agent sends the SNMP trap */ #define QUERY_COUNT 2 -/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. +/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. #define VERBOSE */ @@ -624,7 +624,7 @@ UINT object_name_length; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c b/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c index d9d87525..d363128a 100644 --- a/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_md5_security_test.c @@ -1,5 +1,5 @@ /* This NetX test concentrates on the SNMPv3 operation with MD5 security. The test examines the response packet length - and internal statistics of processing a v3 response to pass the test. + and internal statistics of processing a v3 response to pass the test. */ #include "tx_api.h" @@ -29,7 +29,7 @@ static VOID v3_mib2_variable_update(NX_IP *ip_ptr, NX_SNMP_AGENT *agent_ptr); static UINT query_response_complete = NX_FALSE; /* to synchronize when the agent sends the SNMP trap */ #define QUERY_COUNT 2 -/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. +/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. #define VERBOSE */ @@ -597,7 +597,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c b/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c index 2d477198..2ab73018 100644 --- a/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_no_security_function_test.c @@ -1,5 +1,5 @@ /* This NetX test concentrates on the SNMPv3 operation with no security. The test examines the response packet length - and internal statistics of processing a v3 response to pass the test. + and internal statistics of processing a v3 response to pass the test. */ #include "tx_api.h" @@ -27,7 +27,7 @@ static VOID v3_mib2_variable_update(NX_IP *ip_ptr, NX_SNMP_AGENT *agent_ptr); static UINT query_response_complete = NX_FALSE; /* to synchronize when the agent sends the SNMP trap */ #define QUERY_COUNT 2 -/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. +/* To show byte by byte comparison of pre-recorded response with SNMP agent, define this option. #define VERBOSE */ @@ -616,7 +616,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c b/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c index 0bfee76c..d7a5dc90 100644 --- a/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_nosec_traplist_test.c @@ -459,7 +459,7 @@ UCHAR *work_ptr; (*(work_ptr + 14) == 0x06) && (*(work_ptr + 15) == 0x03)) - /* This OID's data is another OID, no need to check past the base of the OID 1.3.6.1.6.3, + /* This OID's data is another OID, no need to check past the base of the OID 1.3.6.1.6.3, common to all OIDs. The rest depends on the MIB. */ { oids_found++; @@ -851,7 +851,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c b/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c index 01a0b65f..6040e297 100644 --- a/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c +++ b/test/regression/snmp_test/netx_snmp_v3_object_id_buffer_overwrite_test.c @@ -1,6 +1,6 @@ /* This NetX test concentrates on the basic SNMPv2 operation. The 'manager' sends a request for an unknown item ("oid"). The SNMP agent should not responds, but - set an internal error and be able to respond to the next request. + set an internal error and be able to respond to the next request. The MIB database is defined in demo_snmp_helper.h */ @@ -474,7 +474,7 @@ UINT status; /* Create an error code if matching user not found. */ #define USER_NOT_FOUND 1 -/* Define the username callback routine routine. Usernames should be +/* Define the username callback routine routine. Usernames should be associated with permissions (public or private string) and what version of SNMP the user is configured for. The username callback should verify the incoming username MIB access permissions. */ diff --git a/test/regression/snmp_test/small_mib_helper.c b/test/regression/snmp_test/small_mib_helper.c index 7a898ab1..66ceb1c7 100644 --- a/test/regression/snmp_test/small_mib_helper.c +++ b/test/regression/snmp_test/small_mib_helper.c @@ -68,14 +68,14 @@ UCHAR ifSpecific[] = "1.3.6.1.2.1.1"; /* ifSpecifi #endif /* Define the MIB-2 "address translation" group, assuming one address translation. */ -//ULONG atIfIndex = 1; /* atIfIndex:Integer RW */ +//ULONG atIfIndex = 1; /* atIfIndex:Integer RW */ UCHAR atPhysAddress[] = {0x00,0x04,0xac,0xe3,0x1d,0xc5};/* atPhysAddress:OctetString RW */ ULONG atNetworkAddress = 0; /* atNetworkAddress:NetworkAddr RW */ UCHAR atIPv6NetworkAddress[16]; /* atNetworkAddress:NetworkAddr IPv6 RW */ /* Define the MIB-2 "ip" group. */ -//ULONG ipForwarding = 0; /* ipForwarding:Integer RW */ +//ULONG ipForwarding = 0; /* ipForwarding:Integer RW */ ULONG oid_var = 1234U; diff --git a/test/regression/snmp_test/small_mib_helper.h b/test/regression/snmp_test/small_mib_helper.h index ad6126ba..bcced00c 100644 --- a/test/regression/snmp_test/small_mib_helper.h +++ b/test/regression/snmp_test/small_mib_helper.h @@ -1,4 +1,4 @@ -/* This is an include file for the NetX SNMP demo programs for setting up the MIB for +/* This is an include file for the NetX SNMP demo programs for setting up the MIB for user callback functions. It is not part of the official release of NetX SNMP Agent. */ #ifndef SMALL_MIB_HELPER_H diff --git a/test/regression/snmp_test/snmp_manager_packets.c b/test/regression/snmp_test/snmp_manager_packets.c index a5fcb0db..5a5ce9a9 100644 --- a/test/regression/snmp_test/snmp_manager_packets.c +++ b/test/regression/snmp_test/snmp_manager_packets.c @@ -1,4 +1,4 @@ -/* Frame (83 bytes) SNMPv2 GET REQUEST +/* Frame (83 bytes) SNMPv2 GET REQUEST community: public data: get-request (0) */ @@ -14,7 +14,7 @@ const unsigned char simple_get_query_pkt[42] = { int simple_get_query_size = 42; -/* Frame (81 bytes) SNMPv2 GET NEXT REQUEST +/* Frame (81 bytes) SNMPv2 GET NEXT REQUEST community: public data: get-next request (1) */ @@ -30,7 +30,7 @@ const unsigned char simple_get_next_query_pkt[42] = { int simple_get_next_query_size = 42; -/* Frame (76 bytes) SNMPv2 GET BULK REQUEST +/* Frame (76 bytes) SNMPv2 GET BULK REQUEST community: public data: getBulkRequest (5) getBulkRequest @@ -47,7 +47,7 @@ const unsigned char simple_get_bulk_query_pkt[42] = { int simple_get_bulk_query_size = 42; -/* Frame (83 bytes) SNMPv2 GET REQUEST for unknown item +/* Frame (83 bytes) SNMPv2 GET REQUEST for unknown item community: public data: get-request (0) */ diff --git a/test/regression/sntp_test/netx_sntp_client_unicast_display_date_test.c b/test/regression/sntp_test/netx_sntp_client_unicast_display_date_test.c index 59efb2cf..9bd38c60 100644 --- a/test/regression/sntp_test/netx_sntp_client_unicast_display_date_test.c +++ b/test/regression/sntp_test/netx_sntp_client_unicast_display_date_test.c @@ -29,9 +29,9 @@ static char pkt_data[90] = { /* SNTP data */ 0x1c, // flags was 28 which= server mode 4 and version 3 - 0x2, // stratum + 0x2, // stratum 0x3, // poll interval - 0xf9, // clock precision + 0xf9, // clock precision 0x0, 0x0,0x4,0x23, // root delay 0x0, 0x0,0x8,0xf3, // root dispersion 0x82,0x95,0x11,0x8, // ref ID diff --git a/test/regression/sntp_test/netx_sntp_forward_unicast_update_test.c b/test/regression/sntp_test/netx_sntp_forward_unicast_update_test.c index 9df296d3..17207545 100644 --- a/test/regression/sntp_test/netx_sntp_forward_unicast_update_test.c +++ b/test/regression/sntp_test/netx_sntp_forward_unicast_update_test.c @@ -1,10 +1,10 @@ -/* +/* netx_sntp_forward_unicast_update_test.c - + This demonstrates the time update notify feature in NetX SNTP Client. The Client connects to the SNTP server in unicast mode (simulated server) and sends a unicast - request. If a valid reply is received, the time update notify callback should be called - for a successful completion. + request. If a valid reply is received, the time update notify callback should be called + for a successful completion. */ @@ -109,7 +109,7 @@ UCHAR *free_memory_pointer; /* Create Client IP instances */ status = nx_ip_create(&client_ip, "SNTP IP Instance", CLIENT_IP_ADDRESS, - 0xFFFFFF00UL, &client_packet_pool, _nx_ram_network_driver, //_nx_ram_network_driver, + 0xFFFFFF00UL, &client_packet_pool, _nx_ram_network_driver, //_nx_ram_network_driver, free_memory_pointer, 2048, 1); /* Check for error. */ diff --git a/test/regression/sntp_test/netx_sntp_request_unicast_test.c b/test/regression/sntp_test/netx_sntp_request_unicast_test.c index 38360de0..14a5d080 100644 --- a/test/regression/sntp_test/netx_sntp_request_unicast_test.c +++ b/test/regression/sntp_test/netx_sntp_request_unicast_test.c @@ -1,11 +1,11 @@ -/* +/* netx_sntp_request_unicast_rest.c This test tests that the nx_sntp_client_request_unicast_time service sends an asynchronous unicast SNTP request independently of the SNTP CLient periodic polling of the SNTP server. It also verifies - that the SNTP Client when it receives the server response correctly updates the local clock. + that the SNTP Client when it receives the server response correctly updates the local clock. - Note that for this test to work correctly, the following configuration option must be defined in the + Note that for this test to work correctly, the following configuration option must be defined in the preprocessor options: #define NX_SNTP_CLIENT_MIN_TIME_ADJUSTMENT 1000 diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_002.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_002.c index 630731e0..4c7702c9 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_002.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_002.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_003.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_003.c index 161914cc..8f56a7d9 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_003.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_003.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_004.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_004.c index a98342f2..2c492e5d 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_004.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_004.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_005.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_005.c index c792acab..0dfe8618 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_005.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_005.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_006.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_006.c index 9c0b378f..97e5fc24 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_006.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_006.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_007.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_007.c index 1b27f6f2..ceebed18 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_007.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_007.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_008.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_008.c index 15f5317f..b010af60 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_008.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_008.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_009.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_009.c index ebc74078..1e474af6 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_009.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_009.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_010.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_010.c index a5b2afb3..764d6a18 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_010.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_010.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_011.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_011.c index f80404cd..71b74fb4 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_011.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_011.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_012.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_012.c index 805647c2..4d0d2ff8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_012.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_012.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_013.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_013.c index cb71c845..55bb170c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_013.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_013.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_014.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_014.c index 8d2ea0a6..8c375ff4 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_014.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_014.c @@ -108,7 +108,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); @@ -180,7 +180,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_019.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_019.c index 62abe383..eebcd30c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_019.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_019.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_020.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_020.c index 976c0a1a..216850af 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_020.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_020.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_021.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_021.c index 95aeb263..7a929ee6 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_021.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_021.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_022.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_022.c index 3cef6e50..ce5429e1 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_022.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_022.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_023.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_023.c index dcafa5b6..f50ed435 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_023.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_023.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_024.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_024.c index ebbc8cee..1c7721a3 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_024.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_024.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_025.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_025.c index 532f728d..f59b5eae 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_025.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_025.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_026.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_026.c index 836b2e7e..61d8e029 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_026.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_026.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_027.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_027.c index 962ca3a0..15072e4f 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_027.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_027.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_028.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_028.c index 7d4bd6c3..44ff5656 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_028.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_028.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_029.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_029.c index 39ed185f..18eb9080 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_029.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_029.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_030.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_030.c index 3b852a0a..0ed0c31e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_030.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_030.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_031.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_031.c index 971fd9a3..e1e6a80a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_031.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_031.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_032.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_032.c index f5dd59b4..293ae0a9 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_032.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_032.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_033.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_033.c index d616f34d..558c0b11 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_033.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_033.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_034.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_034.c index b522121e..9f99fc6e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_034.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_034.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_035.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_035.c index 111d8cb8..1e5373c9 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_035.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_035.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_036.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_036.c index a6e14f66..11ae4a7a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_036.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_036.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_037.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_037.c index 31af0942..801f314c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_037.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_037.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_038.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_038.c index 098f649f..0e05d12a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_038.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_038.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_039.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_039.c index e714af7b..6e8a7a4c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_039.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_039.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_040.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_040.c index 4697cdac..a04dca45 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_040.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_040.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_041.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_041.c index 9f9afec2..0d9f11ea 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_041.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_041.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_042.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_042.c index 051860bb..f71026bd 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_042.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_042.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_043.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_043.c index 430712b9..5cabb90b 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_043.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_043.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_044.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_044.c index c622621c..0f8e595b 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_044.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_044.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_045.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_045.c index e9a1a333..68ef5ae2 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_045.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_045.c @@ -113,7 +113,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_046.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_046.c index 54546dee..21207340 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_046.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_046.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_047.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_047.c index f835b4a4..7de8b9e7 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_047.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_047.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_048.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_048.c index d5232397..bc5cda73 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_048.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_048.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_049.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_049.c index 6ccbd255..70bbb567 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_049.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_049.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_050.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_050.c index 03f50529..50a58078 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_050.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_050.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_051.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_051.c index 0fe125c9..86468317 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_051.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_051.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_052.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_052.c index f57f15d8..7551134e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_052.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_052.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_053.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_053.c index e57cea95..b8619dd8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_053.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_053.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_054.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_054.c index f441c048..b76740f6 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_054.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_054.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_055.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_055.c index 7ab7da19..85b279bc 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_055.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_055.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_056.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_056.c index 558936b4..2ac22dd9 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_056.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_056.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_057.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_057.c index e4bee39e..946d2f18 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_057.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_057.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_058.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_058.c index 45d38fbc..461f6f6d 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_058.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_058.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_059.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_059.c index e0342c8c..e93b1b53 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_059.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_059.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_060.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_060.c index c3553779..c362430b 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_060.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_060.c @@ -108,7 +108,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_061.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_061.c index 70c3469e..4dad1031 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_061.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_061.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_062.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_062.c index 256cf047..1da42500 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_062.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_062.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_063.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_063.c index 779b23af..eae4f16c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_063.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_063.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_064.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_064.c index 4d7aa12e..605cb0da 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_064.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_064.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_065.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_065.c index 8a751c33..4b116214 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_065.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_065.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_066.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_066.c index f61fcf28..2c7d5e63 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_066.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_066.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_067.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_067.c index 469483c3..50e1eb13 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_067.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_067.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_068.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_068.c index c00a3192..0f1dafdc 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_068.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_068.c @@ -111,7 +111,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_069.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_069.c index 75513a92..07442689 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_069.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_069.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_070.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_070.c index d5d58b31..efff48e8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_070.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_070.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_071.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_071.c index 098f48c3..4d55e7ef 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_071.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_071.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_072.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_072.c index f6e054d5..c8eda179 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_072.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_072.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_073.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_073.c index db60a848..009b08fe 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_073.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_073.c @@ -111,7 +111,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_074.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_074.c index 2a87aa2e..76226183 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_074.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_074.c @@ -111,7 +111,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_075.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_075.c index 5f65aa43..44ba3d69 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_075.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_075.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_076.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_076.c index f15aa770..7b76588f 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_076.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_076.c @@ -111,7 +111,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_077.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_077.c index a5d5fc93..9665b24c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_077.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_077.c @@ -111,7 +111,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_078.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_078.c index 9c7b877d..24d76ea4 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_078.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_078.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_079.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_079.c index a3ebc952..5164cae8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_079.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_079.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_080.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_080.c index fa5eabe7..1f39f907 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_080.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_080.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_081.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_081.c index ccc73fd0..2396a4c8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_081.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_081.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_082.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_082.c index f7bd3a9b..cc856afd 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_082.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_082.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_083.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_083.c index 33b77aca..4c37ad24 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_083.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_083.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_084.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_084.c index 85e98beb..7141fa08 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_084.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_084.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_085.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_085.c index 262b9a19..246bb168 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_085.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_085.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_086.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_086.c index e2355c80..d22e1a67 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_086.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_086.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_087.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_087.c index 3344be89..25d329a7 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_087.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_087.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_088.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_088.c index 6d12efbb..d5a96928 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_088.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_088.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_089.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_089.c index 5db5f8e7..1fa85301 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_089.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_089.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_090.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_090.c index 48a33001..18aaa601 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_090.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_090.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_091.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_091.c index e79817f2..c83578d5 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_091.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_091.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_092.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_092.c index 480d2fdf..5c9a455d 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_092.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_092.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_093.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_093.c index d7a9041d..bdc5cf80 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_093.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_093.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_094.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_094.c index 65655de8..cc2f2795 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_094.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_094.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_095.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_095.c index c09410a8..17dac117 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_095.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_095.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_096.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_096.c index ffe10425..ce9e4909 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_096.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_096.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_097.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_097.c index e110530c..8cf0dce5 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_097.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_097.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_098.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_098.c index 3b82bcd1..60d74573 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_098.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_098.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_099.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_099.c index 8f46f203..b2b5b76a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_099.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_01_099.c @@ -109,7 +109,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_002.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_002.c index 67c59ba9..0d37374d 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_002.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_002.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_003.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_003.c index e7682ff2..9b5a5589 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_003.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_003.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_004.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_004.c index 90c6a1e7..9bf5b708 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_004.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_004.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_005.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_005.c index 35fd1645..20d3690a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_005.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_005.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_006.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_006.c index e4aa1a33..5a8c2a1f 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_006.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_006.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_007.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_007.c index 6f8eddff..34565ac7 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_007.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_007.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_008.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_008.c index d275ddf1..62c8c8c7 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_008.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_008.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_009.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_009.c index 25684a7c..f720b6ef 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_009.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_009.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_010.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_010.c index a03fd355..c0eb7d38 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_010.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_010.c @@ -124,7 +124,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_012.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_012.c index 0d3b3036..913fd36d 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_012.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_012.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_013.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_013.c index 7a7694d0..9b8cd03c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_013.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_013.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_014.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_014.c index 471b2b44..096656b3 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_014.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_014.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_015.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_015.c index 34ca1bf1..b475e3c5 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_015.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_015.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_016.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_016.c index 7ce00379..0dbcf80e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_016.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_016.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_017.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_017.c index 9282ea43..2b98b488 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_017.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_017.c @@ -106,7 +106,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_018.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_018.c index aa9032ec..5d1d88ae 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_018.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_018.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_019.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_019.c index 5cc97cf6..fb0e4d7a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_019.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_019.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_020.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_020.c index 335547f6..69506c08 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_020.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_020.c @@ -122,7 +122,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_021.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_021.c index 5eeeb264..659b46c0 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_021.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_021.c @@ -122,7 +122,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_022.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_022.c index fa732398..cb10cedb 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_022.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_022.c @@ -124,7 +124,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_026.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_026.c index 745c2828..d2c596cc 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_026.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_026.c @@ -107,7 +107,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_027.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_027.c index c9f702bb..baef5451 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_027.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_04_027.c @@ -108,7 +108,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); @@ -180,7 +180,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_002.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_002.c index 5d15fe46..d155bb73 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_002.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_002.c @@ -123,7 +123,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_003.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_003.c index 67d4741c..81a239e8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_003.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_003.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_004.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_004.c index 0297e8fe..a1dc4fa1 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_004.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_004.c @@ -123,7 +123,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_005.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_005.c index a81c55af..8701d7bd 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_005.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_005.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_006.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_006.c index 11b012ec..3b6642b7 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_006.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_006.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_007.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_007.c index 1b7dfd32..f71375de 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_007.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_007.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_008.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_008.c index 7891000a..a173f51e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_008.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_008.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_009.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_009.c index 0cc446f6..fa5b6e13 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_009.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_009.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_010.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_010.c index 4a1defdc..13b804b4 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_010.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_010.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_011.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_011.c index 97de9030..515294da 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_011.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_011.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_012.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_012.c index c19aeb5b..91881536 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_012.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_012.c @@ -123,7 +123,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_013.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_013.c index 45fc0d34..39111cb1 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_013.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_013.c @@ -123,7 +123,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_014.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_014.c index e42c896d..70c6a967 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_014.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_014.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_015.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_015.c index 75b77a97..3ef1b158 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_015.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_015.c @@ -113,7 +113,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_016.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_016.c index 513a1acb..0a2746d9 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_016.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_016.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_017.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_017.c index 88a410c0..3c23e534 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_017.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_017.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_018.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_018.c index c978e4f6..9e2e30a7 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_018.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_018.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_019.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_019.c index 9b98945e..b0eb172b 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_019.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_019.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_020.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_020.c index 499cc706..18890408 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_020.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_020.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_021.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_021.c index dc559422..3d5c7ce6 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_021.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_021.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_022.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_022.c index 1850fbd5..fd96bfc8 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_022.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_022.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_023.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_023.c index e96417d7..424c5c0f 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_023.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_023.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_024.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_024.c index 20020013..7ca3d60e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_024.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_024.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_025.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_025.c index f8f74e59..c92b904a 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_025.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_025.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_026.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_026.c index 3886bfc9..d0664e0e 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_026.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_026.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_027.c b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_027.c index 90c5b0cb..3102569c 100644 --- a/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_027.c +++ b/test/regression/tahi_test/netx_tahi_dhcpv6_test_07_027.c @@ -112,7 +112,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); @@ -190,7 +190,7 @@ UINT status; if(status) error_counter++; - /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field + /* Create a Link Layer Plus Time DUID for the DHCPv6 Client. Set time ID field to NULL; the DHCPv6 Client API will supply one. */ status = nx_dhcpv6_create_client_duid(&dhcp_client, NX_DHCPV6_DUID_TYPE_LINK_TIME, NX_DHCPV6_HW_TYPE_IEEE_802, 0); diff --git a/test/regression/tahi_test/netx_tahi_run_test_case.c b/test/regression/tahi_test/netx_tahi_run_test_case.c index ea6e54c6..6471821b 100644 --- a/test/regression/tahi_test/netx_tahi_run_test_case.c +++ b/test/regression/tahi_test/netx_tahi_run_test_case.c @@ -329,7 +329,7 @@ static void perform_decrypt_check(NX_IP *ip_ptr, char *pkt_data, int pkt_size, i if(current_pkt) { - /* A packet has been queued. Examine the header of the packet. + /* A packet has been queued. Examine the header of the packet. Include IPv6 header and ESP header in transport mode. */ if(((UINT)(pkt_size - 14) != current_pkt -> nx_packet_length) || (memcmp(pkt_data + 14, current_pkt -> nx_packet_prepend_ptr, 40) != 0)) diff --git a/test/regression/tahi_test/tahi_01_008.c b/test/regression/tahi_test/tahi_01_008.c index fe40398b..cf96528c 100644 --- a/test/regression/tahi_test/tahi_01_008.c +++ b/test/regression/tahi_test/tahi_01_008.c @@ -6700,7 +6700,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - //Next Header = 149 + //Next Header = 149 {INJECT, &pkt29[0], sizeof(pkt29), 0}, //149 {CHECK, &pkt30[0], sizeof(pkt30), 5}, {INJECT, &pkt32[0], sizeof(pkt32), 0}, @@ -6719,7 +6719,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt39[0], sizeof(pkt39), 0}, //151 {CHECK, &pkt40[0], sizeof(pkt40), 5}, - {INJECT, &pkt41[0], sizeof(pkt41), 0}, //step50 + {INJECT, &pkt41[0], sizeof(pkt41), 0}, //step50 {CHECK, &pkt42[0], sizeof(pkt42), 5}, {WAIT, NX_NULL, 0, 2}, @@ -6761,7 +6761,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt63[0], sizeof(pkt63), 0}, //157 {CHECK, &pkt64[0], sizeof(pkt64), 5}, - {INJECT, &pkt65[0], sizeof(pkt65), 0}, //step 80 + {INJECT, &pkt65[0], sizeof(pkt65), 0}, //step 80 {CHECK, &pkt66[0], sizeof(pkt66), 5}, {WAIT, NX_NULL, 0, 2}, @@ -6875,7 +6875,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt131[0], sizeof(pkt131), 0},//171 + {INJECT, &pkt131[0], sizeof(pkt131), 0},//171 {CHECK, &pkt132[0], sizeof(pkt132), 5}, {INJECT, &pkt133[0], sizeof(pkt133), 0}, {CHECK, &pkt134[0], sizeof(pkt134), 5}, @@ -6970,7 +6970,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, //step 230 - {INJECT, &pkt187[0], sizeof(pkt187), 0},//182 + {INJECT, &pkt187[0], sizeof(pkt187), 0},//182 {CHECK, &pkt188[0], sizeof(pkt188), 5}, {INJECT, &pkt189[0], sizeof(pkt189), 0}, {CHECK, &pkt190[0], sizeof(pkt190), 5}, @@ -6994,7 +6994,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt200[0], sizeof(pkt200), 0}, {CHECK, &pkt199[0], sizeof(pkt199), 5}, - {INJECT, &pkt201[0], sizeof(pkt201), 0},//185 + {INJECT, &pkt201[0], sizeof(pkt201), 0},//185 {CHECK, &pkt202[0], sizeof(pkt202), 5}, {WAIT, NX_NULL, 0, 2}, //step 250 @@ -7028,7 +7028,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, //step 270 - {INJECT, &pkt219[0], sizeof(pkt219), 0},//189 + {INJECT, &pkt219[0], sizeof(pkt219), 0},//189 {CHECK, &pkt220[0], sizeof(pkt220), 5}, {INJECT, &pkt221[0], sizeof(pkt221), 0}, {CHECK, &pkt222[0], sizeof(pkt222), 5}, @@ -7046,7 +7046,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {CHECK, &pkt228[0], sizeof(pkt228), 5}, {INJECT, &pkt230[0], sizeof(pkt230), 0}, {CHECK, &pkt229[0], sizeof(pkt229), 5}, - {INJECT, &pkt231[0], sizeof(pkt231), 0},//192 + {INJECT, &pkt231[0], sizeof(pkt231), 0},//192 {INJECT, &pkt232[0], sizeof(pkt232), 0}, {INJECT, &pkt233[0], sizeof(pkt233), 0}, {CHECK, &pkt234[0], sizeof(pkt234), 5}, @@ -7055,7 +7055,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt236[0], sizeof(pkt236), 0}, //step 290 {CHECK, &pkt235[0], sizeof(pkt235), 5}, - {INJECT, &pkt237[0], sizeof(pkt237), 0},//193 + {INJECT, &pkt237[0], sizeof(pkt237), 0},//193 {CHECK, &pkt238[0], sizeof(pkt238), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7074,7 +7074,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt247[0], sizeof(pkt247), 0},//195 + {INJECT, &pkt247[0], sizeof(pkt247), 0},//195 {CHECK, &pkt248[0], sizeof(pkt248), 5}, {INJECT, &pkt249[0], sizeof(pkt249), 0}, {CHECK, &pkt250[0], sizeof(pkt250), 5}, @@ -7116,7 +7116,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt272[0], sizeof(pkt272), 0},//200 + {INJECT, &pkt272[0], sizeof(pkt272), 0},//200 {CHECK, &pkt271[0], sizeof(pkt271), 5}, {INJECT, &pkt273[0], sizeof(pkt273), 0}, {CHECK, &pkt274[0], sizeof(pkt274), 5}, @@ -7223,7 +7223,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt331[0], sizeof(pkt331), 0}, {CHECK, &pkt332[0], sizeof(pkt332), 5}, //step 410 - {INJECT, &pkt333[0], sizeof(pkt333), 0},//214 + {INJECT, &pkt333[0], sizeof(pkt333), 0},//214 {CHECK, &pkt334[0], sizeof(pkt334), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7252,7 +7252,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt347[0], sizeof(pkt347), 0}, {CHECK, &pkt348[0], sizeof(pkt348), 5}, //step 430 - {INJECT, &pkt349[0], sizeof(pkt349), 0},//217 + {INJECT, &pkt349[0], sizeof(pkt349), 0},//217 {CHECK, &pkt350[0], sizeof(pkt350), 5}, @@ -7268,7 +7268,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt356[0], sizeof(pkt356), 0}, {CHECK, &pkt355[0], sizeof(pkt355), 5}, //step 440 - {INJECT, &pkt357[0], sizeof(pkt357), 0},//219 + {INJECT, &pkt357[0], sizeof(pkt357), 0},//219 {CHECK, &pkt358[0], sizeof(pkt358), 5}, @@ -7288,7 +7288,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt368[0], sizeof(pkt368), 0},//221 + {INJECT, &pkt368[0], sizeof(pkt368), 0},//221 {CHECK, &pkt367[0], sizeof(pkt367), 5}, {INJECT, &pkt369[0], sizeof(pkt369), 0}, {CHECK, &pkt370[0], sizeof(pkt370), 5}, @@ -7298,7 +7298,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt371[0], sizeof(pkt371), 0}, {CHECK, &pkt372[0], sizeof(pkt372), 5}, //step 460 - {INJECT, &pkt373[0], sizeof(pkt373), 0},//222 + {INJECT, &pkt373[0], sizeof(pkt373), 0},//222 {CHECK, &pkt374[0], sizeof(pkt374), 5}, @@ -7313,11 +7313,11 @@ TAHI_TEST_SEQ tahi_01_008[] = { {CHECK, &pkt379[0], sizeof(pkt379), 5}, {CHECK, &pkt380[0], sizeof(pkt380), 5}, //step 470 - {INJECT, &pkt382[0], sizeof(pkt382), 0},//224 + {INJECT, &pkt382[0], sizeof(pkt382), 0},//224 {CHECK, &pkt381[0], sizeof(pkt381), 5}, {INJECT, &pkt383[0], sizeof(pkt383), 0}, {INJECT, &pkt384[0], sizeof(pkt384), 0}, - {INJECT, &pkt385[0], sizeof(pkt385), 0},//225 + {INJECT, &pkt385[0], sizeof(pkt385), 0},//225 {CHECK, &pkt386[0], sizeof(pkt386), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7329,7 +7329,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt391[0], sizeof(pkt391), 0},//226 + {INJECT, &pkt391[0], sizeof(pkt391), 0},//226 {CHECK, &pkt392[0], sizeof(pkt392), 5}, {INJECT, &pkt393[0], sizeof(pkt393), 0}, {CHECK, &pkt394[0], sizeof(pkt394), 5}, @@ -7346,7 +7346,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt400[0], sizeof(pkt400), 0}, {CHECK, &pkt399[0], sizeof(pkt399), 5}, - {INJECT, &pkt401[0], sizeof(pkt401), 0},//228 + {INJECT, &pkt401[0], sizeof(pkt401), 0},//228 {CHECK, &pkt402[0], sizeof(pkt402), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7370,7 +7370,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt411[0], sizeof(pkt411), 0}, {CHECK, &pkt412[0], sizeof(pkt412), 5}, {INJECT, &pkt413[0], sizeof(pkt413), 0}, //step 510 - {CHECK, &pkt414[0], sizeof(pkt414), 5},//231 + {CHECK, &pkt414[0], sizeof(pkt414), 5},//231 {WAIT, NX_NULL, 0, 2}, @@ -7402,7 +7402,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt432[0], sizeof(pkt432), 0},//235 + {INJECT, &pkt432[0], sizeof(pkt432), 0},//235 {CHECK, &pkt431[0], sizeof(pkt431), 5}, {INJECT, &pkt433[0], sizeof(pkt433), 0}, {CHECK, &pkt434[0], sizeof(pkt434), 5}, @@ -7419,7 +7419,7 @@ TAHI_TEST_SEQ tahi_01_008[] = { {INJECT, &pkt439[0], sizeof(pkt439), 0}, {CHECK, &pkt440[0], sizeof(pkt440), 5}, - {INJECT, &pkt441[0], sizeof(pkt441), 0},//237 + {INJECT, &pkt441[0], sizeof(pkt441), 0},//237 {CHECK, &pkt442[0], sizeof(pkt442), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7431,14 +7431,14 @@ TAHI_TEST_SEQ tahi_01_008[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt447[0], sizeof(pkt447), 0},//238 + {INJECT, &pkt447[0], sizeof(pkt447), 0},//238 {CHECK, &pkt448[0], sizeof(pkt448), 5}, {INJECT, &pkt449[0], sizeof(pkt449), 0}, {CHECK, &pkt450[0], sizeof(pkt450), 5}, {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt451[0], sizeof(pkt451), 0},//239 + {INJECT, &pkt451[0], sizeof(pkt451), 0},//239 {CHECK, &pkt452[0], sizeof(pkt452), 5}, {INJECT, &pkt453[0], sizeof(pkt453), 0}, //step 560 {CHECK, &pkt454[0], sizeof(pkt454), 5}, diff --git a/test/regression/tahi_test/tahi_01_013.c b/test/regression/tahi_test/tahi_01_013.c index 82798993..9697d61c 100644 --- a/test/regression/tahi_test/tahi_01_013.c +++ b/test/regression/tahi_test/tahi_01_013.c @@ -6917,7 +6917,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - //Next Header = 149 + //Next Header = 149 {INJECT, &pkt29[0], sizeof(pkt29), 0}, //149 {CHECK, &pkt30[0], sizeof(pkt30), 5}, {INJECT, &pkt32[0], sizeof(pkt32), 0}, @@ -6936,7 +6936,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt39[0], sizeof(pkt39), 0}, //151 {CHECK, &pkt40[0], sizeof(pkt40), 5}, - {INJECT, &pkt41[0], sizeof(pkt41), 0}, //step50 + {INJECT, &pkt41[0], sizeof(pkt41), 0}, //step50 {CHECK, &pkt42[0], sizeof(pkt42), 5}, {WAIT, NX_NULL, 0, 2}, @@ -6978,7 +6978,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt64[0], sizeof(pkt64), 0}, //157 {CHECK, &pkt63[0], sizeof(pkt63), 5}, - {INJECT, &pkt65[0], sizeof(pkt65), 0}, //step 80 + {INJECT, &pkt65[0], sizeof(pkt65), 0}, //step 80 {CHECK, &pkt66[0], sizeof(pkt66), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7092,7 +7092,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt131[0], sizeof(pkt131), 0},//171 + {INJECT, &pkt131[0], sizeof(pkt131), 0},//171 {CHECK, &pkt132[0], sizeof(pkt132), 5}, {INJECT, &pkt133[0], sizeof(pkt133), 0}, {CHECK, &pkt134[0], sizeof(pkt134), 5}, @@ -7187,7 +7187,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, //step 230 - {INJECT, &pkt187[0], sizeof(pkt187), 0},//182 + {INJECT, &pkt187[0], sizeof(pkt187), 0},//182 {CHECK, &pkt188[0], sizeof(pkt188), 5}, {INJECT, &pkt189[0], sizeof(pkt189), 0}, {CHECK, &pkt190[0], sizeof(pkt190), 5}, @@ -7211,7 +7211,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt199[0], sizeof(pkt199), 0}, {CHECK, &pkt200[0], sizeof(pkt200), 5}, - {INJECT, &pkt201[0], sizeof(pkt201), 0},//185 + {INJECT, &pkt201[0], sizeof(pkt201), 0},//185 {CHECK, &pkt202[0], sizeof(pkt202), 5}, {WAIT, NX_NULL, 0, 2}, //step 250 @@ -7245,7 +7245,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, //step 270 - {INJECT, &pkt220[0], sizeof(pkt220), 0},//189 + {INJECT, &pkt220[0], sizeof(pkt220), 0},//189 {CHECK, &pkt219[0], sizeof(pkt219), 5}, {INJECT, &pkt221[0], sizeof(pkt221), 0}, {CHECK, &pkt222[0], sizeof(pkt222), 5}, @@ -7263,7 +7263,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {CHECK, &pkt228[0], sizeof(pkt228), 5}, {INJECT, &pkt229[0], sizeof(pkt229), 0}, {CHECK, &pkt230[0], sizeof(pkt230), 5}, - {INJECT, &pkt231[0], sizeof(pkt231), 0},//192 + {INJECT, &pkt231[0], sizeof(pkt231), 0},//192 {INJECT, &pkt232[0], sizeof(pkt232), 0}, {INJECT, &pkt233[0], sizeof(pkt233), 0}, {CHECK, &pkt234[0], sizeof(pkt234), 5}, @@ -7272,7 +7272,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt235[0], sizeof(pkt235), 0}, //step 290 {CHECK, &pkt236[0], sizeof(pkt236), 5}, - {INJECT, &pkt237[0], sizeof(pkt237), 0},//193 + {INJECT, &pkt237[0], sizeof(pkt237), 0},//193 {CHECK, &pkt238[0], sizeof(pkt238), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7291,7 +7291,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt247[0], sizeof(pkt247), 0},//195 + {INJECT, &pkt247[0], sizeof(pkt247), 0},//195 {CHECK, &pkt248[0], sizeof(pkt248), 5}, {INJECT, &pkt249[0], sizeof(pkt249), 0}, {CHECK, &pkt250[0], sizeof(pkt250), 5}, @@ -7333,7 +7333,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt271[0], sizeof(pkt271), 0},//200 + {INJECT, &pkt271[0], sizeof(pkt271), 0},//200 {CHECK, &pkt272[0], sizeof(pkt272), 5}, {INJECT, &pkt273[0], sizeof(pkt273), 0}, {CHECK, &pkt274[0], sizeof(pkt274), 5}, @@ -7440,7 +7440,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt331[0], sizeof(pkt331), 0}, {CHECK, &pkt332[0], sizeof(pkt332), 5}, //step 410 - {INJECT, &pkt333[0], sizeof(pkt333), 0},//214 + {INJECT, &pkt333[0], sizeof(pkt333), 0},//214 {CHECK, &pkt334[0], sizeof(pkt334), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7469,7 +7469,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt347[0], sizeof(pkt347), 0}, {CHECK, &pkt348[0], sizeof(pkt348), 5}, //step 430 - {INJECT, &pkt349[0], sizeof(pkt349), 0},//217 + {INJECT, &pkt349[0], sizeof(pkt349), 0},//217 {CHECK, &pkt350[0], sizeof(pkt350), 5}, @@ -7485,7 +7485,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt355[0], sizeof(pkt355), 0}, {CHECK, &pkt356[0], sizeof(pkt356), 5}, //step 440 - {INJECT, &pkt357[0], sizeof(pkt357), 0},//219 + {INJECT, &pkt357[0], sizeof(pkt357), 0},//219 {CHECK, &pkt358[0], sizeof(pkt358), 5}, @@ -7505,7 +7505,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt367[0], sizeof(pkt367), 0},//221 + {INJECT, &pkt367[0], sizeof(pkt367), 0},//221 {CHECK, &pkt368[0], sizeof(pkt368), 5}, {INJECT, &pkt369[0], sizeof(pkt369), 0}, {CHECK, &pkt370[0], sizeof(pkt370), 5}, @@ -7515,7 +7515,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt371[0], sizeof(pkt371), 0}, {CHECK, &pkt372[0], sizeof(pkt372), 5}, //step 460 - {INJECT, &pkt373[0], sizeof(pkt373), 0},//222 + {INJECT, &pkt373[0], sizeof(pkt373), 0},//222 {CHECK, &pkt374[0], sizeof(pkt374), 5}, @@ -7530,11 +7530,11 @@ TAHI_TEST_SEQ tahi_01_013[] = { {CHECK, &pkt379[0], sizeof(pkt379), 5}, {CHECK, &pkt380[0], sizeof(pkt380), 5}, //step 470 - {INJECT, &pkt381[0], sizeof(pkt381), 0},//224 + {INJECT, &pkt381[0], sizeof(pkt381), 0},//224 {CHECK, &pkt382[0], sizeof(pkt382), 5}, {INJECT, &pkt383[0], sizeof(pkt383), 0}, {INJECT, &pkt384[0], sizeof(pkt384), 0}, - {INJECT, &pkt385[0], sizeof(pkt385), 0},//225 + {INJECT, &pkt385[0], sizeof(pkt385), 0},//225 {CHECK, &pkt386[0], sizeof(pkt386), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7546,7 +7546,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt391[0], sizeof(pkt391), 0},//226 + {INJECT, &pkt391[0], sizeof(pkt391), 0},//226 {CHECK, &pkt392[0], sizeof(pkt392), 5}, {INJECT, &pkt393[0], sizeof(pkt393), 0}, {CHECK, &pkt394[0], sizeof(pkt394), 5}, @@ -7563,7 +7563,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt399[0], sizeof(pkt399), 0}, {CHECK, &pkt400[0], sizeof(pkt400), 5}, - {INJECT, &pkt401[0], sizeof(pkt401), 0},//228 + {INJECT, &pkt401[0], sizeof(pkt401), 0},//228 {CHECK, &pkt402[0], sizeof(pkt402), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7587,7 +7587,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt411[0], sizeof(pkt411), 0}, {CHECK, &pkt412[0], sizeof(pkt412), 5}, {INJECT, &pkt413[0], sizeof(pkt413), 0}, //step 510 - {CHECK, &pkt414[0], sizeof(pkt414), 5},//231 + {CHECK, &pkt414[0], sizeof(pkt414), 5},//231 {WAIT, NX_NULL, 0, 2}, @@ -7619,7 +7619,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt431[0], sizeof(pkt431), 0},//235 + {INJECT, &pkt431[0], sizeof(pkt431), 0},//235 {CHECK, &pkt432[0], sizeof(pkt432), 5}, {INJECT, &pkt433[0], sizeof(pkt433), 0}, {CHECK, &pkt434[0], sizeof(pkt434), 5}, @@ -7636,7 +7636,7 @@ TAHI_TEST_SEQ tahi_01_013[] = { {INJECT, &pkt440[0], sizeof(pkt440), 0}, {CHECK, &pkt439[0], sizeof(pkt439), 5}, - {INJECT, &pkt441[0], sizeof(pkt441), 0},//237 + {INJECT, &pkt441[0], sizeof(pkt441), 0},//237 {CHECK, &pkt442[0], sizeof(pkt442), 5}, {WAIT, NX_NULL, 0, 2}, @@ -7648,14 +7648,14 @@ TAHI_TEST_SEQ tahi_01_013[] = { {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt447[0], sizeof(pkt447), 0},//238 + {INJECT, &pkt447[0], sizeof(pkt447), 0},//238 {CHECK, &pkt448[0], sizeof(pkt448), 5}, {INJECT, &pkt449[0], sizeof(pkt449), 0}, {CHECK, &pkt450[0], sizeof(pkt450), 5}, {WAIT, NX_NULL, 0, 2}, - {INJECT, &pkt451[0], sizeof(pkt451), 0},//239 + {INJECT, &pkt451[0], sizeof(pkt451), 0},//239 {CHECK, &pkt452[0], sizeof(pkt452), 5}, {INJECT, &pkt453[0], sizeof(pkt453), 0}, //step 560 {CHECK, &pkt454[0], sizeof(pkt454), 5}, diff --git a/test/regression/tahi_test/tahi_01_047.c b/test/regression/tahi_test/tahi_01_047.c index 1d2e40f5..0121b2cc 100644 --- a/test/regression/tahi_test/tahi_01_047.c +++ b/test/regression/tahi_test/tahi_01_047.c @@ -1040,7 +1040,7 @@ TAHI_TEST_SEQ tahi_01_047[] = { {WAIT, NX_NULL, 0, 10}, //{CHECK, &pkt28[0], sizeof(pkt28), 5}, //{CHECK, &pkt29[0], sizeof(pkt29), 5}, - //{CHECK, &pkt30[0], sizeof(pkt30), 5}, + //{CHECK, &pkt30[0], sizeof(pkt30), 5}, {CLEANUP, NX_NULL, 0, 0}, {CLEAN_HOP_LIMIT, NX_NULL, 0, 0}, diff --git a/test/regression/tahi_test/tahi_04_005.c b/test/regression/tahi_test/tahi_04_005.c index e617e6d8..9d3985ec 100644 --- a/test/regression/tahi_test/tahi_04_005.c +++ b/test/regression/tahi_test/tahi_04_005.c @@ -4918,7 +4918,7 @@ TAHI_TEST_SEQ tahi_04_005[] = { {INJECT, &pkt20[0], sizeof(pkt20), 0}, {CHECK, &pkt21[0], sizeof(pkt21), 5}, - {N_CHECK, (char *)NS, 0, 6}, //19:03:42 vRecv(Link0,ucast_ns_tn1_from_global ucast_ns_tn1_from_linklocal ucast_ns_tn1_from_linklocal_sll ucast_ns_tn1_from_global_sll) timeout:6 + {N_CHECK, (char *)NS, 0, 6}, //19:03:42 vRecv(Link0,ucast_ns_tn1_from_global ucast_ns_tn1_from_linklocal ucast_ns_tn1_from_linklocal_sll ucast_ns_tn1_from_global_sll) timeout:6 {INJECT, &pkt22[0], sizeof(pkt22), 0}, {INJECT, &pkt23[0], sizeof(pkt23), 0}, diff --git a/test/regression/telnet_test/netx_telnet_activity_timeout_test.c b/test/regression/telnet_test/netx_telnet_activity_timeout_test.c index 70919a27..6f7c70b4 100644 --- a/test/regression/telnet_test/netx_telnet_activity_timeout_test.c +++ b/test/regression/telnet_test/netx_telnet_activity_timeout_test.c @@ -1,12 +1,12 @@ /* This test checks for the Telnet Server to keep track of the length of inactivity on all its connections - If the timeout is exceeded it should close the connection. + If the timeout is exceeded it should close the connection. The following symbols and options must be set: NX_TELNET_SERVER_USER_CREATE_PACKET_POOL defined NX_TELNET_TIMEOUT_PERIOD = 2 NX_TELNET_ACTIVITY_TIMEOUT = 10 - + */ #include "tx_api.h" @@ -256,7 +256,7 @@ UINT current_connections; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -289,7 +289,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -300,7 +300,7 @@ ULONG bytes_copied; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/test/regression/telnet_test/netx_telnet_basic_test.c b/test/regression/telnet_test/netx_telnet_basic_test.c index 92a36538..dff738a6 100644 --- a/test/regression/telnet_test/netx_telnet_basic_test.c +++ b/test/regression/telnet_test/netx_telnet_basic_test.c @@ -314,7 +314,7 @@ UINT i; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -344,7 +344,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -355,7 +355,7 @@ ULONG bytes_copied; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/test/regression/telnet_test/netx_telnet_create_packet_pool_test.c b/test/regression/telnet_test/netx_telnet_create_packet_pool_test.c index d3f2b400..369145c2 100644 --- a/test/regression/telnet_test/netx_telnet_create_packet_pool_test.c +++ b/test/regression/telnet_test/netx_telnet_create_packet_pool_test.c @@ -1,7 +1,7 @@ /* This demo tests the feature to create the Telnet packet pool instead of the default - behavior of the Telnet Server creating its own packet pool. - - NX_TELNET_SERVER_USER_CREATE_PACKET_POOL must be defined in the test. + behavior of the Telnet Server creating its own packet pool. + + NX_TELNET_SERVER_USER_CREATE_PACKET_POOL must be defined in the test. */ #include "tx_api.h" @@ -263,7 +263,7 @@ UINT status; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -293,7 +293,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -303,7 +303,7 @@ UCHAR alpha; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/test/regression/telnet_test/netx_telnet_max_connections_test.c b/test/regression/telnet_test/netx_telnet_max_connections_test.c index a0d49531..825cd06a 100644 --- a/test/regression/telnet_test/netx_telnet_max_connections_test.c +++ b/test/regression/telnet_test/netx_telnet_max_connections_test.c @@ -1,12 +1,12 @@ /* This test checks for the Telnet Server limiting itself to the NX_TELNET_MAX_CLIENTS. The test verifies that the Telnet Server supports at most NX_TELNET_MAX_CLIENTS simultaneous connections, and that each Client receives - responses to their Telnet packets. + responses to their Telnet packets. The following symbols and options must be set: NX_TELNET_MAX_CLIENTS 2 NX_TELNET_SERVER_OPTION_DISABLE not defined - (NX_TELNET_SERVER_USER_CREATE_PACKET_POOL is defined.) + (NX_TELNET_SERVER_USER_CREATE_PACKET_POOL is defined.) */ #include "tx_api.h" @@ -257,7 +257,7 @@ UINT connections = 0; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -290,7 +290,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -301,7 +301,7 @@ ULONG bytes_copied; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/test/regression/telnet_test/netx_telnet_server_bad_option_reply_test.c b/test/regression/telnet_test/netx_telnet_server_bad_option_reply_test.c index d10ed07d..8dd620b5 100644 --- a/test/regression/telnet_test/netx_telnet_server_bad_option_reply_test.c +++ b/test/regression/telnet_test/netx_telnet_server_bad_option_reply_test.c @@ -1,10 +1,10 @@ /* This test checks for the Telnet Server to handle invalid telnet client option replies and unsupported client telnet options in response to the server offering ECHO, Suppress Go Ahead and asks the peer not to ECHO (Don't Echo). - The Telnet Client is programmed to respond with a WILL ECHO (to the server WILL ECHO), a WILL [0x99 unknown option] and Won't Echo. - The server should not accept these options so a successful test is if echo and SGA are not enabled on the Telnet server. + The Telnet Client is programmed to respond with a WILL ECHO (to the server WILL ECHO), a WILL [0x99 unknown option] and Won't Echo. + The server should not accept these options so a successful test is if echo and SGA are not enabled on the Telnet server. Required configuration settings: - + NX_TELNET_SERVER_OPTION_DISABLE not defined NX_TELNET_SERVER_USER_CREATE_PACKET_POOL defined */ @@ -338,7 +338,7 @@ UINT status; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ static void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -376,7 +376,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ static void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -387,7 +387,7 @@ UCHAR alpha; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/test/regression/telnet_test/netx_telnet_server_options_negotiate_test.c b/test/regression/telnet_test/netx_telnet_server_options_negotiate_test.c index 29cd3f26..bc5a97de 100644 --- a/test/regression/telnet_test/netx_telnet_server_options_negotiate_test.c +++ b/test/regression/telnet_test/netx_telnet_server_options_negotiate_test.c @@ -1,9 +1,9 @@ /* This test checks for the Telnet Server to negotiate with a Telnet Client for three common Telnet options. It offers to ECHO, Suppress Go Ahead and asks the peer not to ECHO (Don't Echo). - The Telnet Client is programmed to acknowledge the ECHO and SGA, and Won't Echo. + The Telnet Client is programmed to acknowledge the ECHO and SGA, and Won't Echo. Required configuration settings: - + NX_TELNET_SERVER_OPTION_DISABLE not defined NX_TELNET_SERVER_USER_CREATE_PACKET_POOL defined */ @@ -346,7 +346,7 @@ UINT status; } -/* This routine is called by the NetX Telnet Server whenever a new Telnet client +/* This routine is called by the NetX Telnet Server whenever a new Telnet client connection is established. */ void telnet_new_connection(NX_TELNET_SERVER *server_ptr, UINT logical_connection) { @@ -384,7 +384,7 @@ NX_PACKET *packet_ptr; } -/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client +/* This routine is called by the NetX Telnet Server whenever data is present on a Telnet client connection. */ void telnet_receive_data(NX_TELNET_SERVER *server_ptr, UINT logical_connection, NX_PACKET *packet_ptr) { @@ -395,7 +395,7 @@ UCHAR alpha; /* This demo just echoes the character back and on sends a new prompt back to the - client. A real system would most likely buffer the character(s) received in a buffer + client. A real system would most likely buffer the character(s) received in a buffer associated with the supplied logical connection and process according to it. */ diff --git a/test/regression/test/netxtestcontrol.c b/test/regression/test/netxtestcontrol.c index c8f18205..bb34995d 100644 --- a/test/regression/test/netxtestcontrol.c +++ b/test/regression/test/netxtestcontrol.c @@ -2858,7 +2858,7 @@ void tx_application_define(void *first_unused_memory) #endif /* CTEST */ } -/* Define the test control thread. This thread is responsible for dispatching all of the +/* Define the test control thread. This thread is responsible for dispatching all of the tests in the ThreadX test suite. */ void test_control_thread_entry(ULONG thread_input) diff --git a/test/regression/test/nx_ram_network_driver_test_1500.c b/test/regression/test/nx_ram_network_driver_test_1500.c index e73e5303..27a68764 100644 --- a/test/regression/test/nx_ram_network_driver_test_1500.c +++ b/test/regression/test/nx_ram_network_driver_test_1500.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -68,16 +68,16 @@ CHAR driver_data_buffer[3014]; ULONG driver_data_length; /* Define Ethernet address format. This is prepended to the incoming IP - and ARP/RARP messages. The frame beginning is 14 bytes, but for speed + and ARP/RARP messages. The frame beginning is 14 bytes, but for speed purposes, we are going to assume there are 16 bytes free in front of the - prepend pointer and that the prepend pointer is 32-bit aligned. + prepend pointer and that the prepend pointer is 32-bit aligned. Byte Offset Size Meaning 0 6 Destination Ethernet Address 6 6 Source Ethernet Address 12 2 Ethernet Frame Type, where: - + 0x0800 -> IP Datagram 0x0806 -> ARP Request/Reply 0x0835 -> RARP request reply @@ -114,10 +114,10 @@ typedef struct MAC_ADDRESS_STRUCT /* Define an application-specific data structure that holds internal - data (such as the state information) of a device driver. + data (such as the state information) of a device driver. - The example below applies to the simulated RAM driver. - User shall replace its content with information related to + The example below applies to the simulated RAM driver. + User shall replace its content with information related to the actual driver being used. */ typedef struct _nx_ram_network_driver_instance_type { @@ -131,7 +131,7 @@ typedef struct _nx_ram_network_driver_instance_type } _nx_ram_network_driver_instance_type; /* In this example, there are four instances of the simulated RAM driver. - Therefore an array of four driver instances are created to keep track of + Therefore an array of four driver instances are created to keep track of the interface information of each driver. */ static _nx_ram_network_driver_instance_type nx_ram_driver[NX_MAX_RAM_INTERFACES]; @@ -215,12 +215,6 @@ UINT write_pcap_file(NX_PACKET *packet_ptr); /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ram_network_driver_set_pool(NX_PACKET_POOL *pool_ptr) { @@ -259,12 +253,6 @@ UINT _nx_ram_network_driver_set_pool(NX_PACKET_POOL *pool_ptr) /* */ /* Application */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void _nx_ram_network_driver_reset(void) { @@ -316,12 +304,6 @@ void _nx_ram_network_driver_reset(void) /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver_delay_entry(ULONG timer_input) { @@ -376,12 +358,6 @@ NX_IP_DRIVER *driver_req; /* CALLED BY */ /* */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver_timer_clean(VOID) { @@ -432,12 +408,6 @@ VOID _nx_ram_network_driver_timer_clean(VOID) /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver_internal(NX_IP_DRIVER *driver_req_ptr, UINT mtu_size) { @@ -582,7 +552,7 @@ USHORT ether_type; advanced_packet_process_callback = NX_NULL; #ifdef __PRODUCT_NETXDUO__ - /* Once the Ethernet controller is initialized, the driver needs to + /* Once the Ethernet controller is initialized, the driver needs to configure the NetX Interface Control block, as outlined below. */ /* The nx_interface_ip_mtu_size should be the MTU for the IP payload. @@ -590,7 +560,7 @@ USHORT ether_type; nx_ip_interface_mtu_set(ip_ptr, interface_index, mtu_size); /* Set the physical address (MAC address) of this IP instance. */ - /* For this simulated RAM driver, the MAC address is constructed by + /* For this simulated RAM driver, the MAC address is constructed by incrementing a base lsw value, to simulate multiple nodes hanging on the ethernet. */ nx_ip_interface_physical_address_set(ip_ptr, interface_index, @@ -604,7 +574,7 @@ USHORT ether_type; interface_ptr -> nx_interface_ip_mtu_size = mtu_size; /* Set the physical address (MAC address) of this IP instance. */ - /* For this simulated RAM driver, the MAC address is constructed by + /* For this simulated RAM driver, the MAC address is constructed by incrementing a base lsw value, to simulate multiple nodes hanging on the ethernet. */ @@ -621,8 +591,8 @@ USHORT ether_type; case NX_LINK_ENABLE: { - /* Process driver link enable. An Ethernet driver shall enable the - transmit and reception logic. Once the IP stack issues the + /* Process driver link enable. An Ethernet driver shall enable the + transmit and reception logic. Once the IP stack issues the LINK_ENABLE command, the stack may start transmitting IP packets. */ /* In the RAM driver, just set the enabled flag. */ @@ -850,7 +820,7 @@ USHORT ether_type; /* At this point, the packet is a complete Ethernet frame, ready to be transmitted. The driver shall call the actual Ethernet transmit routine and put the packet - on the wire. + on the wire. In this example, the simulated RAM network transmit routine is called. */ @@ -881,11 +851,11 @@ USHORT ether_type; { UINT mcast_index; - /* The IP layer issues this command to join a multicast group. Note that - multicast operation is required for IPv6. - + /* The IP layer issues this command to join a multicast group. Note that + multicast operation is required for IPv6. + On a typically Ethernet controller, the driver computes a hash value based - on MAC address, and programs the hash table. + on MAC address, and programs the hash table. It is likely the driver also needs to maintain an internal MAC address table. Later if a multicast address is removed, the driver needs @@ -950,20 +920,20 @@ USHORT ether_type; case NX_LINK_DEFERRED_PROCESSING: { - /* Driver defined deferred processing. This is typically used to defer interrupt - processing to the thread level. + /* Driver defined deferred processing. This is typically used to defer interrupt + processing to the thread level. A typical use case of this command is: On receiving an Ethernet frame, the RX ISR does not process the received frame, but instead records such an event in its internal data structure, and issues - a notification to the IP stack (the driver sends the notification to the IP - helping thread by calling "_nx_ip_driver_deferred_processing()". When the IP stack - gets a notification of a pending driver deferred process, it calls the - driver with the NX_LINK_DEFERRED_PROCESSING command. The driver shall complete - the pending receive process. + a notification to the IP stack (the driver sends the notification to the IP + helping thread by calling "_nx_ip_driver_deferred_processing()". When the IP stack + gets a notification of a pending driver deferred process, it calls the + driver with the NX_LINK_DEFERRED_PROCESSING command. The driver shall complete + the pending receive process. */ - /* The simulated RAM driver doesn't require a deferred process so it breaks out of + /* The simulated RAM driver doesn't require a deferred process so it breaks out of the switch case. */ @@ -1063,12 +1033,6 @@ USHORT ether_type; /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr) { @@ -1216,7 +1180,7 @@ USHORT ether_type; interface_ptr -> nx_interface_ip_mtu_size = mtu_size; /* Set the physical address (MAC address) of this IP instance. */ - /* For this simulated RAM driver, the MAC address is constructed by + /* For this simulated RAM driver, the MAC address is constructed by incrementing a base lsw value, to simulate multiple nodes hanging on the ethernet. */ @@ -1380,7 +1344,7 @@ USHORT ether_type; /* At this point, the packet is a complete Ethernet frame, ready to be transmitted. The driver shall call the actual Ethernet transmit routine and put the packet on the wire. - + In this example, the simulated RAM network transmit routine is called. */ _nx_ram_network_driver_output(ip_ptr, packet_ptr, i ); @@ -1405,10 +1369,10 @@ USHORT ether_type; /* The IP layer issues this command to join a multicast group. Note that multicast operation is required for IPv6. - + On a typically Ethernet controller, the driver computes a hash value based on MAC address, and programs the hash table. - + It is likely the driver also needs to maintain an internal MAC address table. Later if a multicast address is removed, the driver needs to reprogram the hash table based on the remaining multicast MAC addresses. */ @@ -1474,7 +1438,7 @@ USHORT ether_type; /* Driver defined deferred processing. This is typically used to defer interrupt processing to the thread level. - + A typical use case of this command is: On receiving an Ethernet frame, the RX ISR does not process the received frame, but instead records such an event in its internal data structure, and issues @@ -1578,12 +1542,6 @@ USHORT ether_type; /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver_output(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id) { @@ -1799,7 +1757,7 @@ UINT j; nx_ram_driver[interface_instance_id].nx_ram_driver_interface_ptr -> nx_interface_index, packet_ptr, NX_NULL); #else - /* Remove the Ethernet header. In real hardware environments, this is typically + /* Remove the Ethernet header. In real hardware environments, this is typically done after a transmit complete interrupt. */ packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; @@ -1854,12 +1812,6 @@ UINT j; /* */ /* NetX IP processing */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID _nx_ram_network_driver_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id) { @@ -2015,12 +1967,6 @@ UINT packet_type; /* _nx_ram_network_driver_internal */ /* _nx_ram_network_driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT _nx_ram_network_driver_calculate_checksum(NX_INTERFACE *interface_ptr, NX_PACKET *packet_ptr, UCHAR is_check) { @@ -2550,12 +2496,6 @@ NX_IPV6_HEADER *ipv6_header_ptr; /* */ /* write_pcap_file */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID get_time_of_day(NX_TIME_VALUE *time_value) { @@ -2615,12 +2555,6 @@ ULONG64 time; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT create_pcap_file(CHAR *file_name) { @@ -2680,12 +2614,6 @@ NX_PCAP_FILE_HEADER pcap_file_header; /* */ /* _nx_ram_network_driver_output */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT write_pcap_file(NX_PACKET *packet_ptr) { @@ -2751,12 +2679,6 @@ ULONG data_length; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ -/* */ /**************************************************************************/ VOID close_pcap_file() { diff --git a/test/regression/tftp_test/netx_tftp_basic_test.c b/test/regression/tftp_test/netx_tftp_basic_test.c index a6995daf..bd0780c5 100644 --- a/test/regression/tftp_test/netx_tftp_basic_test.c +++ b/test/regression/tftp_test/netx_tftp_basic_test.c @@ -97,8 +97,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -157,8 +157,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -276,9 +276,9 @@ UINT status; UINT all_done = NX_FALSE; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_error_destionation_port_test.c b/test/regression/tftp_test/netx_tftp_error_destionation_port_test.c index 7535036b..81f8d5e6 100644 --- a/test/regression/tftp_test/netx_tftp_error_destionation_port_test.c +++ b/test/regression/tftp_test/netx_tftp_error_destionation_port_test.c @@ -98,8 +98,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -158,8 +158,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -279,9 +279,9 @@ NX_PACKET *my_packet; UINT status; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_error_file_name_test.c b/test/regression/tftp_test/netx_tftp_error_file_name_test.c index 4052a251..718ff548 100644 --- a/test/regression/tftp_test/netx_tftp_error_file_name_test.c +++ b/test/regression/tftp_test/netx_tftp_error_file_name_test.c @@ -93,8 +93,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -153,8 +153,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -271,9 +271,9 @@ NX_PACKET *my_packet; UINT status; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_ipv6_basic_test.c b/test/regression/tftp_test/netx_tftp_ipv6_basic_test.c index 0c17d81a..c9124337 100644 --- a/test/regression/tftp_test/netx_tftp_ipv6_basic_test.c +++ b/test/regression/tftp_test/netx_tftp_ipv6_basic_test.c @@ -93,8 +93,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -149,8 +149,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -267,9 +267,9 @@ UINT status; UINT all_done = NX_FALSE; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_large_data_test.c b/test/regression/tftp_test/netx_tftp_large_data_test.c index 8fd83988..9117baab 100644 --- a/test/regression/tftp_test/netx_tftp_large_data_test.c +++ b/test/regression/tftp_test/netx_tftp_large_data_test.c @@ -106,8 +106,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 20480); @@ -166,8 +166,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 20480); @@ -278,9 +278,9 @@ ULONG data_value; ((ULONG*)buffer)[i] = data_value++; } - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_malformed_packet_test.c b/test/regression/tftp_test/netx_tftp_malformed_packet_test.c index c57921c7..035389bf 100644 --- a/test/regression/tftp_test/netx_tftp_malformed_packet_test.c +++ b/test/regression/tftp_test/netx_tftp_malformed_packet_test.c @@ -97,8 +97,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -157,8 +157,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -303,9 +303,9 @@ UINT i; UINT all_done = NX_FALSE; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_read_interaction_test.c b/test/regression/tftp_test/netx_tftp_read_interaction_test.c index d0f9b12d..a092fe4e 100644 --- a/test/regression/tftp_test/netx_tftp_read_interaction_test.c +++ b/test/regression/tftp_test/netx_tftp_read_interaction_test.c @@ -105,8 +105,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -165,8 +165,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -284,9 +284,9 @@ UINT status; UINT all_done = NX_FALSE; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/tftp_test/netx_tftp_write_interaction_test.c b/test/regression/tftp_test/netx_tftp_write_interaction_test.c index 370f45cb..6d1c3b94 100644 --- a/test/regression/tftp_test/netx_tftp_write_interaction_test.c +++ b/test/regression/tftp_test/netx_tftp_write_interaction_test.c @@ -100,8 +100,8 @@ UCHAR *pointer; /* Initialize the NetX system. */ nx_system_initialize(); - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&server_pool, "TFTP Server Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -160,8 +160,8 @@ UCHAR *pointer; /* Create a packet pool for the TFTP client. */ - /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must - be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet + /* Note: The data portion of a packet is exactly 512 bytes, but the packet payload size must + be at least 580 bytes. The remaining bytes are used for the UDP, IP, and Ethernet headers and byte alignment requirements. */ status = nx_packet_pool_create(&client_pool, "TFTP Client Packet Pool", NX_TFTP_PACKET_SIZE, pointer, 8192); @@ -282,9 +282,9 @@ NX_PACKET *my_packet; UINT status; - /* The TFTP services used below include the NetX equivalent service which will work with + /* The TFTP services used below include the NetX equivalent service which will work with NetX Duo TFTP. However, it is recommended for developers to port their applications - to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 + to the newer services that take the NXD_ADDRESS type and support both IPv4 and IPv6 communication. */ diff --git a/test/regression/web_test/netx_web_abnormal_test.c b/test/regression/web_test/netx_web_abnormal_test.c index a4f9d5f0..24fd9e5a 100644 --- a/test/regression/web_test/netx_web_abnormal_test.c +++ b/test/regression/web_test/netx_web_abnormal_test.c @@ -378,7 +378,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = ""; *password = ""; diff --git a/test/regression/web_test/netx_web_basic_authenticate_empty_test.c b/test/regression/web_test/netx_web_basic_authenticate_empty_test.c index d5670588..4777e9b1 100644 --- a/test/regression/web_test/netx_web_basic_authenticate_empty_test.c +++ b/test/regression/web_test/netx_web_basic_authenticate_empty_test.c @@ -474,7 +474,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "Placeholdername"; *password = "Placeholderpassword"; diff --git a/test/regression/web_test/netx_web_basic_authenticate_test.c b/test/regression/web_test/netx_web_basic_authenticate_test.c index 070dadd8..309adf13 100644 --- a/test/regression/web_test/netx_web_basic_authenticate_test.c +++ b/test/regression/web_test/netx_web_basic_authenticate_test.c @@ -476,7 +476,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/web_test/netx_web_basic_test.c b/test/regression/web_test/netx_web_basic_test.c index 65842d60..62beb419 100644 --- a/test/regression/web_test/netx_web_basic_test.c +++ b/test/regression/web_test/netx_web_basic_test.c @@ -283,7 +283,7 @@ NX_PACKET *recv_packet; else if (i == 1) { status = nx_web_http_client_get_start_extended(&my_client, &server_ip_address, - NX_WEB_HTTP_SERVER_PORT, "http://1.2.3.4/test.txt", sizeof("http://1.2.3.4/test.txt") - 1, + NX_WEB_HTTP_SERVER_PORT, "http://1.2.3.4/test.txt", sizeof("http://1.2.3.4/test.txt") - 1, "1.2.3.4", 7, "name", 4, "password", 8, NX_WAIT_FOREVER); } #ifdef NX_WEB_HTTPS_ENABLE @@ -297,7 +297,7 @@ NX_PACKET *recv_packet; else { status = nx_web_http_client_get_secure_start_extended(&my_client, &server_ip_address, - NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, + NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, "1.2.3.4", 7, "name", 4, "password", 8, tls_setup_callback, NX_WAIT_FOREVER); } @@ -542,7 +542,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/web_test/netx_web_certifiacte_verify_test.c b/test/regression/web_test/netx_web_certifiacte_verify_test.c index dd323ceb..7c53e71f 100644 --- a/test/regression/web_test/netx_web_certifiacte_verify_test.c +++ b/test/regression/web_test/netx_web_certifiacte_verify_test.c @@ -226,7 +226,7 @@ NX_PACKET *recv_packet; /* Send a GET request. */ status = nx_web_http_client_get_secure_start_extended(&my_client, &server_ip_address, - NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, + NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, "1.2.3.4", 7, "name", 4, "password", 8, tls_setup_callback, NX_WAIT_FOREVER); diff --git a/test/regression/web_test/netx_web_chunked_request_additional_test.c b/test/regression/web_test/netx_web_chunked_request_additional_test.c index d36c2f34..272fc0fd 100644 --- a/test/regression/web_test/netx_web_chunked_request_additional_test.c +++ b/test/regression/web_test/netx_web_chunked_request_additional_test.c @@ -543,7 +543,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_chunked_request_test.c b/test/regression/web_test/netx_web_chunked_request_test.c index 15e5a6c8..401689cc 100644 --- a/test/regression/web_test/netx_web_chunked_request_test.c +++ b/test/regression/web_test/netx_web_chunked_request_test.c @@ -514,7 +514,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_chunked_response_packet_chain_test.c b/test/regression/web_test/netx_web_chunked_response_packet_chain_test.c index 5f5cebdc..5bd77151 100644 --- a/test/regression/web_test/netx_web_chunked_response_packet_chain_test.c +++ b/test/regression/web_test/netx_web_chunked_response_packet_chain_test.c @@ -412,7 +412,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_chunked_response_process_test.c b/test/regression/web_test/netx_web_chunked_response_process_test.c index ed668865..25d937d9 100644 --- a/test/regression/web_test/netx_web_chunked_response_process_test.c +++ b/test/regression/web_test/netx_web_chunked_response_process_test.c @@ -471,7 +471,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_chunked_response_test.c b/test/regression/web_test/netx_web_chunked_response_test.c index bd541ae9..ecf55f43 100644 --- a/test/regression/web_test/netx_web_chunked_response_test.c +++ b/test/regression/web_test/netx_web_chunked_response_test.c @@ -404,7 +404,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_client_cleanup_test.c b/test/regression/web_test/netx_web_client_cleanup_test.c index cc21fa98..52194e3a 100644 --- a/test/regression/web_test/netx_web_client_cleanup_test.c +++ b/test/regression/web_test/netx_web_client_cleanup_test.c @@ -405,7 +405,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_client_receive_no_packet_test.c b/test/regression/web_test/netx_web_client_receive_no_packet_test.c index 71de45a4..c60f63d0 100644 --- a/test/regression/web_test/netx_web_client_receive_no_packet_test.c +++ b/test/regression/web_test/netx_web_client_receive_no_packet_test.c @@ -1,4 +1,4 @@ -/* This case tests client didn't receive response in time. +/* This case tests client didn't receive response in time. If client receive no packet, it can continue to get response untill get done. */ #include "tx_api.h" #include "nx_api.h" diff --git a/test/regression/web_test/netx_web_client_rst_test.c b/test/regression/web_test/netx_web_client_rst_test.c index e67a49b9..e5e1173b 100644 --- a/test/regression/web_test/netx_web_client_rst_test.c +++ b/test/regression/web_test/netx_web_client_rst_test.c @@ -252,7 +252,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_concurrent_sessions_test.c b/test/regression/web_test/netx_web_concurrent_sessions_test.c index e0461798..db04998d 100644 --- a/test/regression/web_test/netx_web_concurrent_sessions_test.c +++ b/test/regression/web_test/netx_web_concurrent_sessions_test.c @@ -533,7 +533,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/web_test/netx_web_connect_three_times_test.c b/test/regression/web_test/netx_web_connect_three_times_test.c index 857b3564..dc47880e 100644 --- a/test/regression/web_test/netx_web_connect_three_times_test.c +++ b/test/regression/web_test/netx_web_connect_three_times_test.c @@ -1,4 +1,4 @@ -/* This case tests client connect three times to server to see +/* This case tests client connect three times to server to see if server actually clear the seesion materials. */ #include "tx_api.h" @@ -336,7 +336,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_delete_basic_test.c b/test/regression/web_test/netx_web_delete_basic_test.c index 74c7db76..e990878b 100644 --- a/test/regression/web_test/netx_web_delete_basic_test.c +++ b/test/regression/web_test/netx_web_delete_basic_test.c @@ -408,7 +408,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_digest_authenticate_test.c b/test/regression/web_test/netx_web_digest_authenticate_test.c index 89609e15..810de781 100644 --- a/test/regression/web_test/netx_web_digest_authenticate_test.c +++ b/test/regression/web_test/netx_web_digest_authenticate_test.c @@ -1,4 +1,4 @@ -/* This case tests digest authentication. +/* This case tests digest authentication. HA1 = MD5("name:NetX Duo HTTP demo:password") = 01bb2595c9221423951ee86f3573b465 HA2 = MD5("GET:/index.htm") @@ -706,7 +706,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/web_test/netx_web_digest_authenticate_test2.c b/test/regression/web_test/netx_web_digest_authenticate_test2.c index 0eb15d97..7f2c6c44 100644 --- a/test/regression/web_test/netx_web_digest_authenticate_test2.c +++ b/test/regression/web_test/netx_web_digest_authenticate_test2.c @@ -1,4 +1,4 @@ -/* This case tests digest authentication. +/* This case tests digest authentication. HA1 = MD5("name:NetX Duo HTTP demo:password") = 01bb2595c9221423951ee86f3573b465 HA2 = MD5("GET:/index.htm") @@ -454,7 +454,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/web_test/netx_web_digest_authenticate_timeout_test.c b/test/regression/web_test/netx_web_digest_authenticate_timeout_test.c index 54551cbd..904dc742 100644 --- a/test/regression/web_test/netx_web_digest_authenticate_timeout_test.c +++ b/test/regression/web_test/netx_web_digest_authenticate_timeout_test.c @@ -1,4 +1,4 @@ -/* This case tests digest authentication. +/* This case tests digest authentication. HA1 = MD5("name:NetX Duo HTTP demo:Placeholderpassword") = 01bb2595c9221423951ee86f3573b465 HA2 = MD5("GET:/index.htm") @@ -545,7 +545,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "Placeholderpassword"; diff --git a/test/regression/web_test/netx_web_external_client_test.c b/test/regression/web_test/netx_web_external_client_test.c index 7be772b4..eed93aa6 100644 --- a/test/regression/web_test/netx_web_external_client_test.c +++ b/test/regression/web_test/netx_web_external_client_test.c @@ -147,7 +147,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_get_content_length_test.c b/test/regression/web_test/netx_web_get_content_length_test.c index 7c327570..89fcf186 100644 --- a/test/regression/web_test/netx_web_get_content_length_test.c +++ b/test/regression/web_test/netx_web_get_content_length_test.c @@ -436,7 +436,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_get_put_referred_URI_test.c b/test/regression/web_test/netx_web_get_put_referred_URI_test.c index c10d8091..0af70eaa 100644 --- a/test/regression/web_test/netx_web_get_put_referred_URI_test.c +++ b/test/regression/web_test/netx_web_get_put_referred_URI_test.c @@ -1,5 +1,5 @@ /* This case tests the ability of the HTTP Client to accept a URI resource string that does not - designate a root directory based file location. If the string begins with an HTTP: or HTTPS: (not + designate a root directory based file location. If the string begins with an HTTP: or HTTPS: (not case sensitive) the HTTP Client will send the string as is. (Note this does not guarantee the HTTP server will forward to the referred location.) Otherwise the URI is processed as if it is root directory based, and a leading forward slash '/' is appended if one is missing. @@ -407,7 +407,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_head_basic_test.c b/test/regression/web_test/netx_web_head_basic_test.c index 9474dfd5..eea4ce89 100644 --- a/test/regression/web_test/netx_web_head_basic_test.c +++ b/test/regression/web_test/netx_web_head_basic_test.c @@ -339,7 +339,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_http_demo_test.c b/test/regression/web_test/netx_web_http_demo_test.c index 75048f60..67be33ab 100644 --- a/test/regression/web_test/netx_web_http_demo_test.c +++ b/test/regression/web_test/netx_web_http_demo_test.c @@ -1,5 +1,5 @@ -/* This is a small demo of HTTP on the high-performance NetX TCP/IP stack. - This demo relies on ThreadX, NetX, and FileX to show a simple HTML +/* This is a small demo of HTTP on the high-performance NetX TCP/IP stack. + This demo relies on ThreadX, NetX, and FileX to show a simple HTML transfer from the client and then back from the server. */ #include "tx_api.h" @@ -47,7 +47,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -120,16 +120,16 @@ UINT status; _fx_ram_driver, // Driver entry ram_disk_memory, // RAM disk memory pointer pointer, // Media buffer pointer - 4096, // Media buffer size + 4096, // Media buffer size "MY_RAM_DISK", // Volume Name 1, // Number of FATs 32, // Directory Entries 0, // Hidden sectors - 511, // Total sectors - 128, // Sector size + 511, // Total sectors + 128, // Sector size 1, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track EXPECT_EQ(0, status); status = fx_media_open(&ram_disk, "RAM DISK", diff --git a/test/regression/web_test/netx_web_https_demo_test.c b/test/regression/web_test/netx_web_https_demo_test.c index 8f00fc7e..1e1a526d 100644 --- a/test/regression/web_test/netx_web_https_demo_test.c +++ b/test/regression/web_test/netx_web_https_demo_test.c @@ -1,10 +1,10 @@ -/* This is a small demo of the NetX HTTP Client Server API running on a +/* This is a small demo of the NetX HTTP Client Server API running on a high-performance NetX TCP/IP stack. */ #include "tx_api.h" #include "nx_api.h" /* If not using FileX, define this option and define the file writing services - declared in filex_stub.h. + declared in filex_stub.h. #define NX_WEB_HTTP_NO_FILEX */ #ifndef NX_WEB_HTTP_NO_FILEX @@ -26,7 +26,7 @@ #include "test_utility.h" -/* For NetX Duo applications, determine which IP version to use. For IPv6, +/* For NetX Duo applications, determine which IP version to use. For IPv6, set IP_TYPE to 6; for IPv4 set to 4. Note that for IPv6, you must enable USE_DUO so the application 'knows' to enabled IPv6 services on the IP task. */ @@ -117,7 +117,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t NX_PARAMETER_NOT_USED(request_type); NX_PARAMETER_NOT_USED(resource); - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; @@ -404,7 +404,7 @@ FX_FILE my_file; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track EXPECT_EQ(NX_SUCCESS, status); /* Open the RAM disk. */ diff --git a/test/regression/web_test/netx_web_if_modified_since_test.c b/test/regression/web_test/netx_web_if_modified_since_test.c index c5f08b91..9b43573e 100644 --- a/test/regression/web_test/netx_web_if_modified_since_test.c +++ b/test/regression/web_test/netx_web_if_modified_since_test.c @@ -1,10 +1,10 @@ -/* This case tests filed If-Modified-field. - * if the requested variant has not been modified since the time specified in this field, - * an entity will not be returned from the server; instead, a 304 (not modified) response +/* This case tests filed If-Modified-field. + * if the requested variant has not been modified since the time specified in this field, + * an entity will not be returned from the server; instead, a 304 (not modified) response * will be returned without any message-body. * - * In this case, client get the index.htm with If-Modified-Since = 20130101, and index.htm is - * modified on 2013...., So server should send 304. + * In this case, client get the index.htm with If-Modified-Since = 20130101, and index.htm is + * modified on 2013...., So server should send 304. * */ #include "tx_api.h" #include "nx_api.h" @@ -395,7 +395,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_invalid_release_test.c b/test/regression/web_test/netx_web_invalid_release_test.c index a92a2c64..8361a7ae 100644 --- a/test/regression/web_test/netx_web_invalid_release_test.c +++ b/test/regression/web_test/netx_web_invalid_release_test.c @@ -379,7 +379,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_multipart_fragment_test.c b/test/regression/web_test/netx_web_multipart_fragment_test.c index 4578b837..033db38b 100644 --- a/test/regression/web_test/netx_web_multipart_fragment_test.c +++ b/test/regression/web_test/netx_web_multipart_fragment_test.c @@ -638,7 +638,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_multipart_underflow_test.c b/test/regression/web_test/netx_web_multipart_underflow_test.c index 565798cc..7179be60 100644 --- a/test/regression/web_test/netx_web_multipart_underflow_test.c +++ b/test/regression/web_test/netx_web_multipart_underflow_test.c @@ -638,7 +638,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_multiple_sessions_timeout_test.c b/test/regression/web_test/netx_web_multiple_sessions_timeout_test.c index afcca741..b8799ca2 100644 --- a/test/regression/web_test/netx_web_multiple_sessions_timeout_test.c +++ b/test/regression/web_test/netx_web_multiple_sessions_timeout_test.c @@ -304,14 +304,14 @@ NX_PACKET *recv_packet; error_counter++; status = nx_web_http_client_get_secure_start_extended(&my_client, &server_ip_address, - NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, + NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, "1.2.3.4", 7, "name", 4, "password", 8, tls_setup_callback, NX_WAIT_FOREVER); if (status) error_counter++; status = nx_web_http_client_get_secure_start_extended(&my_client_1, &server_ip_address, - NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, + NX_WEB_HTTPS_SERVER_PORT, "https://1.2.3.4/test.txt", sizeof("https://1.2.3.4/test.txt") - 1, "1.2.3.4", 7, "name", 4, "password", 8, tls_setup_callback_1, NX_WAIT_FOREVER); if (status) diff --git a/test/regression/web_test/netx_web_post_basic_test.c b/test/regression/web_test/netx_web_post_basic_test.c index 7163597b..f7fcab27 100644 --- a/test/regression/web_test/netx_web_post_basic_test.c +++ b/test/regression/web_test/netx_web_post_basic_test.c @@ -363,7 +363,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_post_long_message_test.c b/test/regression/web_test/netx_web_post_long_message_test.c index 05d27f12..bd4b92ee 100644 --- a/test/regression/web_test/netx_web_post_long_message_test.c +++ b/test/regression/web_test/netx_web_post_long_message_test.c @@ -267,7 +267,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_put_basic_test.c b/test/regression/web_test/netx_web_put_basic_test.c index 3e7d71d8..62b1474d 100644 --- a/test/regression/web_test/netx_web_put_basic_test.c +++ b/test/regression/web_test/netx_web_put_basic_test.c @@ -393,7 +393,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_request_in_multiple_packets_test.c b/test/regression/web_test/netx_web_request_in_multiple_packets_test.c index 3371ebb9..1d1f1b9a 100644 --- a/test/regression/web_test/netx_web_request_in_multiple_packets_test.c +++ b/test/regression/web_test/netx_web_request_in_multiple_packets_test.c @@ -407,7 +407,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_response_in_multiple_packets_test.c b/test/regression/web_test/netx_web_response_in_multiple_packets_test.c index 821ac6f5..69a73486 100644 --- a/test/regression/web_test/netx_web_response_in_multiple_packets_test.c +++ b/test/regression/web_test/netx_web_response_in_multiple_packets_test.c @@ -367,7 +367,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_secure_connect_fail_test.c b/test/regression/web_test/netx_web_secure_connect_fail_test.c index e738be45..bed73065 100644 --- a/test/regression/web_test/netx_web_secure_connect_fail_test.c +++ b/test/regression/web_test/netx_web_secure_connect_fail_test.c @@ -1,4 +1,4 @@ -/* This case tests client connect three times to server to see +/* This case tests client connect three times to server to see if server actually clear the seesion materials. */ #include "tx_api.h" @@ -292,7 +292,7 @@ UINT server_port = NX_WEB_HTTPS_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_server_chunked_content_process_test.c b/test/regression/web_test/netx_web_server_chunked_content_process_test.c index 510c9af9..40b226e9 100644 --- a/test/regression/web_test/netx_web_server_chunked_content_process_test.c +++ b/test/regression/web_test/netx_web_server_chunked_content_process_test.c @@ -445,7 +445,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_server_content_process_test.c b/test/regression/web_test/netx_web_server_content_process_test.c index 7fe55f29..8057abf6 100644 --- a/test/regression/web_test/netx_web_server_content_process_test.c +++ b/test/regression/web_test/netx_web_server_content_process_test.c @@ -394,7 +394,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; @@ -505,7 +505,7 @@ static UINT authentication_check(NX_WEB_HTTP_SERVER *server_ptr, UINT request_t CHAR *resource, CHAR **name, CHAR **password, CHAR **realm) { - /* Just use a simple name, password, and realm for all + /* Just use a simple name, password, and realm for all requests and resources. */ *name = "name"; *password = "password"; diff --git a/test/regression/web_test/netx_web_status_400_test.c b/test/regression/web_test/netx_web_status_400_test.c index 43db126f..0048582b 100644 --- a/test/regression/web_test/netx_web_status_400_test.c +++ b/test/regression/web_test/netx_web_status_400_test.c @@ -1,9 +1,9 @@ /* This case tests status 400. - * 1. If Request-URIis an absoluteURI, the host is part of the Request-URI. Any Host header + * 1. If Request-URIis an absoluteURI, the host is part of the Request-URI. Any Host header * field value in the request MUST be ignored. - * 2. If the Request-URIis not an absoluteURI, and the request includes a Hostheader field, + * 2. If the Request-URIis not an absoluteURI, and the request includes a Hostheader field, * the host is determined by the Hostheader field value. - * 3. If the host as determined by rule 1 or 2 is not a valid host on the server, the response + * 3. If the host as determined by rule 1 or 2 is not a valid host on the server, the response * MUST be a 400 (Bad Request) error message. * * Change Host field value from 192.168.0.123 to 192.168.0.120 . @@ -85,8 +85,8 @@ static UINT loop = 1; extern UINT _nx_web_http_client_receive(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option); extern UINT _nx_web_http_client_send(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option); -/* This is a HTTP get packet captured by wireshark. - * curl 192.168.0.123 +/* This is a HTTP get packet captured by wireshark. + * curl 192.168.0.123 * 123: pkt[120] = 0x31, pkt[121] = 0x32, pkt[122] = 0x33 * 122: pkt[120] = 0x31, pkt[121] = 0x32, pkt[122] = 0x32 * */ @@ -400,7 +400,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_status_404_test.c b/test/regression/web_test/netx_web_status_404_test.c index ce519910..7d027d24 100644 --- a/test/regression/web_test/netx_web_status_404_test.c +++ b/test/regression/web_test/netx_web_status_404_test.c @@ -78,8 +78,8 @@ static UINT loop = 1; extern UINT _nx_web_http_client_receive(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option); extern UINT _nx_web_http_client_send(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option); -/* This is a HTTP get packet captured by wireshark. - * curl 192.168.0.123/aaa.index +/* This is a HTTP get packet captured by wireshark. + * curl 192.168.0.123/aaa.index * */ static char pkt[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x57, 0xb8, 0xca, /* .."3DW.. */ @@ -377,7 +377,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/web_test/netx_web_status_501_test.c b/test/regression/web_test/netx_web_status_501_test.c index c670888a..76905d9b 100644 --- a/test/regression/web_test/netx_web_status_501_test.c +++ b/test/regression/web_test/netx_web_status_501_test.c @@ -81,8 +81,8 @@ static UINT loop = 1; extern UINT _nx_web_http_client_receive(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET **packet_ptr, ULONG wait_option); extern UINT _nx_web_http_client_send(NX_WEB_HTTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, ULONG wait_option); -/* This is a HTTP get packet captured by wireshark. - * curl 192.168.0.123 +/* This is a HTTP get packet captured by wireshark. + * curl 192.168.0.123 * GET: pkt[54] = 0x47, pkt[55] = 0x45, pkt[56] = 0x54 * AET: pkt[54] = 'A' , pkt[55] = 0x45, pkt[56] = 0x54 * */ @@ -395,7 +395,7 @@ UINT server_port = NX_WEB_HTTP_SERVER_PORT; 512, // Sector size 8, // Sectors per cluster 1, // Heads - 1); // Sectors per track + 1); // Sectors per track /* Open the RAM disk. */ status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, media_memory, sizeof(media_memory)) ; diff --git a/test/regression/websocket_test/netx_websocket_common_process.c b/test/regression/websocket_test/netx_websocket_common_process.c index 7a902510..8d2b2e9b 100644 --- a/test/regression/websocket_test/netx_websocket_common_process.c +++ b/test/regression/websocket_test/netx_websocket_common_process.c @@ -54,7 +54,7 @@ UCHAR digest[TEST_CONNECT_DIGEST_SIZE]; while (((buffer_ptr + 1) < packet_ptr -> nx_packet_append_ptr) && (*buffer_ptr != 0)) { - /* Check for the token. This signals a blank line, which also + /* Check for the token. This signals a blank line, which also specifies the start of the content. */ if ((*buffer_ptr == '\r') && (*(buffer_ptr + 1) == '\n')) diff --git a/tsn/inc/nx_mrp.h b/tsn/inc/nx_mrp.h index f00c568a..59b87984 100644 --- a/tsn/inc/nx_mrp.h +++ b/tsn/inc/nx_mrp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -35,12 +35,6 @@ /* */ /* This file defines the NetX TSN MRP component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef _NX_MRP_H_ diff --git a/tsn/inc/nx_msrp.h b/tsn/inc/nx_msrp.h index d29ce0c7..c947b7dc 100644 --- a/tsn/inc/nx_msrp.h +++ b/tsn/inc/nx_msrp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/tsn/inc/nx_mvrp.h b/tsn/inc/nx_mvrp.h index 3cdbacc3..7b47ae99 100644 --- a/tsn/inc/nx_mvrp.h +++ b/tsn/inc/nx_mvrp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -35,12 +35,6 @@ /* */ /* This file defines the NetX TSN MVRP component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NX_MVRP_H diff --git a/tsn/inc/nx_shaper.h b/tsn/inc/nx_shaper.h index bd7f5396..cd9d8222 100644 --- a/tsn/inc/nx_shaper.h +++ b/tsn/inc/nx_shaper.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -33,12 +33,6 @@ /* */ /* This file defines the NetX shaper component. */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ #ifndef NX_SHAPER_H diff --git a/tsn/inc/nx_srp.h b/tsn/inc/nx_srp.h index 99c93648..1a46ecff 100644 --- a/tsn/inc/nx_srp.h +++ b/tsn/inc/nx_srp.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/tsn/src/nx_mrp.c b/tsn/src/nx_mrp.c index b0fe1ee7..cf34d907 100644 --- a/tsn/src/nx_mrp.c +++ b/tsn/src/nx_mrp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -86,12 +86,6 @@ UCHAR *action_str[] = /* nx_mrp_periodic_timeout_process MRP periodic timeout process */ /* nx_mrp_join_timeout_process MRP join timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_applicant_event_process(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR mrp_event) { @@ -487,12 +481,6 @@ UCHAR origin_state = attribute -> applicant.state; /* nx_mrp_join_timeout_process MRP join timeout process */ /* nx_mrp_leave_timeout_process MRP leave timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_registrar_event_process(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR mrp_event) { @@ -624,12 +612,6 @@ UCHAR origin_state = attribute -> registrar.state; /* nx_mrp_join_timeout_process MRP join timeout process */ /* nx_mrp_leaveall_timeout_process MRP leave all timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_leaveall_event_process(NX_MRP_PARTICIPANT *participant, UCHAR mrp_event) { @@ -715,12 +697,6 @@ UCHAR origin_state = participant -> leaveall.state; /* */ /* nx_srp_init SRP init */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_participant_add(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant) { @@ -794,12 +770,6 @@ NX_MRP_PARTICIPANT *tmp_participant = mrp -> list_head; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ NX_MRP_ATTRIBUTE *nx_mrp_attribute_new(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute_array, UINT unit_size, @@ -874,12 +844,6 @@ UINT i; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_attribute_evict(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *target) { @@ -943,12 +907,6 @@ NX_MRP_ATTRIBUTE *attribute = target; /* */ /* nx_mrp_init Initialize MRP Module */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_timer_handle(ULONG mrp_instance) { @@ -996,12 +954,6 @@ NX_MRP *mrp = (NX_MRP *)mrp_instance; /* */ /* nx_mrp_init Initialize MRP Module */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_ethernet_receive_notify(NX_IP *ip_ptr, UINT interface_index, NX_PACKET *packet_ptr, ULONG physical_address_msw, ULONG physical_address_lsw, @@ -1097,12 +1049,6 @@ NX_MRP *mrp = (NX_MRP *)context; /* */ /* nx_srp_init Initialize SRP Module */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_init(NX_MRP *mrp, NX_IP *ip_ptr, UINT interface_index, NX_PACKET_POOL *pkt_pool_ptr, CHAR *thread_name, VOID *stack_ptr, ULONG stack_size, UINT priority) @@ -1215,12 +1161,6 @@ UINT status; /* */ /* nx_mrp_rcv_pkt_process Process received packet */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ NX_MRP_PARTICIPANT *nx_mrp_participant_search(NX_MRP *mrp, UINT participant_type) { @@ -1273,12 +1213,6 @@ NX_MRP_PARTICIPANT *participant = NX_NULL; /* */ /* nx_mrp_thread_entry MRP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_rcv_pkt_process(NX_MRP *mrp) { @@ -1374,12 +1308,6 @@ NX_MRP_PARTICIPANT *participant; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_event_process(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR mrp_event) { @@ -1451,12 +1379,6 @@ UINT status; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mrp_attribute_event_get(NX_MRP_ATTRIBUTE *attribute, UCHAR *event_ptr) { @@ -1542,12 +1464,6 @@ UINT nx_mrp_attribute_event_get(NX_MRP_ATTRIBUTE *attribute, UCHAR *event_ptr) /* */ /* nx_mrp_timeout_process MRP timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_periodic_timeout_process(NX_MRP *mrp) { @@ -1613,12 +1529,6 @@ NX_MRP_ATTRIBUTE *attribute; /* */ /* nx_mrp_timeout_process MRP timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_join_timeout_process(NX_MRP *mrp) { @@ -1765,12 +1675,6 @@ UINT eth_type; /* */ /* nx_mrp_timeout_process MRP timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_leaveall_timeout_process(NX_MRP *mrp) { @@ -1825,12 +1729,6 @@ NX_MRP_PARTICIPANT *participant; /* */ /* nx_mrp_timeout_process MRP timeout process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_leave_timeout_process(NX_MRP *mrp) { @@ -1892,12 +1790,6 @@ NX_MRP_ATTRIBUTE *attribute; /* */ /* nx_mrp_thread_entry MRP thread entry */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_timeout_process(NX_MRP *mrp) { @@ -1945,12 +1837,6 @@ void nx_mrp_timeout_process(NX_MRP *mrp) /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mrp_thread_entry(ULONG mrp_instance) { diff --git a/tsn/src/nx_msrp.c b/tsn/src/nx_msrp.c index a5367dc2..89b6980c 100644 --- a/tsn/src/nx_msrp.c +++ b/tsn/src/nx_msrp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -62,12 +62,6 @@ static NX_MSRP_ATTRIBUTE msrp_attribute_array[NX_MSRP_ATTRIBUTE_ARRAY_MAX_SIZE]; /* */ /* nx_srp_init Initialize SRP */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_init(NX_MSRP *msrp_ptr) { @@ -128,12 +122,6 @@ UINT nx_msrp_init(NX_MSRP *msrp_ptr) /* nx_msrp_deregister_domain_request MSRP deregister domain requset*/ /* nx_msrp_mrpdu_parse MSRP parse MRP date unit */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_attribute_find(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE **attribute_ptr, UCHAR attribute_type, UCHAR *attribute_value) { @@ -401,12 +389,6 @@ NX_MRP_ATTRIBUTE *attribute_head = participant -> inused_head; /* */ /* nx_srp_talker_start Start SRP talker */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_register_stream_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MSRP_TALKER_ADVERTISE *talker_advertise, UINT new_request) { @@ -493,12 +475,6 @@ UCHAR mrp_event; /* */ /* nx_msrp_register_stream_indication Indication MSRP register */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_register_attach_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, UCHAR *stream_id, UINT mrp_event, UCHAR fourpacked_value) { @@ -568,12 +544,6 @@ UCHAR attribute_type = NX_MSRP_TALKER_LISTENER_VECTOR; /* */ /* nx_srp_talker_stop Stop SRP talker */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_deregister_stream_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, UCHAR *stream_id) { @@ -637,12 +607,6 @@ UCHAR attribute_type = NX_MSRP_TALKER_ADVERTISE_VECTOR; /* nx_msrp_deregister_stream_indication receive deregister stream */ /* nx_srp_listener_stop Stop SRP listener */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_deregister_attach_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, UCHAR *stream_id) { @@ -707,12 +671,6 @@ UCHAR attribute_type = NX_MSRP_TALKER_LISTENER_VECTOR; /* */ /* nx_srp_talker_start Start SRP talker */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_register_domain_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MSRP_DOMAIN *domain, UINT new_request) { @@ -799,12 +757,6 @@ UINT status; /* nx_msrp_deregister_domain_indication Deregister MSRP domain */ /* indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_deregister_domain_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MSRP_DOMAIN *domain) { @@ -869,12 +821,6 @@ UINT status; /* */ /* nx_msrp_indication_process Process MSRP indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_register_stream_indication(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UINT indication_type) { @@ -955,12 +901,6 @@ NX_MRP_EVENT_CALLBACK event_callback; /* */ /* nx_msrp_indication_process Process MSRP indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_deregister_stream_indication(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -1022,12 +962,6 @@ UCHAR *stream_id; /* */ /* nx_msrp_indication_process Process MSRP indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_register_attach_indication(NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -1077,12 +1011,6 @@ NX_MRP_EVENT_CALLBACK event_callback; /* */ /* nx_msrp_indication_process Process MSRP indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_deregister_attach_indication(NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -1134,12 +1062,6 @@ NX_MRP_EVENT_CALLBACK event_callback; /* */ /* nx_msrp_indication_process Process MSRP indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_register_domain_indication(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -1201,12 +1123,6 @@ NX_MSRP_DOMAIN *domain; /* */ /* nx_msrp_indication_process Process MSRP indication */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_deregister_domain_indication(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -1275,12 +1191,6 @@ NX_MSRP_DOMAIN *domain; /* nx_mrp_registrar_event_process Process registrar mrp_event */ /* nx_mrp_attribute_evict Evict MRP attribute */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_indication_process(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -1427,12 +1337,6 @@ UINT status; /* nx_mrp_registrar_event_process Process registrar mrp_event */ /* nx_mrp_attribute_evict Evict MRP attribute */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_mrpdu_parse(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_PACKET *packet_ptr) { @@ -1683,12 +1587,6 @@ UCHAR *data_ptr = packet_ptr -> nx_packet_data_start; /* */ /* nx_msrp_mrpdu_pack MSRP pack MRP data unit */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_mrpdu_pack_attribute(NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, USHORT num_of_value, UCHAR *threepacked_event, UCHAR *fourpacked_event, UCHAR *data_ptr, UINT *length_ptr) @@ -1961,12 +1859,6 @@ USHORT attribute_list_length; /* */ /* nx_mrp_join_timeout_process MRP join timer timeout process*/ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_msrp_mrpdu_pack(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_PACKET *packet_ptr) { diff --git a/tsn/src/nx_mvrp.c b/tsn/src/nx_mvrp.c index 6262bae7..a3ce563d 100644 --- a/tsn/src/nx_mvrp.c +++ b/tsn/src/nx_mvrp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -58,12 +58,6 @@ NX_MVRP_ATTRIBUTE mvrp_attribute_array[NX_MVRP_ATTRIBUTE_ARRAY_MAX_SIZE]; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_indication_process(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute, UCHAR indication_type) { @@ -120,12 +114,6 @@ NX_MVRP *mvrp = (NX_MVRP *)participant; /* */ /* Internal Function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_mrpdu_unpack(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_PACKET *packet_ptr) { @@ -313,12 +301,6 @@ UCHAR three_packed_event, first_event, second_event, third_event; /* */ /* Internal Function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_mrpdu_pack(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_PACKET *packet_ptr) { @@ -490,12 +472,6 @@ USHORT i; /* */ /* Internal Function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_attribute_find(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE **attribute_ptr, USHORT vlan_id) { @@ -557,12 +533,6 @@ NX_MVRP_ATTRIBUTE *mvrp_attribute; /* */ /* nx_mvrp_attribute_get MVRP attribute get */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ void nx_mvrp_attribute_insert(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE *attribute) { @@ -655,12 +625,6 @@ USHORT vlan_id = ((NX_MVRP_ATTRIBUTE *)attribute) -> vlan_id; /* nx_mvrp_action_request MVRP action request */ /* nx_mvrp_mrpdu_unpack MVRP message unpack */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_attribute_get(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, NX_MRP_ATTRIBUTE **attribute_ptr, USHORT vlan_id) { @@ -733,12 +697,6 @@ UINT status; /* */ /* nx_mvrp_indication_process MVRP indication process */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_action_request(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, USHORT vlan_id, UCHAR action_type) { @@ -814,12 +772,6 @@ UCHAR mrp_event; /* */ /* nx_srp_init SRP init */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_mvrp_init(NX_MVRP *mvrp_ptr) { diff --git a/tsn/src/nx_shaper.c b/tsn/src/nx_shaper.c index 64e40507..b6a4a7c7 100644 --- a/tsn/src/nx_shaper.c +++ b/tsn/src/nx_shaper.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -59,12 +59,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_create(NX_INTERFACE *interface_ptr, NX_SHAPER_CONTAINER *shaper_container, @@ -169,12 +163,6 @@ NX_SHAPER_DRIVER_PARAMETER driver_request; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_delete(NX_INTERFACE *interface_ptr, NX_SHAPER *shaper) { @@ -252,12 +240,6 @@ UINT i; /* */ /* Network driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_config(NX_INTERFACE *interface_ptr, UINT port_rate, @@ -316,12 +298,6 @@ UINT status; /* */ /* nx_shaper_config Config the shaper HW params */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_hw_queue_set(NX_INTERFACE *interface_ptr, UCHAR hw_queue_id, UCHAR priority, UCHAR type) { @@ -419,12 +395,6 @@ UCHAR i, insert_id; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_default_mapping_get(NX_INTERFACE *interface_ptr, UCHAR *pcp_list, UCHAR *queue_id_list, UCHAR list_size) { @@ -650,12 +620,6 @@ UCHAR hw_cbs_queue_number; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_current_mapping_get(NX_INTERFACE *interface_ptr, UCHAR *pcp_list, UCHAR *queue_id_list, UCHAR list_size) { @@ -722,12 +686,6 @@ UCHAR i, j; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_hw_queue_number_get(NX_INTERFACE *interface_ptr, UCHAR *hw_queue_number) { @@ -772,12 +730,6 @@ UINT nx_shaper_hw_queue_number_get(NX_INTERFACE *interface_ptr, UCHAR *hw_queue_ /* */ /* nx_shaper_default_mapping_get */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_hw_cbs_queue_number_get(NX_INTERFACE *interface_ptr, UCHAR *hw_cbs_queue_number) { @@ -831,12 +783,6 @@ UCHAR i; /* */ /* Internal function */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_port_rate_get(NX_INTERFACE *interface_ptr, UINT *port_rate) { @@ -882,12 +828,6 @@ UINT nx_shaper_port_rate_get(NX_INTERFACE *interface_ptr, UINT *port_rate) /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_mapping_set(NX_INTERFACE *interface_ptr, UCHAR *pcp_list, UCHAR *queue_id_list, UCHAR list_size) { @@ -960,12 +900,6 @@ UCHAR i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_cbs_parameter_set(NX_INTERFACE *interface_ptr, NX_SHAPER_CBS_PARAMETER *cbs_parameter, UCHAR pcp) { @@ -1065,12 +999,6 @@ UINT status; /* */ /* Network driver */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_hw_queue_id_get(NX_INTERFACE *interface_ptr, NX_PACKET *packet_ptr, UCHAR *hw_queue_id) { @@ -1134,12 +1062,6 @@ UCHAR pcp = 0; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_tas_parameter_set(NX_INTERFACE *interface_ptr, NX_SHAPER_TAS_CONFIG *tas_config) { @@ -1368,12 +1290,6 @@ NX_SHAPER_FP_PARAMETER *fp_parameter; /* */ /* nx_shaper_fp_parameter_set FP parameter set */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_express_queue_set(NX_INTERFACE *interface_ptr, UCHAR *express_queue_bitmap, UCHAR pcp) { @@ -1432,12 +1348,6 @@ NX_INTERFACE *parent_interface; /* */ /* nx_shaper_fp_parameter_set */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_sdu_tx_time_get(NX_INTERFACE *interface_ptr, UINT sdu_size, UINT *tx_time) { @@ -1491,12 +1401,6 @@ UINT tmp; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_shaper_fp_parameter_set(NX_INTERFACE *interface_ptr, NX_SHAPER_FP_PARAMETER *fp_parameter) { diff --git a/tsn/src/nx_srp.c b/tsn/src/nx_srp.c index 05f145bf..6021e29d 100644 --- a/tsn/src/nx_srp.c +++ b/tsn/src/nx_srp.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ @@ -64,12 +64,6 @@ /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_init(NX_SRP *srp_ptr, NX_IP *ip_ptr, UINT interface_index, NX_PACKET_POOL *pkt_pool_ptr, VOID *stack_ptr, ULONG stack_size, UINT priority) @@ -137,12 +131,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_talker_start(NX_SRP *srp_ptr, NX_MSRP_DOMAIN *domain, UCHAR *stream_id, UCHAR *dst_addr, UINT max_frame_size, UINT max_interval_frames, NX_MRP_EVENT_CALLBACK event_callback) @@ -299,12 +287,6 @@ INT i; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_listener_start(NX_SRP *srp_ptr, NX_MRP_EVENT_CALLBACK event_callback, UCHAR *stream_id) { @@ -356,12 +338,6 @@ UINT nx_srp_listener_start(NX_SRP *srp_ptr, NX_MRP_EVENT_CALLBACK event_callback /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_talker_stop(NX_SRP *srp_ptr, UCHAR *stream_id, NX_MSRP_DOMAIN *domain) { @@ -424,12 +400,6 @@ UINT status; /* */ /* Application Code */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_listener_stop(NX_SRP *srp_ptr, UCHAR *stream_id, NX_MSRP_DOMAIN *domain) { @@ -505,12 +475,6 @@ UINT status; /* */ /* nx_srp_talker_cbs_set Set CBS parameter */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_cbs_config_get(UINT sr_class, INT port_rate, UINT interval, UINT frames_per_interval, UINT max_frame_size, UINT non_sr_frame_size, INT idle_slope_a, UINT max_frame_size_a, NX_SHAPER_CBS_PARAMETER *cbs_param) { @@ -583,12 +547,6 @@ UINT nx_srp_cbs_config_get(UINT sr_class, INT port_rate, UINT interval, UINT fra /* */ /* nx_srp_talker_start Start SRP talker */ /* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ -/* */ /**************************************************************************/ UINT nx_srp_talker_cbs_set(NX_SRP *srp_ptr, UINT index) { diff --git a/utility/iperf/demo_iperf.c b/utility/iperf/demo_iperf.c index 88450836..ca9bdcc2 100644 --- a/utility/iperf/demo_iperf.c +++ b/utility/iperf/demo_iperf.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/utility/iperf/nx_iperf.c b/utility/iperf/nx_iperf.c index 7932588b..9ba919d2 100644 --- a/utility/iperf/nx_iperf.c +++ b/utility/iperf/nx_iperf.c @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ diff --git a/utility/iperf/nx_iperf.h b/utility/iperf/nx_iperf.h index 12d288bd..81cb6d7b 100644 --- a/utility/iperf/nx_iperf.h +++ b/utility/iperf/nx_iperf.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2024 Microsoft Corporation * Copyright (c) 2025-present Eclipse ThreadX Contributors - * + * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. - * + * * SPDX-License-Identifier: MIT **************************************************************************/ -- cgit v1.3.1