Skip to content

Commit

Permalink
Add missing NETLINK_* socket option constants on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
tklauser committed Oct 15, 2021
1 parent 5b308d9 commit d8e549c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1130,18 +1130,23 @@ NCP_SUPER_MAGIC
NETLINK_ADD_MEMBERSHIP
NETLINK_AUDIT
NETLINK_BROADCAST_ERROR
NETLINK_CAP_ACK
NETLINK_CONNECTOR
NETLINK_CRYPTO
NETLINK_DNRTMSG
NETLINK_DROP_MEMBERSHIP
NETLINK_ECRYPTFS
NETLINK_EXT_ACK
NETLINK_FIB_LOOKUP
NETLINK_FIREWALL
NETLINK_GENERIC
NETLINK_GET_STRICT_CHK
NETLINK_INET_DIAG
NETLINK_IP6_FW
NETLINK_ISCSI
NETLINK_KOBJECT_UEVENT
NETLINK_LISTEN_ALL_NSID
NETLINK_LIST_MEMBERSHIPS
NETLINK_NETFILTER
NETLINK_NFLOG
NETLINK_NO_ENOBUFS
Expand Down
5 changes: 5 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,11 @@ pub const NETLINK_BROADCAST_ERROR: ::c_int = 4;
pub const NETLINK_NO_ENOBUFS: ::c_int = 5;
pub const NETLINK_RX_RING: ::c_int = 6;
pub const NETLINK_TX_RING: ::c_int = 7;
pub const NETLINK_LISTEN_ALL_NSID: ::c_int = 8;
pub const NETLINK_LIST_MEMBERSHIPS: ::c_int = 9;
pub const NETLINK_CAP_ACK: ::c_int = 10;
pub const NETLINK_EXT_ACK: ::c_int = 11;
pub const NETLINK_GET_STRICT_CHK: ::c_int = 12;

pub const GRND_NONBLOCK: ::c_uint = 0x0001;
pub const GRND_RANDOM: ::c_uint = 0x0002;
Expand Down

0 comments on commit d8e549c

Please sign in to comment.