linux: add NLMSG_* helpers - #5321
Merged
Merged
Conversation
sbogomolov
force-pushed
the
linux-nlmsg-helpers
branch
from
August 2, 2026 19:41
a4014dd to
bb21ba9
Compare
This comment has been minimized.
This comment has been minimized.
tgross35
requested changes
Aug 3, 2026
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
sbogomolov
force-pushed
the
linux-nlmsg-helpers
branch
from
August 3, 2026 14:46
bb21ba9 to
c506b2e
Compare
This comment has been minimized.
This comment has been minimized.
Contributor
Author
sbogomolov
force-pushed
the
linux-nlmsg-helpers
branch
from
August 3, 2026 17:55
c506b2e to
4839359
Compare
Contributor
Author
|
The |
tgross35
enabled auto-merge
August 3, 2026 22:06
tgross35
force-pushed
the
linux-nlmsg-helpers
branch
from
August 3, 2026 22:06
4839359 to
5abd5d4
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Merged
tgross35
pushed a commit
to dybucc/libc
that referenced
this pull request
Aug 31, 2026
(backport <rust-lang#5321>) (cherry picked from commit 11f779b)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add the
NLMSG_*message-framing helpers fromlinux/netlink.h. The length helpers takec_uint(the macros do unsigned arithmetic viaNLMSG_ALIGNTO's4U), whileNLMSG_OK/NLMSG_NEXTtake the signed byte count the walk loop gets fromrecv.Sources
Linux
NLMSG_*(linux/netlink.h):Checklist
libc-test/semverhave been updated*LASTor*MAXare includedcd libc-test && cargo test --target mytarget)@rustbot label +stable-nominated