Checksum the header and refuse sequence numbers the sender never sent
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user