Skip to content
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

Ipv6RoutingHeader::clear_reserved: fix offsets for Type 2 routing headers. #882

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented Dec 27, 2023

Noticed this off-by-2, bytes 6 & 7 are part of the Home Address field not the Reserved portion.

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4e2f477) 79.77% compared to head (6eccf51) 79.77%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #882   +/-   ##
=======================================
  Coverage   79.77%   79.77%           
=======================================
  Files          78       78           
  Lines       28133    28133           
=======================================
  Hits        22443    22443           
  Misses       5690     5690           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Using 0xff filled buffers as test vectors to ensure that the reserved
fields are cleared to 0.
@thvdveld
Copy link
Contributor

thvdveld commented Jan 2, 2024

Thank you! I updated the emit test to make sure that this is not missed when changes are made to the logic.

@thvdveld thvdveld enabled auto-merge January 2, 2024 08:56
@thvdveld thvdveld added this pull request to the merge queue Jan 2, 2024
Merged via the queue into smoltcp-rs:main with commit 3f2a219 Jan 2, 2024
11 checks passed
@luqmana luqmana deleted the fix-ipv6routing-reserved-offsets branch January 2, 2024 19:06
@luqmana
Copy link
Contributor Author

luqmana commented Jan 2, 2024

Thank you! I updated the emit test to make sure that this is not missed when changes are made to the logic.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants