Rename ping_rate/ping_rate_1k to packet_rate/byte_rate, use 1400-byte payloads

This commit is contained in:
Ian Gulliver
2026-04-12 07:55:30 +09:00
parent 761b740c10
commit 9b7362c460

View File

@@ -238,12 +238,12 @@ static void start_ping_rate(const responder& resp, uint16_t target,
}); });
} }
static void test_ping_rate(const responder& resp) { static void test_packet_rate(const responder& resp) {
start_ping_rate(resp, 8192, 0, 8); start_ping_rate(resp, 8192, 0, 8);
} }
static void test_ping_rate_1k(const responder& resp) { static void test_byte_rate(const responder& resp) {
start_ping_rate(resp, 2048, 1024, 8); start_ping_rate(resp, 2048, 1400, 8);
} }
using sync_test_fn = ResponseTest (*)(const responder&); using sync_test_fn = ResponseTest (*)(const responder&);
@@ -259,8 +259,8 @@ static const std::unordered_map<std::string_view, test_entry> tests = {
{"discovery_info", {nullptr, test_discovery_info}}, {"discovery_info", {nullptr, test_discovery_info}},
{"ping_subnet", {nullptr, test_ping_subnet}}, {"ping_subnet", {nullptr, test_ping_subnet}},
{"ping_global", {nullptr, test_ping_global}}, {"ping_global", {nullptr, test_ping_global}},
{"ping_rate", {nullptr, test_ping_rate}}, {"packet_rate", {nullptr, test_packet_rate}},
{"ping_rate_1k", {nullptr, test_ping_rate_1k}}, {"byte_rate", {nullptr, test_byte_rate}},
}; };
std::optional<ResponseListTests> handle_list_tests(const responder&, const RequestListTests&) { std::optional<ResponseListTests> handle_list_tests(const responder&, const RequestListTests&) {