Home
last modified time | relevance | path

Searched refs:data_to_send (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/tests/net/socket/af_packet/src/
Dmain.c222 uint8_t data_to_send[] = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; in ZTEST() local
223 uint8_t data_to_receive[sizeof(data_to_send) + HDR_SIZE]; in ZTEST()
244 sent = sendto(sock4, data_to_send, sizeof(data_to_send), in ZTEST()
246 zassert_equal(sent, sizeof(data_to_send), "sendto failed"); in ZTEST()
258 zassert_equal(ret, sizeof(data_to_send), "Cannot receive all data (%d)", in ZTEST()
260 zassert_mem_equal(data_to_receive, data_to_send, sizeof(data_to_send), in ZTEST()
276 zassert_equal(ret, sizeof(data_to_send) + HDR_SIZE, in ZTEST()
278 ret, sizeof(data_to_send), -errno); in ZTEST()
279 zassert_mem_equal(&data_to_receive[HDR_SIZE], data_to_send, in ZTEST()
280 sizeof(data_to_send), in ZTEST()
[all …]
/Zephyr-Core-3.5.0/subsys/net/lib/websocket/
Dwebsocket.c627 uint8_t *data_to_send = (uint8_t *)payload; in websocket_send_msg() local
700 data_to_send = k_malloc(payload_len); in websocket_send_msg()
701 if (!data_to_send) { in websocket_send_msg()
705 memcpy(data_to_send, payload, payload_len); in websocket_send_msg()
708 data_to_send[i] ^= ctx->masking_value >> (8 * (3 - i % 4)); in websocket_send_msg()
714 data_to_send, payload_len, timeout); in websocket_send_msg()
721 if (data_to_send != payload) { in websocket_send_msg()
722 k_free(data_to_send); in websocket_send_msg()