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

ipv6/nib: fix router lifetime handling in RIO and fix gnrc_ipv6_nib_ft_add() api #20342

Merged

Conversation

fabian18
Copy link
Contributor

@fabian18 fabian18 commented Feb 5, 2024

Contribution description

The lifetime of a prefix comes as a uint32_t and not as a uint16_t.
Infinite lifetime is assumed when 0 is passed to gnrc_ipv6_nib_ft_add().
In _handle_rio() this was not correctly transformed from the option's value to the input of gnrc_ipv6_nib_ft_add().

Testing procedure

The impact is not really big, it should just run fine.

Issues/PRs references

@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System labels Feb 5, 2024
@fabian18 fabian18 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 5, 2024
@benpicco benpicco added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Feb 5, 2024
@fabian18 fabian18 force-pushed the pr/fix_router_lifetime_and_ft_add_api branch from c67fd2d to 59e3fa6 Compare February 5, 2024 17:46
@riot-ci
Copy link

riot-ci commented Feb 5, 2024

Murdock results

✔️ PASSED

fef5c8c ipv6/nib: fix lifetime handling in RIO handling

Success Failures Total Runtime
10016 0 10016 10m:40s

Artifacts

@fabian18 fabian18 force-pushed the pr/fix_router_lifetime_and_ft_add_api branch from b380fb0 to a11a1ea Compare February 6, 2024 17:25
@fabian18 fabian18 force-pushed the pr/fix_router_lifetime_and_ft_add_api branch from a11a1ea to fef5c8c Compare February 6, 2024 17:36
@benpicco benpicco added this pull request to the merge queue Feb 6, 2024
Merged via the queue into RIOT-OS:master with commit 83f3c4a Feb 6, 2024
26 checks passed
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.04 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants