Lines Matching refs:protocol
67 static UINT _nx_nat_entry_create(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, ULONG local_ip_address,…
73 static UINT _nx_nat_find_available_port(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, USHORT *port);
74 static UINT _nx_nat_entry_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port);
75 static UINT _nx_nat_socket_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port);
76 static UINT _nx_nat_utility_get_source_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *sourc…
77 static UINT _nx_nat_utility_get_destination_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *…
796 … ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol) in _nxe_nat_inbound_entry_create() argument
809 if ((!local_ip_address) || (!protocol)) in _nxe_nat_inbound_entry_create()
817 …at_inbound_entry_create(nat_ptr, entry_ptr, local_ip_address, external_port, local_port, protocol); in _nxe_nat_inbound_entry_create()
877 … ULONG local_ip_address, USHORT external_port, USHORT local_port, UCHAR protocol) in _nx_nat_inbound_entry_create() argument
886 bound = _nx_nat_entry_port_verify(nat_ptr -> nx_nat_ip_ptr, protocol, external_port); in _nx_nat_inbound_entry_create()
900 bound = _nx_nat_socket_port_verify(nat_ptr -> nx_nat_ip_ptr, protocol, external_port); in _nx_nat_inbound_entry_create()
920 entry_ptr -> protocol = protocol; in _nx_nat_inbound_entry_create()
1176 UINT protocol; in _nx_nat_process_packet() local
1196 protocol = (ip_header_ptr -> nx_ip_header_word_2 >> 16) & 0xFF; in _nx_nat_process_packet()
1199 …if ((protocol != NX_PROTOCOL_ICMP) && (protocol != NX_PROTOCOL_UDP) && (protocol != NX_PROTOCOL_TC… in _nx_nat_process_packet()
1208 if (protocol == NX_PROTOCOL_ICMP) in _nx_nat_process_packet()
1212 else if (protocol == NX_PROTOCOL_UDP) in _nx_nat_process_packet()
1413 UCHAR protocol; in _nx_nat_process_inbound_packet() local
1422 protocol = (ip_header_ptr -> nx_ip_header_word_2 >> 16) & 0xFF; in _nx_nat_process_inbound_packet()
1427 translation_entry.protocol = protocol; in _nx_nat_process_inbound_packet()
1430 switch (protocol) in _nx_nat_process_inbound_packet()
2119 UCHAR protocol; in _nx_nat_process_outbound_packet() local
2128 protocol = (ip_header_ptr -> nx_ip_header_word_2 >> 16) & 0xFF; in _nx_nat_process_outbound_packet()
2134 translation_entry.protocol = protocol; in _nx_nat_process_outbound_packet()
2137 switch (protocol) in _nx_nat_process_outbound_packet()
2955 if ((entry_ptr -> protocol == NX_PROTOCOL_TCP) || (entry_ptr -> protocol == NX_PROTOCOL_UDP)) in _nx_nat_inbound_entry_find()
2959 _nx_nat_utility_get_source_port(packet_ptr, entry_ptr -> protocol, &entry_ptr -> peer_port); in _nx_nat_inbound_entry_find()
2963 …_nx_nat_utility_get_destination_port(packet_ptr, entry_ptr -> protocol, &entry_ptr -> external_por… in _nx_nat_inbound_entry_find()
3005 if (entry_ptr -> protocol == NX_PROTOCOL_TCP) in _nx_nat_inbound_entry_find()
3019 status = _nx_nat_entry_create(nat_ptr, entry_ptr -> protocol, in _nx_nat_inbound_entry_find()
3128 …_nx_nat_utility_get_source_port(packet_ptr, entry_ptr -> protocol, &(entry_ptr -> local_port)); … in _nx_nat_outbound_entry_find()
3131 if ((entry_ptr -> protocol == NX_PROTOCOL_TCP) || (entry_ptr -> protocol == NX_PROTOCOL_UDP)) in _nx_nat_outbound_entry_find()
3135 …_nx_nat_utility_get_destination_port(packet_ptr, entry_ptr -> protocol, &(entry_ptr -> peer_port)); in _nx_nat_outbound_entry_find()
3149 … status = _nx_nat_find_available_port(nat_ptr, entry_ptr -> protocol, &entry_ptr -> external_port); in _nx_nat_outbound_entry_find()
3159 if (entry_ptr -> protocol == NX_PROTOCOL_TCP) in _nx_nat_outbound_entry_find()
3173 status = _nx_nat_entry_create(nat_ptr, entry_ptr -> protocol, in _nx_nat_outbound_entry_find()
3265 static UINT _nx_nat_entry_create(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, in _nx_nat_entry_create() argument
3315 …if ((entry_ptr -> translation_type == NX_NAT_STATIC_ENTRY) || (entry_ptr -> protocol == NX_PROTOCO… in _nx_nat_entry_create()
3400 insert_entry_ptr -> protocol = protocol; in _nx_nat_entry_create()
3595 if (entry_ptr -> protocol != entry_to_match -> protocol) in _nx_nat_entry_find()
3879 static UINT _nx_nat_utility_get_destination_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *pe… in _nx_nat_utility_get_destination_port() argument
3889 if (protocol == NX_PROTOCOL_TCP) in _nx_nat_utility_get_destination_port()
3899 else if (protocol == NX_PROTOCOL_UDP) in _nx_nat_utility_get_destination_port()
3909 else if (protocol == NX_PROTOCOL_ICMP) in _nx_nat_utility_get_destination_port()
3989 static UINT _nx_nat_utility_get_source_port(NX_PACKET *packet_ptr, UCHAR protocol, USHORT *source_… in _nx_nat_utility_get_source_port() argument
3997 if (protocol == NX_PROTOCOL_TCP) in _nx_nat_utility_get_source_port()
4006 else if (protocol == NX_PROTOCOL_UDP) in _nx_nat_utility_get_source_port()
4015 else if (protocol == NX_PROTOCOL_ICMP) in _nx_nat_utility_get_source_port()
4092 static UINT _nx_nat_find_available_port(NX_NAT_DEVICE *nat_ptr, UCHAR protocol, USHORT *port) in _nx_nat_find_available_port() argument
4102 if (protocol == NX_PROTOCOL_TCP) in _nx_nat_find_available_port()
4107 else if(protocol == NX_PROTOCOL_UDP) in _nx_nat_find_available_port()
4136 if (entry_ptr -> protocol == protocol) in _nx_nat_find_available_port()
4155 ((protocol == NX_PROTOCOL_TCP) || (protocol == NX_PROTOCOL_UDP))) in _nx_nat_find_available_port()
4159 bound = _nx_nat_socket_port_verify(nat_ptr -> nx_nat_ip_ptr, protocol, *port); in _nx_nat_find_available_port()
4226 static UINT _nx_nat_entry_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port) in _nx_nat_entry_port_verify() argument
4245 if (entry_ptr -> protocol == protocol) in _nx_nat_entry_port_verify()
4312 static UINT _nx_nat_socket_port_verify(NX_IP *ip_ptr, UINT protocol, UINT port) in _nx_nat_socket_port_verify() argument
4327 if (protocol == NX_PROTOCOL_TCP) in _nx_nat_socket_port_verify()
4448 UINT protocol; in _nx_nat_packet_is_icmp_error_message() local
4463 protocol = (ip_header_ptr -> nx_ip_header_word_2 >> 16) & 0xFF; in _nx_nat_packet_is_icmp_error_message()
4466 if (protocol == NX_PROTOCOL_ICMP) in _nx_nat_packet_is_icmp_error_message()