-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
linux: add rtnetlink mcast group definitions #2889
Conversation
r? @Amanieu (rust-highfive has picked a reviewer for you, use r? to override) |
f0143c9
to
921a470
Compare
☔ The latest upstream changes (presumably #2876) made this pull request unmergeable. Please resolve the merge conflicts. |
921a470
to
a768f1a
Compare
a768f1a
to
c74a65c
Compare
Thanks! @bors r+ |
linux: add rtnetlink mcast group definitions These come in two flavors: - RTNLGRP_* are bit indexes (arguments to setsockopt(2)) as used in the kernel with test_bit() but also userspace (see libnl examples). - RTMGRP_* are bitmasks not used in the kernel; their use seems to be deprecated, at least according to comments in libnl, but documentation still references them. The rationale for adding these definitions is that they're needed to subscribe to kernel events via Netlink multicast groups.
💔 Test failed - checks-actions |
These come in two flavors: - RTNLGRP_* are bit indexes (arguments to setsockopt(2)) as used in the kernel with test_bit() but also userspace (see libnl examples). - RTMGRP_* are bitmasks not used in the kernel; their use seems to be deprecated, at least according to comments in libnl, but documentation still references them. The rationale for adding these definitions is that they're needed to subscribe to kernel events via Netlink multicast groups.
c74a65c
to
d2e04b9
Compare
@bors r+ |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
Thanks @JohnTitor ! |
These come in two flavors:
RTNLGRP_* are bit indexes (arguments to setsockopt(2)) as used
in the kernel with test_bit() but also userspace (see libnl
examples).
RTMGRP_* are bitmasks not used in the kernel; their use
seems to be deprecated, at least according to comments in
libnl, but documentation still references them.
The rationale for adding these definitions is that they're needed
to subscribe to kernel events via Netlink multicast groups.