Rename ping_rate/ping_rate_1k to packet_rate/byte_rate, use 1400-byte payloads
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
static void test_ping_rate_1k(const responder& resp) {
|
||||
start_ping_rate(resp, 2048, 1024, 8);
|
||||
static void test_byte_rate(const responder& resp) {
|
||||
start_ping_rate(resp, 2048, 1400, 8);
|
||||
}
|
||||
|
||||
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}},
|
||||
{"ping_subnet", {nullptr, test_ping_subnet}},
|
||||
{"ping_global", {nullptr, test_ping_global}},
|
||||
{"ping_rate", {nullptr, test_ping_rate}},
|
||||
{"ping_rate_1k", {nullptr, test_ping_rate_1k}},
|
||||
{"packet_rate", {nullptr, test_packet_rate}},
|
||||
{"byte_rate", {nullptr, test_byte_rate}},
|
||||
};
|
||||
|
||||
std::optional<ResponseListTests> handle_list_tests(const responder&, const RequestListTests&) {
|
||||
|
||||
Reference in New Issue
Block a user