Add channel get and set functionality#14
Add channel get and set functionality#14emmaworley wants to merge 2 commits intorust-netlink:mainfrom
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.
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 |
|
closing as duplicate of #23 which is merged. |
I wrote this before realizing #8 already adds get functionality, oops. This also adds set functionality.