Lines Matching refs:dummy_pkt
675 struct net_pkt *dummy_pkt; in ZTEST() local
685 dummy_pkt = net_pkt_alloc_with_buffer(eth_if, in ZTEST()
690 zassert_true(dummy_pkt != NULL, "Pkt not allocated"); in ZTEST()
692 zassert_true(net_pkt_write(dummy_pkt, in ZTEST()
697 net_pkt_cursor_init(dummy_pkt); in ZTEST()
698 net_pkt_pull(dummy_pkt, PULL_AMOUNT); in ZTEST()
699 zassert_equal(net_pkt_get_len(dummy_pkt), in ZTEST()
702 zassert_true(net_pkt_read(dummy_pkt, in ZTEST()
711 net_pkt_cursor_init(dummy_pkt); in ZTEST()
712 net_pkt_pull(dummy_pkt, LARGE_PULL_AMOUNT); in ZTEST()
713 zassert_equal(net_pkt_get_len(dummy_pkt), in ZTEST()
717 net_pkt_get_len(dummy_pkt), in ZTEST()
721 net_pkt_cursor_init(dummy_pkt); in ZTEST()
722 net_pkt_pull(dummy_pkt, net_pkt_get_len(dummy_pkt)); in ZTEST()
723 zassert_equal(net_pkt_get_len(dummy_pkt), 0, in ZTEST()
725 net_pkt_get_len(dummy_pkt)); in ZTEST()
727 net_pkt_cursor_init(dummy_pkt); in ZTEST()
728 ret = net_pkt_pull(dummy_pkt, 1); in ZTEST()
730 zassert_equal(net_pkt_get_len(dummy_pkt), 0, in ZTEST()
732 net_pkt_get_len(dummy_pkt)); in ZTEST()
734 net_pkt_unref(dummy_pkt); in ZTEST()
736 dummy_pkt = net_pkt_alloc_with_buffer(eth_if, in ZTEST()
741 zassert_true(dummy_pkt != NULL, "Pkt not allocated"); in ZTEST()
743 zassert_true(net_pkt_write(dummy_pkt, in ZTEST()
748 net_pkt_cursor_init(dummy_pkt); in ZTEST()
749 ret = net_pkt_pull(dummy_pkt, net_pkt_get_len(dummy_pkt) + 1); in ZTEST()
751 zassert_equal(net_pkt_get_len(dummy_pkt), 0, in ZTEST()
753 net_pkt_get_len(dummy_pkt)); in ZTEST()
755 net_pkt_unref(dummy_pkt); in ZTEST()
757 dummy_pkt = net_pkt_alloc_with_buffer(eth_if, in ZTEST()
762 zassert_true(dummy_pkt != NULL, "Pkt not allocated"); in ZTEST()
764 zassert_true(net_pkt_write(dummy_pkt, in ZTEST()
769 net_pkt_cursor_init(dummy_pkt); in ZTEST()
770 len = net_pkt_get_len(dummy_pkt); in ZTEST()
773 ret = net_pkt_pull(dummy_pkt, 1); in ZTEST()
777 ret = net_pkt_pull(dummy_pkt, 1); in ZTEST()
780 zassert_equal(dummy_pkt->buffer, NULL, "buffer list not empty"); in ZTEST()
782 net_pkt_unref(dummy_pkt); in ZTEST()