Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_uploader.c17 static uint8_t sample_packet[sizeof(struct zperf_udp_datagram) + variable
70 datagram = (struct zperf_udp_datagram *)sample_packet; in zperf_upload_fin()
77 hdr = (struct zperf_client_hdr_v1 *)(sample_packet + in zperf_upload_fin()
88 hdr->buffer_len = sizeof(sample_packet) - in zperf_upload_fin()
94 ret = zsock_send(sock, sample_packet, packet_size, 0); in zperf_upload_fin()
177 (void)memset(sample_packet, 'z', sizeof(sample_packet)); in udp_upload()
213 datagram = (struct zperf_udp_datagram *)sample_packet; in udp_upload()
219 hdr = (struct zperf_client_hdr_v1 *)(sample_packet + in udp_upload()
224 hdr->buffer_len = sizeof(sample_packet) - in udp_upload()
230 ret = zsock_send(sock, sample_packet, packet_size, 0); in udp_upload()
Dzperf_tcp_uploader.c19 static char sample_packet[PACKET_SIZE_MAX]; variable
59 (void)memset(sample_packet, 'z', sizeof(sample_packet)); in tcp_upload()
65 (void)memset(sample_packet, 0, sizeof(uint32_t)); in tcp_upload()
69 ret = sendall(sock, sample_packet, packet_size); in tcp_upload()