Lines Matching refs:net_ipv4_hdr

207 	const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt);  in check_ipv4_fragment_header()
209 zassert_equal(hdr->vhl, orig_hdr[offsetof(struct net_ipv4_hdr, vhl)], in check_ipv4_fragment_header()
211 zassert_equal(hdr->tos, orig_hdr[offsetof(struct net_ipv4_hdr, tos)], in check_ipv4_fragment_header()
213 zassert_equal(hdr->ttl, orig_hdr[offsetof(struct net_ipv4_hdr, ttl)], in check_ipv4_fragment_header()
215 zassert_equal(hdr->proto, orig_hdr[offsetof(struct net_ipv4_hdr, proto)], in check_ipv4_fragment_header()
218 zassert_mem_equal(hdr->src, &orig_hdr[offsetof(struct net_ipv4_hdr, src)], in check_ipv4_fragment_header()
220 zassert_mem_equal(hdr->dst, &orig_hdr[offsetof(struct net_ipv4_hdr, dst)], in check_ipv4_fragment_header()
361 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in udp_data_received()
381 zassert_equal(hdr->vhl, ipv4_udp[offsetof(struct net_ipv4_hdr, vhl)], in udp_data_received()
383 zassert_equal(hdr->tos, ipv4_udp[offsetof(struct net_ipv4_hdr, tos)], in udp_data_received()
385 zassert_equal(hdr->ttl, ipv4_udp[offsetof(struct net_ipv4_hdr, ttl)], in udp_data_received()
387 zassert_equal(hdr->proto, ipv4_udp[offsetof(struct net_ipv4_hdr, proto)], in udp_data_received()
390 zassert_mem_equal(hdr->src, &ipv4_udp[offsetof(struct net_ipv4_hdr, dst)], in udp_data_received()
392 zassert_mem_equal(hdr->dst, &ipv4_udp[offsetof(struct net_ipv4_hdr, src)], in udp_data_received()
438 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in tcp_data_received()
462 zassert_equal(hdr->vhl, ipv4_tcp[offsetof(struct net_ipv4_hdr, vhl)], in tcp_data_received()
464 zassert_equal(hdr->tos, ipv4_tcp[offsetof(struct net_ipv4_hdr, tos)], in tcp_data_received()
466 zassert_equal(hdr->ttl, ipv4_tcp[offsetof(struct net_ipv4_hdr, ttl)], in tcp_data_received()
468 zassert_equal(hdr->proto, ipv4_tcp[offsetof(struct net_ipv4_hdr, proto)], in tcp_data_received()
471 zassert_mem_equal(hdr->src, &ipv4_tcp[offsetof(struct net_ipv4_hdr, dst)], in tcp_data_received()
473 zassert_mem_equal(hdr->dst, &ipv4_tcp[offsetof(struct net_ipv4_hdr, src)], in tcp_data_received()
629 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in ZTEST()
682 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in ZTEST()
698 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in ZTEST()
752 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in ZTEST()
842 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in ZTEST()