Checksum the header and refuse sequence numbers the sender never sent

This commit is contained in:
flamingcow
2026-08-04 20:41:16 -07:00
parent 703039587b
commit 1d54a1a1f6
9 changed files with 241 additions and 35 deletions
+2 -2
View File
@@ -210,8 +210,8 @@ func (r *probeReceiver) run(done *atomic.Bool) {
if err != nil {
continue
}
h, ok := parseHeader(buf[:n])
if !ok || h.stream != probeStream {
h, st := parseHeader(buf[:n])
if st != hdrOK || h.stream != probeStream {
continue
}
ts, ok := hwTimestamp(oob[:oobn])