Skip to content

Fix E2E protection checker counter increment #889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ profile_04_checker::verify_counter(instance_t _instance, uint16_t _received_coun
its_delta = uint16_t(_received_counter - its_counter);
else
its_delta = uint16_t(uint16_t(0xffff) - its_counter + _received_counter);

find_counter->second = _received_counter;
} else {
counter_[_instance] = _received_counter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ profile_05_checker::verify_counter(instance_t _instance, uint8_t _received_count
its_delta = uint8_t(_received_counter - its_counter);
else
its_delta = uint8_t(uint8_t(0xff) - its_counter + _received_counter);

find_counter->second = _received_counter;
} else {
counter_[_instance] = _received_counter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ profile_07_checker::verify_counter(instance_t _instance, uint32_t _received_coun
its_delta = uint32_t(_received_counter - its_counter);
else
its_delta = uint32_t(uint32_t(0xffffffff) - its_counter + _received_counter);

find_counter->second = _received_counter;
} else {
counter_[_instance] = _received_counter;
}
Expand Down