Home
last modified time | relevance | path

Searched refs:tcp_header_ptr (Results 1 – 14 of 14) sorted by relevance

/NetX-Duo-v6.3.0/common/src/
Dnx_tcp_socket_state_syn_sent.c86 VOID _nx_tcp_socket_state_syn_sent(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr, NX_PA… in _nx_tcp_socket_state_syn_sent() argument
95 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_RST_BIT) in _nx_tcp_socket_state_syn_sent()
99 if ((tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) && in _nx_tcp_socket_state_syn_sent()
100 … (tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence)) in _nx_tcp_socket_state_syn_sent()
110 …RECEIVE, socket_ptr -> nx_tcp_socket_ip_ptr, socket_ptr, packet_ptr, tcp_header_ptr -> nx_tcp_sequ… in _nx_tcp_socket_state_syn_sent()
120 else if ((tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_SYN_BIT) && in _nx_tcp_socket_state_syn_sent()
121 (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) && in _nx_tcp_socket_state_syn_sent()
122 … (tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence)) in _nx_tcp_socket_state_syn_sent()
130 socket_ptr -> nx_tcp_socket_rx_sequence = tcp_header_ptr -> nx_tcp_sequence_number + 1; in _nx_tcp_socket_state_syn_sent()
133 …socket_ptr -> nx_tcp_socket_tx_window_advertised = tcp_header_ptr -> nx_tcp_header_word_3 & NX_LOW… in _nx_tcp_socket_state_syn_sent()
[all …]
Dnx_tcp_socket_state_ack_check.c98 UINT _nx_tcp_socket_state_ack_check(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) in _nx_tcp_socket_state_ack_check() argument
121 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) in _nx_tcp_socket_state_ack_check()
200 … if (tcp_header_ptr -> nx_tcp_sequence_number == (socket_ptr -> nx_tcp_socket_rx_sequence - 1)) in _nx_tcp_socket_state_ack_check()
213 if (tcp_header_ptr -> nx_tcp_acknowledgment_number == ending_tx_sequence) in _nx_tcp_socket_state_ack_check()
246 if (tcp_header_ptr -> nx_tcp_acknowledgment_number == starting_tx_sequence) in _nx_tcp_socket_state_ack_check()
254 if ((INT)((tcp_header_ptr -> nx_tcp_acknowledgment_number - 1) - in _nx_tcp_socket_state_ack_check()
264 …((INT)(tcp_header_ptr -> nx_tcp_acknowledgment_number - (socket_ptr -> nx_tcp_socket_previous_high… in _nx_tcp_socket_state_ack_check()
351 if ((tcp_header_ptr -> nx_tcp_acknowledgment_number < ending_packet_sequence) || in _nx_tcp_socket_state_ack_check()
352 (tcp_header_ptr -> nx_tcp_acknowledgment_number > ending_tx_sequence)) in _nx_tcp_socket_state_ack_check()
371 if (tcp_header_ptr -> nx_tcp_acknowledgment_number < starting_tx_sequence) in _nx_tcp_socket_state_ack_check()
[all …]
Dnx_tcp_packet_send_control.c96 NX_TCP_HEADER *tcp_header_ptr; in _nx_tcp_packet_send_control() local
211 tcp_header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_packet_send_control()
214tcp_header_ptr -> nx_tcp_header_word_0 = (((ULONG)(socket_ptr -> nx_tcp_socket_port)) << NX… in _nx_tcp_packet_send_control()
215 tcp_header_ptr -> nx_tcp_sequence_number = tx_sequence; in _nx_tcp_packet_send_control()
216 tcp_header_ptr -> nx_tcp_acknowledgment_number = ack_number; in _nx_tcp_packet_send_control()
217 tcp_header_ptr -> nx_tcp_header_word_3 = header_size | control_bits | window_size; in _nx_tcp_packet_send_control()
218 tcp_header_ptr -> nx_tcp_header_word_4 = 0; in _nx_tcp_packet_send_control()
226 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_0); in _nx_tcp_packet_send_control()
227 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_sequence_number); in _nx_tcp_packet_send_control()
228 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_acknowledgment_number); in _nx_tcp_packet_send_control()
[all …]
Dnx_tcp_packet_process.c109 NX_TCP_HEADER *tcp_header_ptr; in _nx_tcp_packet_process() local
239 tcp_header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_packet_process()
243 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_0); in _nx_tcp_packet_process()
244 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_sequence_number); in _nx_tcp_packet_process()
245 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_acknowledgment_number); in _nx_tcp_packet_process()
246 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_3); in _nx_tcp_packet_process()
247 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_4); in _nx_tcp_packet_process()
250 option_words = (tcp_header_ptr -> nx_tcp_header_word_3 >> 28) - 5; in _nx_tcp_packet_process()
322 port = (UINT)(tcp_header_ptr -> nx_tcp_header_word_0 & NX_LOWER_16_MASK); in _nx_tcp_packet_process()
325 source_port = (UINT)(tcp_header_ptr -> nx_tcp_header_word_0 >> NX_SHIFT_BY_16); in _nx_tcp_packet_process()
[all …]
Dnx_tcp_no_connection_reset.c84 …D _nx_tcp_no_connection_reset(NX_IP *ip_ptr, NX_PACKET *packet_ptr, NX_TCP_HEADER *tcp_header_ptr) in _nx_tcp_no_connection_reset() argument
171 …fake_socket.nx_tcp_socket_port = (UINT)(tcp_header_ptr -> nx_tcp_header_word_0 & NX_LOWER_16_MASK… in _nx_tcp_no_connection_reset()
172 …fake_socket.nx_tcp_socket_connect_port = (UINT)(tcp_header_ptr -> nx_tcp_header_word_0 >> NX_SHIFT… in _nx_tcp_no_connection_reset()
176 if (!(tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT)) in _nx_tcp_no_connection_reset()
179 …header_length = (tcp_header_ptr -> nx_tcp_header_word_3 >> NX_TCP_HEADER_SHIFT) * (ULONG)sizeof(UL… in _nx_tcp_no_connection_reset()
182tcp_header_ptr -> nx_tcp_sequence_number += (packet_ptr -> nx_packet_length - header_length); in _nx_tcp_no_connection_reset()
185 if (tcp_header_ptr -> nx_tcp_header_word_3 & (NX_TCP_SYN_BIT | NX_TCP_FIN_BIT)) in _nx_tcp_no_connection_reset()
189 tcp_header_ptr -> nx_tcp_sequence_number++; in _nx_tcp_no_connection_reset()
231 _nx_tcp_packet_send_rst(&fake_socket, tcp_header_ptr); in _nx_tcp_no_connection_reset()
Dnx_tcp_socket_state_last_ack.c75 VOID _nx_tcp_socket_state_last_ack(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) in _nx_tcp_socket_state_last_ack() argument
79 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) in _nx_tcp_socket_state_last_ack()
83 … if ((tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence) && in _nx_tcp_socket_state_last_ack()
84 (tcp_header_ptr -> nx_tcp_sequence_number == socket_ptr -> nx_tcp_socket_rx_sequence)) in _nx_tcp_socket_state_last_ack()
Dnx_tcp_socket_state_closing.c75 VOID _nx_tcp_socket_state_closing(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) in _nx_tcp_socket_state_closing() argument
80 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) in _nx_tcp_socket_state_closing()
84 … if ((tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence) && in _nx_tcp_socket_state_closing()
85 (tcp_header_ptr -> nx_tcp_sequence_number == socket_ptr -> nx_tcp_socket_rx_sequence)) in _nx_tcp_socket_state_closing()
Dnx_tcp_socket_state_syn_received.c78 VOID _nx_tcp_socket_state_syn_received(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr) in _nx_tcp_socket_state_syn_received() argument
84 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) in _nx_tcp_socket_state_syn_received()
87 … if (tcp_header_ptr -> nx_tcp_acknowledgment_number == socket_ptr -> nx_tcp_socket_tx_sequence) in _nx_tcp_socket_state_syn_received()
95 tcp_header_ptr -> nx_tcp_header_word_3 & NX_LOWER_16_MASK; in _nx_tcp_socket_state_syn_received()
189 _nx_tcp_packet_send_rst(socket_ptr, tcp_header_ptr); in _nx_tcp_socket_state_syn_received()
Dnx_tcp_socket_state_data_check.c344 NX_TCP_HEADER *tcp_header_ptr; in _nx_tcp_socket_state_data_check() local
381 tcp_header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_state_data_check()
384 …header_length = (tcp_header_ptr -> nx_tcp_header_word_3 >> NX_TCP_HEADER_SHIFT) * (ULONG)sizeof(U… in _nx_tcp_socket_state_data_check()
390 packet_begin_sequence = tcp_header_ptr -> nx_tcp_sequence_number; in _nx_tcp_socket_state_data_check()
396 packet_end_sequence = tcp_header_ptr -> nx_tcp_sequence_number + packet_data_length; in _nx_tcp_socket_state_data_check()
417 tcp_header_ptr -> nx_tcp_sequence_number += trim_data_length; in _nx_tcp_socket_state_data_check()
442 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_FIN_BIT) in _nx_tcp_socket_state_data_check()
446 …socket_ptr -> nx_tcp_socket_fin_sequence = tcp_header_ptr -> nx_tcp_sequence_number + packet_data… in _nx_tcp_socket_state_data_check()
454 …T(NX_TRACE_INTERNAL_TCP_FIN_RECEIVE, ip_ptr, socket_ptr, packet_ptr, tcp_header_ptr -> nx_tcp_sequ… in _nx_tcp_socket_state_data_check()
465 (socket_ptr -> nx_tcp_socket_rx_sequence != tcp_header_ptr -> nx_tcp_sequence_number) && in _nx_tcp_socket_state_data_check()
[all …]
Dnx_tcp_server_socket_relisten.c94 NX_TCP_HEADER *tcp_header_ptr; in _nx_tcp_server_socket_relisten() local
221 tcp_header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_server_socket_relisten()
224 if (tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_SYN_BIT) in _nx_tcp_server_socket_relisten()
227 option_words = (tcp_header_ptr -> nx_tcp_header_word_3 >> 28) - 5; in _nx_tcp_server_socket_relisten()
311 (NX_IPV6_HEADER *)((CHAR *)tcp_header_ptr - sizeof(NX_IPV6_HEADER)); in _nx_tcp_server_socket_relisten()
331 source_port = (UINT)(tcp_header_ptr -> nx_tcp_header_word_0 >> NX_SHIFT_BY_16); in _nx_tcp_server_socket_relisten()
338 … socket_ptr -> nx_tcp_socket_rx_sequence = tcp_header_ptr -> nx_tcp_sequence_number; in _nx_tcp_server_socket_relisten()
Dnx_ip_packet_checksum_compute.c93 NX_TCP_HEADER *tcp_header_ptr; in _nx_ip_packet_checksum_compute() local
203 tcp_header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ip_packet_checksum_compute()
208 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_4); in _nx_ip_packet_checksum_compute()
209 tcp_header_ptr -> nx_tcp_header_word_4 |= (checksum << NX_SHIFT_BY_16); in _nx_ip_packet_checksum_compute()
210 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_4); in _nx_ip_packet_checksum_compute()
/NetX-Duo-v6.3.0/addons/nat/
Dnx_nat.c1514 NX_TCP_HEADER *tcp_header_ptr; in _nx_nat_process_inbound_TCP_packet() local
1526 tcp_header_ptr = (NX_TCP_HEADER *) (packet_ptr -> nx_packet_prepend_ptr); in _nx_nat_process_inbound_TCP_packet()
1529 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_0); in _nx_nat_process_inbound_TCP_packet()
1530 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_sequence_number); in _nx_nat_process_inbound_TCP_packet()
1531 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_acknowledgment_number); in _nx_nat_process_inbound_TCP_packet()
1532 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_3); in _nx_nat_process_inbound_TCP_packet()
1533 NX_CHANGE_ULONG_ENDIAN(tcp_header_ptr -> nx_tcp_header_word_4); in _nx_nat_process_inbound_TCP_packet()
1573tcp_header_ptr -> nx_tcp_header_word_0 = ((ULONG)(tcp_header_ptr -> nx_tcp_header_word_0 & ~NX_LOW… in _nx_nat_process_inbound_TCP_packet()
1587 checksum = (USHORT)(tcp_header_ptr -> nx_tcp_header_word_4 >> NX_SHIFT_BY_16); in _nx_nat_process_inbound_TCP_packet()
1609tcp_header_ptr -> nx_tcp_header_word_4 = tcp_header_ptr -> nx_tcp_header_word_4 & NX_LOWER_16_MASK… in _nx_nat_process_inbound_TCP_packet()
[all …]
/NetX-Duo-v6.3.0/common/inc/
Dnx_tcp.h311 …D _nx_tcp_no_connection_reset(NX_IP *ip_ptr, NX_PACKET *packet_ptr, NX_TCP_HEADER *tcp_header_ptr);
330 UINT _nx_tcp_socket_state_ack_check(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr);
331 VOID _nx_tcp_socket_state_closing(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr);
338 VOID _nx_tcp_socket_state_last_ack(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr);
339 VOID _nx_tcp_socket_state_syn_sent(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr, NX_PAC…
340 VOID _nx_tcp_socket_state_syn_received(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *tcp_header_ptr);
/NetX-Duo-v6.3.0/addons/BSD/
Dnxd_bsd.c10839 NX_TCP_HEADER *tcp_header_ptr; in nx_bsd_tcp_pending_connection() local
10860 tcp_header_ptr = (NX_TCP_HEADER*)packet_ptr -> nx_packet_prepend_ptr; in nx_bsd_tcp_pending_connection()
10862 if(tcp_header_ptr -> nx_tcp_header_word_3 & NX_TCP_SYN_BIT) in nx_bsd_tcp_pending_connection()