Lines Matching refs:rx_buf
56 static ZTEST_BMEM char rx_buf[NET_ETH_MTU + 1]; variable
93 clear_buf(rx_buf); in comm_sendto_recvfrom()
94 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom()
99 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom()
104 clear_buf(rx_buf); in comm_sendto_recvfrom()
105 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom()
110 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom()
130 clear_buf(rx_buf); in comm_sendto_recvfrom()
131 recved = zsock_recvfrom(client_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom()
136 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR2), "wrong data"); in comm_sendto_recvfrom()
156 clear_buf(rx_buf); in comm_sendto_recvfrom()
157 recved = zsock_recvfrom(client_sock, rx_buf, 16, 0, &addr2, &addrlen2); in comm_sendto_recvfrom()
159 zassert_mem_equal(rx_buf, TEST_STR2, 16, "wrong data"); in comm_sendto_recvfrom()
163 clear_buf(rx_buf); in comm_sendto_recvfrom()
164 recved = zsock_recvfrom(client_sock, rx_buf, 16, 0, &addr2, &addrlen2); in comm_sendto_recvfrom()
166 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom()
389 clear_buf(rx_buf); in comm_sendmsg_recvfrom()
390 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendmsg_recvfrom()
398 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), in comm_sendmsg_recvfrom()
399 "wrong data (%s)", rx_buf); in comm_sendmsg_recvfrom()
404 clear_buf(rx_buf); in comm_sendmsg_recvfrom()
405 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendmsg_recvfrom()
410 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendmsg_recvfrom()
813 clear_buf(rx_buf); in ZTEST()
815 recved = zsock_recvfrom(sock1, rx_buf, sizeof(rx_buf), in ZTEST()
825 recved = zsock_recvfrom(sock2, rx_buf, sizeof(rx_buf), in ZTEST()
1248 memset(rx_buf, 0, sizeof(rx_buf)); in test_dgram_fragmented()
1249 rv = zsock_recv(sock_s, rx_buf, sizeof(rx_buf), 0); in test_dgram_fragmented()
1251 zassert_mem_equal(rx_buf, buf, buf_size, "wrong data"); in test_dgram_fragmented()
1320 uint8_t rx_buf; in test_dgram_connected() local
1342 rx_buf = 0; in test_dgram_connected()
1343 rv = zsock_recv(sock_c, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_dgram_connected()
1344 zassert_equal(rv, sizeof(rx_buf), "recv failed"); in test_dgram_connected()
1345 zassert_equal(rx_buf, tx_buf, "wrong data"); in test_dgram_connected()
1354 rv = zsock_recv(sock_c, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_dgram_connected()
1518 "wrong data (%s)", rx_buf); in comm_sendmsg_recvmsg()
1522 clear_buf(rx_buf); in comm_sendmsg_recvmsg()
1528 "wrong data (%s)", rx_buf); in comm_sendmsg_recvmsg()
1950 uint8_t rx_buf; in test_check_ttl() local
1997 ret = zsock_recv(sock_s, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_check_ttl()
1999 zassert_equal(ret, sizeof(rx_buf), "recv failed (%d)", ret); in test_check_ttl()
2000 zassert_equal(rx_buf, tx_buf, "wrong data"); in test_check_ttl()
2093 ret = zsock_recv(sock_s, &rx_buf, sizeof(rx_buf), 0); in test_check_ttl()
2137 ret = zsock_recv(sock_s, &rx_buf, sizeof(rx_buf), 0); in test_check_ttl()
2657 ret = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in ZTEST()
2662 zexpect_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(TEST_STR_SMALL) - 1, in ZTEST()
2822 ret = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in ZTEST()
2827 zexpect_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(TEST_STR_SMALL) - 1, in ZTEST()
2883 ret = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in ZTEST()
2888 zexpect_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(TEST_STR_SMALL) - 1, in ZTEST()
2910 ret = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in ZTEST()
2915 zexpect_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(TEST_STR_SMALL) - 1, in ZTEST()