Home
last modified time | relevance | path

Searched refs:dest_ip (Results 1 – 25 of 64) sorted by relevance

123

/NetX-Duo-v6.4.1/test/regression/netxduo_test/
Dnetx_dest_table_add_fail_test.c116 NXD_ADDRESS dest_ip; in ntest_0_entry() local
145 dest_ip.nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry()
146 dest_ip.nxd_ip_address.v6[0] = 0x20010000; in ntest_0_entry()
147 dest_ip.nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry()
148 dest_ip.nxd_ip_address.v6[2] = 0x00000000; in ntest_0_entry()
149 dest_ip.nxd_ip_address.v6[3] = i + 1; in ntest_0_entry()
152 …status = _nx_nd_cache_add(&ip_0, dest_ip.nxd_ip_address.v6, &ip_0.nx_ip_interface[0], mac_address, in ntest_0_entry()
173 dest_ip.nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry()
174 dest_ip.nxd_ip_address.v6[0] = 0x20010000; in ntest_0_entry()
175 dest_ip.nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry()
[all …]
Dnetx_nd_cache_add_test.c137 NXD_ADDRESS dest_ip; in ntest_0_entry() local
247 dest_ip.nxd_ip_version = NX_IP_VERSION_V6; in ntest_0_entry()
248 dest_ip.nxd_ip_address.v6[0] = 0x20010000; in ntest_0_entry()
249 dest_ip.nxd_ip_address.v6[1] = 0x00000000; in ntest_0_entry()
250 dest_ip.nxd_ip_address.v6[2] = 0x00000000; in ntest_0_entry()
251 dest_ip.nxd_ip_address.v6[3] = 0x10000003; in ntest_0_entry()
266 dest_ip.nxd_ip_address.v6[3] += 1; in ntest_0_entry()
270 …status = _nx_nd_cache_add(&ip_0, &dest_ip.nxd_ip_address.v6[0], &ip_0.nx_ip_interface[0], &mac_add… in ntest_0_entry()
288 dest_ip.nxd_ip_address.v6[3] += 1; in ntest_0_entry()
292 …status = _nx_nd_cache_add(&ip_0, &dest_ip.nxd_ip_address.v6[0], &ip_0.nx_ip_interface[0], &mac_add… in ntest_0_entry()
[all …]
Dnetx_checksum_test.c233 ULONG dest_ip[4]; in verify_checksum() local
260 dest_ip[0] = ip_header_ptr -> nx_ip_header_destination_ip; in verify_checksum()
262 NX_CHANGE_ULONG_ENDIAN(dest_ip[0]); in verify_checksum()
276 COPY_IPV6_ADDRESS(ipv6_header -> nx_ip_header_destination_ip, dest_ip); in verify_checksum()
278 _nx_ipv6_address_change_endian(dest_ip); in verify_checksum()
297 source_ip, dest_ip); in verify_checksum()
307 dest_ip[0] = ip_header_ptr -> nx_ip_header_destination_ip; in verify_checksum()
309 NX_CHANGE_ULONG_ENDIAN(dest_ip[0]); in verify_checksum()
310 checksum = _nx_tcp_checksum(pkt_ptr, source_ip[0], dest_ip[0]); in verify_checksum()
Dnetx_ipv6_hop_by_hop_option_error_test.c227 ULONG *source_ip, *dest_ip; in icmp_checksum_compute() local
235 dest_ip = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr + 24); in icmp_checksum_compute()
237 NX_IPV6_ADDRESS_CHANGE_ENDIAN(dest_ip); in icmp_checksum_compute()
251 source_ip, dest_ip); in icmp_checksum_compute()
258 NX_IPV6_ADDRESS_CHANGE_ENDIAN(dest_ip); in icmp_checksum_compute()
Dnetx_icmpv6_echo_reply_test.c237 ULONG *source_ip, *dest_ip; in icmp_checksum_compute() local
249 dest_ip = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr - 16); in icmp_checksum_compute()
251 NX_IPV6_ADDRESS_CHANGE_ENDIAN(dest_ip); in icmp_checksum_compute()
261 source_ip, dest_ip); in icmp_checksum_compute()
268 NX_IPV6_ADDRESS_CHANGE_ENDIAN(dest_ip); in icmp_checksum_compute()
Dnetx_icmpv6_echo_request_test.c238 ULONG *source_ip, *dest_ip; in icmp_checksum_compute() local
250 dest_ip = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr - 16); in icmp_checksum_compute()
252 NX_IPV6_ADDRESS_CHANGE_ENDIAN(dest_ip); in icmp_checksum_compute()
262 source_ip, dest_ip); in icmp_checksum_compute()
269 NX_IPV6_ADDRESS_CHANGE_ENDIAN(dest_ip); in icmp_checksum_compute()
Dnetx_2_17_test.c282 ULONG *source_ip, *dest_ip; in my_tcp_packet_receive_2_17() local
285 ULONG source_ip, dest_ip; in my_tcp_packet_receive_2_17() local
310 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_tcp_packet_receive_2_17()
315 source_ip, dest_ip); in my_tcp_packet_receive_2_17()
319 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_tcp_packet_receive_2_17()
321 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_tcp_packet_receive_2_17()
Dnetx_icmpv6_destination_table_periodic_test.c679 NXD_ADDRESS dest_ip; in thread_0_entry() local
702 dest_ip.nxd_ip_version = NX_IP_VERSION_V6; in thread_0_entry()
703 dest_ip.nxd_ip_address.v6[0] = 0xfe800000; in thread_0_entry()
704 dest_ip.nxd_ip_address.v6[1] = 0x00000000; in thread_0_entry()
705 dest_ip.nxd_ip_address.v6[2] = 0x020000ff; in thread_0_entry()
706 dest_ip.nxd_ip_address.v6[3] = 0xfe000100; in thread_0_entry()
715 status = nxd_nd_cache_entry_set(&ip_0, dest_ip.nxd_ip_address.v6, 0, mac); in thread_0_entry()
Dnetx_9_27_test.c277 ULONG *source_ip, *dest_ip; in my_packet_process_9_27() local
279 ULONG source_ip, dest_ip; in my_packet_process_9_27() local
315 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_9_27()
319 source_ip, dest_ip); in my_packet_process_9_27()
322 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_9_27()
324 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_9_27()
Dnetx_12_02_test.c295 ULONG *source_ip, *dest_ip; in my_packet_process_12_02() local
297 ULONG source_ip, dest_ip; in my_packet_process_12_02() local
332 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_12_02()
336 source_ip, dest_ip); in my_packet_process_12_02()
339 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_12_02()
341 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_12_02()
Dnetx_12_03_test.c308 ULONG *source_ip, *dest_ip; in my_packet_process_12_03() local
310 ULONG source_ip, dest_ip; in my_packet_process_12_03() local
347 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_12_03()
351 source_ip, dest_ip); in my_packet_process_12_03()
356 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_12_03()
358 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_12_03()
Dnetx_12_19_test.c320 ULONG *source_ip, *dest_ip; in my_packet_process_12_19() local
322 ULONG source_ip, dest_ip; in my_packet_process_12_19() local
359 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_12_19()
363 source_ip, dest_ip); in my_packet_process_12_19()
366 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_12_19()
368 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_12_19()
Dnetx_23_02_01_test.c272 ULONG *source_ip, *dest_ip; in my_packet_process_23_02_01() local
275 ULONG source_ip, dest_ip; in my_packet_process_23_02_01() local
366 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_23_02_01()
370 source_ip, dest_ip); in my_packet_process_23_02_01()
373 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_23_02_01()
375 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_23_02_01()
Dnetx_23_02_02_test.c276 ULONG *source_ip, *dest_ip; in my_packet_process_23_02_02() local
279 ULONG source_ip, dest_ip; in my_packet_process_23_02_02() local
371 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_23_02_02()
375 source_ip, dest_ip); in my_packet_process_23_02_02()
378 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_23_02_02()
380 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_23_02_02()
Dnetx_8_18_test.c310 ULONG *source_ip, *dest_ip; in my_packet_process_8_18() local
313 ULONG source_ip, dest_ip; in my_packet_process_8_18() local
372 dest_ip = &ip_header_ptr -> nx_ip_header_destination_ip; in my_packet_process_8_18()
376 source_ip, dest_ip); in my_packet_process_8_18()
382 dest_ip = ip_header_ptr -> nx_ip_header_destination_ip; in my_packet_process_8_18()
384 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_8_18()
Dnetx_12_01_test.c290 ULONG *source_ip, *dest_ip; in my_packet_process_12_01() local
292 ULONG source_ip, dest_ip; in my_packet_process_12_01() local
328 dest_ip = &client_socket.nx_tcp_socket_connect_ip.nxd_ip_address.v4; in my_packet_process_12_01()
332 source_ip, dest_ip); in my_packet_process_12_01()
336 dest_ip = client_socket.nx_tcp_socket_connect_ip; in my_packet_process_12_01()
338 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in my_packet_process_12_01()
/NetX-Duo-v6.4.1/common/src/
Dnx_ipv6_util.c700 INT CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS(ULONG *dest_ip, ULONG *myip) in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS() argument
706 if ((dest_ip[0] == (ULONG)0xFF020000) && (dest_ip[1] == (ULONG)0x0) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
707 (dest_ip[2] == (ULONG)0x00000001) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
708 (dest_ip[3] == ((myip[3] & (ULONG)0x00FFFFFF) | (ULONG)0xFF000000))) in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
712 else if ((dest_ip[0] == (ULONG)0xFF020000) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
713 (dest_ip[1] == (ULONG)0x0) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
714 (dest_ip[2] == (ULONG)0x0) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
715 ((dest_ip[3] == (ULONG)0x00000001) || (dest_ip[3] == (ULONG)0x00010002))) in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
720 else if ((dest_ip[0] == (ULONG)0xFF030000) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
721 (dest_ip[1] == (ULONG)0x0) && in CHECK_IPV6_SOLICITED_NODE_MCAST_ADDRESS()
[all …]
Dnx_nd_cache_find_entry.c82 ULONG *dest_ip, ND_CACHE_ENTRY **nd_cache_entry) in _nx_nd_cache_find_entry() argument
91 index = (UINT)((dest_ip[0] + dest_ip[1] + dest_ip[2] + dest_ip[3]) % in _nx_nd_cache_find_entry()
99 … (CHECK_IPV6_ADDRESSES_SAME(&ip_ptr -> nx_ipv6_nd_cache[index].nx_nd_cache_dest_ip[0], dest_ip))) in _nx_nd_cache_find_entry()
Dnxde_nd_cache_entry_delete.c81 UINT _nxde_nd_cache_entry_delete(NX_IP *ip_ptr, ULONG *dest_ip) in _nxde_nd_cache_entry_delete() argument
92 if (dest_ip == NX_NULL) in _nxde_nd_cache_entry_delete()
101 return(_nxd_nd_cache_entry_delete(ip_ptr, dest_ip)); in _nxde_nd_cache_entry_delete()
105 NX_PARAMETER_NOT_USED(dest_ip); in _nxde_nd_cache_entry_delete()
Dnx_nd_cache_add_entry.c97 UINT _nx_nd_cache_add_entry(NX_IP *ip_ptr, ULONG *dest_ip, in _nx_nd_cache_add_entry() argument
120 index = (UINT)((dest_ip[0] + dest_ip[1] + dest_ip[2] + dest_ip[3]) % in _nx_nd_cache_add_entry()
208 COPY_IPV6_ADDRESS(dest_ip, ip_ptr -> nx_ipv6_nd_cache[first_available].nx_nd_cache_dest_ip); in _nx_nd_cache_add_entry()
Dnxd_nd_cache_entry_delete.c77 UINT _nxd_nd_cache_entry_delete(NX_IP *ip_ptr, ULONG *dest_ip) in _nxd_nd_cache_entry_delete() argument
87 …NX_TRACE_IN_LINE_INSERT(NXD_TRACE_ND_CACHE_DELETE, dest_ip[3], 0, 0, 0, NX_TRACE_ARP_EVENTS, 0, 0); in _nxd_nd_cache_entry_delete()
90 if (_nx_nd_cache_find_entry(ip_ptr, dest_ip, &entry) != NX_SUCCESS) in _nxd_nd_cache_entry_delete()
108 NX_PARAMETER_NOT_USED(dest_ip); in _nxd_nd_cache_entry_delete()
Dnxde_nd_cache_entry_set.c87 UINT _nxde_nd_cache_entry_set(NX_IP *ip_ptr, ULONG *dest_ip, UINT interface_index, CHAR *mac) in _nxde_nd_cache_entry_set() argument
92 …if ((ip_ptr == NX_NULL) || (ip_ptr -> nx_ip_id != NX_IP_ID) || (dest_ip == NX_NULL) || (mac == NX_… in _nxde_nd_cache_entry_set()
107 return(_nxd_nd_cache_entry_set(ip_ptr, dest_ip, interface_index, mac)); in _nxde_nd_cache_entry_set()
111 NX_PARAMETER_NOT_USED(dest_ip); in _nxde_nd_cache_entry_set()
Dnxd_nd_cache_entry_set.c82 UINT _nxd_nd_cache_entry_set(NX_IP *ip_ptr, ULONG *dest_ip, UINT interface_index, CHAR *mac) in _nxd_nd_cache_entry_set() argument
91 …NX_TRACE_IN_LINE_INSERT(NXD_TRACE_ND_CACHE_ENTRY_SET, dest_ip[3], ((mac[0] << 16) | mac[1]), ((mac… in _nxd_nd_cache_entry_set()
95 …status = _nx_nd_cache_add(ip_ptr, dest_ip, ip_ptr -> nx_ipv6_address[interface_index].nxd_ipv6_add… in _nxd_nd_cache_entry_set()
101 NX_PARAMETER_NOT_USED(dest_ip); in _nxd_nd_cache_entry_set()
Dnx_nd_cache_add.c97 UINT _nx_nd_cache_add(NX_IP *ip_ptr, ULONG *dest_ip, NX_INTERFACE *if_ptr, CHAR *mac, INT IsStatic, in _nx_nd_cache_add() argument
110 if (_nx_nd_cache_find_entry(ip_ptr, dest_ip, &entry) != NX_SUCCESS) in _nx_nd_cache_add()
114 if (_nx_nd_cache_add_entry(ip_ptr, dest_ip, iface_address, &entry) != NX_SUCCESS) in _nx_nd_cache_add()
/NetX-Duo-v6.4.1/common/inc/
Dnx_nd_cache.h111 UINT _nx_nd_cache_add(NX_IP *ip_ptr, ULONG *dest_ip, NX_INTERFACE *if_index, CHAR *mac, INT IsStati…
121 UINT _nx_nd_cache_find_entry(NX_IP *ip_ptr, ULONG *dest_ip, ND_CACHE_ENTRY **entry);
124 UINT _nx_nd_cache_add_entry(NX_IP *ip_ptr, ULONG *dest_ip, NXD_IPV6_ADDRESS *nxd_address, ND_CACHE_…
141 UINT _nxd_nd_cache_entry_delete(NX_IP *ip_ptr, ULONG *dest_ip);
142 UINT _nxde_nd_cache_entry_delete(NX_IP *ip_ptr, ULONG *dest_ip);
145 UINT _nxd_nd_cache_entry_set(NX_IP *ip_ptr, ULONG *dest_ip, UINT if_index, CHAR *mac);
146 UINT _nxde_nd_cache_entry_set(NX_IP *ip_ptr, ULONG *dest_ip, UINT if_index, CHAR *mac);

123