-
Notifications
You must be signed in to change notification settings - Fork 10
Add channel get and set functionality #14
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
base: main
Are you sure you want to change the base?
Conversation
Let's wait #8 been updated and merged. |
@cathay4t that PR seems to be abandoned. Any objection to continuing here? |
Please continue here. Thanks! |
OK, ready for review :) |
@connorworley The code looks good. Could you include a unit test like https://github.com/rust-netlink/netlink-packet-route/blob/main/src/link/tests/bond.rs or at lease provide a example code? I tried |
} | ||
} | ||
|
||
pub fn rx_count(mut self, count: u32) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of every function pushing a NLA, could you try builder way like rust-netlink/rtnetlink#57
@connorworley hello,I try to set combined like this.
but no msg in stream. It will be blocked. Perhaps I need to use notify? |
strace info
sendto(3, [{nlmsg_len=44, nlmsg_type=ethtool, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=2, nlmsg_pid=0}, Lines 78 to 85 in 96a97a7
no NLM_F_ACK |
Hi, I'm interested in continuing this. @connorworley would you mind if I base a PR on your work here? |
go for it |
I wrote this before realizing #8 already adds get functionality, oops. This also adds set functionality.