Lines Matching refs:packet_ptr

98 NX_PACKET                 *packet_ptr = *packet_pptr;  in _nx_ipv6_header_add()  local
110 NX_PACKET_DEBUG(__FILE__, __LINE__, packet_ptr); in _nx_ipv6_header_add()
130 packet_ptr -> nx_packet_ip_header = packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_header_add()
134 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ipv6_header_add()
135 …((NX_IPSEC_SA *)(packet_ptr -> nx_packet_ipsec_sa_ptr)) -> nx_ipsec_sa_mode == NX_IPSEC_TRANSPORT_… in _nx_ipv6_header_add()
136 (packet_ptr -> nx_packet_ipsec_state == NX_IPSEC_AH_PACKET || in _nx_ipv6_header_add()
137 packet_ptr -> nx_packet_ipsec_state == NX_IPSEC_ESP_PACKET)) in _nx_ipv6_header_add()
143 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ipv6_header_add()
144 packet_ptr -> nx_packet_ipsec_state != NX_IPSEC_ESP_PACKET && in _nx_ipv6_header_add()
145 packet_ptr -> nx_packet_ipsec_state != NX_IPSEC_AH_PACKET && in _nx_ipv6_header_add()
146 …((NX_IPSEC_SA *)(packet_ptr -> nx_packet_ipsec_sa_ptr)) -> nx_ipsec_sa_mode == NX_IPSEC_TRANSPORT_… in _nx_ipv6_header_add()
150 …status = _nx_ipsec_ip_output_packet_process(ip_ptr, &packet_ptr, protocol, payload_size, (&payload… in _nx_ipv6_header_add()
160 _nx_packet_transmit_release(packet_ptr); in _nx_ipv6_header_add()
166 *packet_pptr = packet_ptr; in _nx_ipv6_header_add()
169 protocol = (((NX_IPSEC_SA *)packet_ptr -> nx_packet_ipsec_sa_ptr) -> nx_ipsec_sa_protocol); in _nx_ipv6_header_add()
186packet_ptr -> nx_packet_prepend_ptr = packet_ptr -> nx_packet_prepend_ptr - sizeof(NX_IPV6_HEADER… in _nx_ipv6_header_add()
189packet_ptr -> nx_packet_length = packet_ptr -> nx_packet_length + (ULONG)sizeof(NX_IPV6_HEADER); in _nx_ipv6_header_add()
192packet_ptr -> nx_packet_ip_header_length = (UCHAR)(packet_ptr -> nx_packet_ip_header_length + in _nx_ipv6_header_add()
197 …if (packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_state != NX_IPV… in _nx_ipv6_header_add()
201 NX_ICMPV6_HEADER *icmpv6_header = (NX_ICMPV6_HEADER *)(packet_ptr -> nx_packet_prepend_ptr + in _nx_ipv6_header_add()
202packet_ptr -> nx_packet_ip_header_length); in _nx_ipv6_header_add()
211 …(packet_ptr -> nx_packet_address.nx_packet_ipv6_address_ptr -> nxd_ipv6_address_state == NX_IPV6_A… in _nx_ipv6_header_add()
222 _nx_packet_transmit_release(packet_ptr); in _nx_ipv6_header_add()
231 NX_ASSERT(packet_ptr -> nx_packet_prepend_ptr >= packet_ptr -> nx_packet_data_start); in _nx_ipv6_header_add()
235 ip_header_ptr = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_header_add()
236 packet_ptr -> nx_packet_ip_header = packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_header_add()
264 ip_header_ptr = (NX_IPV6_HEADER *)packet_ptr -> nx_packet_prepend_ptr; in _nx_ipv6_header_add()
279 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ipv6_header_add()
280 packet_ptr -> nx_packet_ipsec_state != NX_IPSEC_ESP_PACKET && in _nx_ipv6_header_add()
281 packet_ptr -> nx_packet_ipsec_state != NX_IPSEC_AH_PACKET && in _nx_ipv6_header_add()
282 …((NX_IPSEC_SA *)(packet_ptr -> nx_packet_ipsec_sa_ptr)) -> nx_ipsec_sa_mode == NX_IPSEC_TUNNEL_MOD… in _nx_ipv6_header_add()
284 …status = _nx_ipsec_ip_output_packet_process(ip_ptr, &packet_ptr, NX_PROTOCOL_IPV6, (ULONG)payload_… in _nx_ipv6_header_add()
292 _nx_packet_transmit_release(packet_ptr); in _nx_ipv6_header_add()
298 *packet_pptr = packet_ptr; in _nx_ipv6_header_add()
305 if (packet_ptr -> nx_packet_ipsec_sa_ptr && in _nx_ipv6_header_add()
306 packet_ptr -> nx_packet_ipsec_state == NX_IPSEC_AH_PACKET) in _nx_ipv6_header_add()
308 … status = ip_ptr -> nx_ip_ipsec_authentication_header_transmit(ip_ptr, &packet_ptr, protocol, 1); in _nx_ipv6_header_add()
314 _nx_packet_transmit_release(packet_ptr); in _nx_ipv6_header_add()
320 *packet_pptr = packet_ptr; in _nx_ipv6_header_add()