Add ping rate tests, discover_peer helper, standardize prepend_buffer to 4096
This commit is contained in:
@@ -51,7 +51,7 @@ static void handle_udp(std::span<const uint8_t> frame, span_writer& tx) {
|
||||
|
||||
msg_handler(pb.remaining().subspan(0, payload_len),
|
||||
[dst_mac, dst_ip, dst_port](std::span<const uint8_t> resp_data) {
|
||||
prepend_buffer<1514> buf;
|
||||
prepend_buffer<4096> buf;
|
||||
buf.append_copy(resp_data);
|
||||
udp::prepend(buf, dst_mac, state.mac, state.ip, dst_ip,
|
||||
PICOMAP_PORT, dst_port, resp_data.size());
|
||||
|
||||
Reference in New Issue
Block a user