Add ping rate tests, discover_peer helper, standardize prepend_buffer to 4096

This commit is contained in:
Ian Gulliver
2026-04-11 09:17:46 +09:00
parent a6225faa2b
commit 1843660e6f
6 changed files with 199 additions and 68 deletions

View File

@@ -36,7 +36,7 @@ bool is_member_mac(const eth::mac_addr& mac) {
static void send_report(const ipv4::ip4_addr& group,
eth::mac_addr our_mac, ipv4::ip4_addr our_ip,
std::function<void(std::span<const uint8_t>)> send_raw) {
prepend_buffer<128> buf;
prepend_buffer<4096> buf;
prepend_report(buf, our_mac, our_ip, group);
send_raw(buf.span());
}