Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 78) sorted by relevance

1234

/NetX-Duo-v6.4.1/test/regression/nat_test/
Dnetx_nat_tcp_remove_oldest_udp_entry_test.c92 static UINT add_nat_entry(UINT protocol, ULONG local_ip_address , ULONG peer_ip_address , UINT loca…
254 UINT protocol; in thread_client_entry() local
291 protocol= NX_PROTOCOL_TCP; in thread_client_entry()
311 protocol = NX_PROTOCOL_UDP; in thread_client_entry()
317 protocol = NX_PROTOCOL_TCP; in thread_client_entry()
336 protocol = NX_PROTOCOL_UDP; in thread_client_entry()
342 protocol = NX_PROTOCOL_TCP; in thread_client_entry()
363 protocol = NX_PROTOCOL_TCP; in thread_client_entry()
369 protocol = NX_PROTOCOL_UDP; in thread_client_entry()
391 protocol = NX_PROTOCOL_TCP; in thread_client_entry()
[all …]
Dnetx_nat_entry_removed_after_timeout_test.c398 search_entry.protocol = NX_PROTOCOL_TCP; in thread_client_entry()
409 search_entry.protocol = NX_PROTOCOL_UDP; in thread_client_entry()
421 search_entry.protocol = NX_PROTOCOL_UDP; in thread_client_entry()
452 if ((search_entry.protocol == entry_ptr -> protocol) && in thread_client_entry()
488 if ((search_entry.protocol == entry_ptr -> protocol) && in thread_client_entry()
/NetX-Duo-v6.4.1/common/src/
Dnx_ip_dispatch_process.c106 UINT _nx_ip_dispatch_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT protocol) in _nx_ip_dispatch_process() argument
152 switch (protocol) in _nx_ip_dispatch_process()
421 if (_nx_ipsec_sa_ingress_lookup(ip_ptr, &src_addr, &dest_addr, 0, (UCHAR)protocol, in _nx_ip_dispatch_process()
426 if (protocol == NX_PROTOCOL_ICMPV6) in _nx_ip_dispatch_process()
449 (UCHAR)protocol, in _nx_ip_dispatch_process()
463 … if ((ip_ptr -> nx_ip_raw_ip_processing)(ip_ptr, protocol << 16, packet_ptr) == NX_SUCCESS) in _nx_ip_dispatch_process()
471 if (protocol == NX_PROTOCOL_TCP) in _nx_ip_dispatch_process()
500 (protocol == NX_PROTOCOL_ICMPV6)) in _nx_ip_dispatch_process()
521 (protocol == NX_PROTOCOL_ICMP)) in _nx_ip_dispatch_process()
538 (protocol == NX_PROTOCOL_IGMP)) in _nx_ip_dispatch_process()
[all …]
Dnxe_ip_max_payload_size_find.c100 ULONG protocol, in _nxe_ip_max_payload_size_find() argument
123 if ((protocol != NX_PROTOCOL_UDP) && in _nxe_ip_max_payload_size_find()
124 (protocol != NX_PROTOCOL_TCP)) in _nxe_ip_max_payload_size_find()
133 protocol, start_offset_ptr, payload_length_ptr)); in _nxe_ip_max_payload_size_find()
Dnxde_ip_raw_packet_send.c91 NXD_ADDRESS *destination_ip, ULONG protocol, UINT ttl, ULONG tos) in _nxde_ip_raw_packet_send() argument
126 if ((protocol & 0x000000FF) != protocol) in _nxde_ip_raw_packet_send()
176 _nxd_ip_raw_packet_source_send(ip_ptr, packet_ptr, destination_ip, 0, protocol, ttl, tos); in _nxde_ip_raw_packet_send()
Dnxe_udp_packet_info_extract.c86 UINT *protocol, UINT *port, UINT *interface_index) in _nxe_udp_packet_info_extract() argument
100 status = _nx_udp_packet_info_extract(packet_ptr, ip_address, protocol, port, interface_index); in _nxe_udp_packet_info_extract()
107 NX_PARAMETER_NOT_USED(protocol); in _nxe_udp_packet_info_extract()
Dnx_ip_checksum_compute.c79 USHORT _nx_ip_checksum_compute(NX_PACKET *packet_ptr, ULONG protocol, in _nx_ip_checksum_compute() argument
99 if ((protocol == NX_PROTOCOL_UDP) || in _nx_ip_checksum_compute()
101 (protocol == NX_PROTOCOL_ICMPV6) || in _nx_ip_checksum_compute()
103 (protocol == NX_PROTOCOL_TCP)) in _nx_ip_checksum_compute()
108 checksum = protocol; in _nx_ip_checksum_compute()
Dnx_udp_packet_info_extract.c80 UINT *protocol, UINT *port, UINT *interface_index) in _nx_udp_packet_info_extract() argument
89 …status = _nxd_udp_packet_info_extract(packet_ptr, &nxd_ip_address, protocol, port, interface_index… in _nx_udp_packet_info_extract()
112 NX_PARAMETER_NOT_USED(protocol); in _nx_udp_packet_info_extract()
Dnx_ipv6_header_add.c92 ULONG protocol, ULONG payload_size, ULONG hop_limit, in _nx_ipv6_header_add() argument
149 …status = _nx_ipsec_ip_output_packet_process(ip_ptr, &packet_ptr, protocol, payload_size, (&payload… in _nx_ipv6_header_add()
168 protocol = (((NX_IPSEC_SA *)packet_ptr -> nx_packet_ipsec_sa_ptr) -> nx_ipsec_sa_protocol); in _nx_ipv6_header_add()
209 if (!((protocol == NX_PROTOCOL_ICMPV6) && in _nx_ipv6_header_add()
243 ip_header_ptr -> nx_ip_header_word_1 = (payload_size << 16) | (protocol << 8) | (hop_limit); in _nx_ipv6_header_add()
307 … status = ip_ptr -> nx_ip_ipsec_authentication_header_transmit(ip_ptr, &packet_ptr, protocol, 1); in _nx_ipv6_header_add()
Dnxd_ipv6_raw_packet_send_internal.c82 ULONG protocol) in _nxd_ipv6_raw_packet_send_internal() argument
95 …NX_TRACE_IN_LINE_INSERT(NXD_TRACE_IPV6_RAW_PACKET_SEND, ip_ptr, ip_address_lsw, protocol, packet_p… in _nxd_ipv6_raw_packet_send_internal()
107 …_nx_ipv6_packet_send(ip_ptr, packet_ptr, protocol, packet_ptr -> nx_packet_length, ip_ptr -> nx_ip… in _nxd_ipv6_raw_packet_send_internal()
Dnx_ip_max_payload_size_find.c105 ULONG protocol, in _nx_ip_max_payload_size_find() argument
182 if (protocol == NX_PROTOCOL_TCP) in _nx_ip_max_payload_size_find()
187 else if (protocol == NX_PROTOCOL_UDP) in _nx_ip_max_payload_size_find()
206 (UCHAR)protocol, src_port, dest_port, in _nx_ip_max_payload_size_find()
213 (UCHAR)protocol, src_port, dest_port, in _nx_ip_max_payload_size_find()
Dnxd_ip_raw_packet_source_send.c89 ULONG protocol, in _nxd_ip_raw_packet_source_send() argument
126 … destination_ip -> nxd_ip_address.v4, (tos & 0xFF) << 16, (ttl & 0xFF), protocol << 16, NX_FRAGMEN… in _nxd_ip_raw_packet_source_send()
135 status = _nxd_ipv6_raw_packet_send_internal(ip_ptr, packet_ptr, destination_ip, protocol); in _nxd_ip_raw_packet_source_send()
Dnx_ip_raw_packet_processing.c78 UINT _nx_ip_raw_packet_processing(NX_IP *ip_ptr, ULONG protocol, NX_PACKET *packet_ptr) in _nx_ip_raw_packet_processing() argument
91 …if ((ip_ptr -> nx_ip_raw_packet_filter)(ip_ptr, (protocol >> 16) & 0xFF, packet_ptr) != NX_SUCCESS) in _nx_ip_raw_packet_processing()
101 NX_PARAMETER_NOT_USED(protocol); in _nx_ip_raw_packet_processing()
Dnx_ip_packet_send.c93 ULONG protocol, ULONG fragment, ULONG next_hop_address) in _nx_ip_packet_send() argument
178 …status = _nx_ipsec_ip_output_packet_process(ip_ptr, &packet_ptr, (protocol >> 16), payload_size, &… in _nx_ip_packet_send()
199protocol = (ULONG)((((NX_IPSEC_SA *)packet_ptr -> nx_packet_ipsec_sa_ptr) -> nx_ipsec_sa_protocol)… in _nx_ip_packet_send()
216 destination_ip, type_of_service, time_to_live, protocol, fragment); in _nx_ip_packet_send()
335 … status = ip_ptr -> nx_ip_ipsec_authentication_header_transmit(ip_ptr, &packet_ptr, protocol, 1); in _nx_ip_packet_send()
Dnxd_ip_raw_packet_send.c80 NXD_ADDRESS *destination_ip, ULONG protocol, UINT ttl, ULONG tos) in _nxd_ip_raw_packet_send() argument
85 …status = _nxd_ip_raw_packet_source_send(ip_ptr, packet_ptr, destination_ip, 0, protocol, ttl, tos); in _nxd_ip_raw_packet_send()
Dnxde_udp_packet_info_extract.c85 UINT *protocol, UINT *port, UINT *interface_index) in _nxde_udp_packet_info_extract() argument
97 status = _nxd_udp_packet_info_extract(packet_ptr, ip_address, protocol, port, interface_index); in _nxde_udp_packet_info_extract()
Dnxd_udp_packet_info_extract.c83 UINT *protocol, UINT *port, UINT *interface_index) in _nxd_udp_packet_info_extract() argument
158 if (protocol != NX_NULL) in _nxd_udp_packet_info_extract()
160 *protocol = 0x11; in _nxd_udp_packet_info_extract()
Dnx_ip_header_add.c91 ULONG type_of_service, ULONG time_to_live, ULONG protocol, ULONG fragment) in _nx_ip_header_add() argument
107 if ((protocol == NX_IP_IGMP) && (ip_ptr -> nx_ip_igmp_router_version == NX_IGMP_HOST_VERSION_2)) in _nx_ip_header_add()
168 ip_header_ptr -> nx_ip_header_word_2 = ((time_to_live << NX_IP_TIME_TO_LIVE_SHIFT) | protocol); in _nx_ip_header_add()
Dnxde_ip_raw_packet_source_send.c87 … NXD_ADDRESS *destination_ip, UINT address_index, ULONG protocol, UINT ttl, ULONG tos) in _nxde_ip_raw_packet_source_send() argument
172 …d_ip_raw_packet_source_send(ip_ptr, packet_ptr, destination_ip, address_index, protocol, ttl, tos); in _nxde_ip_raw_packet_source_send()
/NetX-Duo-v6.4.1/addons/nat/
Dnx_nat.c66 static UINT _nx_nat_entry_create(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, ULONG local_ip_address,…
72 static UINT _nx_nat_find_available_port(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, USHORT *port);
73 static UINT _nx_nat_entry_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port);
74 static UINT _nx_nat_socket_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port);
75 static UINT _nx_nat_utility_get_source_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *sourc…
76 static UINT _nx_nat_utility_get_destination_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *…
795 … ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol) in _nxe_nat_inbound_entry_create() argument
808 if ((!local_ip_address) || (!protocol)) in _nxe_nat_inbound_entry_create()
816 …at_inbound_entry_create(nat_ptr, entry_ptr, local_ip_address, external_port, local_port, protocol); in _nxe_nat_inbound_entry_create()
876 … ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol) in _nx_nat_inbound_entry_create() argument
[all …]
Dnx_nat.h199 …UCHAR protocol; /* Packet's network sub pr… member
272 …N_ENTRY *entry_ptr, ULONG local_ip_address, UINT external_port, USHORT local_port, UCHAR protocol);
289 …ENTRY *entry_ptr, ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol);
290 …ENTRY *entry_ptr, ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol);
/NetX-Duo-v6.4.1/test/regression/netxduo_test/
Dnetx_checksum_test.c123 ULONG protocol; member
291 if(checksum_test_seq[index].protocol == NX_IP_VERSION_V4) in verify_checksum()
295 checksum = _nx_ip_checksum_compute(pkt_ptr, checksum_test_seq[index].protocol, in verify_checksum()
302 if(checksum_test_seq[index].protocol == NX_PROTOCOL_TCP) in verify_checksum()
312 else if(checksum_test_seq[index].protocol == NX_PROTOCOL_ICMP) in verify_checksum()
Dnetx_ip_static_route_find_test.c180 ULONG protocol; in my_packet_process() local
190 protocol = (ip_header_ptr -> nx_ip_header_word_2 >> 16) & 0xFF; in my_packet_process()
193 if(protocol == 1) in my_packet_process()
/NetX-Duo-v6.4.1/addons/websocket/
Dnx_websocket_client.h267 UCHAR *protocol, UINT protocol_length,UINT wait_option);
272 UCHAR *protocol, UINT protocol_length,UINT wait_option);
293 UCHAR *protocol, UINT protocol_length,UINT wait_option);
297 UCHAR *protocol, UINT protocol_length,UINT wait_option);
302 UCHAR *protocol, UINT protocol_length,UINT wait_option);
306 UCHAR *protocol, UINT protocol_length,UINT wait_option);
325 UCHAR *protocol, UINT protocol_length,UINT wait_option);
/NetX-Duo-v6.4.1/common/inc/
Dnx_ip.h110 USHORT _nx_ip_checksum_compute(NX_PACKET *packet_ptr, ULONG protocol, UINT data_length,
149 … UINT src_port, UINT dest_port, ULONG protocol, ULONG *start_offset_ptr,
156 …KET *packet_ptr, NXD_ADDRESS *destination_ip, UINT address_index, ULONG protocol, UINT ttl, ULONG …
165 UINT _nx_ip_raw_packet_processing(NX_IP *ip_ptr, ULONG protocol, NX_PACKET *packet_ptr);
167 NXD_ADDRESS *destination_ip, ULONG protocol, UINT ttl, ULONG tos);
203 … UINT src_port, UINT dest_port, ULONG protocol, ULONG *start_offset_ptr,
208 …KET *packet_ptr, NXD_ADDRESS *destination_ip, UINT address_index, ULONG protocol, UINT ttl, ULONG …
233 UINT _nx_ip_dispatch_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT protocol);

1234