Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 17 of 17) sorted by relevance

/tests/net/icmp/src/
A Dmain.c185 struct net_pkt *reply; in get_ipv4_reply() local
199 if (!reply) { in get_ipv4_reply()
210 net_pkt_set_ipv4_ttl(reply, 1U); in get_ipv4_reply()
234 net_pkt_cursor_init(reply); in get_ipv4_reply()
235 net_ipv4_finalize(reply, IPPROTO_ICMP); in get_ipv4_reply()
237 *reply_pkt = reply; in get_ipv4_reply()
264 struct net_pkt *reply; in get_ipv6_reply() local
273 if (!reply) { in get_ipv6_reply()
305 net_pkt_cursor_init(reply); in get_ipv6_reply()
308 *reply_pkt = reply; in get_ipv6_reply()
[all …]
/tests/net/tcp/src/
A Dmain.c536 struct net_pkt *reply; in handle_client_test() local
714 struct net_pkt *reply; in handle_server_test() local
1075 struct net_pkt *reply; in handle_syn_rst_ack() local
1137 struct net_pkt *reply; in handle_client_fin_wait_2_test() local
1262 struct net_pkt *reply; in handle_client_fin_wait_2_failure_test() local
1301 reply = NULL; in handle_client_fin_wait_2_failure_test()
1304 reply = NULL; in handle_client_fin_wait_2_failure_test()
1311 if (reply != NULL) { in handle_client_fin_wait_2_failure_test()
1433 reply = NULL; in handle_data_fin1_test()
1845 reply = NULL; in handle_client_closing_failure_test()
[all …]
/tests/net/lib/mqtt/v3_1_1/mqtt_client/src/
A Dmain.c172 reply = reply + out_len; in test_send_reply()
265 uint8_t reply[sizeof(pubcomp_reply_template)]; in broker_validate_packet() local
267 memcpy(reply, pubcomp_reply_template, sizeof(reply)); in broker_validate_packet()
268 memcpy(reply + 2, buf, 2); in broker_validate_packet()
269 test_send_reply(reply, sizeof(reply)); in broker_validate_packet()
275 uint8_t reply[sizeof(suback_reply_template)]; in broker_validate_packet() local
286 memcpy(reply + 2, buf, 2); in broker_validate_packet()
287 test_send_reply(reply, sizeof(reply)); in broker_validate_packet()
293 uint8_t reply[sizeof(unsuback_reply_template)]; in broker_validate_packet() local
303 memcpy(reply + 2, buf, 2); in broker_validate_packet()
[all …]
/tests/net/dhcpv6/src/
A Dmain.c872 struct net_pkt *reply; in test_solicit_expect_request_send_reply() local
894 result = net_ipv6_input(reply, false); in test_solicit_expect_request_send_reply()
913 struct net_pkt *reply; in test_solicit_expect_solicit_send_advertise() local
939 result = net_ipv6_input(reply, false); in test_solicit_expect_solicit_send_advertise()
984 struct net_pkt *reply; in expect_request_send_reply() local
996 result = net_ipv6_input(reply, false); in expect_request_send_reply()
1004 struct net_pkt *reply; in expect_solicit_send_advertise() local
1016 result = net_ipv6_input(reply, false); in expect_solicit_send_advertise()
1039 struct net_pkt *reply; in test_confirm_expect_confirm_send_reply() local
1107 struct net_pkt *reply; in test_rebind_expect_rebind_send_reply() local
[all …]
/tests/kernel/lifo/lifo_usage/src/
A Dmain.c32 int32_t reply; member
180 reply_packet->reply = in test_thread_timeout_reply_values()
193 reply_packet->reply = in test_thread_timeout_reply_values_wfe()
352 zassert_false(reply_packet.reply); in ZTEST()
371 zassert_true(reply_packet.reply); in ZTEST()
390 zassert_true(reply_packet.reply); in ZTEST()
/tests/kernel/fifo/fifo_timeout/src/
A Dmain.c39 int32_t reply; member
275 reply_packet->reply = in test_thread_timeout_reply_values()
285 reply_packet->reply = in test_thread_timeout_reply_values_wfe()
391 zassert_false(reply_packet.reply); in ZTEST()
410 zassert_true(reply_packet.reply); in ZTEST()
429 zassert_true(reply_packet.reply); in ZTEST()
/tests/boards/espressif/ethernet/
A DKconfig20 If no reply is received within this time, test will fail.
/tests/net/dhcpv4/server/src/
A Dmain.c76 struct net_pkt *reply; in send_icmp_echo_reply() local
80 reply = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), payload_len, in send_icmp_echo_reply()
82 zassert_not_null(reply, "Failed to allocate echo reply"); in send_icmp_echo_reply()
84 zassert_ok(net_ipv4_create(reply, (struct in_addr *)ipv4_hdr->dst, in send_icmp_echo_reply()
88 zassert_ok(net_icmpv4_create(reply, NET_ICMPV4_ECHO_REPLY, 0), in send_icmp_echo_reply()
90 zassert_ok(net_pkt_copy(reply, pkt, payload_len), in send_icmp_echo_reply()
93 net_pkt_cursor_init(reply); in send_icmp_echo_reply()
94 net_ipv4_finalize(reply, IPPROTO_ICMP); in send_icmp_echo_reply()
96 zassert_ok(net_recv_data(test_ctx.iface, reply), "Failed to receive data"); in send_icmp_echo_reply()
/tests/net/lib/coap/src/
A Dmain.c952 struct coap_reply *reply, in resource_reply_cb() argument
964 struct coap_reply *reply; in ZTEST() local
990 reply = coap_reply_next_unused(replies, NUM_REPLIES); in ZTEST()
991 zassert_not_null(reply, "No resources for waiting for replies"); in ZTEST()
993 coap_reply_init(reply, &req); in ZTEST()
994 reply->reply = resource_reply_cb; in ZTEST()
1013 reply = coap_response_received(&rsp, in ZTEST()
1016 zassert_not_null(reply, "Couldn't find a matching waiting reply"); in ZTEST()
1922 struct coap_reply *reply, in reply_cb() argument
1932 { .id = 100, .reply = reply_cb }, in ZTEST()
[all …]
/tests/net/vlan/src/
A Dmain.c178 uint8_t reply[sizeof(icmpv6_echo_reply) - sizeof(struct net_eth_hdr)]; in eth_tx() local
188 net_pkt_read(pkt, reply, sizeof(reply)); in eth_tx()
189 zassert_mem_equal(reply, icmpv6_echo_reply + sizeof(struct net_eth_hdr), in eth_tx()
190 sizeof(reply) - sizeof(struct net_eth_hdr), in eth_tx()
/tests/boards/espressif/wifi/
A DKconfig81 If no reply is received within this time, test will fail.
/tests/net/ipv6/src/
A Dmain.c745 bool reply; member
762 if (ctx->reply) { in expect_nd_ns()
777 .reply = true in ZTEST()
859 .reply = true in ZTEST()
1035 bool reply; member
1052 if (ctx->reply) { in expect_dad_ns()
1662 .reply = true in ZTEST()
/tests/net/lib/lwm2m/lwm2m_rd_client/src/
A Dmain.c183 struct coap_reply reply; in message_reply_cb_default() local
187 memset(&reply, 0, sizeof(struct coap_reply)); in message_reply_cb_default()
190 msg->reply_cb(&response, &reply, &from); in message_reply_cb_default()
/tests/net/socket/tls/src/
A Dmain.c929 bool reply; member
940 if (!data->reply) { in fake_tcp_server_work()
967 struct sockaddr *s_saddr, bool reply) in test_prepare_fake_tcp_server() argument
985 s_data->reply = reply; in test_prepare_fake_tcp_server()
/tests/net/lib/lwm2m/lwm2m_engine/src/
A Dmain.c49 struct coap_reply *reply) in find_msg_custom_fake() argument
/tests/bluetooth/classic/smp_io_cap/pytest/
A Dtest_smp.py232 async def reply() -> None: function
248 AsyncRunner.spawn(reply())
/tests/bluetooth/classic/smp_general/pytest/
A Dtest_smp.py298 async def reply() -> None: function
314 AsyncRunner.spawn(reply())

Completed in 46 milliseconds