Look the expected checksum up instead of carrying it in the frame

This commit is contained in:
flamingcow
2026-08-04 12:45:04 -07:00
parent 03b7ff4954
commit 1f9b5ea62e
4 changed files with 18 additions and 12 deletions
+1 -2
View File
@@ -156,8 +156,7 @@ func (p *probeSender) run(done *atomic.Bool, startTx <-chan struct{}) {
}
}
putHeader(buf, probePattern, probeStream, seq, probeSize-minFrame,
p.spec.crcFor[probePattern][probeSize])
putHeader(buf, probePattern, probeStream, seq, probeSize-minFrame)
err := unix.Send(p.fd, buf, 0)
// The sequence advances even when a probe fails, so a stale receive half
// can never be paired with a later probe that reused its number.