Skip to content

Commit d8e549c

Browse files
committed
Add missing NETLINK_* socket option constants on Android
These are all available on Android, see https://android.googlesource.com/platform/bionic/+/05667cd66a3ea0e75611f1bec36a67098ac92179/libc/kernel/uapi/linux/netlink.h#112
1 parent 5b308d9 commit d8e549c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

libc-test/semver/android.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1130,18 +1130,23 @@ NCP_SUPER_MAGIC
11301130
NETLINK_ADD_MEMBERSHIP
11311131
NETLINK_AUDIT
11321132
NETLINK_BROADCAST_ERROR
1133+
NETLINK_CAP_ACK
11331134
NETLINK_CONNECTOR
11341135
NETLINK_CRYPTO
11351136
NETLINK_DNRTMSG
11361137
NETLINK_DROP_MEMBERSHIP
11371138
NETLINK_ECRYPTFS
1139+
NETLINK_EXT_ACK
11381140
NETLINK_FIB_LOOKUP
11391141
NETLINK_FIREWALL
11401142
NETLINK_GENERIC
1143+
NETLINK_GET_STRICT_CHK
11411144
NETLINK_INET_DIAG
11421145
NETLINK_IP6_FW
11431146
NETLINK_ISCSI
11441147
NETLINK_KOBJECT_UEVENT
1148+
NETLINK_LISTEN_ALL_NSID
1149+
NETLINK_LIST_MEMBERSHIPS
11451150
NETLINK_NETFILTER
11461151
NETLINK_NFLOG
11471152
NETLINK_NO_ENOBUFS

src/unix/linux_like/android/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1784,6 +1784,11 @@ pub const NETLINK_BROADCAST_ERROR: ::c_int = 4;
17841784
pub const NETLINK_NO_ENOBUFS: ::c_int = 5;
17851785
pub const NETLINK_RX_RING: ::c_int = 6;
17861786
pub const NETLINK_TX_RING: ::c_int = 7;
1787+
pub const NETLINK_LISTEN_ALL_NSID: ::c_int = 8;
1788+
pub const NETLINK_LIST_MEMBERSHIPS: ::c_int = 9;
1789+
pub const NETLINK_CAP_ACK: ::c_int = 10;
1790+
pub const NETLINK_EXT_ACK: ::c_int = 11;
1791+
pub const NETLINK_GET_STRICT_CHK: ::c_int = 12;
17871792

17881793
pub const GRND_NONBLOCK: ::c_uint = 0x0001;
17891794
pub const GRND_RANDOM: ::c_uint = 0x0002;

0 commit comments

Comments
 (0)