Home
last modified time | relevance | path

Searched refs:cloned_pkt (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c789 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()
[all …]
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_test.c586 struct net_pkt *cloned_pkt; in test_packet_cloning_with_cb() local
601 cloned_pkt = net_pkt_clone(pkt, K_NO_WAIT); in test_packet_cloning_with_cb()
602 zassert_not_equal(net_pkt_cb(cloned_pkt), net_pkt_cb(pkt)); in test_packet_cloning_with_cb()
604 zassert_true(net_pkt_ieee802154_ack_fpb(cloned_pkt)); in test_packet_cloning_with_cb()
605 zassert_true(net_pkt_ieee802154_frame_secured(cloned_pkt)); in test_packet_cloning_with_cb()
606 zassert_false(net_pkt_ieee802154_mac_hdr_rdy(cloned_pkt)); in test_packet_cloning_with_cb()
607 zassert_equal(net_pkt_ieee802154_lqi(cloned_pkt), 50U); in test_packet_cloning_with_cb()
608 zassert_equal(net_pkt_ieee802154_rssi(cloned_pkt), 0U); in test_packet_cloning_with_cb()
611 net_pkt_unref(cloned_pkt); in test_packet_cloning_with_cb()