| /Zephyr-4.2.1/tests/net/socket/af_inet_raw/src/ |
| D | main.c | 136 static uint8_t test_payload[] = "test_payload"; variable 329 size_t expected_len = headers_len + sizeof(test_payload); in verify_raw_recv_success() 338 zassert_mem_equal(rx_buf + headers_len, test_payload, sizeof(test_payload), in verify_raw_recv_success() 357 uint16_t packet_len = headers_len + sizeof(test_payload); in prepare_raw_ip_packet() 378 udp->len = net_htons(sizeof(test_payload) + NET_UDPH_LEN); in prepare_raw_ip_packet() 381 memcpy(tx_buf + NET_IPV4UDPH_LEN, test_payload, sizeof(test_payload)); in prepare_raw_ip_packet() 388 ipv6->len = net_htons(sizeof(test_payload) + NET_UDPH_LEN); in prepare_raw_ip_packet() 398 udp->len = net_htons(sizeof(test_payload) + NET_UDPH_LEN); in prepare_raw_ip_packet() 401 memcpy(tx_buf + NET_IPV6UDPH_LEN, test_payload, sizeof(test_payload)); in prepare_raw_ip_packet() 418 zassert_equal(ret, sizeof(test_payload), in test_raw_sock_send() [all …]
|
| /Zephyr-4.2.1/tests/net/socket/af_packet/src/ |
| D | main.c | 101 static const uint8_t test_payload[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; variable 362 ret = zsock_sendto(packet_sock_2, test_payload, sizeof(test_payload), 0, in ZTEST() 364 zassert_equal(ret, sizeof(test_payload), "Cannot send all data (%d)", in ZTEST() 376 zassert_equal(ret, sizeof(test_payload), in ZTEST() 378 ret, sizeof(test_payload), -errno); in ZTEST() 395 zassert_mem_equal(test_payload, rx_buf, sizeof(test_payload), in ZTEST() 403 ret = zsock_sendto(packet_sock_2, test_payload, sizeof(test_payload), 0, in ZTEST() 405 zassert_equal(ret, sizeof(test_payload), "Cannot send all data (%d)", in ZTEST() 420 zassert_equal(ret, sizeof(test_payload), "Cannot receive all data (%d)", in ZTEST() 437 zassert_mem_equal(test_payload, rx_buf, sizeof(test_payload), in ZTEST() [all …]
|
| /Zephyr-4.2.1/tests/net/lib/lwm2m/content_plain_text/src/ |
| D | main.c | 16 static uint8_t test_payload[128]; variable 28 memset(&test_payload, 0, sizeof(test_payload)); in context_reset() 30 test_packet.data = test_payload; in context_reset() 31 test_packet.max_len = sizeof(test_payload); in context_reset() 46 test_packet.offset = sizeof(test_payload); in test_prepare_nomem() 55 test_packet.hdr_len = sizeof(test_payload); in test_prepare_nodata() 56 test_packet.offset = sizeof(test_payload); in test_prepare_nodata() 57 test_in.offset = sizeof(test_payload); in test_prepare_nodata() 62 memcpy(test_payload + 1, payload, strlen(payload)); in test_payload_set()
|
| /Zephyr-4.2.1/tests/net/lib/lwm2m/content_link_format/src/ |
| D | main.c | 86 static uint8_t test_payload[128]; variable 96 memset(&test_payload, 0, sizeof(test_payload)); in context_reset() 98 test_packet.data = test_payload; in context_reset() 99 test_packet.max_len = sizeof(test_payload); in context_reset() 121 test_packet.offset = sizeof(test_payload); in test_prepare_nomem()
|
| /Zephyr-4.2.1/tests/net/lib/lwm2m/content_raw_cbor/src/ |
| D | main.c | 24 static uint8_t test_payload[128]; variable 36 memset(&test_payload, 0, sizeof(test_payload)); in context_reset() 38 test_packet.data = test_payload; in context_reset() 39 test_packet.max_len = sizeof(test_payload); in context_reset() 54 test_packet.offset = sizeof(test_payload); in test_prepare_nomem() 63 test_packet.offset = sizeof(test_payload); in test_prepare_nodata() 64 test_in.offset = sizeof(test_payload); in test_prepare_nodata() 69 memcpy(test_payload + 1, payload, len); in test_payload_set()
|
| /Zephyr-4.2.1/tests/net/lib/lwm2m/content_oma_tlv/src/ |
| D | main.c | 32 static uint8_t test_payload[128]; variable 48 memset(&test_payload, 0, sizeof(test_payload)); in context_reset() 50 test_packet.data = test_payload; in context_reset() 51 test_packet.max_len = sizeof(test_payload); in context_reset() 66 test_packet.offset = sizeof(test_payload); in test_prepare_nomem() 73 test_packet.offset = sizeof(test_payload); in test_prepare_nodata() 74 test_in.offset = sizeof(test_payload); in test_prepare_nodata() 79 memcpy(test_payload + 1, payload, len); in test_payload_set()
|
| /Zephyr-4.2.1/tests/net/lib/coap/src/ |
| D | main.c | 1359 static const uint8_t test_payload[] = {0xde, 0xad, 0xbe, 0xef}; in init_basic_test_msg() local 1361 r = coap_packet_append_payload(cpkt, test_payload, ARRAY_SIZE(test_payload)); in init_basic_test_msg() 1464 static const uint8_t test_payload[] = {0xde, 0xad, 0xbe, 0xef}; in ZTEST() local 1466 r1 = coap_packet_append_payload(&cpkt, test_payload, ARRAY_SIZE(test_payload)); in ZTEST() 1601 static const uint8_t test_payload[] = {0xde, 0xad, 0xbe, 0xef}; in ZTEST() local 1603 r = coap_packet_append_payload(&cpkt, test_payload, ARRAY_SIZE(test_payload)); in ZTEST()
|
| /Zephyr-4.2.1/tests/net/lib/mqtt/v5_0/mqtt_packet/src/ |
| D | mqtt_packet.c | 13 static uint8_t test_payload[] = { 't', 'e', 's', 't', '_', 'p', 'a', 'y', 'l', variable 28 #define TEST_PAYLOAD (struct mqtt_binstr) { test_payload, sizeof(test_payload) }
|