Home
last modified time | relevance | path

Searched refs:pkt2 (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/tests/net/arp/src/
Dmain.c318 struct net_pkt *pkt2; in ZTEST() local
370 pkt2 = net_arp_prepare(pkt, &dst, NULL); in ZTEST()
376 zassert_equal(net_pkt_ll_proto_type(pkt2), NET_ETH_PTYPE_ARP, in ZTEST()
380 zassert_not_equal((void *)(pkt2), (void *)(pkt), in ZTEST()
386 zassert_not_null(pkt2, "ARP pkt is empty"); in ZTEST()
397 arp_hdr = NET_ARP_HDR(pkt2); in ZTEST()
448 net_pkt_unref(pkt2); in ZTEST()
456 pkt2 = net_arp_prepare(pkt, &dst_far, NULL); in ZTEST()
458 zassert_not_equal((void *)(pkt2), (void *)(pkt), in ZTEST()
462 zassert_not_null(pkt2, in ZTEST()
[all …]
/Zephyr-latest/tests/net/route_mcast/src/
Dmain.c496 struct net_pkt *pkt2 = setup_ipv6_udp(iface_3, &active_scenario.src, in test_route_mcast_scenario1() local
498 if (net_recv_data(iface_3, pkt2) < 0) { in test_route_mcast_scenario1()
499 net_pkt_unref(pkt2); in test_route_mcast_scenario1()
503 net_pkt_unref(pkt2); in test_route_mcast_scenario1()
555 struct net_pkt *pkt2 = setup_ipv6_udp(iface_3, &active_scenario.src, in test_route_mcast_scenario2() local
557 if (net_recv_data(iface_3, pkt2) < 0) { in test_route_mcast_scenario2()
558 net_pkt_unref(pkt2); in test_route_mcast_scenario2()
563 net_pkt_unref(pkt2); in test_route_mcast_scenario2()
611 struct net_pkt *pkt2 = setup_ipv6_udp(iface_3, &active_scenario.src, in test_route_mcast_scenario3() local
615 if (net_recv_data(iface_3, pkt2) < 0) { in test_route_mcast_scenario3()
[all …]
/Zephyr-latest/tests/net/promiscuous/src/
Dmain.c364 static struct net_pkt *pkt2; variable
369 _recv_data(iface2, &pkt2); in test_recv_data()
390 zassert_not_null(pkt2, "pkt2"); in test_verify_data()
391 zassert_not_null(pkt2->buffer, "pkt2->buffer"); in test_verify_data()
392 zassert_equal(pkt->buffer->len, pkt2->buffer->len, "packet length differs"); in test_verify_data()
394 zassert_not_null(pkt2->buffer->data, "pkt2->buffer->data"); in test_verify_data()
395 zassert_mem_equal(pkt->buffer->data, pkt2->buffer->data, pkt2->buffer->len); in test_verify_data()
/Zephyr-latest/tests/net/utils/src/
Dmain.c965 struct net_pkt *pkt, *pkt2; in ZTEST() local
996 pkt2 = net_pkt_clone(pkt, K_NO_WAIT); in ZTEST()
997 zassert_not_null(pkt2, "Cannot clone pkt"); in ZTEST()
1000 zassert_mem_equal(net_pkt_lladdr_src(pkt2)->addr, in ZTEST()
1003 zassert_mem_equal(net_pkt_lladdr_dst(pkt2)->addr, in ZTEST()
1007 net_pkt_unref(pkt2); in ZTEST()
1026 pkt2 = net_pkt_clone(pkt, K_NO_WAIT); in ZTEST()
1027 zassert_not_null(pkt2, "Cannot clone pkt"); in ZTEST()
1029 zassert_not_equal(net_pkt_lladdr_src(pkt2)->addr, in ZTEST()
1033 zassert_mem_equal(net_pkt_lladdr_src(pkt2)->addr, in ZTEST()
[all …]
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c2294 struct net_pkt *pkt2; in ZTEST() local
2350 pkt2 = net_pkt_alloc_with_buffer(iface1, payload2_len + in ZTEST()
2353 zassert_not_null(pkt2, "packet"); in ZTEST()
2355 net_pkt_set_family(pkt2, AF_INET6); in ZTEST()
2356 net_pkt_set_ip_hdr_len(pkt2, sizeof(struct net_ipv6_hdr)); in ZTEST()
2357 net_pkt_cursor_init(pkt2); in ZTEST()
2361 ret = net_pkt_write(pkt2, ipv6_reass_frag2, in ZTEST()
2365 net_pkt_cursor_backup(pkt2, &backup); in ZTEST()
2367 ret = net_pkt_write(pkt2, in ZTEST()
2374 ret = net_pkt_write_u8(pkt2, data++); in ZTEST()
[all …]