20#ifndef TEST_UTILS_BENCHMARK_UDP_H
21#define TEST_UTILS_BENCHMARK_UDP_H
33#ifndef BENCH_PAYLOAD_SIZE_MAX
34#define BENCH_PAYLOAD_SIZE_MAX (1024)
40#ifndef BENCH_SERVER_DEFAULT
41#define BENCH_SERVER_DEFAULT "fd00:dead:beef::1"
47#ifndef BENCH_PORT_DEFAULT
48#define BENCH_PORT_DEFAULT (12345)
54#define BENCH_FLAG_CMD_PKT (1 << 0)
59#define BENCH_MASK_COOKIE (0xFFFFFF00)
bool benchmark_udp_stop(void)
Stop the benchmark process.
int benchmark_udp_start(const char *server, uint16_t port)
This will start the benchmark process.
Command response from the server.
uint32_t delay_us
delay between benchmark messages in µs
uint16_t payload_len
payload of benchmark messages
uint32_t flags
contains new config cookie
Benchmark message to the server.
uint32_t replies
number of replies received from server
uint32_t seq_no
number of packets sent sind config update
uint32_t flags
must include config cookie
uint32_t rtt_last
round trip time of the last packet