/NetX-Duo-v6.3.0/common/src/ |
D | nx_tcp_socket_retransmit.c | 112 NX_TCP_HEADER *header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_retransmit() local 114 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_header_word_3); in _nx_tcp_socket_retransmit() 115 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_sequence_number); in _nx_tcp_socket_retransmit() 118 …ket_zero_window_probe_data = *(packet_ptr -> nx_packet_prepend_ptr + ((header_ptr -> nx_tcp_header… in _nx_tcp_socket_retransmit() 122 … socket_ptr -> nx_tcp_socket_zero_window_probe_sequence = header_ptr -> nx_tcp_sequence_number; in _nx_tcp_socket_retransmit() 125 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_sequence_number); in _nx_tcp_socket_retransmit() 126 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_header_word_3); in _nx_tcp_socket_retransmit() 213 NX_TCP_HEADER *header_ptr; in _nx_tcp_socket_retransmit() local 265 header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_retransmit() 268 original_acknowledgment_number = header_ptr -> nx_tcp_acknowledgment_number; in _nx_tcp_socket_retransmit() [all …]
|
D | nx_igmp_packet_process.c | 90 NX_IGMP_HEADER *header_ptr; in _nx_igmp_packet_process() local 100 header_ptr = (NX_IGMP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_igmp_packet_process() 136 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_igmp_header_word_0); in _nx_igmp_packet_process() 137 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_igmp_header_word_1); in _nx_igmp_packet_process() 140 …tr, *(((ULONG *)packet_ptr -> nx_packet_prepend_ptr) - 2), packet_ptr, header_ptr -> nx_igmp_heade… in _nx_igmp_packet_process() 144 if ((header_ptr -> nx_igmp_header_word_0 & NX_IGMP_TYPE_MASK) == NX_IGMP_ROUTER_QUERY_TYPE) in _nx_igmp_packet_process() 164 if ((header_ptr -> nx_igmp_header_word_0 & NX_IGMP_MAX_RESP_TIME_MASK) != NX_NULL) in _nx_igmp_packet_process() 170 …max_update_time = (USHORT)((header_ptr -> nx_igmp_header_word_0 & NX_IGMP_MAX_RESP_TIME_MASK) >> … in _nx_igmp_packet_process() 209 …if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list != header_ptr -> nx_igmp_hea… in _nx_igmp_packet_process() 211 (header_ptr -> nx_igmp_header_word_1 != NX_NULL)) in _nx_igmp_packet_process() [all …]
|
D | nx_igmp_interface_report_send.c | 99 NX_IGMP_HEADER *header_ptr; in _nx_igmp_interface_report_send() local 165 header_ptr = (NX_IGMP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_igmp_interface_report_send() 178 … header_ptr -> nx_igmp_header_word_0 = (ULONG)(NX_IGMP_VERSION | NX_IGMP_HOST_RESPONSE_TYPE); in _nx_igmp_interface_report_send() 179 header_ptr -> nx_igmp_header_word_1 = group_address; in _nx_igmp_interface_report_send() 190 header_ptr -> nx_igmp_header_word_0 = (ULONG)(NX_IGMP_HOST_V2_JOIN_TYPE); in _nx_igmp_interface_report_send() 194 header_ptr -> nx_igmp_header_word_0 = (ULONG)(NX_IGMP_HOST_V2_LEAVE_TYPE); in _nx_igmp_interface_report_send() 197 header_ptr -> nx_igmp_header_word_1 = group_address; in _nx_igmp_interface_report_send() 208 temp = header_ptr -> nx_igmp_header_word_0; in _nx_igmp_interface_report_send() 211 temp = header_ptr -> nx_igmp_header_word_1; in _nx_igmp_interface_report_send() 222 …header_ptr -> nx_igmp_header_word_0 = header_ptr -> nx_igmp_header_word_0 | (~checksum & NX_LOWER… in _nx_igmp_interface_report_send() [all …]
|
D | nx_tcp_socket_driver_packet_receive.c | 83 NX_TCP_HEADER *header_ptr; in _nx_tcp_socket_driver_packet_receive() local 132 header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_driver_packet_receive() 135 …header_ptr -> nx_tcp_header_word_0 = (((ULONG)(socket_ptr -> nx_tcp_socket_connect_port)) << NX_SH… in _nx_tcp_socket_driver_packet_receive() 137 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_header_word_0); in _nx_tcp_socket_driver_packet_receive() 138 header_ptr -> nx_tcp_acknowledgment_number = 0; in _nx_tcp_socket_driver_packet_receive() 139 header_ptr -> nx_tcp_sequence_number = 0; in _nx_tcp_socket_driver_packet_receive() 140 header_ptr -> nx_tcp_header_word_3 = NX_TCP_HEADER_SIZE | NX_TCP_ACK_BIT | NX_TCP_PSH_BIT; in _nx_tcp_socket_driver_packet_receive() 141 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_header_word_3); in _nx_tcp_socket_driver_packet_receive() 142 header_ptr -> nx_tcp_header_word_4 = 0; in _nx_tcp_socket_driver_packet_receive()
|
D | nx_icmpv6_packet_process.c | 107 NX_ICMPV6_HEADER *header_ptr; in _nx_icmpv6_packet_process() local 133 header_ptr = (NX_ICMPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_packet_process() 187 if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_ECHO_REPLY_TYPE) in _nx_icmpv6_packet_process() 191 else if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_ECHO_REQUEST_TYPE) in _nx_icmpv6_packet_process() 195 else if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_NEIGHBOR_SOLICITATION_TYPE) in _nx_icmpv6_packet_process() 202 else if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_ROUTER_ADVERTISEMENT_TYPE) in _nx_icmpv6_packet_process() 208 else if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_NEIGHBOR_ADVERTISEMENT_TYPE) in _nx_icmpv6_packet_process() 214 else if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_REDIRECT_MESSAGE_TYPE) in _nx_icmpv6_packet_process() 222 else if (header_ptr -> nx_icmpv6_header_type == NX_ICMPV6_PACKET_TOO_BIG_TYPE) in _nx_icmpv6_packet_process()
|
D | nx_tcp_packet_send_rst.c | 74 VOID _nx_tcp_packet_send_rst(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *header_ptr) in _nx_tcp_packet_send_rst() argument 82 if (header_ptr -> nx_tcp_header_word_3 & NX_TCP_ACK_BIT) in _nx_tcp_packet_send_rst() 84 …_nx_tcp_packet_send_control(socket_ptr, NX_TCP_RST_BIT, header_ptr -> nx_tcp_acknowledgment_number, in _nx_tcp_packet_send_rst() 90 header_ptr -> nx_tcp_sequence_number, 0, 0, NX_NULL); in _nx_tcp_packet_send_rst()
|
D | nx_icmpv6_process_echo_request.c | 98 NX_ICMPV6_HEADER *header_ptr; in _nx_icmpv6_process_echo_request() local 133 header_ptr = (NX_ICMPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_process_echo_request() 255 header_ptr -> nx_icmpv6_header_type = NX_ICMPV6_ECHO_REPLY_TYPE; in _nx_icmpv6_process_echo_request() 280 checksum = header_ptr -> nx_icmpv6_header_checksum; in _nx_icmpv6_process_echo_request() 295 tmp += (ULONG)(header_ptr -> nx_icmpv6_header_type << 8); in _nx_icmpv6_process_echo_request() 304 header_ptr -> nx_icmpv6_header_checksum = 0; in _nx_icmpv6_process_echo_request() 314 header_ptr -> nx_icmpv6_header_checksum = (USHORT)(tmp); in _nx_icmpv6_process_echo_request() 316 NX_CHANGE_USHORT_ENDIAN(header_ptr -> nx_icmpv6_header_checksum); in _nx_icmpv6_process_echo_request() 329 header_ptr -> nx_icmpv6_header_checksum = (USHORT)(~tmp); in _nx_icmpv6_process_echo_request() 330 NX_CHANGE_USHORT_ENDIAN(header_ptr -> nx_icmpv6_header_checksum); in _nx_icmpv6_process_echo_request() [all …]
|
D | nx_icmpv4_process_echo_request.c | 86 NX_ICMPV4_HEADER *header_ptr; in _nx_icmpv4_process_echo_request() local 109 header_ptr = (NX_ICMPV4_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv4_process_echo_request() 121 header_ptr -> nx_icmpv4_header_type = NX_ICMP_ECHO_REPLY_TYPE; in _nx_icmpv4_process_echo_request() 211 NX_CHANGE_USHORT_ENDIAN(header_ptr -> nx_icmpv4_header_checksum); in _nx_icmpv4_process_echo_request() 214 checksum = header_ptr -> nx_icmpv4_header_checksum; in _nx_icmpv4_process_echo_request() 230 header_ptr -> nx_icmpv4_header_checksum = (~checksum & NX_LOWER_16_MASK); in _nx_icmpv4_process_echo_request() 234 NX_CHANGE_USHORT_ENDIAN(header_ptr -> nx_icmpv4_header_checksum); in _nx_icmpv4_process_echo_request() 241 header_ptr -> nx_icmpv4_header_checksum = 0; in _nx_icmpv4_process_echo_request()
|
D | nx_icmpv6_process_ns.c | 106 NX_ICMPV6_HEADER *header_ptr; in _nx_icmpv6_process_ns() local 125 header_ptr = (NX_ICMPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_process_ns() 153 nd_ptr = (NX_ICMPV6_ND *)header_ptr; in _nx_icmpv6_process_ns() 256 option_ptr = (NX_ICMPV6_OPTION *)NX_UCHAR_POINTER_ADD(header_ptr, sizeof(NX_ICMPV6_ND)); in _nx_icmpv6_process_ns() 403 header_ptr -> nx_icmpv6_header_type = NX_ICMPV6_NEIGHBOR_ADVERTISEMENT_TYPE; in _nx_icmpv6_process_ns() 404 header_ptr -> nx_icmpv6_header_code = 0; in _nx_icmpv6_process_ns() 405 header_ptr -> nx_icmpv6_header_checksum = 0; in _nx_icmpv6_process_ns() 430 option_ptr = (NX_ICMPV6_OPTION *)NX_UCHAR_POINTER_ADD(header_ptr, sizeof(NX_ICMPV6_ND)); in _nx_icmpv6_process_ns() 459 header_ptr -> nx_icmpv6_header_checksum = in _nx_icmpv6_process_ns() 466 … header_ptr -> nx_icmpv6_header_checksum = (USHORT)(~(header_ptr -> nx_icmpv6_header_checksum)); in _nx_icmpv6_process_ns() [all …]
|
D | nx_icmp_interface_ping.c | 107 NX_ICMP_HEADER *header_ptr; in _nx_icmp_interface_ping() local 225 header_ptr = (NX_ICMP_HEADER *)request_ptr -> nx_packet_prepend_ptr; in _nx_icmp_interface_ping() 229 header_ptr -> nx_icmp_header_word_0 = (ULONG)(NX_ICMP_ECHO_REQUEST_TYPE << 24); in _nx_icmp_interface_ping() 231 …header_ptr -> nx_icmp_header_word_1 = (ULONG)(request_ptr -> nx_packet_address.nx_packet_interfac… in _nx_icmp_interface_ping() 235 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_icmp_header_word_0); in _nx_icmp_interface_ping() 236 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_icmp_header_word_1); in _nx_icmp_interface_ping() 269 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_icmp_header_word_0); in _nx_icmp_interface_ping() 272 …header_ptr -> nx_icmp_header_word_0 = header_ptr -> nx_icmp_header_word_0 | (~checksum & NX_LOWER… in _nx_icmp_interface_ping() 276 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_icmp_header_word_0); in _nx_icmp_interface_ping()
|
D | nx_icmpv6_validate_ra.c | 80 NX_ICMPV6_RA *header_ptr; in _nx_icmpv6_validate_ra() local 88 header_ptr = (NX_ICMPV6_RA *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_validate_ra() 122 if (header_ptr -> nx_icmpv6_ra_icmpv6_header.nx_icmpv6_header_code != 0) in _nx_icmpv6_validate_ra() 130 option_ptr = (NX_ICMPV6_OPTION *)NX_UCHAR_POINTER_ADD(header_ptr, sizeof(NX_ICMPV6_RA)); in _nx_icmpv6_validate_ra()
|
D | nx_tcp_socket_send_internal.c | 90 NX_TCP_HEADER *header_ptr; in _nx_tcp_socket_driver_send() local 110 header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_driver_send() 113 …header_ptr -> nx_tcp_header_word_0 = (((ULONG)(socket_ptr -> nx_tcp_socket_port)) << NX_SHIFT_BY_1… in _nx_tcp_socket_driver_send() 115 header_ptr -> nx_tcp_acknowledgment_number = 0; in _nx_tcp_socket_driver_send() 116 header_ptr -> nx_tcp_sequence_number = 0; in _nx_tcp_socket_driver_send() 117 header_ptr -> nx_tcp_header_word_3 = NX_TCP_HEADER_SIZE | NX_TCP_ACK_BIT | NX_TCP_PSH_BIT; in _nx_tcp_socket_driver_send() 118 header_ptr -> nx_tcp_header_word_4 = 0; in _nx_tcp_socket_driver_send() 122 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_header_word_0); in _nx_tcp_socket_driver_send() 123 NX_CHANGE_ULONG_ENDIAN(header_ptr -> nx_tcp_header_word_3); in _nx_tcp_socket_driver_send() 276 NX_TCP_HEADER *header_ptr; in _nx_tcp_socket_send_internal() local [all …]
|
D | nx_icmpv4_packet_process.c | 86 NX_ICMPV4_HEADER *header_ptr; in _nx_icmpv4_packet_process() local 101 header_ptr = (NX_ICMPV4_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv4_packet_process() 153 if (header_ptr -> nx_icmpv4_header_type == NX_ICMP_ECHO_REPLY_TYPE) in _nx_icmpv4_packet_process() 157 else if (header_ptr -> nx_icmpv4_header_type == NX_ICMP_ECHO_REQUEST_TYPE) in _nx_icmpv4_packet_process()
|
D | nx_tcp_socket_bytes_available.c | 81 NX_TCP_HEADER *header_ptr; in _nx_tcp_socket_bytes_available() local 126 header_ptr = (NX_TCP_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_bytes_available() 129 …header_length = (UINT)((header_ptr -> nx_tcp_header_word_3 >> NX_TCP_HEADER_SHIFT) * sizeof(ULONG)… in _nx_tcp_socket_bytes_available()
|
D | nx_tcp_socket_receive.c | 86 NX_TCP_HEADER *header_ptr; in _nx_tcp_socket_receive() local 184 header_ptr = (NX_TCP_HEADER *)head_packet_ptr -> nx_packet_prepend_ptr; in _nx_tcp_socket_receive() 187 …header_length = (header_ptr -> nx_tcp_header_word_3 >> NX_TCP_HEADER_SHIFT) * (ULONG)sizeof(ULONG… in _nx_tcp_socket_receive()
|
D | nx_icmpv6_process_ra.c | 101 NX_ICMPV6_HEADER *header_ptr; in _nx_icmpv6_process_ra() local 143 header_ptr = (NX_ICMPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_icmpv6_process_ra() 161 ra_ptr = (NX_ICMPV6_RA *)header_ptr; in _nx_icmpv6_process_ra()
|
/NetX-Duo-v6.3.0/common/inc/ |
D | nx_tcp.h | 316 VOID _nx_tcp_packet_send_rst(NX_TCP_SOCKET *socket_ptr, NX_TCP_HEADER *header_ptr);
|