Skip to content

Support extended ACK message in NLMSG_DONE - #74

Merged
cathay4t merged 2 commits into
rust-netlink:mainfrom
cathay4t:main
Nov 15, 2026
Merged

cathay4t merged 2 commits into
rust-netlink:mainfrom
cathay4t:main

Conversation

@cathay4t

Copy link
Copy Markdown
Member

Also changed ErrorMessage::code back to i32

Parse the raw extended ACK trailer of `NLMSG_DONE` through the new
`DoneMessage::extended_ack_message()` accessor, and remove the unused
`DoneBuffer::extended_ack_mut()`.

The unit test uses a real nlmon capture from a strict `RTM_GETLINK`
dump request rejected by the kernel.

Signed-off-by: Gris Ge <cnfourt@gmail.com>
`Option<NonZeroI32>` forces consumers to unwrap the value even though
`0` already represents an ACK and negative errno values represent
errors. Use a plain `i32` to match the wire format and the previous
API.

Signed-off-by: Gris Ge <cnfourt@gmail.com>
@cathay4t
cathay4t merged commit f967921 into rust-netlink:main Nov 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant