Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 15 of 15) sorted by relevance

/NetX-Duo-v6.2.1/common/src/
Dnx_packet_data_adjust.c76 UINT _nx_packet_data_adjust(NX_PACKET *packet_ptr, ULONG header_size) in _nx_packet_data_adjust() argument
93 …E)packet_ptr -> nx_packet_data_end - (ALIGN_TYPE)packet_ptr -> nx_packet_data_start) < header_size) in _nx_packet_data_adjust()
99 …cket_ptr -> nx_packet_prepend_ptr - (ALIGN_TYPE)packet_ptr -> nx_packet_data_start) >= header_size) in _nx_packet_data_adjust()
111 if (available_size >= header_size) in _nx_packet_data_adjust()
120 …memmove(packet_ptr -> nx_packet_data_start + header_size, packet_ptr -> nx_packet_prepend_ptr, shi… in _nx_packet_data_adjust()
123 packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_data_start + header_size; in _nx_packet_data_adjust()
136 if (header_size & 1) in _nx_packet_data_adjust()
142 append_size = header_size - available_size; in _nx_packet_data_adjust()
164 …memmove(packet_ptr -> nx_packet_data_start + header_size, packet_ptr -> nx_packet_prepend_ptr, shi… in _nx_packet_data_adjust()
167 packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_data_start + header_size; in _nx_packet_data_adjust()
Dnx_packet_debug_info_get.c81 ULONG header_size; /* Rounded header size */ in _nx_packet_debug_info_get() local
88header_size = (ULONG)((ALIGN_TYPE)(packet_ptr -> nx_packet_data_start) - (ALIGN_TYPE)packet_ptr); in _nx_packet_debug_info_get()
91 …packet_pool_payload_size + header_size + NX_PACKET_ALIGNMENT - 1) / NX_PACKET_ALIGNMENT) * NX_PAC… in _nx_packet_debug_info_get()
94 …packet_ptr = (NX_PACKET *)(pool_ptr -> nx_packet_pool_start + packet_index * (header_size + payloa… in _nx_packet_debug_info_get()
Dnx_packet_pool_create.c85 ULONG header_size; /* Rounded header size */ in _nx_packet_pool_create() local
117 header_size = (ULONG)((ALIGN_TYPE)payload_address - (ALIGN_TYPE)rounded_pool_start); in _nx_packet_pool_create()
120 …ad_size = (ULONG)(((header_size + payload_size + NX_PACKET_ALIGNMENT - 1) / NX_PACKET_ALIGNMENT) … in _nx_packet_pool_create()
139 next_packet_ptr = packet_ptr + (payload_size + header_size); in _nx_packet_pool_create()
168 ((NX_PACKET *)packet_ptr) -> nx_packet_data_start = (UCHAR *)(packet_ptr + header_size); in _nx_packet_pool_create()
171 …((NX_PACKET *)packet_ptr) -> nx_packet_data_end = (UCHAR *)(packet_ptr + header_size + original… in _nx_packet_pool_create()
180 next_packet_ptr = packet_ptr + (payload_size + header_size); in _nx_packet_pool_create()
184 packet_ptr = packet_ptr - (payload_size + header_size); in _nx_packet_pool_create()
Dnxe_packet_pool_create.c92 ULONG header_size; in _nxe_packet_pool_create() local
127 header_size = (ULONG)((ALIGN_TYPE)payload_address - (ALIGN_TYPE)rounded_pool_start); in _nxe_packet_pool_create()
130 …d_size = (ULONG)(((header_size + payload_size + NX_PACKET_ALIGNMENT - 1) / NX_PACKET_ALIGNMENT) … in _nxe_packet_pool_create()
134 ((rounded_payload_size + header_size) > rounded_pool_size)) in _nxe_packet_pool_create()
Dnx_tcp_packet_send_control.c103 ULONG header_size; in _nx_tcp_packet_send_control() local
117 header_size = NX_TCP_SYN_HEADER; in _nx_tcp_packet_send_control()
124 header_size = NX_TCP_HEADER_SIZE; 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()
/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_tls_process_handshake_header.c83 UINT *header_size, UINT *message_length) in _nx_secure_tls_process_handshake_header() argument
87 if (*header_size < 4) in _nx_secure_tls_process_handshake_header()
101 *header_size = 4; in _nx_secure_tls_process_handshake_header()
Dnx_secure_dtls_process_handshake_header.c82 UINT *header_size, UINT *message_length, in _nx_secure_dtls_process_handshake_header() argument
88 if (*header_size < NX_SECURE_DTLS_HANDSHAKE_HEADER_SIZE) in _nx_secure_dtls_process_handshake_header()
114 *header_size = NX_SECURE_DTLS_HANDSHAKE_HEADER_SIZE; in _nx_secure_dtls_process_handshake_header()
/NetX-Duo-v6.2.1/addons/websocket/
Dnx_websocket_client.c1441 UINT header_size = NX_WEBSOCKET_HEADER_NORMAL_SIZE; in _nx_websocket_client_send() local
1473 header_size += 2; in _nx_websocket_client_send()
1477 …if ((UINT)(packet_ptr -> nx_packet_prepend_ptr - packet_ptr -> nx_packet_data_start) < header_size) in _nx_websocket_client_send()
1486 data_ptr = packet_ptr -> nx_packet_prepend_ptr - header_size; in _nx_websocket_client_send()
1548 packet_ptr -> nx_packet_prepend_ptr -= header_size; in _nx_websocket_client_send()
1549 packet_ptr -> nx_packet_length += header_size; in _nx_websocket_client_send()
/NetX-Duo-v6.2.1/common/inc/
Dnx_packet.h101 UINT _nx_packet_data_adjust(NX_PACKET *packet_ptr, ULONG header_size);
/NetX-Duo-v6.2.1/addons/nat/
Dnx_nat.c1174 ULONG header_size = sizeof(NX_IPV4_HEADER); in _nx_nat_process_packet() local
1207 header_size += sizeof(NX_ICMP_HEADER); in _nx_nat_process_packet()
1211 header_size += sizeof(NX_UDP_HEADER); in _nx_nat_process_packet()
1215 header_size += sizeof(NX_TCP_HEADER); in _nx_nat_process_packet()
1219 if (packet_ptr -> nx_packet_length < header_size) in _nx_nat_process_packet()
/NetX-Duo-v6.2.1/addons/BSD/
Dnxd_bsd.c3988 INT header_size = 0; in recv() local
4324 header_size = 0; in recv()
4333header_size = packet_ptr -> nx_packet_prepend_ptr - packet_ptr -> nx_packet_ip_header; in recv()
4344 if(bufferLength < header_size) in recv()
4346 header_size = bufferLength; in recv()
4357header_size = (INT)(packet_ptr -> nx_packet_prepend_ptr - packet_ptr -> nx_packet_ip_header); in recv()
4359 if(bufferLength < header_size) in recv()
4362 header_size = bufferLength; in recv()
4380 …memcpy(rcvBuffer, packet_ptr -> nx_packet_ip_header, (UINT)header_size); /* Use case of memcpy is … in recv()
4387 …offset(packet_ptr, offset, (VOID*)((INT)rcvBuffer + header_size), (ULONG) (bufferLength - header_s… in recv()
[all …]
/NetX-Duo-v6.2.1/nx_secure/inc/
Dnx_secure_dtls.h455 UINT *header_size, UINT *message_length,
Dnx_secure_tls.h1552 UINT *header_size, UINT *message_length);
/NetX-Duo-v6.2.1/addons/web/
Dnx_web_http_client.c5773 UINT header_size; in _nxe_web_http_client_put_packet() local
5790 header_size = NX_IPv4_TCP_PACKET; in _nxe_web_http_client_put_packet()
5798 header_size = NX_IPv6_TCP_PACKET; in _nxe_web_http_client_put_packet()
5807 …if ((UINT)(packet_ptr -> nx_packet_prepend_ptr - packet_ptr -> nx_packet_data_start) < header_size) in _nxe_web_http_client_put_packet()
/NetX-Duo-v6.2.1/addons/snmp/
Dnxd_snmp.c13855 UINT header_size; in _nx_snmp_utility_community_set() local
13892 header_size = 4; in _nx_snmp_utility_community_set()
13905 header_size = 2; in _nx_snmp_utility_community_set()
13917 return(length+header_size); in _nx_snmp_utility_community_set()
15975 UINT header_size; in _nx_snmp_utility_octet_set() local
16011 header_size = 4; in _nx_snmp_utility_octet_set()
16024 header_size = 2; in _nx_snmp_utility_octet_set()
16036 return(octet_length+header_size); in _nx_snmp_utility_octet_set()