From 6053c3f7061d825d20ba76f7e254d5acc9e929c5 Mon Sep 17 00:00:00 2001 From: Bo Chen <50469338+bo-ms@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:12:43 +0800 Subject: [PATCH] Updated version and date for 6.4.0 (#229) --- addons/BSD/nxd_bsd.c | 40 +- addons/BSD/nxd_bsd.h | 6 +- addons/ptp/nxd_ptp_client.c | 140 +- addons/ptp/nxd_ptp_client.h | 6 +- addons/rtp/nx_rtp_sender.c | 20 +- addons/rtp/nx_rtp_sender.h | 6 +- common/inc/nx_api.h | 8 +- common/inc/nx_link.h | 4 +- common/inc/nx_packet.h | 6 +- common/inc/nx_tcp.h | 6 +- common/inc/nx_udp.h | 6 +- .../src/nx_ip_deferred_link_status_process.c | 6 +- common/src/nx_link.c | 64 +- common/src/nx_packet_allocate.c | 6 +- common/src/nx_packet_vlan_priority_set.c | 4 +- common/src/nx_ram_network_driver.c | 18 +- common/src/nx_tcp_packet_send_control.c | 6 +- common/src/nx_tcp_socket_create.c | 6 +- common/src/nx_tcp_socket_retransmit.c | 6 +- common/src/nx_tcp_socket_send_internal.c | 6 +- common/src/nx_tcp_socket_transmit_configure.c | 6 +- common/src/nx_tcp_socket_vlan_priority_set.c | 4 +- common/src/nx_udp_socket_create.c | 6 +- common/src/nx_udp_socket_vlan_priority_set.c | 4 +- common/src/nxd_udp_socket_send.c | 6 +- common/src/nxe_packet_vlan_priority_set.c | 4 +- common/src/nxe_tcp_socket_vlan_priority_set.c | 4 +- common/src/nxe_udp_socket_vlan_priority_set.c | 4 +- nx_secure/inc/nx_secure_tls.h | 7 +- nx_secure/ports/nx_secure_port.h | 2 +- ports/arc_em/metaware/inc/nx_port.h | 2 +- ports/arc_hs/metaware/inc/nx_port.h | 2 +- ports/cortex_a15/gnu/inc/nx_port.h | 2 +- ports/cortex_a5/ac5/inc/nx_port.h | 2 +- ports/cortex_a5/gnu/inc/nx_port.h | 2 +- ports/cortex_a5/iar/inc/nx_port.h | 2 +- ports/cortex_a5x/ac6/inc/nx_port.h | 2 +- ports/cortex_a7/ac5/inc/nx_port.h | 2 +- ports/cortex_a7/gnu/inc/nx_port.h | 2 +- ports/cortex_a7/iar/inc/nx_port.h | 2 +- ports/cortex_a8/ac5/inc/nx_port.h | 2 +- ports/cortex_a8/gnu/inc/nx_port.h | 2 +- ports/cortex_a8/iar/inc/nx_port.h | 2 +- ports/cortex_a9/ac5/inc/nx_port.h | 2 +- ports/cortex_a9/gnu/inc/nx_port.h | 2 +- ports/cortex_a9/iar/inc/nx_port.h | 2 +- ports/cortex_a9/rvds/inc/nx_port.h | 2 +- ports/cortex_m0/ac5/inc/nx_port.h | 2 +- ports/cortex_m0/gnu/inc/nx_port.h | 2 +- ports/cortex_m0/iar/inc/nx_port.h | 2 +- ports/cortex_m23/ac5/inc/nx_port.h | 2 +- ports/cortex_m23/gnu/inc/nx_port.h | 2 +- ports/cortex_m23/iar/inc/nx_port.h | 2 +- ports/cortex_m3/ac5/inc/nx_port.h | 2 +- ports/cortex_m3/gnu/inc/nx_port.h | 2 +- ports/cortex_m3/iar/inc/nx_port.h | 2 +- ports/cortex_m3/keil/inc/nx_port.h | 2 +- ports/cortex_m33/ac5/inc/nx_port.h | 2 +- ports/cortex_m33/ac6/inc/nx_port.h | 2 +- ports/cortex_m33/gnu/inc/nx_port.h | 2 +- ports/cortex_m33/iar/inc/nx_port.h | 2 +- ports/cortex_m4/ac5/inc/nx_port.h | 2 +- ports/cortex_m4/gnu/inc/nx_port.h | 2 +- ports/cortex_m4/iar/inc/nx_port.h | 2 +- ports/cortex_m4/keil/inc/nx_port.h | 2 +- ports/cortex_m55/ac5/inc/nx_port.h | 2 +- ports/cortex_m55/ac6/inc/nx_port.h | 2 +- ports/cortex_m55/gnu/inc/nx_port.h | 2 +- ports/cortex_m55/iar/inc/nx_port.h | 2 +- ports/cortex_m7/ac5/inc/nx_port.h | 2 +- ports/cortex_m7/ac6/inc/nx_port.h | 2 +- ports/cortex_m7/gnu/inc/nx_port.h | 2 +- ports/cortex_m7/iar/inc/nx_port.h | 2 +- ports/cortex_m85/ac5/inc/nx_port.h | 2 +- ports/cortex_m85/ac6/inc/nx_port.h | 2 +- ports/cortex_m85/gnu/inc/nx_port.h | 2 +- ports/cortex_m85/iar/inc/nx_port.h | 2 +- ports/cortex_r4/ac5/inc/nx_port.h | 2 +- ports/cortex_r4/ac6/inc/nx_port.h | 2 +- ports/cortex_r4/gnu/inc/nx_port.h | 2 +- ports/cortex_r4/iar/inc/nx_port.h | 2 +- ports/cortex_r5/ac5/inc/nx_port.h | 2 +- ports/cortex_r5/gnu/inc/nx_port.h | 2 +- ports/cortex_r5/iar/inc/nx_port.h | 2 +- ports/linux/gnu/inc/nx_port.h | 2 +- ports/mips/gnu/inc/nx_port.h | 2 +- ports/rxv2/ccrx/inc/nx_port.h | 2 +- ports/rxv2/gnu/inc/nx_port.h | 2 +- ports/rxv2/iar/inc/nx_port.h | 2 +- ports/win32/vs_2019/inc/nx_port.h | 2 +- .../cmake/nx_secure/regression/CMakeLists.txt | 358 +-- .../nx_ram_network_driver_test_1500.c | 2806 ----------------- .../nx_ram_network_driver_test_1500.h | 50 - .../test/nx_ram_network_driver_test_1500.c | 52 +- tsn/inc/nx_mrp.h | 4 +- tsn/inc/nx_mvrp.h | 4 +- tsn/inc/nx_shaper.h | 4 +- tsn/src/nx_mrp.c | 76 +- tsn/src/nx_msrp.c | 72 +- tsn/src/nx_mvrp.c | 32 +- tsn/src/nx_shaper.c | 64 +- tsn/src/nx_srp.c | 28 +- 102 files changed, 617 insertions(+), 3470 deletions(-) delete mode 100644 test/regression/nx_secure_test/nx_ram_network_driver_test_1500.c delete mode 100644 test/regression/nx_secure_test/nx_ram_network_driver_test_1500.h diff --git a/addons/BSD/nxd_bsd.c b/addons/BSD/nxd_bsd.c index f7f030a1..0a5eff5d 100644 --- a/addons/BSD/nxd_bsd.c +++ b/addons/BSD/nxd_bsd.c @@ -270,9 +270,9 @@ static struct NX_BSD_SERVICE_LIST *_nx_bsd_serv_list_ptr; /* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ /* used new API/structs naming,*/ /* resulting in version 6.3.0 */ -/* xx-xx-xxxx Yanwu Cai Modified comment(s), and */ +/* 12-31-2023 Yanwu Cai Modified comment(s), and */ /* added nx_link layer, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ INT nx_bsd_initialize(NX_IP *default_ip, NX_PACKET_POOL *default_pool, CHAR *bsd_thread_stack_area, @@ -4067,7 +4067,7 @@ struct nx_bsd_iovec iov; /* FUNCTION RELEASE */ /* */ /* recvfrom PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -4115,9 +4115,9 @@ struct nx_bsd_iovec iov; /* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ /* used new API/structs naming,*/ /* resulting in version 6.3.0 */ -/* xx-xx-xxxx Yanwu Cai Modified comment(s), and */ +/* 12-31-2023 Yanwu Cai Modified comment(s), and */ /* added nx_bsd_recv_internal, */ -/* resulting in version 6.x */ +/* 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) @@ -4136,7 +4136,7 @@ struct nx_bsd_iovec iov; /* FUNCTION RELEASE */ /* */ /* recvmsg PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yanwu Cai, Microsoft Corporation */ @@ -4171,7 +4171,7 @@ struct nx_bsd_iovec iov; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yanwu Cai Initial Version 6.x */ +/* 12-31-2023 Yanwu Cai Initial Version 6.4.0 */ /* */ /**************************************************************************/ INT nx_bsd_recvmsg(INT sockID, struct nx_bsd_msghdr *msg, INT flags) @@ -4191,7 +4191,7 @@ INT fromAddrLen = 0; /* FUNCTION RELEASE */ /* */ /* recv_internal PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yanwu Cai, Microsoft Corporation */ @@ -4253,7 +4253,7 @@ INT fromAddrLen = 0; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yanwu Cai Initial Version 6.x */ +/* 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) @@ -5477,7 +5477,7 @@ NX_BSD_SOCKET *bsd_socket_ptr; /* FUNCTION RELEASE */ /* */ /* ioctl PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -5525,10 +5525,10 @@ NX_BSD_SOCKET *bsd_socket_ptr; /* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ /* used new API/structs naming,*/ /* resulting in version 6.3.0 */ -/* xx-xx-xxxx Yanwu Cai Modified comment(s), and */ +/* 12-31-2023 Yanwu Cai Modified comment(s), and */ /* added SIOCGIFINDEX and */ /* SIOCGIFHWADDR commands, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ INT nx_bsd_ioctl(INT sockID, INT command, INT *result) @@ -6595,7 +6595,7 @@ ULONG ticks; /* FUNCTION RELEASE */ /* */ /* setsockopt PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -6637,10 +6637,10 @@ ULONG ticks; /* 10-31-2023 Chaoqiong Xiao Modified comment(s), and */ /* used new API/structs naming,*/ /* resulting in version 6.3.0 */ -/* xx-xx-xxxx Yanwu Cai Modified comment(s), and */ +/* 12-31-2023 Yanwu Cai Modified comment(s), and */ /* added PACKET_ADD_MEMBERSHIP */ /* and PACKET_DROP_MEMBERSHIP, */ -/* resulting in version 6.x */ +/* 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) @@ -13147,7 +13147,7 @@ NX_BSD_SOCKET *bsd_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_bsd_hardware_internal_sendto PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -13189,9 +13189,9 @@ NX_BSD_SOCKET *bsd_ptr; /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yanwu Cai Modified comment(s), */ +/* 12-31-2023 Yanwu Cai Modified comment(s), */ /* added nx_link layer, */ -/* resulting in version 6.x */ +/* 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) @@ -13446,7 +13446,7 @@ NX_BSD_SOCKET *bsd_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_bsd_ethernet_receive_notify PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yanwu Cai, Microsoft Corporation */ @@ -13486,7 +13486,7 @@ NX_BSD_SOCKET *bsd_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yanwu Cai Initial Version 6.x */ +/* 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, diff --git a/addons/BSD/nxd_bsd.h b/addons/BSD/nxd_bsd.h index 4b15e468..b1885985 100644 --- a/addons/BSD/nxd_bsd.h +++ b/addons/BSD/nxd_bsd.h @@ -25,7 +25,7 @@ /* BSD DEFINITIONS RELEASE */ /* */ /* nxd_bsd.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -54,10 +54,10 @@ /* added option to enable */ /* native APIs with prefix, */ /* resulting in version 6.3.0 */ -/* xx-xx-xxxx Yanwu Cai Modified comment(s), and */ +/* 12-31-2023 Yanwu Cai Modified comment(s), and */ /* added support of recvmsg, */ /* added nx_link to raw socket,*/ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/addons/ptp/nxd_ptp_client.c b/addons/ptp/nxd_ptp_client.c index 3c6446f7..022dcdc2 100644 --- a/addons/ptp/nxd_ptp_client.c +++ b/addons/ptp/nxd_ptp_client.c @@ -24,7 +24,7 @@ /* APPLICATION INTERFACE DEFINITION RELEASE */ /* */ /* nxd_ptp_client.c PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -39,10 +39,10 @@ /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ @@ -295,7 +295,7 @@ ULONG nanoseconds = (ULONG)time_ptr -> nanosecond; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_msg_parse_hdr PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -328,9 +328,9 @@ ULONG nanoseconds = (ULONG)time_ptr -> nanosecond; /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ -/* resulting in version 6.x */ +/* 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) @@ -495,7 +495,7 @@ static VOID _nx_ptp_msg_parse_announce(UCHAR *ptr, NX_PTP_CLIENT_MASTER *master) /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_master_clock_compare PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -765,7 +765,7 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)(socket_ptr -> nx_udp_socket_reserv /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_ethernet_receive_notify PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -794,7 +794,7 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)(socket_ptr -> nx_udp_socket_reserv /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -858,7 +858,7 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)context; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_clock_adjust PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -893,9 +893,9 @@ NX_PTP_CLIENT *client_ptr = (NX_PTP_CLIENT *)context; /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_clock_adjust(NX_PTP_CLIENT *client_ptr, NX_PTP_TIME *offset_ptr) @@ -963,7 +963,7 @@ NX_PTP_TIME current; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_delay_req PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -995,10 +995,10 @@ NX_PTP_TIME current; /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_send_delay_req(NX_PTP_CLIENT *client_ptr) @@ -1135,7 +1135,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_sync_received PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -1170,10 +1170,10 @@ NX_INTERFACE *if_ptr; /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* 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) @@ -1306,7 +1306,7 @@ ULONG64 correctionNS = (hdr -> cFieldHigh << 16) | (hdr -> cFieldLow >> 16); /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_delay_resp_received PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -1345,9 +1345,9 @@ ULONG64 correctionNS = (hdr -> cFieldHigh << 16) | (hdr -> cFieldLow >> 16); /* 03-02-2021 Yuxin Zhou Modified comment(s), and */ /* fixed compiler warnings, */ /* resulting in version 6.1.5 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* simplified debug output, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_delay_resp_received(NX_PTP_CLIENT *client_ptr, VOID *ts_ptr) @@ -1441,7 +1441,7 @@ NX_PTP_CLIENT_SYNC sync; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_init_packet_received PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -1475,10 +1475,10 @@ NX_PTP_CLIENT_SYNC sync; /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_init_packet_received(NX_PTP_CLIENT *client_ptr, @@ -1636,7 +1636,7 @@ INT compare_result; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_pdelay_req PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1667,7 +1667,7 @@ INT compare_result; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_send_pdelay_req(NX_PTP_CLIENT *client_ptr) @@ -1823,7 +1823,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_pdelay_resp_received PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1859,7 +1859,7 @@ NX_INTERFACE *if_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -1962,7 +1962,7 @@ NX_PTP_TIME a, b, c, d, t3; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_pdelay_resp_follow_up PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1993,7 +1993,7 @@ NX_PTP_TIME a, b, c, d, t3; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -2143,7 +2143,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_pdelay_resp PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -2175,7 +2175,7 @@ NX_INTERFACE *if_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_send_pdelay_resp(NX_PTP_CLIENT *client_ptr) @@ -2337,7 +2337,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_follow_up PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -2368,7 +2368,7 @@ NX_INTERFACE *if_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_send_follow_up(NX_PTP_CLIENT *client_ptr) @@ -2529,7 +2529,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_sync PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -2560,7 +2560,7 @@ NX_INTERFACE *if_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_send_sync(NX_PTP_CLIENT *client_ptr) @@ -2696,7 +2696,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_send_announce PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -2727,7 +2727,7 @@ NX_INTERFACE *if_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_send_announce(NX_PTP_CLIENT *client_ptr) @@ -2890,7 +2890,7 @@ NX_INTERFACE *if_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_process_event_packet PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -2925,10 +2925,10 @@ NX_INTERFACE *if_ptr; /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_process_event_packet(NX_PTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, @@ -3033,7 +3033,7 @@ static VOID _nx_ptp_client_process_event_packet(NX_PTP_CLIENT *client_ptr, NX_PA /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_process_general_packet PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -3069,10 +3069,10 @@ static VOID _nx_ptp_client_process_event_packet(NX_PTP_CLIENT *client_ptr, NX_PA /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_process_general_packet(NX_PTP_CLIENT *client_ptr, NX_PACKET *packet_ptr, @@ -3149,7 +3149,7 @@ static VOID _nx_ptp_client_process_general_packet(NX_PTP_CLIENT *client_ptr, NX_ /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_thread_entry PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -3188,10 +3188,10 @@ static VOID _nx_ptp_client_process_general_packet(NX_PTP_CLIENT *client_ptr, NX_ /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static VOID _nx_ptp_client_thread_entry(ULONG ptp_instance) @@ -3544,7 +3544,7 @@ UINT _nxe_ptp_client_create(NX_PTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT inter /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_create PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -3590,9 +3590,9 @@ UINT _nxe_ptp_client_create(NX_PTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT inter /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_ptp_client_create(NX_PTP_CLIENT *client_ptr, NX_IP *ip_ptr, UINT interface_index, @@ -3773,7 +3773,7 @@ UINT _nxe_ptp_client_delete(NX_PTP_CLIENT *client_ptr) /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_delete PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -3809,9 +3809,9 @@ UINT _nxe_ptp_client_delete(NX_PTP_CLIENT *client_ptr) /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_ptp_client_delete(NX_PTP_CLIENT *client_ptr) @@ -3922,7 +3922,7 @@ UINT _nxe_ptp_client_start(NX_PTP_CLIENT *client_ptr, UCHAR *client_port_identit /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_start PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -3970,10 +3970,10 @@ UINT _nxe_ptp_client_start(NX_PTP_CLIENT *client_ptr, UCHAR *client_port_identit /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* 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, @@ -4240,7 +4240,7 @@ UINT _nxe_ptp_client_stop(NX_PTP_CLIENT *client_ptr) /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_stop PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -4275,9 +4275,9 @@ UINT _nxe_ptp_client_stop(NX_PTP_CLIENT *client_ptr) /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_ptp_client_stop(NX_PTP_CLIENT *client_ptr) @@ -4370,7 +4370,7 @@ NXD_ADDRESS maddr; /* FUNCTION RELEASE */ /* */ /* _nxe_ptp_client_master_enable PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -4410,7 +4410,7 @@ NXD_ADDRESS maddr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -4446,7 +4446,7 @@ UINT _nxe_ptp_client_master_enable(NX_PTP_CLIENT *client_ptr, UCHAR role, UCHAR /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_master_enable PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -4485,7 +4485,7 @@ UINT _nxe_ptp_client_master_enable(NX_PTP_CLIENT *client_ptr, UCHAR role, UCHAR /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -5061,7 +5061,7 @@ UINT _nx_ptp_client_sync_info_get(NX_PTP_CLIENT_SYNC *sync_ptr, USHORT *flags, S /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_packet_timestamp_notify PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -5093,10 +5093,10 @@ UINT _nx_ptp_client_sync_info_get(NX_PTP_CLIENT_SYNC *sync_ptr, USHORT *flags, S /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* 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) @@ -5337,7 +5337,7 @@ UINT _nxe_ptp_client_utility_time_diff(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time /* FUNCTION RELEASE */ /* */ /* _nxe_ptp_client_utility_time_sum PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -5368,7 +5368,7 @@ UINT _nxe_ptp_client_utility_time_diff(NX_PTP_TIME *time1_ptr, NX_PTP_TIME *time /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -5494,7 +5494,7 @@ LONG ns; /* FUNCTION RELEASE */ /* */ /* _nx_ptp_client_utility_time_sum PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -5528,7 +5528,7 @@ LONG ns; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) diff --git a/addons/ptp/nxd_ptp_client.h b/addons/ptp/nxd_ptp_client.h index 93382682..c0d61f60 100644 --- a/addons/ptp/nxd_ptp_client.h +++ b/addons/ptp/nxd_ptp_client.h @@ -24,7 +24,7 @@ /* APPLICATION INTERFACE DEFINITION RELEASE */ /* */ /* nxd_ptp_client.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -39,10 +39,10 @@ /* DATE NAME DESCRIPTION */ /* */ /* 12-31-2020 Yuxin Zhou Initial Version 6.1.3 */ -/* xx-xx-xxxx Tiejun Zhou Modified comment(s), and */ +/* 12-31-2023 Tiejun Zhou Modified comment(s), and */ /* supported gPTP profile, */ /* supported master clock, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/addons/rtp/nx_rtp_sender.c b/addons/rtp/nx_rtp_sender.c index 29955010..9ad02115 100644 --- a/addons/rtp/nx_rtp_sender.c +++ b/addons/rtp/nx_rtp_sender.c @@ -642,7 +642,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* _nx_rtp_sender_session_create PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Haiqing Zhao, Microsoft Corporation */ @@ -686,9 +686,9 @@ UINT status; /* DATE NAME DESCRIPTION */ /* */ /* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* xx-xx-xxxx Haiqing Zhao Modified comments(s), */ +/* 12-31-2023 Haiqing Zhao Modified comments(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_rtp_sender_session_create(NX_RTP_SENDER *rtp_sender, NX_RTP_SESSION *session, ULONG payload_type, @@ -1295,7 +1295,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* _nx_rtp_sender_session_packet_send PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Haiqing Zhao, Microsoft Corporation */ @@ -1336,9 +1336,9 @@ UINT status; /* DATE NAME DESCRIPTION */ /* */ /* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* xx-xx-xxxx Haiqing Zhao Modified comments(s), */ +/* 12-31-2023 Haiqing Zhao Modified comments(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* 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) @@ -1887,7 +1887,7 @@ UINT _nx_rtp_sender_session_ssrc_get(NX_RTP_SESSION *session, ULONG *ssrc) /* FUNCTION RELEASE */ /* */ /* _nxe_rtp_sender_session_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Haiqing Zhao, Microsoft Corporation */ @@ -1920,7 +1920,7 @@ UINT _nx_rtp_sender_session_ssrc_get(NX_RTP_SESSION *session, ULONG *ssrc) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Haiqing Zhao Initial Version 6.x */ +/* 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) @@ -1954,7 +1954,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* _nxe_rtp_sender_session_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Haiqing Zhao, Microsoft Corporation */ @@ -1987,7 +1987,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Haiqing Zhao Initial Version 6.x */ +/* 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) diff --git a/addons/rtp/nx_rtp_sender.h b/addons/rtp/nx_rtp_sender.h index e1823f78..e5ed9ace 100644 --- a/addons/rtp/nx_rtp_sender.h +++ b/addons/rtp/nx_rtp_sender.h @@ -26,7 +26,7 @@ /* APPLICATION INTERFACE DEFINITION RELEASE */ /* */ /* nx_rtp_sender.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Haiqing Zhao, Microsoft Corporation */ @@ -41,9 +41,9 @@ /* DATE NAME DESCRIPTION */ /* */ /* 10-31-2023 Haiqing Zhao Initial Version 6.3.0 */ -/* xx-xx-xxxx Haiqing Zhao Modified comments(s), */ +/* 12-31-2023 Haiqing Zhao Modified comments(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/common/inc/nx_api.h b/common/inc/nx_api.h index 915b0ec6..d32c28fa 100644 --- a/common/inc/nx_api.h +++ b/common/inc/nx_api.h @@ -26,7 +26,7 @@ /* APPLICATION INTERFACE DEFINITION RELEASE */ /* */ /* nx_api.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -103,10 +103,10 @@ /* 10-31-2023 Tiejun Zhou Modified comment(s), */ /* supported random IP id, */ /* resulting in version 6.3.0 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN and generic */ /* link layer, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ @@ -522,7 +522,7 @@ VOID _nx_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, ULONG /* Define basic constants for the NetX TCP/IP Stack. */ #define AZURE_RTOS_NETXDUO #define NETXDUO_MAJOR_VERSION 6 -#define NETXDUO_MINOR_VERSION 3 +#define NETXDUO_MINOR_VERSION 4 #define NETXDUO_PATCH_VERSION 0 /* Define the following symbols for backward compatibility */ diff --git a/common/inc/nx_link.h b/common/inc/nx_link.h index 4b9005c3..0b957bb0 100644 --- a/common/inc/nx_link.h +++ b/common/inc/nx_link.h @@ -24,7 +24,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_link.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -41,7 +41,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/common/inc/nx_packet.h b/common/inc/nx_packet.h index 5376a3e9..b1760f29 100644 --- a/common/inc/nx_packet.h +++ b/common/inc/nx_packet.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_packet.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -47,9 +47,9 @@ /* 10-15-2021 Yuxin Zhou Modified comment(s), included */ /* necessary header file, */ /* resulting in version 6.1.9 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/common/inc/nx_tcp.h b/common/inc/nx_tcp.h index 19632874..3bbce1da 100644 --- a/common/inc/nx_tcp.h +++ b/common/inc/nx_tcp.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_tcp.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -50,9 +50,9 @@ /* 10-15-2021 Yuxin Zhou Modified comment(s), included */ /* necessary header file, */ /* resulting in version 6.1.9 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/common/inc/nx_udp.h b/common/inc/nx_udp.h index eaa1e98e..1cbd674a 100644 --- a/common/inc/nx_udp.h +++ b/common/inc/nx_udp.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_udp.h PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -50,9 +50,9 @@ /* 10-15-2021 Yuxin Zhou Modified comment(s), included */ /* necessary header file, */ /* resulting in version 6.1.9 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/common/src/nx_ip_deferred_link_status_process.c b/common/src/nx_ip_deferred_link_status_process.c index 8ab70af5..7c769d5b 100644 --- a/common/src/nx_ip_deferred_link_status_process.c +++ b/common/src/nx_ip_deferred_link_status_process.c @@ -35,7 +35,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_ip_diferred_link_status_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -74,10 +74,10 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN and generic */ /* link layer, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ VOID _nx_ip_deferred_link_status_process(NX_IP *ip_ptr) diff --git a/common/src/nx_link.c b/common/src/nx_link.c index 806ec91e..cf31ffcb 100644 --- a/common/src/nx_link.c +++ b/common/src/nx_link.c @@ -31,7 +31,7 @@ /* FUNCTION RELEASE */ /* */ /* nx_link_vlan_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -69,7 +69,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -102,7 +102,7 @@ UINT nx_link_vlan_set(NX_IP *ip_ptr, UINT interface_index, UINT vlan_tag) /* FUNCTION RELEASE */ /* */ /* nx_link_vlan_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -138,7 +138,7 @@ UINT nx_link_vlan_set(NX_IP *ip_ptr, UINT interface_index, UINT vlan_tag) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -176,7 +176,7 @@ UINT nx_link_vlan_get(NX_IP *ip_ptr, UINT interface_index, USHORT *vlan_tag) /* FUNCTION RELEASE */ /* */ /* nx_link_vlan_clear PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -207,7 +207,7 @@ UINT nx_link_vlan_get(NX_IP *ip_ptr, UINT interface_index, USHORT *vlan_tag) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_link_vlan_clear(NX_IP *ip_ptr, UINT interface_index) @@ -241,7 +241,7 @@ UINT nx_link_vlan_clear(NX_IP *ip_ptr, UINT interface_index) /* FUNCTION RELEASE */ /* */ /* nx_link_multicast_join PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -275,7 +275,7 @@ UINT nx_link_vlan_clear(NX_IP *ip_ptr, UINT interface_index) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_link_multicast_join(NX_IP *ip_ptr, UINT interface_index, @@ -318,7 +318,7 @@ NX_IP_DRIVER driver_request; /* FUNCTION RELEASE */ /* */ /* nx_link_multicast_leave PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -353,7 +353,7 @@ NX_IP_DRIVER driver_request; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 12-31-2023 Tiejun Zhou Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_link_multicast_leave(NX_IP *ip_ptr, UINT interface_index, @@ -396,7 +396,7 @@ NX_IP_DRIVER driver_request; /* FUNCTION RELEASE */ /* */ /* nx_link_ethernet_packet_send PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -436,7 +436,7 @@ NX_IP_DRIVER driver_request; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -484,7 +484,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_link_raw_packet_send PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -517,7 +517,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -558,7 +558,7 @@ NX_IP_DRIVER driver_request; /* FUNCTION RELEASE */ /* */ /* nx_link_packet_receive_callback_add PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -601,7 +601,7 @@ NX_IP_DRIVER driver_request; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -657,7 +657,7 @@ NX_INTERFACE *interface_ptr; /* FUNCTION RELEASE */ /* */ /* nx_link_packet_receive_callback_remove PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -690,7 +690,7 @@ NX_INTERFACE *interface_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -743,7 +743,7 @@ NX_INTERFACE *interface_ptr; /* FUNCTION RELEASE */ /* */ /* nx_link_ethernet_header_parse PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -781,7 +781,7 @@ NX_INTERFACE *interface_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -866,7 +866,7 @@ UCHAR *data_ptr = packet_ptr -> nx_packet_prepend_ptr; /* FUNCTION RELEASE */ /* */ /* nx_link_ethernet_header_add PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -901,7 +901,7 @@ UCHAR *data_ptr = packet_ptr -> nx_packet_prepend_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -979,7 +979,7 @@ USHORT vlan_tag; /* FUNCTION RELEASE */ /* */ /* nx_link_packet_transmitted PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1015,7 +1015,7 @@ USHORT vlan_tag; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -1065,7 +1065,7 @@ ULONG header_length; /* FUNCTION RELEASE */ /* */ /* nx_link_ethernet_packet_received PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1104,7 +1104,7 @@ ULONG header_length; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -1329,7 +1329,7 @@ NX_LINK_RECEIVE_QUEUE *queue_ptr; /* FUNCTION RELEASE */ /* */ /* nx_link_vlan_interface_create PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1374,7 +1374,7 @@ NX_LINK_RECEIVE_QUEUE *queue_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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, @@ -1471,7 +1471,7 @@ NX_INTERFACE *interface_ptr = NX_NULL; /* FUNCTION RELEASE */ /* */ /* nx_link_driver_request_preprocess PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1503,7 +1503,7 @@ NX_INTERFACE *interface_ptr = NX_NULL; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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) @@ -1591,7 +1591,7 @@ UINT nx_link_driver_request_preprocess(NX_IP_DRIVER *driver_request, NX_INTERFAC /* FUNCTION RELEASE */ /* */ /* nx_link_vlan_interface_status_change PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Tiejun Zhou, Microsoft Corporation */ @@ -1624,7 +1624,7 @@ UINT nx_link_driver_request_preprocess(NX_IP_DRIVER *driver_request, NX_INTERFAC /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Tiejun Zhou Initial Version 6.x */ +/* 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_packet_allocate.c b/common/src/nx_packet_allocate.c index e129581f..99c48269 100644 --- a/common/src/nx_packet_allocate.c +++ b/common/src/nx_packet_allocate.c @@ -35,7 +35,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_packet_allocate PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -71,10 +71,10 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN and generic */ /* link layer, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_packet_allocate(NX_PACKET_POOL *pool_ptr, 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 50b8684f..5c591afc 100644 --- a/common/src/nx_packet_vlan_priority_set.c +++ b/common/src/nx_packet_vlan_priority_set.c @@ -33,7 +33,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_packet_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -61,7 +61,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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 38111be5..12a41da0 100644 --- a/common/src/nx_ram_network_driver.c +++ b/common/src/nx_ram_network_driver.c @@ -111,7 +111,7 @@ static _nx_ram_network_driver_instance_type nx_ram_driver[NX_MAX_RAM_INTERFACES] /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -151,10 +151,10 @@ static _nx_ram_network_driver_instance_type nx_ram_driver[NX_MAX_RAM_INTERFACES] /* added sample of returning */ /* link's interface type, */ /* resulting in version 6.1.9 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN and generic */ /* link layer, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ VOID _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr) @@ -667,7 +667,7 @@ ULONG *ethernet_frame_ptr; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_output PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -705,10 +705,10 @@ ULONG *ethernet_frame_ptr; /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN and generic */ /* link layer, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ void _nx_ram_network_driver_output(NX_PACKET *packet_ptr, UINT interface_instance_id) @@ -878,7 +878,7 @@ UINT j; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_receive PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -921,10 +921,10 @@ UINT j; /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN and generic */ /* link layer, */ -/* resulting in version 6.x */ +/* 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_tcp_packet_send_control.c b/common/src/nx_tcp_packet_send_control.c index f61906c1..c65943ba 100644 --- a/common/src/nx_tcp_packet_send_control.c +++ b/common/src/nx_tcp_packet_send_control.c @@ -42,7 +42,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_tcp_packet_send_control PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -85,9 +85,9 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ VOID _nx_tcp_packet_send_control(NX_TCP_SOCKET *socket_ptr, ULONG control_bits, ULONG tx_sequence, diff --git a/common/src/nx_tcp_socket_create.c b/common/src/nx_tcp_socket_create.c index 1645e6c5..ec247746 100644 --- a/common/src/nx_tcp_socket_create.c +++ b/common/src/nx_tcp_socket_create.c @@ -34,7 +34,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_tcp_socket_create PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -80,9 +80,9 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_tcp_socket_create(NX_IP *ip_ptr, NX_TCP_SOCKET *socket_ptr, CHAR *name, diff --git a/common/src/nx_tcp_socket_retransmit.c b/common/src/nx_tcp_socket_retransmit.c index 52f49c3d..b156dbb3 100644 --- a/common/src/nx_tcp_socket_retransmit.c +++ b/common/src/nx_tcp_socket_retransmit.c @@ -41,7 +41,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_tcp_socket_retransmit PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -79,9 +79,9 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* 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_internal.c b/common/src/nx_tcp_socket_send_internal.c index 9c3673c4..1755bdaf 100644 --- a/common/src/nx_tcp_socket_send_internal.c +++ b/common/src/nx_tcp_socket_send_internal.c @@ -44,7 +44,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_tcp_socket_driver_send PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -77,9 +77,9 @@ /* DATE NAME DESCRIPTION */ /* */ /* 08-02-2021 Yuxin Zhou Initial Version 6.1.8 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* 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) diff --git a/common/src/nx_tcp_socket_transmit_configure.c b/common/src/nx_tcp_socket_transmit_configure.c index 141cce56..e8ba3a92 100644 --- a/common/src/nx_tcp_socket_transmit_configure.c +++ b/common/src/nx_tcp_socket_transmit_configure.c @@ -34,7 +34,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_tcp_socket_transmit_configure PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -78,9 +78,9 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* fixed compiler warning, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_tcp_socket_transmit_configure(NX_TCP_SOCKET *socket_ptr, ULONG max_queue_depth, diff --git a/common/src/nx_tcp_socket_vlan_priority_set.c b/common/src/nx_tcp_socket_vlan_priority_set.c index 0fbe8134..c2564eb4 100644 --- a/common/src/nx_tcp_socket_vlan_priority_set.c +++ b/common/src/nx_tcp_socket_vlan_priority_set.c @@ -33,7 +33,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_tcp_socket_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -61,7 +61,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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_udp_socket_create.c b/common/src/nx_udp_socket_create.c index 38c22373..c1109f21 100644 --- a/common/src/nx_udp_socket_create.c +++ b/common/src/nx_udp_socket_create.c @@ -34,7 +34,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_udp_socket_create PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -74,9 +74,9 @@ /* 05-19-2020 Yuxin Zhou Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_udp_socket_create(NX_IP *ip_ptr, NX_UDP_SOCKET *socket_ptr, CHAR *name, diff --git a/common/src/nx_udp_socket_vlan_priority_set.c b/common/src/nx_udp_socket_vlan_priority_set.c index e6e52e00..320f8675 100644 --- a/common/src/nx_udp_socket_vlan_priority_set.c +++ b/common/src/nx_udp_socket_vlan_priority_set.c @@ -33,7 +33,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_udp_socket_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -61,7 +61,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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/nxd_udp_socket_send.c b/common/src/nxd_udp_socket_send.c index 8b59be0a..df266e83 100644 --- a/common/src/nxd_udp_socket_send.c +++ b/common/src/nxd_udp_socket_send.c @@ -44,7 +44,7 @@ /* FUNCTION RELEASE */ /* */ /* _nx_udp_socket_driver_send PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yuxin Zhou, Microsoft Corporation */ @@ -82,9 +82,9 @@ /* 01-31-2022 Yuxin Zhou Modified comment(s), corrected*/ /* the logic for queued packet,*/ /* resulting in version 6.1.10 */ -/* xx-xx-xxxx Yajun Xia Modified comment(s), */ +/* 12-31-2023 Yajun Xia Modified comment(s), */ /* supported VLAN, */ -/* resulting in version 6.x */ +/* resulting in version 6.4.0 */ /* */ /**************************************************************************/ static UINT _nx_udp_socket_driver_send(NX_UDP_SOCKET *socket_ptr, diff --git a/common/src/nxe_packet_vlan_priority_set.c b/common/src/nxe_packet_vlan_priority_set.c index b714da0b..6aebd427 100644 --- a/common/src/nxe_packet_vlan_priority_set.c +++ b/common/src/nxe_packet_vlan_priority_set.c @@ -33,7 +33,7 @@ /* FUNCTION RELEASE */ /* */ /* _nxe_packet_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -64,7 +64,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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_tcp_socket_vlan_priority_set.c b/common/src/nxe_tcp_socket_vlan_priority_set.c index 2a1df7dd..9494ce48 100644 --- a/common/src/nxe_tcp_socket_vlan_priority_set.c +++ b/common/src/nxe_tcp_socket_vlan_priority_set.c @@ -33,7 +33,7 @@ /* FUNCTION RELEASE */ /* */ /* _nxe_tcp_socket_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -65,7 +65,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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_udp_socket_vlan_priority_set.c b/common/src/nxe_udp_socket_vlan_priority_set.c index fb5fbb6c..edd84b2d 100644 --- a/common/src/nxe_udp_socket_vlan_priority_set.c +++ b/common/src/nxe_udp_socket_vlan_priority_set.c @@ -33,7 +33,7 @@ /* FUNCTION RELEASE */ /* */ /* _nxe_udp_socket_vlan_priority_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -65,7 +65,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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/nx_secure/inc/nx_secure_tls.h b/nx_secure/inc/nx_secure_tls.h index 8ce7e821..2e034c9f 100644 --- a/nx_secure/inc/nx_secure_tls.h +++ b/nx_secure/inc/nx_secure_tls.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_secure_tls.h PORTABLE C */ -/* 6.3.0 */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Timothy Stapko, Microsoft Corporation */ @@ -104,6 +104,9 @@ /* 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 */ /* */ /**************************************************************************/ @@ -166,7 +169,7 @@ extern "C" { #define AZURE_RTOS_NETX_SECURE #define NETX_SECURE_MAJOR_VERSION 6 -#define NETX_SECURE_MINOR_VERSION 3 +#define NETX_SECURE_MINOR_VERSION 4 #define NETX_SECURE_PATCH_VERSION 0 /* The following symbols are defined for backward compatibility reasons. */ diff --git a/nx_secure/ports/nx_secure_port.h b/nx_secure/ports/nx_secure_port.h index cf367da1..7bedb329 100644 --- a/nx_secure/ports/nx_secure_port.h +++ b/nx_secure/ports/nx_secure_port.h @@ -69,7 +69,7 @@ #ifdef NX_SECURE_SYSTEM_INIT CHAR _nx_secure_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Secure Generic Version G6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Secure Generic Version G6.4.0 *"; #else extern CHAR _nx_secure_version_id[]; #endif diff --git a/ports/arc_em/metaware/inc/nx_port.h b/ports/arc_em/metaware/inc/nx_port.h index 91504eba..e8c7c743 100644 --- a/ports/arc_em/metaware/inc/nx_port.h +++ b/ports/arc_em/metaware/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo ARCv2_EM/MetaWare Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo ARCv2_EM/MetaWare Version 6.4.0 *"; #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 36f4862c..908679d7 100644 --- a/ports/arc_hs/metaware/inc/nx_port.h +++ b/ports/arc_hs/metaware/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo ARC_HS/MetaWare Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo ARC_HS/MetaWare Version 6.4.0 *"; #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 bbf89b97..334d74cb 100644 --- a/ports/cortex_a15/gnu/inc/nx_port.h +++ b/ports/cortex_a15/gnu/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A15/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A15/GNU Version 6.4.0 *"; #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 a1ff318c..363e5a93 100644 --- a/ports/cortex_a5/ac5/inc/nx_port.h +++ b/ports/cortex_a5/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A5/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A5/AC5 Version 6.4.0 *"; #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 fbb28523..81108f58 100644 --- a/ports/cortex_a5/gnu/inc/nx_port.h +++ b/ports/cortex_a5/gnu/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/GNU Version 6.4.0 *"; #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 64c7ad5b..a4e9a760 100644 --- a/ports/cortex_a5/iar/inc/nx_port.h +++ b/ports/cortex_a5/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A5/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A5/IAR Version 6.4.0 *"; #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 09162b5a..9343472d 100644 --- a/ports/cortex_a5x/ac6/inc/nx_port.h +++ b/ports/cortex_a5x/ac6/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A5x/AC6 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A5x/AC6 Version 6.4.0 *"; #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 e27925f7..42bf0a81 100644 --- a/ports/cortex_a7/ac5/inc/nx_port.h +++ b/ports/cortex_a7/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/AC5 Version 6.4.0 *"; #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 7e11c1a0..48e9da9d 100644 --- a/ports/cortex_a7/gnu/inc/nx_port.h +++ b/ports/cortex_a7/gnu/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/GNU Version 6.4.0 *"; #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 1593b72d..912231e5 100644 --- a/ports/cortex_a7/iar/inc/nx_port.h +++ b/ports/cortex_a7/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A7/IAR Version 6.4.0 *"; #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 1d017dd3..1c5be612 100644 --- a/ports/cortex_a8/ac5/inc/nx_port.h +++ b/ports/cortex_a8/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A8/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A8/AC5 Version 6.4.0 *"; #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 9ea25b9a..b55203f8 100644 --- a/ports/cortex_a8/gnu/inc/nx_port.h +++ b/ports/cortex_a8/gnu/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A8/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A8/GNU Version 6.4.0 *"; #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 47abb472..d613d86e 100644 --- a/ports/cortex_a8/iar/inc/nx_port.h +++ b/ports/cortex_a8/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A8/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A8/IAR Version 6.4.0 *"; #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 72df6ab6..d753a38d 100644 --- a/ports/cortex_a9/ac5/inc/nx_port.h +++ b/ports/cortex_a9/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/AC5 Version 6.4.0 *"; #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 a3805b1e..3c09e35b 100644 --- a/ports/cortex_a9/gnu/inc/nx_port.h +++ b/ports/cortex_a9/gnu/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/GNU Version 6.4.0 *"; #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 04e765a0..09bda547 100644 --- a/ports/cortex_a9/iar/inc/nx_port.h +++ b/ports/cortex_a9/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/IAR Version 6.4.0 *"; #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 72df6ab6..d753a38d 100644 --- a/ports/cortex_a9/rvds/inc/nx_port.h +++ b/ports/cortex_a9/rvds/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-A9/AC5 Version 6.4.0 *"; #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 d0c776d0..c7e2cae3 100644 --- a/ports/cortex_m0/ac5/inc/nx_port.h +++ b/ports/cortex_m0/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M0/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M0/AC5 Version 6.4.0 *"; #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 e6a4843d..6679f9a4 100644 --- a/ports/cortex_m0/gnu/inc/nx_port.h +++ b/ports/cortex_m0/gnu/inc/nx_port.h @@ -187,7 +187,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M0/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M0/GNU Version 6.4.0 *"; #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 4cb6c6e9..12c338a4 100644 --- a/ports/cortex_m0/iar/inc/nx_port.h +++ b/ports/cortex_m0/iar/inc/nx_port.h @@ -181,7 +181,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M0/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M0/IAR Version 6.4.0 *"; #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 1e5ad5e2..350d2597 100644 --- a/ports/cortex_m23/ac5/inc/nx_port.h +++ b/ports/cortex_m23/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M23/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M23/AC5 Version 6.4.0 *"; #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 b38d3e0e..321d7e73 100644 --- a/ports/cortex_m23/gnu/inc/nx_port.h +++ b/ports/cortex_m23/gnu/inc/nx_port.h @@ -183,7 +183,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M23/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M23/GNU Version 6.4.0 *"; #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 08f2c649..d18201df 100644 --- a/ports/cortex_m23/iar/inc/nx_port.h +++ b/ports/cortex_m23/iar/inc/nx_port.h @@ -181,7 +181,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M23/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M23/IAR Version 6.4.0 *"; #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 5d7ae134..d234d763 100644 --- a/ports/cortex_m3/ac5/inc/nx_port.h +++ b/ports/cortex_m3/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/AC5 Version 6.4.0 *"; #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 479756bb..8d77c68d 100644 --- a/ports/cortex_m3/gnu/inc/nx_port.h +++ b/ports/cortex_m3/gnu/inc/nx_port.h @@ -187,7 +187,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/GNU Version 6.4.0 *"; #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 cd388a46..a08a4457 100644 --- a/ports/cortex_m3/iar/inc/nx_port.h +++ b/ports/cortex_m3/iar/inc/nx_port.h @@ -181,7 +181,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/IAR Version 6.4.0 *"; #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 78635716..6c1e7a43 100644 --- a/ports/cortex_m3/keil/inc/nx_port.h +++ b/ports/cortex_m3/keil/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/Keil Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M3/Keil Version 6.4.0 *"; #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 6132c435..980fcdcd 100644 --- a/ports/cortex_m33/ac5/inc/nx_port.h +++ b/ports/cortex_m33/ac5/inc/nx_port.h @@ -207,7 +207,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/AC5 Version 6.4.0 *"; #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 13fbddce..faf74fef 100644 --- a/ports/cortex_m33/ac6/inc/nx_port.h +++ b/ports/cortex_m33/ac6/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/AC6 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/AC6 Version 6.4.0 *"; #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 e1a47e10..c431de3d 100644 --- a/ports/cortex_m33/gnu/inc/nx_port.h +++ b/ports/cortex_m33/gnu/inc/nx_port.h @@ -184,7 +184,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/GNU Version 6.4.0 *"; #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 4e9bd925..6de0e614 100644 --- a/ports/cortex_m33/iar/inc/nx_port.h +++ b/ports/cortex_m33/iar/inc/nx_port.h @@ -184,7 +184,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M33/IAR Version 6.4.0 *"; #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 fbdf1c79..75b49e09 100644 --- a/ports/cortex_m4/ac5/inc/nx_port.h +++ b/ports/cortex_m4/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/AC5 Version 6.4.0 *"; #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 2239df01..4e5e186e 100644 --- a/ports/cortex_m4/gnu/inc/nx_port.h +++ b/ports/cortex_m4/gnu/inc/nx_port.h @@ -187,7 +187,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/GNU Version 6.4.0 *"; #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 b9395266..9861e433 100644 --- a/ports/cortex_m4/iar/inc/nx_port.h +++ b/ports/cortex_m4/iar/inc/nx_port.h @@ -181,7 +181,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/IAR Version 6.4.0 *"; #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 37344253..c8ffae62 100644 --- a/ports/cortex_m4/keil/inc/nx_port.h +++ b/ports/cortex_m4/keil/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/Keil Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M4/Keil Version 6.4.0 *"; #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 8baef642..931c913b 100644 --- a/ports/cortex_m55/ac5/inc/nx_port.h +++ b/ports/cortex_m55/ac5/inc/nx_port.h @@ -201,7 +201,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/AC5 Version 6.4.0 *"; #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 12ae2c3b..315bebf0 100644 --- a/ports/cortex_m55/ac6/inc/nx_port.h +++ b/ports/cortex_m55/ac6/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/AC6 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/AC6 Version 6.4.0 *"; #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 3ed734a7..c9867d43 100644 --- a/ports/cortex_m55/gnu/inc/nx_port.h +++ b/ports/cortex_m55/gnu/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/GNU Version 6.4.0 *"; #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 4f31d14f..b29f5f0d 100644 --- a/ports/cortex_m55/iar/inc/nx_port.h +++ b/ports/cortex_m55/iar/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M55/IAR Version 6.4.0 *"; #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 e51807b0..601cb50a 100644 --- a/ports/cortex_m7/ac5/inc/nx_port.h +++ b/ports/cortex_m7/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/AC5 Version 6.4.0 *"; #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 3a0b4b76..67a94c0c 100644 --- a/ports/cortex_m7/ac6/inc/nx_port.h +++ b/ports/cortex_m7/ac6/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/AC6 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/AC6 Version 6.4.0 *"; #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 74d062b8..e03fdffd 100644 --- a/ports/cortex_m7/gnu/inc/nx_port.h +++ b/ports/cortex_m7/gnu/inc/nx_port.h @@ -187,7 +187,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/GNU Version 6.4.0 *"; #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 a49c1466..a49ce183 100644 --- a/ports/cortex_m7/iar/inc/nx_port.h +++ b/ports/cortex_m7/iar/inc/nx_port.h @@ -181,7 +181,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M7/IAR Version 6.4.0 *"; #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 d627d6fa..09621aaf 100644 --- a/ports/cortex_m85/ac5/inc/nx_port.h +++ b/ports/cortex_m85/ac5/inc/nx_port.h @@ -201,7 +201,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/AC5 Version 6.4.0 *"; #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 2241280d..48001a9f 100644 --- a/ports/cortex_m85/ac6/inc/nx_port.h +++ b/ports/cortex_m85/ac6/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/AC6 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/AC6 Version 6.4.0 *"; #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 03066afd..3da46d5a 100644 --- a/ports/cortex_m85/gnu/inc/nx_port.h +++ b/ports/cortex_m85/gnu/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/GNU Version 6.4.0 *"; #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 53ae959b..83cc59d9 100644 --- a/ports/cortex_m85/iar/inc/nx_port.h +++ b/ports/cortex_m85/iar/inc/nx_port.h @@ -180,7 +180,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-M85/IAR Version 6.4.0 *"; #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 14895766..5d99308d 100644 --- a/ports/cortex_r4/ac5/inc/nx_port.h +++ b/ports/cortex_r4/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/AC5 Version 6.4.0 *"; #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 b40e3738..c40a13e6 100644 --- a/ports/cortex_r4/ac6/inc/nx_port.h +++ b/ports/cortex_r4/ac6/inc/nx_port.h @@ -183,7 +183,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/AC6 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/AC6 Version 6.4.0 *"; #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 38d5fbee..d57df789 100644 --- a/ports/cortex_r4/gnu/inc/nx_port.h +++ b/ports/cortex_r4/gnu/inc/nx_port.h @@ -183,7 +183,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/GNU Version 6.4.0 *"; #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 64703ff3..41123ab2 100644 --- a/ports/cortex_r4/iar/inc/nx_port.h +++ b/ports/cortex_r4/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R4/IAR Version 6.4.0 *"; #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 675fdbdd..dc1067fa 100644 --- a/ports/cortex_r5/ac5/inc/nx_port.h +++ b/ports/cortex_r5/ac5/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R5/AC5 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R5/AC5 Version 6.4.0 *"; #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 4cc4327b..6f01b0f3 100644 --- a/ports/cortex_r5/gnu/inc/nx_port.h +++ b/ports/cortex_r5/gnu/inc/nx_port.h @@ -183,7 +183,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Cortex-R5/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Cortex-R5/GNU Version 6.4.0 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/ports/cortex_r5/iar/inc/nx_port.h b/ports/cortex_r5/iar/inc/nx_port.h index ab3c6b0d..0556d018 100644 --- a/ports/cortex_r5/iar/inc/nx_port.h +++ b/ports/cortex_r5/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R5/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Cortex-R5/IAR Version 6.4.0 *"; #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 fd27bbed..7d568c3b 100644 --- a/ports/linux/gnu/inc/nx_port.h +++ b/ports/linux/gnu/inc/nx_port.h @@ -200,7 +200,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Linux/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Linux/GNU Version 6.4.0 *"; #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 6364af2b..2f6292e3 100644 --- a/ports/mips/gnu/inc/nx_port.h +++ b/ports/mips/gnu/inc/nx_port.h @@ -192,7 +192,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo PIC32x/MPLAB Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo PIC32x/MPLAB Version 6.4.0 *"; #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 a4aed240..3562843a 100644 --- a/ports/rxv2/ccrx/inc/nx_port.h +++ b/ports/rxv2/ccrx/inc/nx_port.h @@ -208,7 +208,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo RXv2/CCRX Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo RXv2/CCRX Version 6.4.0 *"; #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 1ff377b5..1c07733c 100644 --- a/ports/rxv2/gnu/inc/nx_port.h +++ b/ports/rxv2/gnu/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo RXv2/GNU Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo RXv2/GNU Version 6.4.0 *"; #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 8921fda3..0a5e0b40 100644 --- a/ports/rxv2/iar/inc/nx_port.h +++ b/ports/rxv2/iar/inc/nx_port.h @@ -204,7 +204,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo RXv2/IAR Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo RXv2/IAR Version 6.4.0 *"; #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 7220256e..6e29c226 100644 --- a/ports/win32/vs_2019/inc/nx_port.h +++ b/ports/win32/vs_2019/inc/nx_port.h @@ -201,7 +201,7 @@ #ifdef NX_SYSTEM_INIT CHAR _nx_version_id[] = - "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Win32/VS2019 Version 6.3.0 *"; + "Copyright (c) Microsoft Corporation. All rights reserved. * NetX Duo Win32/VS2019 Version 6.4.0 *"; #else extern CHAR _nx_version_id[]; #endif diff --git a/test/cmake/nx_secure/regression/CMakeLists.txt b/test/cmake/nx_secure/regression/CMakeLists.txt index b488e1d5..40b8e4eb 100644 --- a/test/cmake/nx_secure/regression/CMakeLists.txt +++ b/test/cmake/nx_secure/regression/CMakeLists.txt @@ -3,200 +3,200 @@ cmake_policy(SET CMP0057 NEW) project(regression_test LANGUAGES C) -get_filename_component(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../regression/nx_secure_test +get_filename_component(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../regression ABSOLUTE) set(nx_secure_test_cases - ${SOURCE_DIR}/nx_secure_tls_session_receive_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_send_record_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_client_handshake_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_finished_hash_generate_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_generate_keys_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_generate_premaster_secret_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_handshake_hash_init_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_generate_keys_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_session_renegotiate_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_session_keys_set_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_newest_supported_version_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_verify_mac_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_hash_record_coverage_test.c - ${SOURCE_DIR}/nx_secure_x509_certificate_initialize_test.c - ${SOURCE_DIR}/nx_secure_x509_certificate_verify_test.c - ${SOURCE_DIR}/nx_secure_x509_crl_verify_test.c - ${SOURCE_DIR}/nx_secure_x509_parse_test.c - ${SOURCE_DIR}/nx_secure_x509_list_test.c - ${SOURCE_DIR}/nx_secure_x509_store_test.c - ${SOURCE_DIR}/nx_secure_x509_name_check_test.c - ${SOURCE_DIR}/nx_secure_x509_crl_test.c - ${SOURCE_DIR}/nx_secure_x509_error_checking_test.c - ${SOURCE_DIR}/nx_secure_x509_expiration_check_test.c - ${SOURCE_DIR}/nx_secure_x509_key_usage_test.c - ${SOURCE_DIR}/nx_secure_x509_pkcs7_decode_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_handshake_header_test.c - ${SOURCE_DIR}/nx_secure_tls_session_sni_extension_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_handshake_fragmentation_test.c - ${SOURCE_DIR}/nx_secure_tls_handshake_fragmentation_ecc_test.c - ${SOURCE_DIR}/nx_secure_tls_hash_clone_test.c - ${SOURCE_DIR}/nx_secure_tls_header_test.c - ${SOURCE_DIR}/nx_secure_tls_two_way_test.c - ${SOURCE_DIR}/nx_secure_tls_two_way_test_version_1_1.c - ${SOURCE_DIR}/nx_secure_tls_alert_test.c - ${SOURCE_DIR}/nx_secure_tls_error_checking_test.c - ${SOURCE_DIR}/nx_secure_tls_error_checking_2_test.c - ${SOURCE_DIR}/nx_secure_tls_tcp_fragment_test.c - ${SOURCE_DIR}/nx_secure_tls_user_defined_key_test.c - ${SOURCE_DIR}/nx_secure_tls_no_client_cert_test.c - ${SOURCE_DIR}/nx_secure_tls_metadata_size_test.c - ${SOURCE_DIR}/nx_secure_tls_multiple_handshake_msg_test.c - ${SOURCE_DIR}/nx_secure_tls_multithread_test.c - ${SOURCE_DIR}/nx_secure_distinguished_name_compare_test.c - ${SOURCE_DIR}/nx_secure_tls_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_tls_client_handshake_test.c - ${SOURCE_DIR}/nx_secure_tls_clienthello_extension_test.c - ${SOURCE_DIR}/nx_secure_tls_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_coverage_2_test.c - ${SOURCE_DIR}/nx_secure_tls_coverage_3_test.c - ${SOURCE_DIR}/nx_secure_tls_handshake_fail_test.c - ${SOURCE_DIR}/nx_secure_tls_packet_chain_test.c - ${SOURCE_DIR}/nx_secure_tls_receive_alert_test.c - ${SOURCE_DIR}/nx_secure_tls_receive_test.c - ${SOURCE_DIR}/nx_secure_tls_record_decrypt_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_record_encrypt_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_record_layer_version_test.c - ${SOURCE_DIR}/nx_secure_tls_record_length_test.c - ${SOURCE_DIR}/nx_secure_tls_serverhello_extension_test.c - ${SOURCE_DIR}/nx_secure_tls_unrecognized_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_tls_unsupported_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_tls_non_blocking_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_basic_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_protocol_version_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_client_cert_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_curves_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_crl_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_packet_chain_test.c - ${SOURCE_DIR}/nx_secure_tls_ecc_point_format_test.c - ${SOURCE_DIR}/nx_secure_tls_receive_wrong_packet_test.c - ${SOURCE_DIR}/nx_secure_tls_shutdown_test.c - ${SOURCE_DIR}/nx_secure_tls_session_delete_test.c - ${SOURCE_DIR}/nx_secure_tls_cert_verify_test.c - ${SOURCE_DIR}/nx_secure_tls_session_start_test.c - ${SOURCE_DIR}/nx_secure_dtls_basic_test.c - ${SOURCE_DIR}/nx_secure_dtls_error_checking_test.c - ${SOURCE_DIR}/nx_secure_dtls_sliding_window_test.c - ${SOURCE_DIR}/nx_secure_dtls_retransmit_test.c - ${SOURCE_DIR}/nx_secure_dtls_retransmit_interval_test.c - ${SOURCE_DIR}/nx_secure_dtls_retransmit_change_cipher_spec_test.c - ${SOURCE_DIR}/nx_secure_dtls_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_dtls_handshake_fail_test.c - ${SOURCE_DIR}/nx_secure_dtls_ecjpake_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_receive_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_connect_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_reuse_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_connect_fail_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_send_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_retransmit_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_sessions_ecjpake_test.c - ${SOURCE_DIR}/nx_secure_dtls_multiple_ip_address_test.c - ${SOURCE_DIR}/nx_secure_dtls_no_free_sessions_test.c - ${SOURCE_DIR}/nx_secure_dtls_concurrent_sessions_test.c - ${SOURCE_DIR}/nx_secure_dtls_concurrent_sessions_retransmit_test.c - ${SOURCE_DIR}/nx_secure_dtls_abort_waiting_test.c - ${SOURCE_DIR}/nx_secure_dtls_fragment_test.c - ${SOURCE_DIR}/nx_secure_dtls_abnormal_test.c - ${SOURCE_DIR}/nx_secure_dtls_out_of_order_test.c - ${SOURCE_DIR}/nx_secure_dtls_version_1_0_test.c - ${SOURCE_DIR}/nx_secure_dtls_nxe_api_test.c - ${SOURCE_DIR}/nx_secure_dtls_ecc_basic_test.c - ${SOURCE_DIR}/nx_secure_dtls_ecc_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_dtls_ecc_curves_test.c - ${SOURCE_DIR}/nx_secure_dtls_ecc_client_cert_test.c - ${SOURCE_DIR}/nx_secure_tls_nxe_api_test.c - ${SOURCE_DIR}/nx_secure_tls_server_handshake_test.c - ${SOURCE_DIR}/nx_secure_tls_cert_callback_fail_test.c - ${SOURCE_DIR}/nx_secure_tls_send_and_receive_record_test.c - ${SOURCE_DIR}/nx_secure_tls_branch_test.c - ${SOURCE_DIR}/nx_secure_crypto_self_test.c - ${SOURCE_DIR}/nx_secure_crypto_cleanup_test.c - ${SOURCE_DIR}/nx_secure_crypto_method_cleanup_test.c - ${SOURCE_DIR}/nx_secure_tls_certificate_verify_test.c - ${SOURCE_DIR}/nx_secure_tls_no_remote_certs_allocated_test.c - ${SOURCE_DIR}/nx_secure_tls_partial_remote_certs_allocated_test.c - ${SOURCE_DIR}/nx_secure_tls_process_certificate_verify_test.c - ${SOURCE_DIR}/nx_secure_tls_process_changecipherspec_test.c - ${SOURCE_DIR}/nx_secure_tls_process_certificate_request_test.c - ${SOURCE_DIR}/nx_secure_tls_process_finished_test.c - ${SOURCE_DIR}/nx_secure_tls_packet_trim_test.c - ${SOURCE_DIR}/nx_secure_tls_process_record_test.c - ${SOURCE_DIR}/nx_secure_tls_rsa_4096_test.c - ${SOURCE_DIR}/nx_secure_tls_rsa_private_key_test.c - ${SOURCE_DIR}/nx_secure_tls_serverhello_session_id_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_version_negotiation_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_handshake_fail_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_ciphersuites_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_clienthello_length_checking_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_key_share_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_provisioned_psk_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_hello_retry_cookie_test.c - ${SOURCE_DIR}/nx_secure_tls_client_ca_select_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_invalid_client_state_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_serverhello_length_checking_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_session_create_ext_test.c - ${SOURCE_DIR}/nx_secure_tls_1_3_before_key_generation_test.c - ${SOURCE_DIR}/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c - ${SOURCE_DIR}/nx_secure_tls_server_ciphersuite_priority_test.c - ${SOURCE_DIR}/nx_secure_tls_session_create_ext_test.c - ${SOURCE_DIR}/nx_secure_tls_transmit_mutex_wait_test.c - ${SOURCE_DIR}/nx_secure_tls_empty_clienthello_extension_test.c - ${SOURCE_DIR}/nx_secure_tls_payload_size_test.c - ${SOURCE_DIR}/nx_secure_tls_serverhello_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_hash_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_certificate_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_server_key_exchange_coverage_test.c - ${SOURCE_DIR}/nx_secure_tls_send_certificate_test.c - ${SOURCE_DIR}/nx_secure_tls_send_clienthello_test.c) + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_receive_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_send_record_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_client_handshake_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_finished_hash_generate_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_generate_keys_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_generate_premaster_secret_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_handshake_hash_init_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_keys_set_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_newest_supported_version_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_verify_mac_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_hash_record_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_certificate_initialize_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_certificate_verify_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_crl_verify_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_parse_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_list_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_store_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_name_check_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_crl_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_error_checking_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_expiration_check_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_key_usage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_x509_pkcs7_decode_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_handshake_header_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_sni_extension_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_hash_clone_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_header_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_two_way_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_alert_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_error_checking_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_error_checking_2_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_tcp_fragment_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_user_defined_key_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_no_client_cert_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_metadata_size_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_multiple_handshake_msg_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_multithread_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_distinguished_name_compare_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_client_handshake_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_clienthello_extension_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_coverage_2_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_coverage_3_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_handshake_fail_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_packet_chain_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_receive_alert_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_receive_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_record_decrypt_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_record_encrypt_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_record_layer_version_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_record_length_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_serverhello_extension_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_unrecognized_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_unsupported_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_non_blocking_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_basic_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_protocol_version_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_client_cert_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_curves_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_crl_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_packet_chain_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_ecc_point_format_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_receive_wrong_packet_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_shutdown_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_delete_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_cert_verify_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_start_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_basic_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_error_checking_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_sliding_window_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_retransmit_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_retransmit_interval_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_handshake_fail_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_ecjpake_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_receive_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_reuse_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_fail_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_send_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_retransmit_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_sessions_ecjpake_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_multiple_ip_address_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_no_free_sessions_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_concurrent_sessions_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_concurrent_sessions_retransmit_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_abort_waiting_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_fragment_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_abnormal_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_out_of_order_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_version_1_0_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_nxe_api_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_ecc_basic_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_ecc_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_ecc_curves_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_dtls_ecc_client_cert_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_nxe_api_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_server_handshake_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_send_and_receive_record_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_branch_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_crypto_self_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_crypto_cleanup_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_crypto_method_cleanup_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_certificate_verify_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_no_remote_certs_allocated_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_partial_remote_certs_allocated_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_process_certificate_verify_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_process_changecipherspec_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_process_certificate_request_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_process_finished_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_packet_trim_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_process_record_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_rsa_4096_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_rsa_private_key_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_serverhello_session_id_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_version_negotiation_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_handshake_fail_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_ciphersuites_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_key_share_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_provisioned_psk_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_client_ca_select_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_invalid_client_state_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_session_create_ext_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_1_3_before_key_generation_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_session_create_ext_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_transmit_mutex_wait_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_payload_size_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_serverhello_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_hash_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_certificate_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_server_key_exchange_coverage_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_send_certificate_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_tls_send_clienthello_test.c) # Pure crypto related test cases if("s${CMAKE_BUILD_TYPE}" STREQUAL "sdefault_build_coverage") list( APPEND nx_secure_test_cases - ${SOURCE_DIR}/nx_secure_3des_test.c - ${SOURCE_DIR}/nx_secure_aes_test.c - ${SOURCE_DIR}/nx_secure_aes_ccm_test.c - ${SOURCE_DIR}/nx_secure_des_test.c - ${SOURCE_DIR}/nx_secure_ec_test.c - ${SOURCE_DIR}/nx_secure_ecdh_self_test.c - ${SOURCE_DIR}/nx_secure_ecdh_test.c - ${SOURCE_DIR}/nx_secure_ecdsa_test.c - ${SOURCE_DIR}/nx_secure_ecjpake_self_test.c - ${SOURCE_DIR}/nx_secure_hkdf_test.c - ${SOURCE_DIR}/nx_secure_hmac_md5_test.c - ${SOURCE_DIR}/nx_secure_hmac_sha1_test.c - ${SOURCE_DIR}/nx_secure_hmac_sha224_test.c - ${SOURCE_DIR}/nx_secure_hmac_sha256_test.c - ${SOURCE_DIR}/nx_secure_hmac_sha384_test.c - ${SOURCE_DIR}/nx_secure_hmac_sha512_test.c - ${SOURCE_DIR}/nx_secure_phash_prf_test.c - ${SOURCE_DIR}/nx_secure_rsa_test.c - ${SOURCE_DIR}/nx_secure_sha256_rfc_test.c - ${SOURCE_DIR}/nx_secure_sha224_test.c - ${SOURCE_DIR}/nx_secure_sha256_test.c - ${SOURCE_DIR}/nx_secure_sha384_test.c - ${SOURCE_DIR}/nx_secure_sha512_test.c) + ${SOURCE_DIR}/nx_secure_test/nx_secure_3des_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_aes_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_aes_ccm_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_des_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_ec_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_ecdh_self_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_ecdh_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_ecdsa_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_ecjpake_self_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hkdf_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hmac_md5_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hmac_sha1_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hmac_sha224_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hmac_sha256_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hmac_sha384_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_hmac_sha512_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_phash_prf_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_rsa_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_sha256_rfc_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_sha224_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_sha256_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_sha384_test.c + ${SOURCE_DIR}/nx_secure_test/nx_secure_sha512_test.c) endif() set(test_utility_files - ${SOURCE_DIR}/netxtestcontrol.c - ${SOURCE_DIR}/nx_crypto_ciphersuites_regression.c - ${SOURCE_DIR}/nx_ram_network_driver_test_1500.c) + ${SOURCE_DIR}/nx_secure_test/netxtestcontrol.c + ${SOURCE_DIR}/nx_secure_test/nx_crypto_ciphersuites_regression.c + ${SOURCE_DIR}/test/nx_ram_network_driver_test_1500.c) if("s${CMAKE_BUILD_TYPE}" STREQUAL "shash_clone_build") list(APPEND test_utility_files - ${SOURCE_DIR}/hash_clone/nx_crypto_clone_cleanup_test.c - ${SOURCE_DIR}/hash_clone/nx_crypto_hash_clone_test.c - ${SOURCE_DIR}/hash_clone/nx_crypto_ciphersuites_hc.c) + ${SOURCE_DIR}/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.c + ${SOURCE_DIR}/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.c + ${SOURCE_DIR}/nx_secure_test/hash_clone/nx_crypto_ciphersuites_hc.c) endif() add_library(test_utility ${test_utility_files}) diff --git a/test/regression/nx_secure_test/nx_ram_network_driver_test_1500.c b/test/regression/nx_secure_test/nx_ram_network_driver_test_1500.c deleted file mode 100644 index 61df33d4..00000000 --- a/test/regression/nx_secure_test/nx_ram_network_driver_test_1500.c +++ /dev/null @@ -1,2806 +0,0 @@ -/**************************************************************************/ -/* */ -/* Copyright (c) 1996-2005 by Express Logic Inc. */ -/* */ -/* This software is copyrighted by and is the sole property of Express */ -/* Logic, Inc. All rights, title, ownership, or other interests */ -/* in the software remain the property of Express Logic, Inc. This */ -/* software may only be used in accordance with the corresponding */ -/* license agreement. Any unauthorized use, duplication, transmission, */ -/* distribution, or disclosure of this software is expressly forbidden. */ -/* */ -/* This Copyright notice may not be removed or modified without prior */ -/* written consent of Express Logic, Inc. */ -/* */ -/* Express Logic, Inc. reserves the right to modify this software */ -/* without notice. */ -/* */ -/* Express Logic, Inc. info@expresslogic.com */ -/* 11423 West Bernardo Court http://www.expresslogic.com */ -/* San Diego, CA 92127 */ -/* */ -/**************************************************************************/ - - -/**************************************************************************/ -/**************************************************************************/ -/** */ -/** NetX Component */ -/** */ -/** RAM Network (RAM) */ -/** */ -/**************************************************************************/ -/**************************************************************************/ - -/* Include necessary system files. */ - -#include "nx_api.h" -#include "nx_ram_network_driver_test_1500.h" -#ifdef NX_ENABLE_INTERFACE_CAPABILITY -#define NX_DROP_ERROR_CHECKSUM -#include "nx_ip.h" -#include "nx_tcp.h" -#include "nx_udp.h" -#include "nx_icmp.h" -#include "nx_igmp.h" -#endif /* NX_ENABLE_INTERFACE_CAPABILITY */ - - -#ifdef NX_BSD_RAW_PPPOE_SUPPORT -#include "nxd_bsd.h" -#endif /* NX_BSD_RAW_PPPOE_SUPPORT */ - - -#ifdef NX_PCAP_ENABLE -#ifdef linux -#include "sys/time.h" -#else -#include "winsock.h" -#endif -FILE *nx_network_driver_pcap_fp = NX_NULL; -#endif /* NX_PCAP_ENABLE */ - -ULONG fragment_order_test = 0; -ULONG packet_gather = 0; -ULONG packet_drop = 0; -NX_PACKET *packet_save[4] = {0, 0, 0, 0}; -NX_PACKET_POOL *driver_pool = NX_NULL; -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 - 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. - - 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 - - 42 18 Padding on ARP and RARP messages only. */ - -#define NX_ETHERNET_IP 0x0800 -#define NX_ETHERNET_ARP 0x0806 -#define NX_ETHERNET_RARP 0x8035 -#define NX_ETHERNET_IPV6 0x86DD -#define NX_ETHERNET_SIZE 14 - -/* For the simulated ethernet driver, physical addresses are allocated starting - at the preset value and then incremented before the next allocation. */ - -ULONG simulated_address_msw = 0x0011; -ULONG simulated_address_lsw = 0x22334456; - -#define NX_MAX_RAM_INTERFACES 8 -#define NX_RAM_DRIVER_MAX_MCAST_ADDRESSES 8 - -typedef struct MAC_ADDRESS_STRUCT -{ - ULONG nx_mac_address_msw; - ULONG nx_mac_address_lsw; - -} MAC_ADDRESS; - - -/* Define an application-specific data structure that holds internal - 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 actual driver being used. */ -typedef struct _nx_ram_network_driver_instance_type -{ - UINT nx_ram_network_driver_in_use; - UINT nx_ram_network_driver_id; - NX_INTERFACE *nx_ram_driver_interface_ptr; - NX_IP *nx_ram_driver_ip_ptr; - MAC_ADDRESS nx_ram_driver_mac_address; - MAC_ADDRESS nx_ram_driver_mcast_address[NX_RAM_DRIVER_MAX_MCAST_ADDRESSES]; - -} _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 - the interface information of each driver. */ -static _nx_ram_network_driver_instance_type nx_ram_driver[NX_MAX_RAM_INTERFACES]; - - -/* Define driver prototypes. */ - -VOID _nx_ram_network_driver_internal(NX_IP_DRIVER *driver_req_ptr, UINT mtu_size); -VOID _nx_ram_network_driver_3000(NX_IP_DRIVER *driver_req_ptr) -{ - _nx_ram_network_driver_internal(driver_req_ptr, 3000); -} -VOID _nx_ram_network_driver_1500(NX_IP_DRIVER *driver_req_ptr) -{ - _nx_ram_network_driver_internal(driver_req_ptr, 1500); -} -VOID _nx_ram_network_driver_1024(NX_IP_DRIVER *driver_req_ptr) -{ - _nx_ram_network_driver_internal(driver_req_ptr, 1024); -} -VOID _nx_ram_network_driver_512(NX_IP_DRIVER *driver_req_ptr) -{ - _nx_ram_network_driver_internal(driver_req_ptr, 512); -} -VOID _nx_ram_network_driver_256(NX_IP_DRIVER *driver_req_ptr) -{ - _nx_ram_network_driver_internal(driver_req_ptr, 256); -} - -UINT (*packet_process_callback)(NX_IP *ip_ptr, NX_PACKET *packet_ptr); -UINT (*advanced_packet_process_callback)(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT *operation_ptr, UINT *delay_ptr); - -VOID _nx_ram_network_driver_output(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id); -VOID _nx_ram_network_driver_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id); -VOID _nx_ram_network_driver_reset(); - -TX_TIMER nx_driver_timers[NX_MAX_TIMER]; -NX_IP_DRIVER nx_driver_requests[NX_MAX_TIMER]; -UCHAR nx_driver_timer_used[NX_MAX_TIMER]; - - -#ifndef NX_INTERFACE_CAPABILITY -#define NX_INTERFACE_CAPABILITY ( NX_INTERFACE_CAPABILITY_IPV4_TX_CHECKSUM | NX_INTERFACE_CAPABILITY_TCP_TX_CHECKSUM | NX_INTERFACE_CAPABILITY_UDP_TX_CHECKSUM | NX_INTERFACE_CAPABILITY_ICMPV4_TX_CHECKSUM | NX_INTERFACE_CAPABILITY_ICMPV6_TX_CHECKSUM | NX_INTERFACE_CAPABILITY_IGMP_TX_CHECKSUM ) -#endif - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY -UINT _nx_ram_network_driver_calculate_checksum(NX_INTERFACE *interface_ptr, NX_PACKET *packet_ptr, UCHAR is_check); -#endif - -#ifdef NX_PCAP_ENABLE -UINT write_pcap_file(NX_PACKET *packet_ptr); -#endif /* NX_PCAP_ENABLE */ - - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_set_pool PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function sets the virtual network driver pool. */ -/* */ -/* INPUT */ -/* */ -/* pool_ptr Pool used by driver */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* None */ -/* */ -/* CALLED BY */ -/* */ -/* Application */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.8 */ -/* */ -/**************************************************************************/ -UINT _nx_ram_network_driver_set_pool(NX_PACKET_POOL *pool_ptr) -{ - driver_pool = pool_ptr; - return NX_SUCCESS; -} - - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_reset PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function resets the virtual network driver. */ -/* */ -/* INPUT */ -/* */ -/* None */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* None */ -/* */ -/* CALLED BY */ -/* */ -/* Application */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.8 */ -/* */ -/**************************************************************************/ -void _nx_ram_network_driver_reset(void) -{ - simulated_address_msw = 0x0011; - simulated_address_lsw = 0x22334456; - - fragment_order_test = 0; - packet_gather = 0; - packet_drop = 0; - packet_save[0] = 0; - packet_save[1] = 0; - packet_save[2] = 0; - packet_save[3] = 0; - - memset(&nx_ram_driver[0], 0 ,sizeof(_nx_ram_network_driver_instance_type) * (NX_MAX_RAM_INTERFACES)); - memset(&nx_driver_timers[0], 0, sizeof(TX_TIMER) * (NX_MAX_TIMER)); - memset(&nx_driver_requests[0], 0, sizeof(NX_IP_DRIVER) * (NX_MAX_TIMER)); - memset(&nx_driver_timer_used[0], 0, sizeof(UCHAR) * (NX_MAX_TIMER)); - - driver_pool = NX_NULL; -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_delay_entry PORTABLE C */ -/* 2.1b */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function sends out delayed packet. */ -/* */ -/* INPUT */ -/* */ -/* index index of driver request */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* _nx_ram_network_driver_output Send physical packet out */ -/* */ -/* CALLED BY */ -/* */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx William E. Lamie Initial Version 2.0 */ -/* */ -/**************************************************************************/ -VOID _nx_ram_network_driver_delay_entry(ULONG timer_input) -{ -TX_INTERRUPT_SAVE_AREA -UINT index; -UINT interface_instance_id; -NX_IP_DRIVER *driver_req; - - index = (timer_input & 0xFFFF0000) >> 16; - interface_instance_id = timer_input & 0x0000FFFF; - - driver_req = &nx_driver_requests[index]; - - /* Send out delayed packet. */ - _nx_ram_network_driver_output(driver_req -> nx_ip_driver_ptr, driver_req -> nx_ip_driver_packet, interface_instance_id); - - /* Deactivate timer. */ - tx_timer_deactivate(&nx_driver_timers[index]); - - TX_DISABLE - - /* Clean the used flag. */ - nx_driver_timer_used[index] = NX_RAMDRIVER_TIMER_DIRTY; - - TX_RESTORE -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_timer_clean PORTABLE C */ -/* 2.1b */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function cleans timers used by driver. */ -/* */ -/* INPUT */ -/* */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx William E. Lamie Initial Version 2.0 */ -/* */ -/**************************************************************************/ -VOID _nx_ram_network_driver_timer_clean(VOID) -{ - UINT timer_index; - - for(timer_index = 0; timer_index < NX_MAX_TIMER; timer_index++) - { - if(nx_driver_timer_used[timer_index] != NX_RAMDRIVER_TIMER_UNUSED) - { - tx_timer_deactivate(&nx_driver_timers[timer_index]); - tx_timer_delete(&nx_driver_timers[timer_index]); - } - - nx_driver_timer_used[timer_index] = NX_RAMDRIVER_TIMER_UNUSED; - } -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_internal PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function acts as a virtual network for testing the NetX source */ -/* and driver concepts. */ -/* */ -/* Note, This function has callback functions for test cases. */ -/* */ -/* INPUT */ -/* */ -/* driver_req__ptr Pointer to NX_IP_DRIVER */ -/* mtu_size LINK MTU size */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* NetX IP processing */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.8 */ -/* */ -/**************************************************************************/ -VOID _nx_ram_network_driver_internal(NX_IP_DRIVER *driver_req_ptr, UINT mtu_size) -{ - -TX_INTERRUPT_SAVE_AREA -NX_IP *ip_ptr; -NX_PACKET *packet_ptr; -ULONG *ethernet_frame_ptr; -NX_INTERFACE *interface_ptr; -#ifdef __PRODUCT_NETXDUO__ -UINT interface_index; -#endif -UINT i; -NX_PACKET *dup_packet_ptr = NX_NULL; -UINT timer_index; -UINT op = 0, delay = 0; -UINT status; -ULONG timer_input; -NX_PACKET_POOL *pool_ptr; -UINT old_threshold; - - /* Setup the IP pointer from the driver request. */ - ip_ptr = driver_req_ptr -> nx_ip_driver_ptr; - - /* Set driver pool. */ - if (driver_pool) - pool_ptr = driver_pool; - else - pool_ptr = ip_ptr -> nx_ip_default_packet_pool; - - /* Default to successful return. */ - driver_req_ptr -> nx_ip_driver_status = NX_SUCCESS; - - /* Setup interface pointer. */ - interface_ptr = driver_req_ptr -> nx_ip_driver_interface; - -#ifdef __PRODUCT_NETXDUO__ - /* Obtain the index number of the network interface. */ - interface_index = interface_ptr -> nx_interface_index; -#endif - - /* Find out the driver interface if the driver command is not ATTACH. */ - if(driver_req_ptr -> nx_ip_driver_command != NX_LINK_INTERFACE_ATTACH) - { - for(i = 0; i < NX_MAX_RAM_INTERFACES;i++) - { - if(nx_ram_driver[i].nx_ram_network_driver_in_use == 0) - continue; - - if(nx_ram_driver[i].nx_ram_driver_ip_ptr != ip_ptr) - continue; - - if(nx_ram_driver[i].nx_ram_driver_interface_ptr != driver_req_ptr -> nx_ip_driver_interface) - continue; - - break; - } - - if(i == NX_MAX_RAM_INTERFACES) - { - driver_req_ptr -> nx_ip_driver_status = NX_INVALID_INTERFACE; - return; - } - } - - /* Process according to the driver request type in the IP control block. */ - switch (driver_req_ptr -> nx_ip_driver_command) - { - - case NX_LINK_INTERFACE_ATTACH: - { - - /* Disable preemption. */ - tx_thread_preemption_change(tx_thread_identify(), 0, &old_threshold); - - /* Find an available driver instance to attach the interface. */ - for(i = 0; i < NX_MAX_RAM_INTERFACES;i++) - { - if(nx_ram_driver[i].nx_ram_network_driver_in_use == 0) - break; - } - /* An available entry is found. */ - if(i < NX_MAX_RAM_INTERFACES) - { - /* Set the IN USE flag.*/ - nx_ram_driver[i].nx_ram_network_driver_in_use = 1; - - nx_ram_driver[i].nx_ram_network_driver_id = i; - - /* Record the interface attached to the IP instance. */ - nx_ram_driver[i].nx_ram_driver_interface_ptr = driver_req_ptr -> nx_ip_driver_interface; - - /* Record the IP instance. */ - nx_ram_driver[i].nx_ram_driver_ip_ptr = ip_ptr; - - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw = simulated_address_msw; - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw = simulated_address_lsw + i; - } - else - { - driver_req_ptr -> nx_ip_driver_status = NX_INVALID_INTERFACE; - } - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - driver_req_ptr -> nx_ip_driver_interface -> nx_interface_capability_flag = NX_INTERFACE_CAPABILITY; -#endif - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); - - break; - } - -#ifdef __PRODUCT_NETXDUO__ - case NX_LINK_UNINITIALIZE: - case NX_LINK_INTERFACE_DETACH : - { - - /* Zero out the driver instance. */ - memset(&(nx_ram_driver[i]), 0 , sizeof(_nx_ram_network_driver_instance_type)); - - break; - } -#endif - case NX_LINK_INITIALIZE: - { - - /* Device driver shall initialize the Ethernet Controller here. */ - - packet_process_callback = NX_NULL; - advanced_packet_process_callback = NX_NULL; - -#ifdef __PRODUCT_NETXDUO__ - /* 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. - For regular Ethernet, the IP MTU is 1500. */ - 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 - incrementing a base lsw value, to simulate multiple nodes hanging on the - ethernet. */ - nx_ip_interface_physical_address_set(ip_ptr, interface_index, - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw, - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw, NX_FALSE); - - /* Indicate to the IP software that IP to physical mapping is required. */ - nx_ip_interface_address_mapping_configure(ip_ptr, interface_index, NX_TRUE); -#else - - 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 - incrementing a base lsw value, to simulate multiple nodes hanging on the - ethernet. */ - - interface_ptr -> nx_interface_physical_address_msw = nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw; - interface_ptr -> nx_interface_physical_address_lsw = nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw; - - /* Indicate to the IP software that IP to physical mapping is required. */ - interface_ptr -> nx_interface_address_mapping_needed = NX_TRUE; -#endif - - break; - } - - case NX_LINK_ENABLE: - { - - /* 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. */ - interface_ptr -> nx_interface_link_up = NX_TRUE; - - break; - } - - case NX_LINK_DISABLE: - { - - /* Process driver link disable. This command indicates the IP layer - is not going to transmit any IP datagrams, nor does it expect any - IP datagrams from the interface. Therefore after processing this command, - the device driver shall not send any incoming packets to the IP - layer. Optionally the device driver may turn off the interface. */ - - /* In the RAM driver, just clear the enabled flag. */ - interface_ptr -> nx_interface_link_up = NX_FALSE; - - break; - } - - case NX_LINK_PACKET_SEND: - { - /* Process driver send packet. */ - - /* Place the ethernet frame at the front of the packet. */ - packet_ptr = driver_req_ptr -> nx_ip_driver_packet; - - if (interface_ptr -> nx_interface_link_up == NX_FALSE) - { - - /* Link is down. Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - return; - } - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - _nx_ram_network_driver_calculate_checksum(nx_ram_driver[i].nx_ram_driver_interface_ptr, packet_ptr, NX_FALSE); -#endif - - - /* Advanced function entry for calling. */ - if(advanced_packet_process_callback != NX_NULL) - { - status = advanced_packet_process_callback(ip_ptr, packet_ptr, &op, &delay); - if(!status) - return; - - /* Advanced process. */ - switch(op) - { - case NX_RAMDRIVER_OP_DROP: - { - - /* Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - return; - }break; - - case NX_RAMDRIVER_OP_DELAY: - { - TX_DISABLE - - /* Find an unused timer. */ - for(timer_index = 0; timer_index < NX_MAX_TIMER; timer_index++) - { - if(nx_driver_timer_used[timer_index] != NX_RAMDRIVER_TIMER_USED) - { - if(nx_driver_timer_used[timer_index] == NX_RAMDRIVER_TIMER_DIRTY) - tx_timer_delete(&nx_driver_timers[timer_index]); - - nx_driver_timer_used[timer_index] = NX_RAMDRIVER_TIMER_USED; - break; - } - } - TX_RESTORE - - if(timer_index < NX_MAX_TIMER) - { - memcpy(&nx_driver_requests[timer_index], driver_req_ptr, sizeof(NX_IP_DRIVER)); - - timer_input = (timer_index << 16) | i; - - tx_timer_create(&nx_driver_timers[timer_index], "Driver timer", - _nx_ram_network_driver_delay_entry, - (ULONG)timer_input, - delay, delay, TX_NO_ACTIVATE); - } - else - { - - /* No available timer, just send bypass. */ - op = NX_RAMDRIVER_OP_BYPASS; - } - }break; - - case NX_RAMDRIVER_OP_DUPLICATE: - { - - /* Set the dup_packet_ptr. */ - dup_packet_ptr = packet_ptr; - }break; - - case NX_RAMDRIVER_OP_BYPASS: - default: - break; - } - } - /*A function entry for calling*/ - if(packet_process_callback != NX_NULL) - { - - status = packet_process_callback(ip_ptr, packet_ptr); - if(!status) - return; - } - - /* Adjust the prepend pointer. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + NX_ETHERNET_SIZE; - - /* If the physical header won't fit, return an error. */ - if (packet_ptr -> nx_packet_prepend_ptr < packet_ptr -> nx_packet_data_start) - { - - /* Remove the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - - return; - } - - /* Setup the ethernet frame pointer to build the ethernet frame. Backup another 2 - bytes to get 32-bit word alignment. */ - ethernet_frame_ptr = (ULONG *) (packet_ptr -> nx_packet_prepend_ptr - 2); - - /* Build the ethernet frame. */ - *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; - *(ethernet_frame_ptr+1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - *(ethernet_frame_ptr+2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | - (interface_ptr -> nx_interface_physical_address_lsw >> 16); - *(ethernet_frame_ptr+3) = (interface_ptr -> nx_interface_physical_address_lsw << 16); - -#ifdef FEATURE_NX_IPV6 - if(packet_ptr -> nx_packet_ip_version == 6) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IPV6; - else -#endif - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IP; - - /* Endian swapping if NX_LITTLE_ENDIAN is defined. */ - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+1)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+2)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+3)); - - /* 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. */ - - /* Check whether we need to duplicate the packet. */ - if(dup_packet_ptr != NX_NULL) - nx_packet_copy(packet_ptr, &dup_packet_ptr, pool_ptr, NX_NO_WAIT); - if(op != NX_RAMDRIVER_OP_DELAY) - _nx_ram_network_driver_output(ip_ptr, packet_ptr, i); - else - tx_timer_activate(&nx_driver_timers[timer_index]); - - /* Send the duplicate packet. */ - if(dup_packet_ptr != NX_NULL) - _nx_ram_network_driver_output(ip_ptr, dup_packet_ptr, i); - - break; - } - - case NX_LINK_PACKET_BROADCAST: - case NX_LINK_ARP_SEND: - case NX_LINK_ARP_RESPONSE_SEND: - case NX_LINK_RARP_SEND: - { - - /* 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. */ - - - /* Place the ethernet frame at the front of the packet. */ - packet_ptr = driver_req_ptr -> nx_ip_driver_packet; - - if (interface_ptr -> nx_interface_link_up == NX_FALSE) - { - - /* Link is down. Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - return; - } - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - if((driver_req_ptr -> nx_ip_driver_command) == NX_LINK_PACKET_BROADCAST) - _nx_ram_network_driver_calculate_checksum(nx_ram_driver[i].nx_ram_driver_interface_ptr, packet_ptr, NX_FALSE); -#endif - - /* Advanced function entry for calling. */ - if(advanced_packet_process_callback != NX_NULL) - { - status = advanced_packet_process_callback(ip_ptr, packet_ptr, &op, &delay); - - if(!status) - return; - - /* Advanced process. */ - switch(op) - { - case NX_RAMDRIVER_OP_DROP: - { - - /* Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - return; - }break; - - case NX_RAMDRIVER_OP_DELAY: - { - TX_DISABLE - - /* Find an unused timer. */ - for(timer_index = 0; timer_index < NX_MAX_TIMER; timer_index++) - { - if(nx_driver_timer_used[timer_index] != NX_RAMDRIVER_TIMER_USED) - { - if(nx_driver_timer_used[timer_index] == NX_RAMDRIVER_TIMER_DIRTY) - tx_timer_delete(&nx_driver_timers[timer_index]); - - nx_driver_timer_used[timer_index] = NX_RAMDRIVER_TIMER_USED; - break; - } - } - TX_RESTORE - - if(timer_index < NX_MAX_TIMER) - { - memcpy(&nx_driver_requests[timer_index], driver_req_ptr, sizeof(NX_IP_DRIVER)); - - timer_input = (timer_index << 16) | i; - - tx_timer_create(&nx_driver_timers[timer_index], "Driver timer", - _nx_ram_network_driver_delay_entry, - (ULONG)timer_input, - delay, delay, TX_NO_ACTIVATE); - } - else - { - - /* No available timer, just send bypass. */ - op = NX_RAMDRIVER_OP_BYPASS; - } - }break; - - case NX_RAMDRIVER_OP_DUPLICATE: - { - - /* Set the dup_packet_ptr. */ - dup_packet_ptr = packet_ptr; - }break; - - case NX_RAMDRIVER_OP_BYPASS: - default: - break; - } - } - - /* Adjust the prepend pointer. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + NX_ETHERNET_SIZE; - - /* Setup the ethernet frame pointer to build the ethernet frame. Backup another 2 - bytes to get 32-bit word alignment. */ - ethernet_frame_ptr = (ULONG *) (packet_ptr -> nx_packet_prepend_ptr - 2); - - /* Build the ethernet frame. */ - *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; - *(ethernet_frame_ptr+1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - *(ethernet_frame_ptr+2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | - (interface_ptr -> nx_interface_physical_address_lsw >> 16); - *(ethernet_frame_ptr+3) = (interface_ptr -> nx_interface_physical_address_lsw << 16); - - if(driver_req_ptr -> nx_ip_driver_command == NX_LINK_ARP_SEND) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; - else if(driver_req_ptr -> nx_ip_driver_command == NX_LINK_ARP_RESPONSE_SEND) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; - else if(driver_req_ptr -> nx_ip_driver_command == NX_LINK_RARP_SEND) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_RARP; -#ifdef FEATURE_NX_IPV6 - else if(packet_ptr -> nx_packet_ip_version == 6) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IPV6; -#endif - else - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IP; - - - /* Endian swapping if NX_LITTLE_ENDIAN is defined. */ - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+1)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+2)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+3)); - - /* 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. */ - - /* Check whether we need to duplicate the packet. */ - if(dup_packet_ptr != NX_NULL) - nx_packet_copy(packet_ptr, &dup_packet_ptr, pool_ptr, NX_NO_WAIT); - if(op != NX_RAMDRIVER_OP_DELAY) - _nx_ram_network_driver_output(ip_ptr, packet_ptr, i); - else - tx_timer_activate(&nx_driver_timers[timer_index]); - - /* Send the duplicate packet. */ - if(dup_packet_ptr != NX_NULL) - _nx_ram_network_driver_output(ip_ptr, dup_packet_ptr, i); - - break; - } - - case NX_LINK_MULTICAST_JOIN: - { - UINT mcast_index; - - /* 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. */ - - - /* The following procedure only applies to our simulated RAM network driver, which manages - multicast MAC addresses by a simple look up table. */ - for(mcast_index = 0; mcast_index < NX_RAM_DRIVER_MAX_MCAST_ADDRESSES; mcast_index++) - { - if(nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw == 0 && - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw == 0 ) - { - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw = driver_req_ptr -> nx_ip_driver_physical_address_msw; - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - break; - } - } - if(mcast_index == NX_RAM_DRIVER_MAX_MCAST_ADDRESSES) - driver_req_ptr -> nx_ip_driver_status = NX_NO_MORE_ENTRIES; - - break; - } - - case NX_LINK_MULTICAST_LEAVE: - { - - UINT mcast_index; - - /* The IP layer issues this command to remove a multicast MAC address from the - receiving list. A device driver shall properly remove the multicast address - from the hash table, so the hardware does not receive such traffic. Note that - in order to reprogram the hash table, the device driver may have to keep track of - current active multicast MAC addresses. */ - - /* The following procedure only applies to our simulated RAM network driver, which manages - multicast MAC addresses by a simple look up table. */ - for(mcast_index = 0; mcast_index < NX_RAM_DRIVER_MAX_MCAST_ADDRESSES; mcast_index++) - { - if(nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw == driver_req_ptr -> nx_ip_driver_physical_address_msw && - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw == driver_req_ptr -> nx_ip_driver_physical_address_lsw) - { - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw = 0; - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw = 0; - break; - } - } - if(mcast_index == NX_RAM_DRIVER_MAX_MCAST_ADDRESSES) - driver_req_ptr -> nx_ip_driver_status = NX_ENTRY_NOT_FOUND; - - break; - } - - case NX_LINK_GET_STATUS: - { - - /* Return the link status in the supplied return pointer. */ - *(driver_req_ptr -> nx_ip_driver_return_ptr) = interface_ptr -> nx_interface_link_up; - break; - } - - case NX_LINK_DEFERRED_PROCESSING: - { - - /* 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. - */ - - /* The simulated RAM driver doesn't require a deferred process so it breaks out of - the switch case. */ - - - break; - } - -#ifdef __PRODUCT_NETXDUO__ - case NX_LINK_SET_PHYSICAL_ADDRESS: - { - - /* Find an driver instance to attach the interface. */ - for(i = 0; i < NX_MAX_RAM_INTERFACES;i++) - { - if(nx_ram_driver[i].nx_ram_driver_interface_ptr == driver_req_ptr -> nx_ip_driver_interface) - break; - } - - /* An available entry is found. */ - if(i < NX_MAX_RAM_INTERFACES) - { - - /* Set the physical address. */ - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw = driver_req_ptr -> nx_ip_driver_physical_address_msw; - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - } - else - { - driver_req_ptr -> nx_ip_driver_status = NX_INVALID_INTERFACE; - } - - break; - } -#endif - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - case NX_INTERFACE_CAPABILITY_GET: - { - driver_req_ptr -> nx_ip_driver_interface -> nx_interface_capability_flag = NX_INTERFACE_CAPABILITY; - break; - } - - case NX_INTERFACE_CAPABILITY_SET: - { - break; - } - -#endif -#ifdef NX_BSD_RAW_PPPOE_SUPPORT - case NX_LINK_PACKET_PPPOE_SESS_SEND: - case NX_LINK_PACKET_PPPOE_DISC_SEND: - - /* Place the ethernet frame at the front of the packet. */ - packet_ptr = driver_req_ptr -> nx_ip_driver_packet; - - _nx_ram_network_driver_output(ip_ptr, packet_ptr, i); - break; - -#endif /* NX_BSD_RAW_PPPOE_SUPPORT */ - default: - { - - /* Invalid driver request. */ - - /* Return the unhandled command status. */ - driver_req_ptr -> nx_ip_driver_status = NX_UNHANDLED_COMMAND; - } - } -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function acts as a virtual network for testing the NetX source */ -/* and driver concepts. */ -/* */ -/* INPUT */ -/* */ -/* driver_req__ptr Pointer to NX_IP_DRIVER */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* NetX IP processing */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.8 */ -/* */ -/**************************************************************************/ -VOID _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr) -{ - -NX_IP *ip_ptr; -NX_PACKET *packet_ptr; -ULONG *ethernet_frame_ptr; -NX_INTERFACE *interface_ptr; -#ifdef __PRODUCT_NETXDUO__ -UINT interface_index; -#endif -UINT i; -UINT mtu_size = 128; -UINT old_threshold; - - /* Setup the IP pointer from the driver request. */ - ip_ptr = driver_req_ptr -> nx_ip_driver_ptr; - - /* Default to successful return. */ - driver_req_ptr -> nx_ip_driver_status = NX_SUCCESS; - - /* Setup interface pointer. */ - interface_ptr = driver_req_ptr -> nx_ip_driver_interface; - -#ifdef __PRODUCT_NETXDUO__ - /* Obtain the index number of the network interface. */ - interface_index = interface_ptr -> nx_interface_index; -#endif - - /* Find out the driver interface if the driver command is not ATTACH. */ - if(driver_req_ptr -> nx_ip_driver_command != NX_LINK_INTERFACE_ATTACH) - { - for(i = 0; i < NX_MAX_RAM_INTERFACES;i++) - { - if(nx_ram_driver[i].nx_ram_network_driver_in_use == 0) - continue; - - if(nx_ram_driver[i].nx_ram_driver_ip_ptr != ip_ptr) - continue; - - if(nx_ram_driver[i].nx_ram_driver_interface_ptr != driver_req_ptr -> nx_ip_driver_interface) - continue; - - break; - } - - if(i == NX_MAX_RAM_INTERFACES) - { - driver_req_ptr -> nx_ip_driver_status = NX_INVALID_INTERFACE; - return; - } - } - - /* Process according to the driver request type in the IP control block. */ - switch (driver_req_ptr -> nx_ip_driver_command) - { - case NX_LINK_INTERFACE_ATTACH: - { - - /* Disable preemption. */ - tx_thread_preemption_change(tx_thread_identify(), 0, &old_threshold); - - /* Find an available driver instance to attach the interface. */ - for(i = 0; i < NX_MAX_RAM_INTERFACES;i++) - { - if(nx_ram_driver[i].nx_ram_network_driver_in_use == 0) - break; - } - /* An available entry is found. */ - if(i < NX_MAX_RAM_INTERFACES) - { - /* Set the IN USE flag.*/ - nx_ram_driver[i].nx_ram_network_driver_in_use = 1; - - nx_ram_driver[i].nx_ram_network_driver_id = i; - - /* Record the interface attached to the IP instance. */ - nx_ram_driver[i].nx_ram_driver_interface_ptr = driver_req_ptr -> nx_ip_driver_interface; - - /* Record the IP instance. */ - nx_ram_driver[i].nx_ram_driver_ip_ptr = ip_ptr; - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw = simulated_address_msw; - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw = simulated_address_lsw + i; - } - else - { - driver_req_ptr -> nx_ip_driver_status = NX_INVALID_INTERFACE; - } - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - driver_req_ptr -> nx_ip_driver_interface -> nx_interface_capability_flag = NX_INTERFACE_CAPABILITY; -#endif - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); - - break; - } -#ifdef __PRODUCT_NETXDUO__ - case NX_LINK_INTERFACE_DETACH : - { - /* Zero out the driver instance. */ - memset(&(nx_ram_driver[i]), 0 , sizeof(_nx_ram_network_driver_instance_type)); - break; - } -#endif - case NX_LINK_INITIALIZE: - { - /* Device driver shall initialize the Ethernet Controller here. */ - - packet_process_callback = NX_NULL; - advanced_packet_process_callback = NX_NULL; - -#ifdef __PRODUCT_NETXDUO__ - /* 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. - For regular Ethernet, the IP MTU is 1500. */ - 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 - incrementing a base lsw value, to simulate multiple nodes hanging on the - ethernet. */ - nx_ip_interface_physical_address_set(ip_ptr, interface_index, - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw, - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw, NX_FALSE); - - /* Indicate to the IP software that IP to physical mapping is required. */ - nx_ip_interface_address_mapping_configure(ip_ptr, interface_index, NX_TRUE); -#else - - 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 - incrementing a base lsw value, to simulate multiple nodes hanging on the - ethernet. */ - - interface_ptr -> nx_interface_physical_address_msw = nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw; - interface_ptr -> nx_interface_physical_address_lsw = nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw; - - /* Indicate to the IP software that IP to physical mapping is required. */ - interface_ptr -> nx_interface_address_mapping_needed = NX_TRUE; - -#endif - - break; - } - - case NX_LINK_ENABLE: - { - - /* 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. */ - interface_ptr -> nx_interface_link_up = NX_TRUE; - - break; - } - - case NX_LINK_DISABLE: - { - - /* Process driver link disable. This command indicates the IP layer - is not going to transmit any IP datagrams, nor does it expect any - IP datagrams from the interface. Therefore after processing this command, - the device driver shall not send any incoming packets to the IP - layer. Optionally the device driver may turn off the interface. */ - - /* In the RAM driver, just clear the enabled flag. */ - interface_ptr -> nx_interface_link_up = NX_FALSE; - - break; - } - - case NX_LINK_PACKET_SEND: - { - - /* Process driver send packet. */ - - /* Place the ethernet frame at the front of the packet. */ - packet_ptr = driver_req_ptr -> nx_ip_driver_packet; - - if (interface_ptr -> nx_interface_link_up == NX_FALSE) - { - - /* Link is down. Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - return; - } - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - _nx_ram_network_driver_calculate_checksum(nx_ram_driver[i].nx_ram_driver_interface_ptr, packet_ptr, NX_FALSE); -#endif - /* Place the ethernet frame at the front of the packet. */ - packet_ptr = driver_req_ptr -> nx_ip_driver_packet; - - /* Adjust the prepend pointer. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + NX_ETHERNET_SIZE; - - /* If the physical header won't fit, return an error. */ - if (packet_ptr -> nx_packet_prepend_ptr < packet_ptr -> nx_packet_data_start) - { - - /* Remove the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - - return; - } - - /* Setup the ethernet frame pointer to build the ethernet frame. Backup another 2 - bytes to get 32-bit word alignment. */ - ethernet_frame_ptr = (ULONG *) (packet_ptr -> nx_packet_prepend_ptr - 2); - - /* Build the ethernet frame. */ - *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; - *(ethernet_frame_ptr+1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - *(ethernet_frame_ptr+2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | - (interface_ptr -> nx_interface_physical_address_lsw >> 16); - *(ethernet_frame_ptr+3) = (interface_ptr -> nx_interface_physical_address_lsw << 16); - -#ifdef FEATURE_NX_IPV6 - if(packet_ptr -> nx_packet_ip_version == 6) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IPV6; - else -#endif - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IP; - - - /* Endian swapping if NX_LITTLE_ENDIAN is defined. */ - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+1)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+2)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+3)); - - /* 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 ); - - break; - } - - case NX_LINK_PACKET_BROADCAST: - case NX_LINK_ARP_SEND: - case NX_LINK_ARP_RESPONSE_SEND: - case NX_LINK_RARP_SEND: - { - /* Process driver send packet. */ - - /* Place the ethernet frame at the front of the packet. */ - packet_ptr = driver_req_ptr -> nx_ip_driver_packet; - - if (interface_ptr -> nx_interface_link_up == NX_FALSE) - { - - /* Link is down. Drop the packet. */ - nx_packet_transmit_release(packet_ptr); - return; - } - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - if((driver_req_ptr -> nx_ip_driver_command) == NX_LINK_PACKET_BROADCAST) - _nx_ram_network_driver_calculate_checksum(nx_ram_driver[i].nx_ram_driver_interface_ptr, packet_ptr, NX_FALSE); -#endif - - /* Adjust the prepend pointer. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + NX_ETHERNET_SIZE; - - /* Setup the ethernet frame pointer to build the ethernet frame. Backup another 2 - bytes to get 32-bit word alignment. */ - ethernet_frame_ptr = (ULONG *) (packet_ptr -> nx_packet_prepend_ptr - 2); - - /* Build the ethernet frame. */ - *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; - *(ethernet_frame_ptr+1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - *(ethernet_frame_ptr+2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | - (interface_ptr -> nx_interface_physical_address_lsw >> 16); - *(ethernet_frame_ptr+3) = (interface_ptr -> nx_interface_physical_address_lsw << 16); - - if(driver_req_ptr -> nx_ip_driver_command == NX_LINK_ARP_SEND) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; - else if(driver_req_ptr -> nx_ip_driver_command == NX_LINK_ARP_RESPONSE_SEND) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; - else if(driver_req_ptr -> nx_ip_driver_command == NX_LINK_RARP_SEND) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_RARP; -#ifdef FEATURE_NX_IPV6 - else if(packet_ptr -> nx_packet_ip_version == 6) - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IPV6; -#endif - else - *(ethernet_frame_ptr+3) |= NX_ETHERNET_IP; - - - /* Endian swapping if NX_LITTLE_ENDIAN is defined. */ - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+1)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+2)); - NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+3)); - - /* 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 ); - - break; - } - - case NX_LINK_MULTICAST_JOIN: - { - UINT mcast_index; - - /* 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. */ - - - /* The following procedure only applies to our simulated RAM network driver, which manages - multicast MAC addresses by a simple look up table. */ - for(mcast_index = 0; mcast_index < NX_RAM_DRIVER_MAX_MCAST_ADDRESSES; mcast_index++) - { - if(nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw == 0 && - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw == 0 ) - { - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw = driver_req_ptr -> nx_ip_driver_physical_address_msw; - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - break; - } - } - if(mcast_index == NX_RAM_DRIVER_MAX_MCAST_ADDRESSES) - driver_req_ptr -> nx_ip_driver_status = NX_NO_MORE_ENTRIES; - - break; - } - - case NX_LINK_MULTICAST_LEAVE: - { - - UINT mcast_index; - - /* The IP layer issues this command to remove a multicast MAC address from the - receiving list. A device driver shall properly remove the multicast address - from the hash table, so the hardware does not receive such traffic. Note that - in order to reprogram the hash table, the device driver may have to keep track of - current active multicast MAC addresses. */ - - /* The following procedure only applies to our simulated RAM network driver, which manages - multicast MAC addresses by a simple look up table. */ - for(mcast_index = 0; mcast_index < NX_RAM_DRIVER_MAX_MCAST_ADDRESSES; mcast_index++) - { - if(nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw == driver_req_ptr -> nx_ip_driver_physical_address_msw && - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw == driver_req_ptr -> nx_ip_driver_physical_address_lsw) - { - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw = 0; - nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw = 0; - break; - } - } - if(mcast_index == NX_RAM_DRIVER_MAX_MCAST_ADDRESSES) - driver_req_ptr -> nx_ip_driver_status = NX_ENTRY_NOT_FOUND; - - break; - } - - case NX_LINK_GET_STATUS: - { - - /* Return the link status in the supplied return pointer. */ - *(driver_req_ptr -> nx_ip_driver_return_ptr) = ip_ptr-> nx_ip_interface[0].nx_interface_link_up; - break; - } - - case NX_LINK_DEFERRED_PROCESSING: - { - - /* 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. */ - - /* The simulated RAM driver doesn't require a deferred process so it breaks out of - the switch case. */ - - break; - } - -#ifdef __PRODUCT_NETXDUO__ - case NX_LINK_SET_PHYSICAL_ADDRESS: - { - - /* Find an driver instance to attach the interface. */ - for(i = 0; i < NX_MAX_RAM_INTERFACES;i++) - { - if(nx_ram_driver[i].nx_ram_driver_interface_ptr == driver_req_ptr -> nx_ip_driver_interface) - break; - } - - /* An available entry is found. */ - if(i < NX_MAX_RAM_INTERFACES) - { - - /* Set the physical address. */ - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw = driver_req_ptr -> nx_ip_driver_physical_address_msw; - nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw = driver_req_ptr -> nx_ip_driver_physical_address_lsw; - } - else - { - driver_req_ptr -> nx_ip_driver_status = NX_INVALID_INTERFACE; - } - - break; - } -#endif - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - case NX_INTERFACE_CAPABILITY_GET: - { - driver_req_ptr -> nx_ip_driver_interface -> nx_interface_capability_flag = NX_INTERFACE_CAPABILITY; - break; - } - - case NX_INTERFACE_CAPABILITY_SET: - { - break; - } - -#endif - default: - { - - /* Invalid driver request. */ - - /* Return the unhandled command status. */ - driver_req_ptr -> nx_ip_driver_status = NX_UNHANDLED_COMMAND; - } - } -} - - - - - - - - - - - - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_output PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function simply sends the packet to the IP instance on the */ -/* created IP list that matches the physical destination specified in */ -/* the Ethernet packet. In a real hardware setting, this routine */ -/* would simply put the packet out on the wire. */ -/* */ -/* INPUT */ -/* */ -/* ip_ptr Pointer to IP protocol block */ -/* packet_ptr Packet pointer */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* nx_packet_copy Copy a packet */ -/* nx_packet_transmit_release Release a packet */ -/* _nx_ram_network_driver_receive RAM driver receive processing */ -/* */ -/* CALLED BY */ -/* */ -/* NetX IP processing */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.8 */ -/* */ -/**************************************************************************/ -VOID _nx_ram_network_driver_output(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id) -{ -NX_IP *dest_ip; -NX_PACKET *packet_copy; -ULONG destination_address_msw; -ULONG destination_address_lsw; -UINT old_threshold; -UINT i; -UINT mcast_index; -NX_PACKET_POOL *pool_ptr; - -#ifdef NX_DEBUG_PACKET -UCHAR *ptr; -UINT j; - - ptr = packet_ptr -> nx_packet_prepend_ptr; - printf("Ethernet Packet: "); - for (j = 0; j < 6; j++) - printf("%02X", *ptr++); - printf(" "); - for (j = 0; j < 6; j++) - printf("%02X", *ptr++); - printf(" %02X", *ptr++); - printf("%02X ", *ptr++); - - i = 0; - for (j = 0; j < (packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE); j++) - { - printf("%02X", *ptr++); - i++; - if (i > 3) - { - i = 0; - printf(" "); - } - } - printf("\n"); -#endif - - /* Pickup the destination IP address from the packet_ptr. */ - destination_address_msw = (ULONG) *(packet_ptr -> nx_packet_prepend_ptr); - destination_address_msw = (destination_address_msw << 8) | (ULONG) *(packet_ptr -> nx_packet_prepend_ptr+1); - destination_address_lsw = (ULONG) *(packet_ptr -> nx_packet_prepend_ptr+2); - destination_address_lsw = (destination_address_lsw << 8) | (ULONG) *(packet_ptr -> nx_packet_prepend_ptr+3); - destination_address_lsw = (destination_address_lsw << 8) | (ULONG) *(packet_ptr -> nx_packet_prepend_ptr+4); - destination_address_lsw = (destination_address_lsw << 8) | (ULONG) *(packet_ptr -> nx_packet_prepend_ptr+5); - - /* Disable preemption. */ - tx_thread_preemption_change(tx_thread_identify(), 0, &old_threshold); - - /* Retrieve data from packet. */ - nx_packet_data_retrieve(packet_ptr, driver_data_buffer, &driver_data_length); - -#ifdef NX_PCAP_ENABLE - /* Write packet data into pcap file. */ - write_pcap_file(packet_ptr); -#endif - - /* Loop through all instances of created IPs to see who gets the packet. */ - for(i = 0; i < NX_MAX_RAM_INTERFACES; i++) - { - - /* Skip the interface from which the packet was sent. */ - if(i == interface_instance_id) - continue; - - /* Skip the instance that has not been initialized. */ - if(nx_ram_driver[i].nx_ram_network_driver_in_use == 0) - continue; - - dest_ip = nx_ram_driver[i].nx_ram_driver_ip_ptr; - - /* If the destination MAC address is broadcast or the destination matches the interface MAC, - accept the packet. */ - if(((destination_address_msw == ((ULONG) 0x0000FFFF)) && (destination_address_lsw == ((ULONG) 0xFFFFFFFF))) || /* Broadcast match */ - ((destination_address_msw == nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_msw) && - (destination_address_lsw == nx_ram_driver[i].nx_ram_driver_mac_address.nx_mac_address_lsw)) || - (destination_address_msw == ((ULONG)0x00003333)) || /* Ethernet multicast address, RFC2464, Section7, Page 5 2. */ - ((destination_address_msw == 0) && (destination_address_lsw == 0))) - { - - /* Set the packet pool. */ - if (driver_pool) - pool_ptr = driver_pool; - else - pool_ptr = dest_ip -> nx_ip_default_packet_pool; - - /* Allocate packet. */ - if (nx_packet_allocate(pool_ptr, &packet_copy, NX_RECEIVE_PACKET, NX_NO_WAIT)) - { - - /* Remove the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Error, no point in continuing, just release the packet. */ - nx_packet_transmit_release(packet_ptr); - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); - return; - } - - /* Skip two bytes. */ - packet_copy -> nx_packet_prepend_ptr += 2; - packet_copy -> nx_packet_append_ptr += 2; - - /* Make a copy of packet for the forwarding. */ - if (nx_packet_data_append(packet_copy, driver_data_buffer, driver_data_length, pool_ptr, NX_NO_WAIT)) - { - - /* Remove the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Error, no point in continuing, just release the packet. */ - nx_packet_transmit_release(packet_ptr); - - /* Release the packet. */ - nx_packet_release(packet_copy); - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); - - return; - } - -#ifdef __PRODUCT_NETXDUO__ - /* Copy packet version. */ - packet_copy -> nx_packet_ip_version = packet_ptr -> nx_packet_ip_version; -#endif /* __PRODUCT_NETXDUO__ */ - - _nx_ram_network_driver_receive(dest_ip, packet_copy, i); - } - else - { - for(mcast_index = 0; mcast_index < NX_RAM_DRIVER_MAX_MCAST_ADDRESSES; mcast_index++) - { - - if(destination_address_msw == nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_msw && - destination_address_lsw == nx_ram_driver[i].nx_ram_driver_mcast_address[mcast_index].nx_mac_address_lsw) - { - - /* Set the packet pool. */ - if (driver_pool) - pool_ptr = driver_pool; - else - pool_ptr = dest_ip -> nx_ip_default_packet_pool; - - /* Allocate packet. */ - if (nx_packet_allocate(pool_ptr, &packet_copy, NX_RECEIVE_PACKET, NX_NO_WAIT)) - { - - /* Remove the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Error, no point in continuing, just release the packet. */ - nx_packet_transmit_release(packet_ptr); - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); - return; - } - - /* Skip two bytes. */ - packet_copy -> nx_packet_prepend_ptr += 2; - packet_copy -> nx_packet_append_ptr += 2; - - /* Make a copy of packet for the forwarding. */ - if (nx_packet_data_append(packet_copy, driver_data_buffer, driver_data_length, pool_ptr, NX_NO_WAIT)) - { - - /* Remove the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Error, no point in continuing, just release the packet. */ - nx_packet_transmit_release(packet_ptr); - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); - return; - } - - _nx_ram_network_driver_receive(dest_ip, packet_copy, i); - - - } - - - } - } - } - - /* 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; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Now that the Ethernet frame has been removed, release the packet. */ - nx_packet_transmit_release(packet_ptr); - - /* Restore preemption. */ - tx_thread_preemption_change(tx_thread_identify(), old_threshold, &old_threshold); -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_receive PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function processing incoming packets. In the RAM network */ -/* driver, the incoming packets are coming from the RAM driver output */ -/* routine. In real hardware settings, this routine would be called */ -/* from the receive packet ISR. */ -/* */ -/* INPUT */ -/* */ -/* ip_ptr Pointer to IP protocol block */ -/* packet_ptr Packet pointer */ -/* interface_instance_id The interface ID the packet is*/ -/* destined for */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* _nx_ip_packet_receive IP receive packet processing */ -/* _nx_ip_packet_deferred_receive IP deferred receive packet */ -/* processing */ -/* _nx_arp_packet_deferred_receive ARP receive processing */ -/* _nx_rarp_packet_deferred_receive RARP receive processing */ -/* nx_packet_release Packet release */ -/* */ -/* CALLED BY */ -/* */ -/* NetX IP processing */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.8 */ -/* */ -/**************************************************************************/ -VOID _nx_ram_network_driver_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT interface_instance_id) -{ - -UINT packet_type; - - /* Pickup the packet header to determine where the packet needs to be - sent. */ - packet_type = (((UINT) (*(packet_ptr -> nx_packet_prepend_ptr+12))) << 8) | - ((UINT) (*(packet_ptr -> nx_packet_prepend_ptr+13))); - - /* Setup interface pointer. */ - packet_ptr -> nx_packet_ip_interface = nx_ram_driver[interface_instance_id].nx_ram_driver_interface_ptr; - - /* Route the incoming packet according to its ethernet type. */ - /* The RAM driver accepts both IPv4 and IPv6 frames. */ - if ((packet_type == NX_ETHERNET_IP) || (packet_type == NX_ETHERNET_IPV6)) - { - - /* Note: The length reported by some Ethernet hardware includes bytes after the packet - as well as the Ethernet header. In some cases, the actual packet length after the - Ethernet header should be derived from the length in the IP header (lower 16 bits of - the first 32-bit word). */ - - /* Clean off the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY - if(_nx_ram_network_driver_calculate_checksum(packet_ptr -> nx_packet_ip_interface, packet_ptr, NX_TRUE)) - { -#ifdef NX_DROP_ERROR_CHECKSUM - nx_packet_release(packet_ptr); - return; -#endif /* NX_DROP_ERROR_CHECKSUM */ - } -#endif /* NX_ENABLE_INTERFACE_CAPABILITY */ - - /* Route to the ip receive function. */ - -#ifdef NX_DIRECT_ISR_CALL - _nx_ip_packet_receive(ip_ptr, packet_ptr); -#else - _nx_ip_packet_deferred_receive(ip_ptr, packet_ptr); -#endif - } - else if (packet_type == NX_ETHERNET_ARP) - { - - /* Clean off the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Route to the ARP receive function. */ - _nx_arp_packet_deferred_receive(ip_ptr, packet_ptr); - - } - else if (packet_type == NX_ETHERNET_RARP) - { - - /* Clean off the Ethernet header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + NX_ETHERNET_SIZE; - - /* Adjust the packet length. */ - packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length - NX_ETHERNET_SIZE; - - /* Route to the RARP receive function. */ - _nx_rarp_packet_deferred_receive(ip_ptr, packet_ptr); - } - -#ifdef NX_BSD_RAW_PPPOE_SUPPORT - else if((packet_type == ETHERTYPE_PPPOE_DISC) || (packet_type == ETHERTYPE_PPPOE_SESS)) - { - _nx_bsd_pppoe_packet_received(packet_ptr, packet_type, interface_instance_id); - - } -#endif /* NX_BSD_RAW_PPPOE_SUPPORT */ - - else - { - /* Invalid ethernet header... release the packet. */ - nx_packet_release(packet_ptr); - } -} - - -#ifdef NX_ENABLE_INTERFACE_CAPABILITY -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* _nx_ram_network_driver_calculate_checksum PORTABLE C */ -/* 2.1b */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function calculates or verifys checksum for headers. */ -/* */ -/* INPUT */ -/* */ -/* interface_ptr Pointer to interface */ -/* packet_ptr Packet pointer */ -/* is_check Check or verify */ -/* */ -/* OUTPUT */ -/* */ -/* status Completion status */ -/* */ -/* CALLS */ -/* */ -/* _nx_ip_checksum_compute */ -/* */ -/* CALLED BY */ -/* */ -/* _nx_ram_network_driver_internal */ -/* _nx_ram_network_driver */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx William E. Lamie Initial Version 2.1b */ -/* */ -/**************************************************************************/ -UINT _nx_ram_network_driver_calculate_checksum(NX_INTERFACE *interface_ptr, NX_PACKET *packet_ptr, UCHAR is_check) -{ -ULONG next_protocol; -UCHAR *org_prepend_ptr; -USHORT checksum; -ULONG val; -UCHAR is_done = NX_FALSE; -UCHAR is_fragmented = NX_FALSE; -ULONG ip_header_length; -ULONG ip_src_addr[4]; -ULONG ip_dst_addr[4]; -ULONG data_length; -NX_IPV4_HEADER *ip_header_ptr; -NX_TCP_HEADER *tcp_header_ptr; -NX_UDP_HEADER *udp_header_ptr; -NX_ICMP_HEADER *icmpv4_header_ptr; -NX_IGMP_HEADER *igmp_header_ptr; -#ifdef FEATURE_NX_IPV6 -NX_ICMPV6_HEADER *icmpv6_header_ptr; -NX_IPV6_HEADER *ipv6_header_ptr; -#endif - - /* Get IP version. */ - if(packet_ptr -> nx_packet_ip_version == NX_IP_VERSION_V4) - next_protocol = NX_PROTOCOL_IPV4; -#ifdef FEATURE_NX_IPV6 - else if(packet_ptr -> nx_packet_ip_version == NX_IP_VERSION_V6) - next_protocol = NX_PROTOCOL_IPV6; -#endif - else - return NX_INVALID_PACKET; - - /* Store original prepend_ptr. */ - org_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr; - - /* Loop to process headers. */ - while(!is_done) - { - switch(next_protocol) - { - case NX_PROTOCOL_IPV4: - { - - /* It's assumed that the IP link driver has positioned the top pointer in the - packet to the start of the IP address... so that's where we will start. */ - ip_header_ptr = (NX_IPV4_HEADER *) packet_ptr -> nx_packet_prepend_ptr; - - /* Pick up the first word in the IP header. */ - val = ip_header_ptr -> nx_ip_header_word_0; - - /* Convert to host byte order. */ - NX_CHANGE_ULONG_ENDIAN(val); - - /* Obtain IP header length. */ - ip_header_length = (val & NX_IP_LENGTH_MASK) >> 24; - - /* Check if IPv4 checksum is enabled. */ - if(((is_check) && (interface_ptr -> nx_interface_capability_flag & NX_INTERFACE_CAPABILITY_IPV4_RX_CHECKSUM)) || - ((!is_check) && (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_IPV4_TX_CHECKSUM))) - { - - /* Check fragmentation. */ - if(is_fragmented) - { - - /* Not support fragmentation. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_VERSION_V4, - /* length is the size of IP header, including options */ - ip_header_length << 2, - /* IPv4 header checksum doesn't care src/dest addresses */ - NULL, NULL); - - if(is_check) - { - checksum = ~checksum & NX_LOWER_16_MASK; - - /* Check the checksum. */ - if (checksum) - { - - /* Checksum error. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_INVALID_PACKET; - } - } - else - { - val = (ULONG)(~checksum); - val = val & NX_LOWER_16_MASK; - - /* Convert to network byte order. */ - NX_CHANGE_ULONG_ENDIAN(val); - - /* Now store the checksum in the IP header. */ - ip_header_ptr -> nx_ip_header_word_2 = ip_header_ptr -> nx_ip_header_word_2 | val; - } - } - - /* Check if FRAGMENT flag is set. */ - val = ip_header_ptr -> nx_ip_header_word_1; - NX_CHANGE_ULONG_ENDIAN(val); - if(val & NX_IP_FRAGMENT_MASK) - { - - /* Fragmented packet not supported. Restore origianl prepend_ptr. */ - is_fragmented = NX_TRUE; - } - - /* Get src and dst addresses. */ - ip_src_addr[0] = ip_header_ptr -> nx_ip_header_source_ip; - ip_dst_addr[0] = ip_header_ptr -> nx_ip_header_destination_ip; - NX_CHANGE_ULONG_ENDIAN(ip_src_addr[0]); - NX_CHANGE_ULONG_ENDIAN(ip_dst_addr[0]); - - /* Get next protocol. */ - next_protocol = (ip_header_ptr -> nx_ip_header_word_2 >> 8) & 0xFF; - - /* Remove IPv4 header. */ - packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr + (ip_header_length << 2); - data_length = packet_ptr -> nx_packet_length - (ip_header_length << 2); - break; - } - - case NX_PROTOCOL_TCP: - { - - /* Check if TCP checksum is enabled. */ - if(((is_check) && (interface_ptr -> nx_interface_capability_flag & NX_INTERFACE_CAPABILITY_TCP_RX_CHECKSUM)) || - ((!is_check) && (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_TCP_TX_CHECKSUM))) - { - - /* Check fragmentation. */ - if(is_fragmented) - { - /* When receiving a fragmented packet, do nothing, deliver it to NetX. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - /* Calculate the TCP checksum without protection. */ - checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_TCP, - data_length, - ip_src_addr, ip_dst_addr); - - if(is_check) - { - checksum = ~checksum & NX_LOWER_16_MASK; - - /* Check the checksum. */ - if (checksum) - { - - /* Checksum error. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_INVALID_PACKET; - } - } - else - { - - /* Pickup the pointer to the head of the TCP packet. */ - tcp_header_ptr = (NX_TCP_HEADER *) packet_ptr -> nx_packet_prepend_ptr; - - checksum = ~checksum & NX_LOWER_16_MASK; - - /* Move the checksum into header. */ - NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_4); - tcp_header_ptr -> nx_tcp_header_word_4 |= (checksum << NX_SHIFT_BY_16); - NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_4); - } - } - - /* No necessary to process next protocol. */ - is_done = NX_TRUE; - break; - } - - case NX_PROTOCOL_UDP: - { - - /* Check if UDP checksum is enabled. */ - if(((is_check) && (interface_ptr -> nx_interface_capability_flag & NX_INTERFACE_CAPABILITY_UDP_RX_CHECKSUM)) || - ((!is_check) && (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_UDP_TX_CHECKSUM))) - { - - /* Check fragmentation. */ - if(is_fragmented) - { - /* When receiving a fragmented packet, do nothing, deliver it to NetX. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - /* Calculate the UDP checksum without protection. */ - checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_UDP, - data_length, - ip_src_addr, ip_dst_addr); - - if(is_check) - { - - /* Pickup the pointer to the head of the UDP packet. */ - udp_header_ptr = (NX_UDP_HEADER *)(packet_ptr -> nx_packet_prepend_ptr); - - /* Move the checksum into header. */ - NX_CHANGE_ULONG_ENDIAN(udp_header_ptr -> nx_udp_header_word_1); - if(((udp_header_ptr -> nx_udp_header_word_1 & NX_LOWER_16_MASK) == 0) && - (packet_ptr -> nx_packet_ip_version == NX_IP_VERSION_V4)) - checksum = 0; - else - checksum = ~checksum & NX_LOWER_16_MASK; - NX_CHANGE_ULONG_ENDIAN(udp_header_ptr -> nx_udp_header_word_1); - - /* Check the checksum. */ - if (checksum) - { - - /* Checksum error. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_INVALID_PACKET; - } - } - else - { - - /* Pickup the pointer to the head of the UDP packet. */ - udp_header_ptr = (NX_UDP_HEADER *)(packet_ptr -> nx_packet_prepend_ptr); - - /* Move the checksum into header. */ - NX_CHANGE_ULONG_ENDIAN(udp_header_ptr -> nx_udp_header_word_1); - udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | (~checksum & NX_LOWER_16_MASK); - NX_CHANGE_ULONG_ENDIAN(udp_header_ptr -> nx_udp_header_word_1); - } - } - - /* No necessary to process next protocol. */ - is_done = NX_TRUE; - break; - } - - case NX_PROTOCOL_ICMP: - { - - /* Check if ICMPv4 checksum is enabled. */ - if(((is_check) && (interface_ptr -> nx_interface_capability_flag & NX_INTERFACE_CAPABILITY_ICMPV4_RX_CHECKSUM)) || - ((!is_check) && (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_ICMPV4_TX_CHECKSUM))) - { - - /* Check fragmentation. */ - if(is_fragmented) - { - - /* Not support fragmentation. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - /* Calculate the ICMPv4 checksum without protection. */ - checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_ICMP, - data_length, - /* ICMPV4 header checksum doesn't care src/dest addresses */ - NULL, NULL); - - if(is_check) - { - checksum = ~checksum & NX_LOWER_16_MASK; - - /* Check the checksum. */ - if (checksum) - { - - /* Checksum error. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_INVALID_PACKET; - } - } - else - { - - /* Pickup the pointer to the head of the ICMPv4 packet. */ - icmpv4_header_ptr = (NX_ICMP_HEADER *) packet_ptr -> nx_packet_prepend_ptr; - - /* Move the checksum into header. */ - NX_CHANGE_ULONG_ENDIAN(icmpv4_header_ptr -> nx_icmp_header_word_0); - icmpv4_header_ptr -> nx_icmp_header_word_0 = icmpv4_header_ptr -> nx_icmp_header_word_0 | (~checksum & NX_LOWER_16_MASK); - NX_CHANGE_ULONG_ENDIAN(icmpv4_header_ptr -> nx_icmp_header_word_0); - } - } - - /* No necessary to process next protocol. */ - is_done = NX_TRUE; - break; - } - - case NX_PROTOCOL_IGMP: - { - - /* Check if IGMP checksum is enabled. */ - if(((is_check) && (interface_ptr -> nx_interface_capability_flag & NX_INTERFACE_CAPABILITY_IGMP_RX_CHECKSUM)) || - ((!is_check) && (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_IGMP_TX_CHECKSUM))) - { - - /* Check fragmentation. */ - if(is_fragmented) - { - - /* Not support fragmentation. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - /* Pickup the pointer to the head of the IGMP packet. */ - igmp_header_ptr = (NX_IGMP_HEADER *) packet_ptr -> nx_packet_prepend_ptr; - - /* Change the endian. */ - NX_CHANGE_ULONG_ENDIAN(igmp_header_ptr -> nx_igmp_header_word_0); - NX_CHANGE_ULONG_ENDIAN(igmp_header_ptr -> nx_igmp_header_word_1); - - /* Calculate the checksum. */ - val = igmp_header_ptr -> nx_igmp_header_word_0; - checksum = (val >> NX_SHIFT_BY_16); - checksum += (val & NX_LOWER_16_MASK); - val = igmp_header_ptr -> nx_igmp_header_word_1; - checksum += (val >> NX_SHIFT_BY_16); - checksum += (val & NX_LOWER_16_MASK); - - /* Add in the carry bits into the checksum. */ - checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); - - /* Do it again in case previous operation generates an overflow. */ - checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); - - if(is_check) - { - - /* Change the endian. */ - NX_CHANGE_ULONG_ENDIAN(igmp_header_ptr -> nx_igmp_header_word_0); - NX_CHANGE_ULONG_ENDIAN(igmp_header_ptr -> nx_igmp_header_word_1); - - /* Check the checksum. */ - if ((~checksum) & 0xFFFF) - { - - /* Checksum error. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_INVALID_PACKET; - } - } - else - { - - /* Place the checksum into the first header word. */ - igmp_header_ptr -> nx_igmp_header_word_0 = igmp_header_ptr -> nx_igmp_header_word_0 | (~checksum & NX_LOWER_16_MASK); - - /* Change the endian. */ - NX_CHANGE_ULONG_ENDIAN(igmp_header_ptr -> nx_igmp_header_word_0); - NX_CHANGE_ULONG_ENDIAN(igmp_header_ptr -> nx_igmp_header_word_1); - } - - /* No necessary to process next protocol. */ - is_done = NX_TRUE; - break; - } - - /* No necessary to process next protocol. */ - is_done = NX_TRUE; - break; - } - -#ifdef FEATURE_NX_IPV6 - case NX_PROTOCOL_ICMPV6: - { - - /* Check if ICMPv6 checksum is enabled. */ - if(((is_check) && (interface_ptr -> nx_interface_capability_flag & NX_INTERFACE_CAPABILITY_ICMPV6_RX_CHECKSUM)) || - ((!is_check) && (packet_ptr -> nx_packet_interface_capability_flag & NX_INTERFACE_CAPABILITY_ICMPV6_TX_CHECKSUM))) - { - - /* Check fragmentation. */ - if(is_fragmented) - { - - /* Not support fragmentation. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - /* Calculate the ICMPv6 checksum without protection. */ - checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_ICMPV6, - data_length, - ip_src_addr, ip_dst_addr); - - if(is_check) - { - checksum = ~checksum & NX_LOWER_16_MASK; - - /* Check the checksum. */ - if (checksum) - { - - /* Checksum error. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_INVALID_PACKET; - } - } - else - { - - /* Pickup the pointer to the head of the ICMPv6 packet. */ - icmpv6_header_ptr = (NX_ICMPV6_HEADER *) packet_ptr -> nx_packet_prepend_ptr; - - checksum = ~checksum; - - /* Move the checksum into header. */ - NX_CHANGE_USHORT_ENDIAN(checksum); - icmpv6_header_ptr -> nx_icmpv6_header_checksum = checksum; - } - } - - /* No necessary to process next protocol. */ - is_done = NX_TRUE; - break; - } - - case NX_PROTOCOL_IPV6: - { - - /* Check fragmentation. */ - if(is_fragmented) - { - - /* Not support fragmentation. Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; - } - - /* Points to the base of IPv6 header. */ - ipv6_header_ptr = (NX_IPV6_HEADER*)packet_ptr -> nx_packet_prepend_ptr; - - /* Get src and dst addresses. */ - COPY_IPV6_ADDRESS(ipv6_header_ptr -> nx_ip_header_source_ip, ip_src_addr); - COPY_IPV6_ADDRESS(ipv6_header_ptr -> nx_ip_header_destination_ip, ip_dst_addr); - NX_IPV6_ADDRESS_CHANGE_ENDIAN(ip_src_addr); - NX_IPV6_ADDRESS_CHANGE_ENDIAN(ip_dst_addr); - - /* Get next protocol. */ - next_protocol = (ipv6_header_ptr -> nx_ip_header_word_1 >> 16) & 0xFF; - - /* Remove IPv6 header. */ - packet_ptr -> nx_packet_prepend_ptr += sizeof(NX_IPV6_HEADER); - data_length = packet_ptr -> nx_packet_length - sizeof(NX_IPV6_HEADER); - break; - } - - case NX_PROTOCOL_NEXT_HEADER_FRAGMENT: - is_fragmented = NX_TRUE; - case NX_PROTOCOL_NEXT_HEADER_HOP_BY_HOP: - case NX_PROTOCOL_NEXT_HEADER_DESTINATION: - case NX_PROTOCOL_NEXT_HEADER_ROUTING: - { - next_protocol = (ULONG)(*packet_ptr -> nx_packet_prepend_ptr); - data_length -= (ULONG)(*(packet_ptr -> nx_packet_prepend_ptr + 1)); - packet_ptr -> nx_packet_prepend_ptr += (ULONG)(*(packet_ptr -> nx_packet_prepend_ptr + 1)); - break; - } -#endif - - default: - /* Unsupported protocol. */ - is_done = NX_TRUE; - break; - } - } - - - /* Restore origianl prepend_ptr. */ - packet_ptr -> nx_packet_prepend_ptr = org_prepend_ptr; - return NX_SUCCESS; -} -#endif /* NX_ENABLE_INTERFACE_CAPABILITY */ - - -#ifdef NX_PCAP_ENABLE -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* get_time_of_day PORTABLE C */ -/* 5.8 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function gets sec and usec from January 1, 1970 */ -/* */ -/* INPUT */ -/* */ -/* tv Pointer to TIME_VAL structure */ -/* */ -/* OUTPUT */ -/* */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* write_pcap_file */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.10 */ -/* */ -/**************************************************************************/ -VOID get_time_of_day(NX_TIME_VALUE *time_value) -{ -#ifdef linux - - /* Get the system time. */ - gettimeofday(tv); -#else -SYSTEMTIME systemtime; -FILETIME filetime; -ULONG64 time; - - /* Get the system time. */ - GetSystemTime(&systemtime); - - /* Get the file time. */ - SystemTimeToFileTime(&systemtime, &filetime); - - /* Set the time as ULONG64. */ - time = ((ULONG64)filetime.dwLowDateTime); - time += (((ULONG64)filetime.dwHighDateTime) << 32); - - /* Set the time as from January 1, 1970. */ - time_value -> tv_sec = (LONG)((time - ((UINT64)116444736000000000ULL)) / 10000000L); - time_value -> tv_usec = (LONG)(systemtime.wMilliseconds * 1000); -#endif -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* create_pcap_file PORTABLE C */ -/* 5.10 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function creates libpcap file global header based on libpcap */ -/* file format and writes it to the file. */ -/* */ -/* INPUT */ -/* */ -/* file_name String of file name */ -/* */ -/* OUTPUT */ -/* */ -/* NX_PCAP_FILE_OK Successful file open status */ -/* NX_PCAP_FILE_ERROR Failed file open status */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* Application Code */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.10 */ -/* */ -/**************************************************************************/ -UINT create_pcap_file(CHAR *file_name) -{ -NX_PCAP_FILE_HEADER pcap_file_header; - - /* Set the pcap file header value. */ - pcap_file_header.magic_number = 0xa1b2c3d4; - pcap_file_header.version_major = 2; - pcap_file_header.version_minor = 4; - pcap_file_header.this_zone = -28800; - pcap_file_header.sig_figs = 0; - pcap_file_header.snapshot_length = 0x0000ffff; - pcap_file_header.link_type = 1; - - /* Open the pcap file. */ - nx_network_driver_pcap_fp = fopen(file_name, "wb+"); - - /* Check if open the pcap file. */ - if (nx_network_driver_pcap_fp == NX_NULL) - return (NX_PCAP_FILE_ERROR); - - /* Write the pcap file header. */ - fwrite(&pcap_file_header, sizeof(pcap_file_header), 1, nx_network_driver_pcap_fp); - - /* Return. */ - return (NX_PCAP_FILE_OK); -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* write_pcap_file PORTABLE C */ -/* 5.10 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function creates libpcap file packet header based on libpcap */ -/* file format, receives packet data, and writes them to the file. */ -/* */ -/* INPUT */ -/* */ -/* packet_ptr Pointer to the source packet */ -/* */ -/* OUTPUT */ -/* */ -/* NX_PCAP_FILE_OK Successful file open status */ -/* NX_PCAP_FILE_ERROR Failed file open status */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* _nx_ram_network_driver_output */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.10 */ -/* */ -/**************************************************************************/ -UINT write_pcap_file(NX_PACKET *packet_ptr) -{ -NX_PCAP_PACKET_HEADER pcap_packet_header; -NX_TIME_VALUE time_value; -CHAR data_buffer[3014]; -ULONG data_length; - - /* Get the system time. */ - get_time_of_day(&time_value); - - /* Retrieve data from packet. */ - nx_packet_data_retrieve(packet_ptr, data_buffer, &data_length); - - /* Set the time. */ - pcap_packet_header.time_stamp_second = time_value.tv_sec; - pcap_packet_header.time_stamp_microseconds = time_value.tv_usec; - pcap_packet_header.capture_length = data_length; - pcap_packet_header.actual_length = data_length; - - /* Check if open the pcap file. */ - if (nx_network_driver_pcap_fp == NX_NULL) - return (NX_PCAP_FILE_ERROR); - - /* Write the pcap packet header. */ - fwrite(&pcap_packet_header, sizeof(pcap_packet_header), 1, nx_network_driver_pcap_fp); - - /* Write the packet data. */ - fwrite(data_buffer, data_length, 1, nx_network_driver_pcap_fp); - - /* Flush the file data. */ - fflush(nx_network_driver_pcap_fp); - - /* Return. */ - return (NX_PCAP_FILE_OK); -} - -/**************************************************************************/ -/* */ -/* FUNCTION RELEASE */ -/* */ -/* close_pcap_file PORTABLE C */ -/* 5.10 */ -/* AUTHOR */ -/* */ -/* William E. Lamie, Express Logic, Inc. */ -/* */ -/* DESCRIPTION */ -/* */ -/* This function closes the libpcap file opened */ -/* */ -/* INPUT */ -/* */ -/* None */ -/* */ -/* OUTPUT */ -/* None */ -/* */ -/* CALLS */ -/* */ -/* */ -/* CALLED BY */ -/* */ -/* Application Code */ -/* */ -/* RELEASE HISTORY */ -/* */ -/* DATE NAME DESCRIPTION */ -/* */ -/* xx-xx-xxxx Yuxin Zhou Initial Version 5.10 */ -/* */ -/**************************************************************************/ -VOID close_pcap_file() -{ - - /* Check if the pcap file pointer. */ - if (nx_network_driver_pcap_fp != NX_NULL) - { - - /* Close the file. */ - fclose(nx_network_driver_pcap_fp); - - /* Set the pcap file pointer to NX_NULL. */ - nx_network_driver_pcap_fp = NX_NULL; - } -} -#endif /* NX_PCAP_ENABLE */ diff --git a/test/regression/nx_secure_test/nx_ram_network_driver_test_1500.h b/test/regression/nx_secure_test/nx_ram_network_driver_test_1500.h deleted file mode 100644 index ed58da53..00000000 --- a/test/regression/nx_secure_test/nx_ram_network_driver_test_1500.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef _NX_RAM_NETWORK_DRIVER_TEST_1500_H_ -#define _NX_RAM_NETWORK_DRIVER_TEST_1500_H_ -#include "tx_api.h" -#include "tx_timer.h" -#define NX_RAMDRIVER_OP_BYPASS 0 -#define NX_RAMDRIVER_OP_DROP 1 -#define NX_RAMDRIVER_OP_DELAY 2 -#define NX_RAMDRIVER_OP_DUPLICATE 3 - -#define NX_RAMDRIVER_TIMER_UNUSED 0 -#define NX_RAMDRIVER_TIMER_USED 1 -#define NX_RAMDRIVER_TIMER_DIRTY 2 - -#define NX_MAX_TIMER 5 - -VOID _nx_ram_network_driver_timer_clean(VOID); - - -#ifdef NX_PCAP_ENABLE - -/* Define return values. */ -#define NX_PCAP_FILE_OK 1 -#define NX_PCAP_FILE_ERROR 0 - -/* Define the pcap header struct. */ -typedef struct NX_PCAP_HEADER_FILE_STRUCT -{ -UINT magic_number; /* magic number */ -USHORT version_major; /* major version number */ -USHORT version_minor; /* minor version number */ -INT this_zone; /* GMT to local correction */ -UINT sig_figs; /* accuracy of timestamps */ -UINT snapshot_length; /* max length of captured packets, in octets */ -UINT link_type; /* data link type */ -} NX_PCAP_FILE_HEADER; - -typedef struct NX_PCAP_PACKET_HEADER_STRUCT -{ -UINT time_stamp_second; /* timestamp seconds */ -UINT time_stamp_microseconds; /* timestamp microseconds */ -UINT capture_length; /* number of octets of packet saved in file */ -UINT actual_length; /* actual length of packet */ -} NX_PCAP_PACKET_HEADER; - -/* Define time value. */ -typedef struct timeval NX_TIME_VALUE; - -#endif /* NX_PCAP_ENABLE */ - -#endif /* _NX_RAM_NETWORK_DRIVER_TEST_1500_H_ */ 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 5f365b05..abaf71d9 100644 --- a/test/regression/test/nx_ram_network_driver_test_1500.c +++ b/test/regression/test/nx_ram_network_driver_test_1500.c @@ -190,7 +190,7 @@ UINT write_pcap_file(NX_PACKET *packet_ptr); /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_set_pool PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -219,7 +219,7 @@ UINT write_pcap_file(NX_PACKET *packet_ptr); /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT _nx_ram_network_driver_set_pool(NX_PACKET_POOL *pool_ptr) @@ -234,7 +234,7 @@ UINT _nx_ram_network_driver_set_pool(NX_PACKET_POOL *pool_ptr) /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_reset PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -263,7 +263,7 @@ UINT _nx_ram_network_driver_set_pool(NX_PACKET_POOL *pool_ptr) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ void _nx_ram_network_driver_reset(void) @@ -292,7 +292,7 @@ void _nx_ram_network_driver_reset(void) /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_delay_entry PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -320,7 +320,7 @@ void _nx_ram_network_driver_reset(void) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ VOID _nx_ram_network_driver_delay_entry(ULONG timer_input) @@ -354,7 +354,7 @@ NX_IP_DRIVER *driver_req; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_timer_clean PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -380,7 +380,7 @@ NX_IP_DRIVER *driver_req; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ VOID _nx_ram_network_driver_timer_clean(VOID) @@ -404,7 +404,7 @@ VOID _nx_ram_network_driver_timer_clean(VOID) /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_internal PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -436,7 +436,7 @@ VOID _nx_ram_network_driver_timer_clean(VOID) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 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) @@ -1038,7 +1038,7 @@ USHORT ether_type; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -1067,7 +1067,7 @@ USHORT ether_type; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ VOID _nx_ram_network_driver(NX_IP_DRIVER *driver_req_ptr) @@ -1547,7 +1547,7 @@ USHORT ether_type; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_output PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -1582,7 +1582,7 @@ USHORT ether_type; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 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) @@ -1818,7 +1818,7 @@ UINT j; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_receive PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -1858,7 +1858,7 @@ UINT j; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 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) @@ -1987,7 +1987,7 @@ UINT packet_type; /* FUNCTION RELEASE */ /* */ /* _nx_ram_network_driver_calculate_checksum PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -2019,7 +2019,7 @@ UINT packet_type; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 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) @@ -2526,7 +2526,7 @@ NX_IPV6_HEADER *ipv6_header_ptr; /* FUNCTION RELEASE */ /* */ /* get_time_of_day PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -2554,7 +2554,7 @@ NX_IPV6_HEADER *ipv6_header_ptr; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ VOID get_time_of_day(NX_TIME_VALUE *time_value) @@ -2589,7 +2589,7 @@ ULONG64 time; /* FUNCTION RELEASE */ /* */ /* create_pcap_file PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -2619,7 +2619,7 @@ ULONG64 time; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT create_pcap_file(CHAR *file_name) @@ -2654,7 +2654,7 @@ NX_PCAP_FILE_HEADER pcap_file_header; /* FUNCTION RELEASE */ /* */ /* write_pcap_file PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -2684,7 +2684,7 @@ NX_PCAP_FILE_HEADER pcap_file_header; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT write_pcap_file(NX_PACKET *packet_ptr) @@ -2728,7 +2728,7 @@ ULONG data_length; /* FUNCTION RELEASE */ /* */ /* close_pcap_file PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wenhui Xie, Microsoft Corporation */ @@ -2755,7 +2755,7 @@ ULONG data_length; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wenhui Xie Initial Version 6.x */ +/* 12-31-2023 Wenhui Xie Initial Version 6.4.0 */ /* */ /**************************************************************************/ VOID close_pcap_file() diff --git a/tsn/inc/nx_mrp.h b/tsn/inc/nx_mrp.h index b46ea4c9..bfe780f3 100644 --- a/tsn/inc/nx_mrp.h +++ b/tsn/inc/nx_mrp.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_mrp.h Generic */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -39,7 +39,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/tsn/inc/nx_mvrp.h b/tsn/inc/nx_mvrp.h index a09b8bc0..119b9278 100644 --- a/tsn/inc/nx_mvrp.h +++ b/tsn/inc/nx_mvrp.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_mvrp.h Generic */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -39,7 +39,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/tsn/inc/nx_shaper.h b/tsn/inc/nx_shaper.h index b2fd33cb..ff3d3a4c 100644 --- a/tsn/inc/nx_shaper.h +++ b/tsn/inc/nx_shaper.h @@ -24,7 +24,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* nx_shaper.h Generic */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -37,7 +37,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ diff --git a/tsn/src/nx_mrp.c b/tsn/src/nx_mrp.c index 9c5043c6..9222c9bd 100644 --- a/tsn/src/nx_mrp.c +++ b/tsn/src/nx_mrp.c @@ -55,7 +55,7 @@ UCHAR *action_str[] = /* FUNCTION RELEASE */ /* */ /* nx_mrp_applicant_event_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -90,7 +90,7 @@ UCHAR *action_str[] = /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -456,7 +456,7 @@ UCHAR origin_state = attribute -> applicant.state; /* FUNCTION RELEASE */ /* */ /* nx_mrp_registrar_event_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -491,7 +491,7 @@ UCHAR origin_state = attribute -> applicant.state; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -596,7 +596,7 @@ UCHAR origin_state = attribute -> registrar.state; /* FUNCTION RELEASE */ /* */ /* nx_mrp_leaveall_event_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -628,7 +628,7 @@ UCHAR origin_state = attribute -> registrar.state; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_mrp_leaveall_event_process(NX_MRP_PARTICIPANT *participant, UCHAR mrp_event) @@ -689,7 +689,7 @@ UCHAR origin_state = participant -> leaveall.state; /* FUNCTION RELEASE */ /* */ /* nx_mrp_participant_add PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -719,7 +719,7 @@ UCHAR origin_state = participant -> leaveall.state; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_mrp_participant_add(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant) @@ -764,7 +764,7 @@ NX_MRP_PARTICIPANT *tmp_participant = mrp -> list_head; /* FUNCTION RELEASE */ /* */ /* nx_mrp_attribute_new PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -798,7 +798,7 @@ NX_MRP_PARTICIPANT *tmp_participant = mrp -> list_head; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ NX_MRP_ATTRIBUTE *nx_mrp_attribute_new(NX_MRP *mrp, NX_MRP_PARTICIPANT *participant, @@ -847,7 +847,7 @@ UINT i; /* FUNCTION RELEASE */ /* */ /* nx_mrp_attribute_evict PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -878,7 +878,7 @@ UINT i; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -918,7 +918,7 @@ NX_MRP_ATTRIBUTE *attribute = target; /* FUNCTION RELEASE */ /* */ /* nx_mrp_timer_handle PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -947,7 +947,7 @@ NX_MRP_ATTRIBUTE *attribute = target; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_timer_handle(ULONG mrp_instance) @@ -962,7 +962,7 @@ NX_MRP *mrp = (NX_MRP *)mrp_instance; /* FUNCTION RELEASE */ /* */ /* nx_mrp_timer_handle PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1000,7 +1000,7 @@ NX_MRP *mrp = (NX_MRP *)mrp_instance; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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, @@ -1062,7 +1062,7 @@ NX_MRP *mrp = (NX_MRP *)context; /* FUNCTION RELEASE */ /* */ /* nx_mrp_init PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1101,7 +1101,7 @@ NX_MRP *mrp = (NX_MRP *)context; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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, @@ -1189,7 +1189,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_mrp_participant_search PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1219,7 +1219,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ NX_MRP_PARTICIPANT *nx_mrp_participant_search(NX_MRP *mrp, UINT participant_type) @@ -1246,7 +1246,7 @@ NX_MRP_PARTICIPANT *participant = NX_NULL; /* FUNCTION RELEASE */ /* */ /* nx_mrp_rcv_pkt_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1277,7 +1277,7 @@ NX_MRP_PARTICIPANT *participant = NX_NULL; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_rcv_pkt_process(NX_MRP *mrp) @@ -1346,7 +1346,7 @@ NX_MRP_PARTICIPANT *participant; /* FUNCTION RELEASE */ /* */ /* nx_mrp_event_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1378,7 +1378,7 @@ NX_MRP_PARTICIPANT *participant; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -1425,7 +1425,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_mrp_attribute_event_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1455,7 +1455,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_mrp_attribute_event_get(NX_MRP_ATTRIBUTE *attribute, UCHAR *event_ptr) @@ -1517,7 +1517,7 @@ UINT nx_mrp_attribute_event_get(NX_MRP_ATTRIBUTE *attribute, UCHAR *event_ptr) /* FUNCTION RELEASE */ /* */ /* nx_mrp_periodic_timeout_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1546,7 +1546,7 @@ UINT nx_mrp_attribute_event_get(NX_MRP_ATTRIBUTE *attribute, UCHAR *event_ptr) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_periodic_timeout_process(NX_MRP *mrp) @@ -1583,7 +1583,7 @@ NX_MRP_ATTRIBUTE *attribute; /* FUNCTION RELEASE */ /* */ /* nx_mrp_join_timeout_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1617,7 +1617,7 @@ NX_MRP_ATTRIBUTE *attribute; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_join_timeout_process(NX_MRP *mrp) @@ -1740,7 +1740,7 @@ UINT eth_type; /* FUNCTION RELEASE */ /* */ /* nx_mrp_join_timeout_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1769,7 +1769,7 @@ UINT eth_type; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_leaveall_timeout_process(NX_MRP *mrp) @@ -1799,7 +1799,7 @@ NX_MRP_PARTICIPANT *participant; /* FUNCTION RELEASE */ /* */ /* nx_mrp_join_timeout_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1829,7 +1829,7 @@ NX_MRP_PARTICIPANT *participant; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_leave_timeout_process(NX_MRP *mrp) @@ -1864,7 +1864,7 @@ NX_MRP_ATTRIBUTE *attribute; /* FUNCTION RELEASE */ /* */ /* nx_mrp_join_timeout_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1896,7 +1896,7 @@ NX_MRP_ATTRIBUTE *attribute; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ void nx_mrp_timeout_process(NX_MRP *mrp) @@ -1919,7 +1919,7 @@ void nx_mrp_timeout_process(NX_MRP *mrp) /* FUNCTION RELEASE */ /* */ /* nx_mrp_thread_entry PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1949,7 +1949,7 @@ void nx_mrp_timeout_process(NX_MRP *mrp) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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 d1784c6a..a75636be 100644 --- a/tsn/src/nx_msrp.c +++ b/tsn/src/nx_msrp.c @@ -37,7 +37,7 @@ static NX_MSRP_ATTRIBUTE msrp_attribute_array[NX_MSRP_ATTRIBUTE_ARRAY_MAX_SIZE]; /* FUNCTION RELEASE */ /* */ /* nx_msrp_init PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -66,7 +66,7 @@ static NX_MSRP_ATTRIBUTE msrp_attribute_array[NX_MSRP_ATTRIBUTE_ARRAY_MAX_SIZE]; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_msrp_init(NX_MSRP *msrp_ptr) @@ -91,7 +91,7 @@ UINT nx_msrp_init(NX_MSRP *msrp_ptr) /* FUNCTION RELEASE */ /* */ /* nx_msrp_attribute_find PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -132,7 +132,7 @@ UINT nx_msrp_init(NX_MSRP *msrp_ptr) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -371,7 +371,7 @@ NX_MRP_ATTRIBUTE *attribute_head = participant -> inused_head; /* FUNCTION RELEASE */ /* */ /* nx_msrp_register_stream_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -405,7 +405,7 @@ NX_MRP_ATTRIBUTE *attribute_head = participant -> inused_head; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -464,7 +464,7 @@ UCHAR mrp_event; /* FUNCTION RELEASE */ /* */ /* nx_msrp_register_attach_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -497,7 +497,7 @@ UCHAR mrp_event; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -540,7 +540,7 @@ UCHAR attribute_type = NX_MSRP_TALKER_LISTENER_VECTOR; /* FUNCTION RELEASE */ /* */ /* nx_msrp_deregister_stream_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -572,7 +572,7 @@ UCHAR attribute_type = NX_MSRP_TALKER_LISTENER_VECTOR; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -608,7 +608,7 @@ UCHAR attribute_type = NX_MSRP_TALKER_ADVERTISE_VECTOR; /* FUNCTION RELEASE */ /* */ /* nx_msrp_deregister_attach_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -641,7 +641,7 @@ UCHAR attribute_type = NX_MSRP_TALKER_ADVERTISE_VECTOR; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -678,7 +678,7 @@ UCHAR attribute_type = NX_MSRP_TALKER_LISTENER_VECTOR; /* FUNCTION RELEASE */ /* */ /* nx_msrp_register_domain_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -711,7 +711,7 @@ UCHAR attribute_type = NX_MSRP_TALKER_LISTENER_VECTOR; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -768,7 +768,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_msrp_deregister_domain_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -803,7 +803,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -840,7 +840,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_msrp_register_stream_indication PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -873,7 +873,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -926,7 +926,7 @@ NX_MRP_EVENT_CALLBACK event_callback; /* FUNCTION RELEASE */ /* */ /* nx_msrp_deregister_stream_indication PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -959,7 +959,7 @@ NX_MRP_EVENT_CALLBACK event_callback; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -995,7 +995,7 @@ UCHAR *stream_id; /* FUNCTION RELEASE */ /* */ /* nx_msrp_register_attach_indication PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1026,7 +1026,7 @@ UCHAR *stream_id; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -1050,7 +1050,7 @@ NX_MRP_EVENT_CALLBACK event_callback; /* FUNCTION RELEASE */ /* */ /* nx_msrp_deregister_attach_indication PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1081,7 +1081,7 @@ NX_MRP_EVENT_CALLBACK event_callback; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -1105,7 +1105,7 @@ NX_MRP_EVENT_CALLBACK event_callback; /* FUNCTION RELEASE */ /* */ /* nx_msrp_register_domain_indication PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1138,7 +1138,7 @@ NX_MRP_EVENT_CALLBACK event_callback; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -1172,7 +1172,7 @@ NX_MSRP_DOMAIN *domain; /* FUNCTION RELEASE */ /* */ /* nx_msrp_deregister_domain_indication PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1205,7 +1205,7 @@ NX_MSRP_DOMAIN *domain; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -1238,7 +1238,7 @@ NX_MSRP_DOMAIN *domain; /* FUNCTION RELEASE */ /* */ /* nx_msrp_indication_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1279,7 +1279,7 @@ NX_MSRP_DOMAIN *domain; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -1397,7 +1397,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_msrp_mrpdu_parse PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1431,7 +1431,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -1651,7 +1651,7 @@ UCHAR *data_ptr = packet_ptr -> nx_packet_data_start; /* FUNCTION RELEASE */ /* */ /* nx_msrp_mrpdu_pack_attribute PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1687,7 +1687,7 @@ UCHAR *data_ptr = packet_ptr -> nx_packet_data_start; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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, @@ -1931,7 +1931,7 @@ USHORT attribute_list_length; /* FUNCTION RELEASE */ /* */ /* nx_msrp_mrpdu_pack PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -1965,7 +1965,7 @@ USHORT attribute_list_length; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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 ac5592e3..00c4217d 100644 --- a/tsn/src/nx_mvrp.c +++ b/tsn/src/nx_mvrp.c @@ -30,7 +30,7 @@ NX_MVRP_ATTRIBUTE mvrp_attribute_array[NX_MVRP_ATTRIBUTE_ARRAY_MAX_SIZE]; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_indication_process PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -62,7 +62,7 @@ NX_MVRP_ATTRIBUTE mvrp_attribute_array[NX_MVRP_ATTRIBUTE_ARRAY_MAX_SIZE]; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -92,7 +92,7 @@ NX_MVRP *mvrp = (NX_MVRP *)participant; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_mrpdu_unpack PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -124,7 +124,7 @@ NX_MVRP *mvrp = (NX_MVRP *)participant; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -286,7 +286,7 @@ UCHAR three_packed_event, first_event, second_event, third_event; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_mrpdu_pack PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -317,7 +317,7 @@ UCHAR three_packed_event, first_event, second_event, third_event; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -462,7 +462,7 @@ USHORT i; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_attribute_find PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -494,7 +494,7 @@ USHORT i; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -530,7 +530,7 @@ NX_MVRP_ATTRIBUTE *mvrp_attribute; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_attribute_insert PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -561,7 +561,7 @@ NX_MVRP_ATTRIBUTE *mvrp_attribute; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -624,7 +624,7 @@ USHORT vlan_id = ((NX_MVRP_ATTRIBUTE *)attribute) -> vlan_id; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_attribute_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -659,7 +659,7 @@ USHORT vlan_id = ((NX_MVRP_ATTRIBUTE *)attribute) -> vlan_id; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -704,7 +704,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_action_request PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -737,7 +737,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -789,7 +789,7 @@ UCHAR mrp_event; /* FUNCTION RELEASE */ /* */ /* nx_mvrp_init PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -818,7 +818,7 @@ UCHAR mrp_event; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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 93833d40..daa6e995 100644 --- a/tsn/src/nx_shaper.c +++ b/tsn/src/nx_shaper.c @@ -29,7 +29,7 @@ /* FUNCTION RELEASE */ /* */ /* nx_shaper_create PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -63,7 +63,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_shaper_create(NX_INTERFACE *interface_ptr, @@ -142,7 +142,7 @@ NX_SHAPER_DRIVER_PARAMETER driver_request; /* FUNCTION RELEASE */ /* */ /* nx_shaper_delete PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -173,7 +173,7 @@ NX_SHAPER_DRIVER_PARAMETER driver_request; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_shaper_delete(NX_INTERFACE *interface_ptr, NX_SHAPER *shaper) @@ -222,7 +222,7 @@ UINT i; /* FUNCTION RELEASE */ /* */ /* nx_shaper_config PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -256,7 +256,7 @@ UINT i; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_shaper_config(NX_INTERFACE *interface_ptr, @@ -288,7 +288,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_shaper_hw_queue_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -320,7 +320,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -391,7 +391,7 @@ UCHAR i, insert_id; /* FUNCTION RELEASE */ /* */ /* nx_shaper_default_mapping_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -423,7 +423,7 @@ UCHAR i, insert_id; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -622,7 +622,7 @@ UCHAR hw_cbs_queue_number; /* FUNCTION RELEASE */ /* */ /* nx_shaper_current_mapping_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -654,7 +654,7 @@ UCHAR hw_cbs_queue_number; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -696,7 +696,7 @@ UCHAR i, j; /* FUNCTION RELEASE */ /* */ /* nx_shaper_hw_queue_number_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -726,7 +726,7 @@ UCHAR i, j; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -745,7 +745,7 @@ UINT nx_shaper_hw_queue_number_get(NX_INTERFACE *interface_ptr, UCHAR *hw_queue_ /* FUNCTION RELEASE */ /* */ /* nx_shaper_hw_cbs_queue_number_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -776,7 +776,7 @@ UINT nx_shaper_hw_queue_number_get(NX_INTERFACE *interface_ptr, UCHAR *hw_queue_ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -805,7 +805,7 @@ UCHAR i; /* FUNCTION RELEASE */ /* */ /* nx_shaper_port_rate_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -835,7 +835,7 @@ UCHAR i; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 12-31-2023 Yajun Xia Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_shaper_port_rate_get(NX_INTERFACE *interface_ptr, UINT *port_rate) @@ -854,7 +854,7 @@ UINT nx_shaper_port_rate_get(NX_INTERFACE *interface_ptr, UINT *port_rate) /* FUNCTION RELEASE */ /* */ /* nx_shaper_mapping_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -886,7 +886,7 @@ UINT nx_shaper_port_rate_get(NX_INTERFACE *interface_ptr, UINT *port_rate) /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -933,7 +933,7 @@ UCHAR i; /* FUNCTION RELEASE */ /* */ /* nx_shaper_cbs_parameter_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -964,7 +964,7 @@ UCHAR i; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -1038,7 +1038,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_shaper_hw_queue_id_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1069,7 +1069,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -1108,7 +1108,7 @@ UCHAR pcp = 0; /* FUNCTION RELEASE */ /* */ /* nx_shaper_tas_parameter_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1138,7 +1138,7 @@ UCHAR pcp = 0; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -1341,7 +1341,7 @@ NX_SHAPER_FP_PARAMETER *fp_parameter; /* FUNCTION RELEASE */ /* */ /* nx_shaper_express_queue_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1372,7 +1372,7 @@ NX_SHAPER_FP_PARAMETER *fp_parameter; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -1405,7 +1405,7 @@ NX_INTERFACE *parent_interface; /* FUNCTION RELEASE */ /* */ /* nx_shaper_sdu_tx_time_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1436,7 +1436,7 @@ NX_INTERFACE *parent_interface; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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) @@ -1463,7 +1463,7 @@ UINT tmp; /* FUNCTION RELEASE */ /* */ /* nx_shaper_fp_parameter_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Yajun Xia, Microsoft Corporation */ @@ -1495,7 +1495,7 @@ UINT tmp; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Yajun Xia Initial Version 6.x */ +/* 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 a42e2bcb..2aab298d 100644 --- a/tsn/src/nx_srp.c +++ b/tsn/src/nx_srp.c @@ -28,7 +28,7 @@ /* FUNCTION RELEASE */ /* */ /* nx_srp_init PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -68,7 +68,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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, @@ -101,7 +101,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_srp_talker_start PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -141,7 +141,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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, @@ -271,7 +271,7 @@ INT i; /* FUNCTION RELEASE */ /* */ /* nx_srp_listener_start PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -303,7 +303,7 @@ INT i; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -326,7 +326,7 @@ UINT nx_srp_listener_start(NX_SRP *srp_ptr, NX_MRP_EVENT_CALLBACK event_callback /* FUNCTION RELEASE */ /* */ /* nx_srp_talker_stop PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -360,7 +360,7 @@ UINT nx_srp_listener_start(NX_SRP *srp_ptr, NX_MRP_EVENT_CALLBACK event_callback /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -394,7 +394,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_srp_listener_stop PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -428,7 +428,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -473,7 +473,7 @@ UINT status; /* FUNCTION RELEASE */ /* */ /* nx_srp_cbs_config_get PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -509,7 +509,7 @@ UINT status; /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 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) @@ -552,7 +552,7 @@ UINT nx_srp_cbs_config_get(UINT sr_class, INT port_rate, UINT interval, UINT fra /* FUNCTION RELEASE */ /* */ /* nx_srp_talker_cbs_set PORTABLE C */ -/* 6.x */ +/* 6.4.0 */ /* AUTHOR */ /* */ /* Wen Wang, Microsoft Corporation */ @@ -587,7 +587,7 @@ UINT nx_srp_cbs_config_get(UINT sr_class, INT port_rate, UINT interval, UINT fra /* */ /* DATE NAME DESCRIPTION */ /* */ -/* xx-xx-xxxx Wen Wang Initial Version 6.x */ +/* 12-31-2023 Wen Wang Initial Version 6.4.0 */ /* */ /**************************************************************************/ UINT nx_srp_talker_cbs_set(NX_SRP *srp_ptr, UINT index)