Lines Matching refs:pkt2
331 struct net_pkt *pkt2; in ZTEST() local
378 pkt2 = net_arp_prepare(pkt, &dst, NULL); in ZTEST()
385 zassert_not_equal((void *)(pkt2), (void *)(pkt), in ZTEST()
391 zassert_not_null(pkt2, "ARP pkt is empty"); in ZTEST()
402 arp_hdr = NET_ARP_HDR(pkt2); in ZTEST()
453 net_pkt_unref(pkt2); in ZTEST()
461 pkt2 = net_arp_prepare(pkt, &dst_far, NULL); in ZTEST()
463 zassert_not_equal((void *)(pkt2), (void *)(pkt), in ZTEST()
467 zassert_not_null(pkt2, in ZTEST()
470 arp_hdr = NET_ARP_HDR(pkt2); in ZTEST()
480 net_pkt_unref(pkt2); in ZTEST()
492 pkt2 = net_arp_prepare(pkt, &dst_far, NULL); in ZTEST()
494 zassert_not_null(pkt2, in ZTEST()
497 net_pkt_unref(pkt2); in ZTEST()
509 pkt2 = net_arp_prepare(pkt, &dst_far2, NULL); in ZTEST()
511 zassert_not_null(pkt2, in ZTEST()
533 pkt2 = prepare_arp_reply(iface, pkt, ð_hwaddr, ð_hdr); in ZTEST()
535 zassert_not_null(pkt2, "ARP reply generation failed."); in ZTEST()
538 switch (net_arp_input(pkt2, eth_hdr)) { in ZTEST()
574 pkt2 = prepare_arp_request(iface, pkt, ð_hwaddr, ð_hdr); in ZTEST()
577 zassert_not_null(pkt2, "ARP request generation failed."); in ZTEST()
581 switch (net_arp_input(pkt2, eth_hdr)) { in ZTEST()