Lines Matching refs:cloned_pkt
789 struct net_pkt *cloned_pkt; in ZTEST() local
830 cloned_pkt = net_pkt_clone(pkt, K_NO_WAIT); in ZTEST()
831 zassert_true(cloned_pkt != NULL, "Pkt not cloned"); in ZTEST()
833 zassert_true(net_pkt_get_len(cloned_pkt) == sizeof(buf), in ZTEST()
839 zassert_true(sizeof(buf) - 6 == net_pkt_remaining_data(cloned_pkt), in ZTEST()
842 zassert_false(net_pkt_is_being_overwritten(cloned_pkt), in ZTEST()
848 zassert_equal(net_pkt_family(cloned_pkt), AF_INET6, in ZTEST()
851 zassert_true(net_pkt_is_captured(cloned_pkt), in ZTEST()
854 zassert_true(net_pkt_eof(cloned_pkt), in ZTEST()
857 zassert_true(net_pkt_is_ptp(cloned_pkt), in ZTEST()
861 zassert_true(net_pkt_is_tx_timestamping(cloned_pkt), in ZTEST()
864 zassert_true(net_pkt_is_rx_timestamping(cloned_pkt), in ZTEST()
868 zassert_true(net_pkt_forwarding(cloned_pkt), in ZTEST()
871 zassert_true(net_pkt_is_l2_bridged(cloned_pkt), in ZTEST()
874 zassert_true(net_pkt_is_l2_processed(cloned_pkt), in ZTEST()
877 zassert_mem_equal(net_pkt_lladdr_src(cloned_pkt)->addr, buf, NET_LINK_ADDR_MAX_LENGTH); in ZTEST()
878 zassert_true(net_pkt_lladdr_src(cloned_pkt)->addr == cloned_pkt->buffer->data, in ZTEST()
881 zassert_mem_equal(net_pkt_lladdr_dst(cloned_pkt)->addr, &buf[6], NET_LINK_ADDR_MAX_LENGTH); in ZTEST()
882 zassert_true(net_pkt_lladdr_dst(cloned_pkt)->addr == net_pkt_cursor_get_pos(cloned_pkt), in ZTEST()
885 zassert_equal(net_pkt_ll_proto_type(cloned_pkt), ETH_P_IEEE802154, in ZTEST()
889 net_pkt_unref(cloned_pkt); in ZTEST()