Skip to content

Support full done message #12

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

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Support full done message #12

merged 1 commit into from
Jun 26, 2023

Conversation

ghananigans
Copy link
Contributor

Currently, done messages are treated as having a zero-sized payload but they are expected to have at least a 4 byte payload holding an error code. This causes issues when serializing done messages that are consumed applications expecting conformant done messages.

See https://kernel.org/doc/html/next/userspace-api/netlink/intro.html#netlink-message-types for details.

Fixes #11

Currently, done messages are treated as having a zero-sized payload but
they are expected to have at least a 4 byte payload holding an error
code. This causes issues when serializing done messages that are
consumed applications expecting conformant done messages.

See https://kernel.org/doc/html/next/userspace-api/netlink/intro.html#netlink-message-types
for details.

Fixes #11
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #12 (8c76a68) into main (96b3136) will increase coverage by 17.03%.
The diff coverage is 79.67%.

@@             Coverage Diff             @@
##             main      #12       +/-   ##
===========================================
+ Coverage   49.85%   66.88%   +17.03%     
===========================================
  Files           6        7        +1     
  Lines         337      453      +116     
===========================================
+ Hits          168      303      +135     
+ Misses        169      150       -19     
Impacted Files Coverage Δ
src/lib.rs 100.00% <ø> (ø)
src/message.rs 56.41% <68.00%> (+56.41%) ⬆️
src/done.rs 87.50% <87.50%> (ø)
src/payload.rs 55.55% <100.00%> (+55.55%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ghananigans
Copy link
Contributor Author

Thanks for the approval :)!

How do I get this submitted?

@ghananigans
Copy link
Contributor Author

kind ping here for submission :)

Copy link
Member

@cathay4t cathay4t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@cathay4t cathay4t merged commit 0c75fb5 into rust-netlink:main Jun 26, 2023
@cathay4t
Copy link
Member

cathay4t commented Jun 26, 2023

Let's wait rust-netlink/netlink-packet-generic#8 and rust-netlink/netlink-packet-generic#7 been merged. Afterwards, we can ship a new release for you to consume.

Update: No the core does not need generic. Let me do the release now.

@cathay4t
Copy link
Member

0.6.0 released with this done message support. https://github.com/rust-netlink/netlink-packet-core/releases/tag/v0.6.0

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.

Done messages are missing the error code
3 participants