Skip to content

Commit 77636bb

Browse files
committed
Auto merge of #2453 - tklauser:linux-netlink-consts, r=JohnTitor
Add NETLINK_EXT_ACK and NETLINK_GET_STRICT_CHK on Linux
2 parents 473e8de + 2c65744 commit 77636bb

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

libc-test/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2928,6 +2928,9 @@ fn test_linux(target: &str) {
29282928
| "CLOSE_RANGE_UNSHARE"
29292929
| "CLOSE_RANGE_CLOEXEC" => true,
29302930

2931+
// FIXME: Not currently available in headers on ARM, MIPS and musl.
2932+
"NETLINK_GET_STRICT_CHK" if arm || mips || musl => true,
2933+
29312934
// kernel constants not available in uclibc 1.0.34
29322935
| "ADDR_COMPAT_LAYOUT"
29332936
| "ADDR_LIMIT_3GB"

libc-test/semver/linux.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1200,9 +1200,11 @@ NETLINK_CRYPTO
12001200
NETLINK_DNRTMSG
12011201
NETLINK_DROP_MEMBERSHIP
12021202
NETLINK_ECRYPTFS
1203+
NETLINK_EXT_ACK
12031204
NETLINK_FIB_LOOKUP
12041205
NETLINK_FIREWALL
12051206
NETLINK_GENERIC
1207+
NETLINK_GET_STRICT_CHK
12061208
NETLINK_INET_DIAG
12071209
NETLINK_IP6_FW
12081210
NETLINK_ISCSI

src/unix/linux_like/linux/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2394,6 +2394,8 @@ pub const NETLINK_TX_RING: ::c_int = 7;
23942394
pub const NETLINK_LISTEN_ALL_NSID: ::c_int = 8;
23952395
pub const NETLINK_LIST_MEMBERSHIPS: ::c_int = 9;
23962396
pub const NETLINK_CAP_ACK: ::c_int = 10;
2397+
pub const NETLINK_EXT_ACK: ::c_int = 11;
2398+
pub const NETLINK_GET_STRICT_CHK: ::c_int = 12;
23972399

23982400
pub const NLA_F_NESTED: ::c_int = 1 << 15;
23992401
pub const NLA_F_NET_BYTEORDER: ::c_int = 1 << 14;

0 commit comments

Comments
 (0)