summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorPhilipp Gesang <philipp.gesang@intra2net.com>2022-08-24 09:06:45 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2022-08-31 18:05:43 +0200
commitd2e04b99dbc63208ad2dc2b2d880d351793e8eed (patch)
tree12f3cf0ecd0c7777794eacd88e2a2be1bd860119 /libc-test
parentaf5de5015907643c8ddba62dc33ec561e583ae40 (diff)
downloadrust-libc-d2e04b99dbc63208ad2dc2b2d880d351793e8eed.tar.gz
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.
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index ba428fc730..b332c2bda4 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -3208,6 +3208,12 @@ fn test_linux(target: &str) {
| "NFULA_VLAN_UNSPEC" // v5.4+
| "NFULA_VLAN_PROTO" // v5.4+
| "NFULA_VLAN_TCI" => true, // v5.4+
+ | "RTNLGRP_NEXTHOP" // linux v5.3+
+ | "RTNLGRP_BRVLAN" // linux v5.6+
+ | "RTNLGRP_MCTP_IFADDR" // linux v5.17+
+ | "RTNLGRP_TUNNEL" // linux v5.18+
+ | "RTNLGRP_STATS" // linux v5.18+
+ => true,
_ => false,
}