Home
last modified time | relevance | path

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

/Zephyr-latest/tests/net/arp/src/
Dmain.c331 struct net_pkt *pkt2; in ZTEST() local
378 pkt2 = net_arp_prepare(pkt, &dst, NULL); in ZTEST()
385 zassert_not_equal((void *)(pkt2), (void *)(pkt), in ZTEST()
391 zassert_not_null(pkt2, "ARP pkt is empty"); in ZTEST()
402 arp_hdr = NET_ARP_HDR(pkt2); in ZTEST()
453 net_pkt_unref(pkt2); in ZTEST()
461 pkt2 = net_arp_prepare(pkt, &dst_far, NULL); in ZTEST()
463 zassert_not_equal((void *)(pkt2), (void *)(pkt), in ZTEST()
467 zassert_not_null(pkt2, in ZTEST()
470 arp_hdr = NET_ARP_HDR(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/ipv6_fragment/src/
Dmain.c2295 struct net_pkt *pkt2; in ZTEST() local
2351 pkt2 = net_pkt_alloc_with_buffer(iface1, payload2_len + in ZTEST()
2354 zassert_not_null(pkt2, "packet"); in ZTEST()
2356 net_pkt_set_family(pkt2, AF_INET6); in ZTEST()
2357 net_pkt_set_ip_hdr_len(pkt2, sizeof(struct net_ipv6_hdr)); in ZTEST()
2358 net_pkt_cursor_init(pkt2); in ZTEST()
2362 ret = net_pkt_write(pkt2, ipv6_reass_frag2, in ZTEST()
2366 net_pkt_cursor_backup(pkt2, &backup); in ZTEST()
2368 ret = net_pkt_write(pkt2, in ZTEST()
2375 ret = net_pkt_write_u8(pkt2, data++); in ZTEST()
[all …]