Lines Matching refs:send_ctx
69 } send_ctx, recv_ctx; variable
123 net_pkt_set_iface(send_pkt, send_ctx.iface); in test_receiver()
125 (void)net_recv_data(send_ctx.iface, send_pkt); in test_receiver()
142 NET_DEVICE_INIT(test_sender_icmp, "test_sender_icmp", NULL, NULL, &send_ctx, NULL,
481 params.data = send_ctx.test_data; in ZTEST()
482 params.data_size = sizeof(send_ctx.test_data); in ZTEST()
487 &send_ctx); in ZTEST()
490 k_sem_take(&send_ctx.tx_sem, SEM_WAIT_TIME); in ZTEST()
492 zassert_true(send_ctx.req_received, "Did not receive Echo-Request"); in ZTEST()
497 send_ctx.req_received = false; in ZTEST()
524 params.data = send_ctx.test_data; in ZTEST()
525 params.data_size = sizeof(send_ctx.test_data); in ZTEST()
530 &send_ctx); in ZTEST()
533 k_sem_take(&send_ctx.tx_sem, SEM_WAIT_TIME); in ZTEST()
535 zassert_true(send_ctx.req_received, "Did not receive Echo-Request"); in ZTEST()
540 send_ctx.req_received = false; in ZTEST()
633 (void)net_if_ipv6_addr_add(send_ctx.iface, &send_addr_6, NET_ADDR_MANUAL, 0); in setup()
641 (void)net_if_ipv4_addr_add(send_ctx.iface, &send_addr_4, NET_ADDR_MANUAL, 0); in setup()
648 memcpy(send_ctx.test_data, &(TEST_DATA), sizeof(TEST_DATA)); in setup()
651 k_sem_init(&send_ctx.tx_sem, 0, 1); in setup()
655 zassert_equal(sender, send_ctx.iface, "Invalid interface (%p vs %p)", in setup()
656 sender, send_ctx.iface); in setup()