From 5807d3a8a6157957f240cd716aed87ee5b861fcc Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Fri, 31 Jul 2026 17:44:29 +0200 Subject: [PATCH] fix(tools): the loss harness catches up with seal_streamed_chunk's slice flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 49bc93cd grew seal_streamed_chunk a slice_end parameter and updated every caller except this one — the Linux clippy leg has been red since (run 10615+). false = the legacy full-FEC-block granularity the harness always exercised; its loopback client never advertises the P2 slice wire. Co-Authored-By: Claude Fable 5 --- tools/loss-harness/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/loss-harness/src/main.rs b/tools/loss-harness/src/main.rs index b871ac4b..0caeb881 100644 --- a/tools/loss-harness/src/main.rs +++ b/tools/loss-harness/src/main.rs @@ -60,7 +60,9 @@ fn run( if streamed { let mut au = host.begin_streamed_frame_at(f as u64, 0, f as u32).unwrap(); for chunk in frame.chunks(frame_len / 3 + 1) { - let wires = host.seal_streamed_chunk(&mut au, chunk).unwrap(); + // slice_end=false: the harness exercises the legacy full-FEC-block granularity + // (its loopback client never advertises the P2 slice wire). + let wires = host.seal_streamed_chunk(&mut au, chunk, false).unwrap(); send_wires(&mut host, wires); } let wires = host.seal_streamed_finish(au).unwrap();