summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Cheng <brandon.cheng@protonmail.com>2019-10-06 13:25:56 -0400
committerBrandon Cheng <brandon.cheng@protonmail.com>2019-10-06 13:27:23 -0400
commit6caa8ea9a5ca0ced0c3676ec5c5ededbf43a1bf2 (patch)
treecbf6d5ad6010c07bc886c650e1f218235fe8a126
parentff63cb517872d95bdba9960d4d200d024c1805a0 (diff)
downloadrust-libc-6caa8ea9a5ca0ced0c3676ec5c5ededbf43a1bf2.tar.gz
Add IFLA_INFO_ consts
See https://github.com/torvalds/linux/blob/54ecb8f7/include/uapi/linux/if_link.h#L354-L362
-rw-r--r--src/unix/linux_like/linux/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs
index 8e8223cda2..04d19ea08a 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -1128,6 +1128,13 @@ pub const IFLA_LINK: ::c_ushort = 5;
pub const IFLA_QDISC: ::c_ushort = 6;
pub const IFLA_STATS: ::c_ushort = 7;
+pub const IFLA_INFO_UNSPEC: ::c_ushort = 0;
+pub const IFLA_INFO_KIND: ::c_ushort = 1;
+pub const IFLA_INFO_DATA: ::c_ushort = 2;
+pub const IFLA_INFO_XSTATS: ::c_ushort = 3;
+pub const IFLA_INFO_SLAVE_KIND: ::c_ushort = 4;
+pub const IFLA_INFO_SLAVE_DATA: ::c_ushort = 5;
+
// linux/if_tun.h
pub const IFF_TUN: ::c_int = 0x0001;
pub const IFF_TAP: ::c_int = 0x0002;