/NetX-Duo-v6.4.1/test/regression/netxduo_test/ |
D | netx_igmp_branch_test.c | 109 NX_PACKET *my_packet[2]; in thread_0_entry() local 128 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 129 nx_packet_data_append(my_packet[0], "abcdefghijklmnopqrstuvwxyz", 26, &pool_0, NX_NO_WAIT); in thread_0_entry() 134 _nx_igmp_packet_receive(&ip_0, my_packet[0]); in thread_0_entry() 138 nx_packet_release(my_packet[0]); in thread_0_entry() 140 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 141 nx_packet_data_append(my_packet[0], "abcdefghijklmnopqrstuvwxyz", 26, &pool_0, NX_NO_WAIT); in thread_0_entry() 145 _nx_igmp_packet_receive(&ip_0, my_packet[0]); in thread_0_entry() 149 nx_packet_release(my_packet[0]); in thread_0_entry() 286 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() [all …]
|
D | netx_ip_branch_test.c | 366 NX_PACKET *my_packet[2]; in thread_0_entry() local 467 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 468 *(my_packet[0] -> nx_packet_prepend_ptr) = NX_IP_VERSION_V4 << 4; in thread_0_entry() 470 _nx_ip_packet_receive(&ip_0, my_packet[0]); in thread_0_entry() 471 *(my_packet[0] -> nx_packet_prepend_ptr) = NX_IP_VERSION_V6 << 4; in thread_0_entry() 473 _nx_ip_packet_receive(&ip_0, my_packet[0]); in thread_0_entry() 476 nx_packet_release(my_packet[0]); in thread_0_entry() 523 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 524 *(my_packet[0] -> nx_packet_prepend_ptr + 3) = NX_IP_VERSION_V4 << 4 | 15; in thread_0_entry() 525 …*(my_packet[0] -> nx_packet_prepend_ptr + sizeof(NX_IPV4_HEADER)) = NX_IP_OPTION_INTERNET_TIMESTAM… in thread_0_entry() [all …]
|
D | netx_rarp_branch_test.c | 96 NX_PACKET *my_packet; in thread_0_entry() local 138 …status = rarp_packet_allocate(&ip_0, &my_packet, NX_RARP_OPTION_RESPONSE, source_ip, source_mac, d… in thread_0_entry() 147 my_packet -> nx_packet_ip_interface = &ip_0.nx_ip_interface[0]; in thread_0_entry() 150 _nx_rarp_packet_receive(&ip_0, my_packet); in thread_0_entry() 176 …status = rarp_packet_allocate(&ip_0, &my_packet, NX_RARP_OPTION_RESPONSE, source_ip, source_mac, d… in thread_0_entry() 185 my_packet -> nx_packet_ip_interface = &ip_0.nx_ip_interface[0]; in thread_0_entry() 188 _nx_rarp_packet_receive(&ip_0, my_packet); in thread_0_entry() 215 …status = rarp_packet_allocate(&ip_0, &my_packet, NX_RARP_OPTION_RESPONSE, source_ip, source_mac, d… in thread_0_entry() 224 my_packet -> nx_packet_ip_interface = &ip_0.nx_ip_interface[0]; in thread_0_entry() 227 _nx_rarp_packet_receive(&ip_0, my_packet); in thread_0_entry() [all …]
|
D | netx_rarp_multiple_interfaces_test.c | 36 static VOID fake_rarp_response_packet(NX_PACKET **my_packet, UINT type); 189 NX_PACKET *my_packet; in fake_rarp_response_packet() local 193 status = nx_packet_allocate(&pool_0, &my_packet, NX_PHYSICAL_HEADER, NX_WAIT_FOREVER); in fake_rarp_response_packet() 200 my_packet -> nx_packet_prepend_ptr[0] = 0x00; /* Ethernet header */ in fake_rarp_response_packet() 201 my_packet -> nx_packet_prepend_ptr[1] = 0x01; in fake_rarp_response_packet() 202 my_packet -> nx_packet_prepend_ptr[2] = 0x80; /* IP address */ in fake_rarp_response_packet() 203 my_packet -> nx_packet_prepend_ptr[3] = 0x00; in fake_rarp_response_packet() 204 my_packet -> nx_packet_prepend_ptr[4] = 0x06; /* Hardware address size */ in fake_rarp_response_packet() 205 my_packet -> nx_packet_prepend_ptr[5] = 0x04; /* IP address size */ in fake_rarp_response_packet() 210 my_packet -> nx_packet_prepend_ptr[6] = 0x00; /* RARP request */ in fake_rarp_response_packet() [all …]
|
D | netx_udp_packet_type_test.c | 156 NX_PACKET *my_packet; in thread_0_entry() local 197 status = nx_packet_allocate(&pool_0, &my_packet, 8 + 20 + NX_PHYSICAL_HEADER, TX_WAIT_FOREVER); in thread_0_entry() 208 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 211 my_packet -> nx_packet_length = 28; in thread_0_entry() 212 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() 215 status = nx_udp_socket_send(&socket_0, my_packet, IP_ADDRESS(1, 2, 3, 5), 0x89); in thread_0_entry() 226 status = nx_packet_allocate(&pool_0, &my_packet, 8 + 20, TX_WAIT_FOREVER); in thread_0_entry() 237 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 240 my_packet -> nx_packet_length = 28; in thread_0_entry() 241 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() [all …]
|
D | netx_udp_branch_test.c | 53 NX_PACKET *my_packet; in test_application_define() local 114 nx_packet_allocate(&pool_0, &my_packet, 0, NX_NO_WAIT); in test_application_define() 115 udp_header_ptr = (NX_UDP_HEADER *)my_packet -> nx_packet_prepend_ptr; in test_application_define() 120 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 9; in test_application_define() 121 my_packet -> nx_packet_length = 9; in test_application_define() 123 _nx_udp_packet_receive(&ip_0, my_packet); in test_application_define() 130 nx_packet_allocate(&pool_0, &my_packet, 0, NX_NO_WAIT); in test_application_define() 131 udp_header_ptr = (NX_UDP_HEADER *)my_packet -> nx_packet_prepend_ptr; in test_application_define() 136 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 9; in test_application_define() 137 my_packet -> nx_packet_length = 9; in test_application_define() [all …]
|
D | netx_packet_branch_test.c | 105 NX_PACKET *my_packet[2]; in thread_0_entry() local 121 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 122 if (_nx_packet_data_adjust(my_packet[0], 512) == NX_SUCCESS) in thread_0_entry() 126 nx_packet_release(my_packet[0]); in thread_0_entry() 130 nx_packet_allocate(&pool_0, &my_packet[0], 128, NX_NO_WAIT); in thread_0_entry() 131 nx_packet_data_append(my_packet[0], buffer, sizeof(buffer), &pool_0, NX_NO_WAIT); in thread_0_entry() 132 if (_nx_packet_data_adjust(my_packet[0], 255) == NX_SUCCESS) in thread_0_entry() 136 nx_packet_release(my_packet[0]); in thread_0_entry() 139 nx_packet_allocate(&pool_0, &my_packet[0], 128, NX_NO_WAIT); in thread_0_entry() 140 nx_packet_data_append(my_packet[0], buffer, sizeof(buffer), &pool_0, NX_NO_WAIT); in thread_0_entry() [all …]
|
D | netx_forward_udp_test.c | 156 NX_PACKET *my_packet; in thread_0_entry() local 306 status = nx_packet_allocate(&pool_0, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 316 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 319 my_packet -> nx_packet_length = 28; in thread_0_entry() 320 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() 323 status = nx_udp_socket_source_send(&socket_0, my_packet, IP_ADDRESS(3, 2, 3, 5), 0x89, 0); in thread_0_entry() 328 nx_packet_release(my_packet); in thread_0_entry() 339 status = nx_packet_allocate(&pool_0, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 349 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 352 my_packet -> nx_packet_length = 28; in thread_0_entry() [all …]
|
D | netx_rarp_basic_processing_test.c | 38 static VOID fake_rarp_response_packet(NX_PACKET **my_packet, UINT type); 347 NX_PACKET *my_packet; in fake_rarp_response_packet() local 351 status = nx_packet_allocate(&pool_0, &my_packet, NX_PHYSICAL_HEADER, NX_WAIT_FOREVER); in fake_rarp_response_packet() 358 my_packet -> nx_packet_prepend_ptr[0] = 0x00; /* Ethernet header */ in fake_rarp_response_packet() 359 my_packet -> nx_packet_prepend_ptr[1] = 0x01; in fake_rarp_response_packet() 360 my_packet -> nx_packet_prepend_ptr[2] = 0x80; /* IP address */ in fake_rarp_response_packet() 361 my_packet -> nx_packet_prepend_ptr[3] = 0x00; in fake_rarp_response_packet() 362 my_packet -> nx_packet_prepend_ptr[4] = 0x06; /* Hardware address size */ in fake_rarp_response_packet() 363 my_packet -> nx_packet_prepend_ptr[5] = 0x04; /* IP address size */ in fake_rarp_response_packet() 368 my_packet -> nx_packet_prepend_ptr[6] = 0x00; /* RARP request */ in fake_rarp_response_packet() [all …]
|
D | netx_udp_fragment_test.c | 171 NX_PACKET *my_packet; in thread_0_entry() local 216 status = nx_udp_socket_receive(&socket_0, &my_packet, 3 * NX_IP_PERIODIC_RATE); in thread_0_entry() 223 nx_packet_data_retrieve(my_packet, recv_buff, &data_len); in thread_0_entry() 228 nx_packet_release(my_packet); in thread_0_entry() 232 status = nx_udp_socket_receive(&socket_0, &my_packet, 3 * NX_IP_PERIODIC_RATE); in thread_0_entry() 239 nx_packet_data_retrieve(my_packet, recv_buff, &data_len); in thread_0_entry() 244 nx_packet_release(my_packet); in thread_0_entry() 249 status = nx_udp_socket_receive(&socket_0, &my_packet, 3 * NX_IP_PERIODIC_RATE); in thread_0_entry() 256 nx_packet_data_retrieve(my_packet, recv_buff, &data_len); in thread_0_entry() 261 nx_packet_release(my_packet); in thread_0_entry() [all …]
|
D | netx_tcp_small_window_test.c | 131 NX_PACKET *my_packet; in ntest_0_entry() local 176 status = nx_packet_allocate(&pool_0, &my_packet, NX_TCP_PACKET, NX_WAIT_FOREVER); in ntest_0_entry() 183 status = nx_packet_data_append(my_packet, message, sizeof(message), &pool_0, NX_WAIT_FOREVER); in ntest_0_entry() 193 status = nx_tcp_socket_send(&client_socket, my_packet, 1); in ntest_0_entry() 200 nx_packet_release(my_packet); in ntest_0_entry() 207 status = nx_packet_allocate(&pool_0, &my_packet, NX_TCP_PACKET, NX_WAIT_FOREVER); in ntest_0_entry() 214 status = nx_packet_data_append(my_packet, message, sizeof(message), &pool_0, NX_WAIT_FOREVER); in ntest_0_entry() 221 status = nx_tcp_socket_send(&client_socket, my_packet, 5 * NX_IP_PERIODIC_RATE); in ntest_0_entry() 227 nx_packet_release(my_packet); in ntest_0_entry() 233 status = nx_packet_allocate(&pool_0, &my_packet, NX_TCP_PACKET, NX_WAIT_FOREVER); in ntest_0_entry() [all …]
|
D | netx_icmpv6_echo_reply_test.c | 111 NX_PACKET *my_packet; in thread_0_entry() local 138 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in thread_0_entry() 141 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14], 54); in thread_0_entry() 144 my_packet -> nx_packet_length = 54; in thread_0_entry() 145 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 54; in thread_0_entry() 148 my_packet -> nx_packet_address.nx_packet_interface_ptr = &ip_0.nx_ip_interface[0]; in thread_0_entry() 151 icmp_checksum_compute(my_packet); in thread_0_entry() 154 _nx_ip_packet_receive(&ip_0, my_packet); in thread_0_entry() 167 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in thread_0_entry() 170 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14], 54); in thread_0_entry() [all …]
|
D | netx_icmpv6_echo_request_test.c | 112 NX_PACKET *my_packet; in thread_0_entry() local 139 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in thread_0_entry() 142 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14], 54); in thread_0_entry() 145 my_packet -> nx_packet_length = 54; in thread_0_entry() 146 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 54; in thread_0_entry() 149 my_packet -> nx_packet_address.nx_packet_interface_ptr = &ip_0.nx_ip_interface[0]; in thread_0_entry() 152 icmp_checksum_compute(my_packet); in thread_0_entry() 155 _nx_ip_packet_receive(&ip_0, my_packet); in thread_0_entry() 168 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in thread_0_entry() 171 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14], 54); in thread_0_entry() [all …]
|
D | netx_tcp_small_window_preempt_test.c | 125 NX_PACKET *my_packet; in ntest_0_entry() local 167 status = nx_packet_allocate(&pool_0, &my_packet, NX_TCP_PACKET, NX_WAIT_FOREVER); in ntest_0_entry() 174 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in ntest_0_entry() 177 my_packet -> nx_packet_length = 28; in ntest_0_entry() 178 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in ntest_0_entry() 181 status = nx_tcp_socket_send(&client_socket, my_packet, 5 * NX_IP_PERIODIC_RATE); in ntest_0_entry() 187 nx_packet_release(my_packet); in ntest_0_entry() 191 status = nx_packet_allocate(&pool_0, &my_packet, NX_TCP_PACKET, NX_WAIT_FOREVER); in ntest_0_entry() 198 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in ntest_0_entry() 201 my_packet -> nx_packet_length = 28; in ntest_0_entry() [all …]
|
D | netx_ipv6_hop_by_hop_option_error_test.c | 113 NX_PACKET *my_packet; in thread_0_entry() local 139 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in thread_0_entry() 142 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14], 64); in thread_0_entry() 145 my_packet -> nx_packet_length = 64; in thread_0_entry() 146 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 64; in thread_0_entry() 149 my_packet -> nx_packet_address.nx_packet_interface_ptr = &ip_0.nx_ip_interface[0]; in thread_0_entry() 152 icmp_checksum_compute(my_packet); in thread_0_entry() 155 _nx_ip_packet_receive(&ip_0, my_packet); in thread_0_entry() 165 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in thread_0_entry() 168 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14], 64); in thread_0_entry() [all …]
|
D | netx_igmp_router_query_test.c | 153 NX_PACKET *my_packet; in my_packet_process() local 211 …status = nx_packet_allocate(ip_ptr -> nx_ip_default_packet_pool, &my_packet, NX_IGMP_PACKET + rout… in my_packet_process() 222 my_packet -> nx_packet_length = NX_IGMP_HEADER_SIZE; in my_packet_process() 225 … my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + NX_IGMP_HEADER_SIZE; in my_packet_process() 228 …my_packet -> nx_packet_address.nx_packet_interface_ptr = ip_ptr -> nx_ipv4_multicast_entry[0].nx_i… in my_packet_process() 233 header_ptr = (NX_IGMP_HEADER *) my_packet -> nx_packet_prepend_ptr; in my_packet_process() 260 my_packet -> nx_packet_ip_version = NX_IP_VERSION_V4; in my_packet_process() 272 _nx_igmp_packet_receive(&ip_0, my_packet); in my_packet_process() 285 …status = nx_packet_allocate(ip_ptr -> nx_ip_default_packet_pool, &my_packet, NX_IGMP_PACKET + rout… in my_packet_process() 296 my_packet -> nx_packet_length = NX_IGMP_HEADER_SIZE; in my_packet_process() [all …]
|
D | netx_udp_multiple_ports_test.c | 131 NX_PACKET *my_packet; in thread_0_entry() local 206 status = nx_packet_allocate(&pool_0, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 213 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 216 my_packet -> nx_packet_length = 28; in thread_0_entry() 217 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() 220 status = nx_udp_socket_send(&socket_0, my_packet, IP_ADDRESS(1, 2, 3, 5), 0xE9); in thread_0_entry() 231 status = nx_packet_allocate(&pool_0, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 238 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 241 my_packet -> nx_packet_length = 28; in thread_0_entry() 242 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() [all …]
|
D | netx_udp_nxe_api_test.c | 140 NX_PACKET *my_packet; in thread_0_entry() local 292 status = nx_packet_allocate(&pool_0, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 302 …status = nx_packet_data_append(my_packet, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28, &pool_0, 2 * NX_IP_P… in thread_0_entry() 312 status = nx_udp_socket_send(&socket_1, my_packet, IP_ADDRESS(1, 2, 3, 5), 0x89); in thread_0_entry() 325 status = nxd_udp_socket_send(NX_NULL, my_packet, &address_1, 0x89); in thread_0_entry() 358 status = nxd_udp_socket_send(&socket_0, my_packet, 0, 0x89); in thread_0_entry() 370 status = nxd_udp_socket_send(&socket_0, my_packet, &address_1, 0x89); in thread_0_entry() 419 my_packet -> nx_packet_union_next.nx_packet_tcp_queue_next = (NX_PACKET *)NX_PACKET_FREE; in thread_0_entry() 420 status = nx_udp_socket_send(&socket_0, my_packet, IP_ADDRESS(1, 2, 3, 5), 0x89); in thread_0_entry() 429 my_packet -> nx_packet_union_next.nx_packet_tcp_queue_next = (NX_PACKET *)NX_PACKET_ALLOCATED; in thread_0_entry() [all …]
|
D | netx_udp_fragmentation_processing_test.c | 2200 NX_PACKET *my_packet; in thread_0_entry() local 2232 status = nx_udp_socket_receive(&socket_0, &my_packet, 1 * NX_IP_PERIODIC_RATE); in thread_0_entry() 2236 nx_packet_release(my_packet); in thread_0_entry() 2239 status = nx_udp_socket_receive(&socket_0, &my_packet, 1 * NX_IP_PERIODIC_RATE); in thread_0_entry() 2243 nx_packet_release(my_packet); in thread_0_entry() 2262 NX_PACKET *my_packet; in thread_1_entry() local 2265 status = nx_packet_allocate(&pool_0, &my_packet, 0, NX_NO_WAIT); in thread_1_entry() 2266 …status += nx_packet_data_append(my_packet, (void*)(pkt2 + 14), sizeof(pkt2) - 14, &pool_0, NX_NO_W… in thread_1_entry() 2267 _nx_ip_packet_deferred_receive(&ip_0, my_packet); in thread_1_entry() 2270 status = nx_packet_allocate(&pool_0, &my_packet, 0, NX_NO_WAIT); in thread_1_entry() [all …]
|
D | netx_ipv6_invalid_packet_receive_test.c | 159 NX_PACKET *my_packet; in ntest_0_entry() local 181 …status = nxd_icmp_ping(&ip_0, &global_address_1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 28, &my_packet, NX_… in ntest_0_entry() 184 if ((status == NX_SUCCESS) || (my_packet)) in ntest_0_entry() 191 status = nx_packet_allocate(&pool_0, &my_packet, NX_IPv6_PACKET, 5 * NX_IP_PERIODIC_RATE); in ntest_0_entry() 194 memcpy(my_packet -> nx_packet_prepend_ptr, &pkt1[14 + 40], sizeof(pkt1) - 14 - 40); in ntest_0_entry() 197 my_packet -> nx_packet_length = sizeof(pkt1) - 14 - 40; in ntest_0_entry() 198 …my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_l… in ntest_0_entry() 201 my_packet -> nx_packet_address.nx_packet_interface_ptr = &ip_0.nx_ip_interface[0]; in ntest_0_entry() 203 status = _nx_ipv6_process_routing_option(&ip_0, my_packet); in ntest_0_entry() 216 status = _nx_ipv6_process_fragment_option(&ip_0, my_packet); in ntest_0_entry() [all …]
|
D | netx_ip_address_set_test.c | 110 NX_PACKET *my_packet; in ntest_0_entry() local 149 …ping(&ip_1, IP_ADDRESS(4, 3, 2, 91), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 28, &my_packet, NX_IP_PERIODIC_… in ntest_0_entry() 152 if ((status != NX_NO_RESPONSE) || (my_packet)) in ntest_0_entry() 160 …ing(&ip_1, IP_ADDRESS(4, 3, 2, 110), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 28, &my_packet, NX_IP_PERIODIC_… in ntest_0_entry() 161 status += nx_packet_length_get(my_packet, &my_packet_length); in ntest_0_entry() 162 if((status != NX_SUCCESS) || (my_packet == NX_NULL) || (my_packet_length != 28)) in ntest_0_entry() 168 …ping(&ip_1, IP_ADDRESS(1, 2, 3, 14), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 28, &my_packet, NX_IP_PERIODIC_… in ntest_0_entry() 169 if((status != NX_SUCCESS) || (my_packet == NX_NULL) || (my_packet -> nx_packet_length != 28)) in ntest_0_entry() 177 …_ping(&ip_0, IP_ADDRESS(4, 3, 2, 9), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 28, &my_packet, NX_IP_PERIODIC_… in ntest_0_entry() 180 if ((status != NX_NO_RESPONSE) || (my_packet)) in ntest_0_entry() [all …]
|
D | netx_icmp_branch_test.c | 121 NX_PACKET *my_packet[2]; in thread_0_entry() local 142 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 143 nx_packet_data_append(my_packet[0], "abcdefghijklmnopqrstuvwxyz", 26, &pool_0, NX_NO_WAIT); in thread_0_entry() 148 _nx_icmp_packet_receive(&ip_0, my_packet[0]); in thread_0_entry() 152 nx_packet_release(my_packet[0]); in thread_0_entry() 154 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() 155 nx_packet_data_append(my_packet[0], "abcdefghijklmnopqrstuvwxyz", 26, &pool_0, NX_NO_WAIT); in thread_0_entry() 159 _nx_icmp_packet_receive(&ip_0, my_packet[0]); in thread_0_entry() 163 nx_packet_release(my_packet[0]); in thread_0_entry() 189 nx_packet_allocate(&pool_0, &my_packet[0], 0, NX_NO_WAIT); in thread_0_entry() [all …]
|
/NetX-Duo-v6.4.1/test/regression/nat_test/ |
D | netx_nat_udp_test.c | 282 NX_PACKET *my_packet; in thread_0_entry() local 338 status = nx_packet_allocate(&nat_packet_pool, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 348 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 351 my_packet -> nx_packet_length = 28; in thread_0_entry() 352 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() 355 status = nx_udp_socket_send(&local_socket, my_packet, NX_NAT_EXTERNAL_HOST, 0x89); in thread_0_entry() 373 status = nx_packet_allocate(&nat_packet_pool, &my_packet, NX_UDP_PACKET, TX_WAIT_FOREVER); in thread_0_entry() 383 memcpy(my_packet -> nx_packet_prepend_ptr, "ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 28); in thread_0_entry() 386 my_packet -> nx_packet_length = 28; in thread_0_entry() 387 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 28; in thread_0_entry() [all …]
|
/NetX-Duo-v6.4.1/test/regression/ftp_test/ |
D | netx_ftp_access_control_commands_03_test.c | 161 NX_PACKET *my_packet; in client_thread_entry() local 208 status = nx_packet_allocate(&client_pool, &my_packet, NX_TCP_PACKET, NX_IP_PERIODIC_RATE); in client_thread_entry() 213 memcpy(my_packet -> nx_packet_prepend_ptr, "USER name1", 10); in client_thread_entry() 215 *(my_packet -> nx_packet_prepend_ptr + 10) = 13; in client_thread_entry() 216 *(my_packet -> nx_packet_prepend_ptr + 11) = 10; in client_thread_entry() 219 my_packet -> nx_packet_length = 12; in client_thread_entry() 220 my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + 12; in client_thread_entry() 222 …status = nx_tcp_socket_send(&(ftp_client.nx_ftp_client_control_socket), my_packet, NX_IP_PERIODIC… in client_thread_entry() 226 …status = nx_tcp_socket_receive(&(ftp_client.nx_ftp_client_control_socket), &my_packet, NX_IP_PERI… in client_thread_entry() 231 if(memcmp(my_packet->nx_packet_prepend_ptr,"33",2)) in client_thread_entry() [all …]
|
/NetX-Duo-v6.4.1/test/regression/dhcp_test/ |
D | netx_dhcp_client_server_source_port_test.c | 323 NX_PACKET *my_packet; in my_packet_process() local 342 …status = nx_packet_allocate(ip_ptr -> nx_ip_default_packet_pool, &my_packet, 0, NX_WAIT_FOREVER); in my_packet_process() 352 my_packet -> nx_packet_length = sizeof(pkt2) - 14; in my_packet_process() 353 memcpy(my_packet -> nx_packet_prepend_ptr + 16, pkt2 + 14, my_packet -> nx_packet_length); in my_packet_process() 354 …my_packet -> nx_packet_append_ptr = my_packet -> nx_packet_prepend_ptr + my_packet -> nx_packet_le… in my_packet_process() 356 my_packet -> nx_packet_prepend_ptr += 16; in my_packet_process() 357 my_packet -> nx_packet_append_ptr += 16; in my_packet_process() 365 …status = nx_packet_allocate(ip_ptr -> nx_ip_default_packet_pool, &my_packet, 0, NX_WAIT_FOREVER); in my_packet_process() 375 my_packet -> nx_packet_length = sizeof(pkt4) - 14; in my_packet_process() 376 memcpy(my_packet -> nx_packet_prepend_ptr + 16, pkt4 + 14, my_packet -> nx_packet_length); in my_packet_process() [all …]
|