#84: prevent valid Nonce Reports being dropped after an end node restart - #92
Conversation
PR SummaryHigh Risk Overview
Adds Reviewed by Cursor Bugbot for commit a35c3cd. Configure here. |
The risk classification is understandable because The change is intentional and aligned with the S2 duplicate-detection Replay protection for an immediate duplicate remains intact: the regression |
…er an end node restart Signed-off-by: Peter Balogh <peter.balogh@silabs.com>
a35c3cd to
5d51445
Compare
|
CTT Jenkins job: |
|
CTT Jenkins job: |
Issue
Closes: #84
Change
Description
Fix S2 duplicate detection incorrectly dropping valid Nonce Reports after an end node restarts.
An end node selects a random sequence number at startup. This sequence may be one below the last value stored by ZPC. Previously, the duplicate window treated both the current and preceding sequence numbers as duplicates, preventing SPAN re-establishment.
The fix rejects only an exact
(peer, sequence number)match and stores any different sequence number as the new value.Specification alignment
This follows the S2 duplicate-detection requirements
CC:009F.01.00.11.02D–CC:009F.01.00.11.030, which define duplicate detection using the source peer and sequence number.It also supports
CC:009F.01.00.11.0AD, which requires a random sequence number at startup.Checklist
./ci/scripts/clang-tidy.sh checkhas been run locally (see CONTRIBUTING.md)