Lines Matching refs:pkt_dst
617 struct net_pkt *pkt_dst; in ZTEST() local
643 pkt_dst = net_pkt_clone(pkt_src, K_NO_WAIT); in ZTEST()
644 zassert_true(pkt_dst != NULL, "Pkt not clone"); in ZTEST()
649 zassert_true(net_pkt_available_buffer(pkt_dst) == 0, "Space left"); in ZTEST()
650 zassert_true(net_pkt_get_len(pkt_src) == net_pkt_get_len(pkt_dst), in ZTEST()
657 zassert_true(pkt_dst->buffer->frags == NULL, "Not only one buffer?"); in ZTEST()
664 net_pkt_unref(pkt_dst); in ZTEST()
665 zassert_true(atomic_get(&pkt_dst->atomic_ref) == 0, in ZTEST()
974 struct net_pkt *pkt_dst; in ZTEST() local
987 pkt_dst = net_pkt_alloc_on_iface(eth_if, K_NO_WAIT); in ZTEST()
993 net_pkt_append_buffer(pkt_dst, frag1_dst); in ZTEST()
997 net_pkt_append_buffer(pkt_dst, frag2_dst); in ZTEST()
998 zassert_equal(net_pkt_available_buffer(pkt_dst), 4, "Wrong space left"); in ZTEST()
999 zassert_equal(net_pkt_get_len(pkt_dst), 0, "Length missmatch"); in ZTEST()
1003 net_pkt_cursor_init(pkt_dst); in ZTEST()
1004 res = net_pkt_copy(pkt_dst, pkt_src, 4); in ZTEST()
1006 zassert_equal(net_pkt_available_buffer(pkt_dst), 0, "Wrong space left"); in ZTEST()
1007 zassert_equal(net_pkt_get_len(pkt_dst), 4, "Length missmatch"); in ZTEST()
1009 net_pkt_cursor_init(pkt_dst); in ZTEST()
1010 zassert_true(net_pkt_read(pkt_dst, small_buffer, 4) == 0, in ZTEST()
1014 net_pkt_unref(pkt_dst); in ZTEST()