Lines Matching refs:pkt_offset
205 uint16_t pkt_offset; in check_ipv4_fragment_header() local
224 pkt_offset = ntohs(*((uint16_t *)&hdr->offset)); in check_ipv4_fragment_header()
225 pkt_flags = (pkt_offset & ~NET_IPV4_FRAGH_OFFSET_MASK) >> 13; in check_ipv4_fragment_header()
226 pkt_offset &= NET_IPV4_FRAGH_OFFSET_MASK; in check_ipv4_fragment_header()
227 pkt_offset *= 8; in check_ipv4_fragment_header()
236 zassert_equal(pkt_offset, current_length, "IPv4 header length mismatch"); in check_ipv4_fragment_header()
366 uint16_t pkt_offset; in udp_data_received() local
396 pkt_offset = ntohs(*((uint16_t *)&hdr->offset)); in udp_data_received()
397 pkt_flags = (pkt_offset & ~NET_IPV4_FRAGH_OFFSET_MASK) >> 13; in udp_data_received()
398 pkt_offset &= NET_IPV4_FRAGH_OFFSET_MASK; in udp_data_received()
399 pkt_offset *= 8; in udp_data_received()
403 zassert_equal(pkt_offset, 0, "IPv4 header length mismatch"); in udp_data_received()
443 uint16_t pkt_offset; in tcp_data_received() local
477 pkt_offset = ntohs(*((uint16_t *)&hdr->offset)); in tcp_data_received()
478 pkt_flags = (pkt_offset & ~NET_IPV4_FRAGH_OFFSET_MASK) >> 13; in tcp_data_received()
479 pkt_offset &= NET_IPV4_FRAGH_OFFSET_MASK; in tcp_data_received()
480 pkt_offset *= 8; in tcp_data_received()
484 zassert_equal(pkt_offset, 0, "IPv4 header length mismatch"); in tcp_data_received()