diff options
author | John Baublitz <john.m.baublitz@gmail.com> | 2019-05-23 17:58:23 -0400 |
---|---|---|
committer | John Baublitz <john.m.baublitz@gmail.com> | 2019-05-23 17:58:23 -0400 |
commit | f9441d4a8ff8ba55e791431992b7594d04ccbd36 (patch) | |
tree | a4a9abe8f869f623eb1b58a630a62697cf099cc8 | |
parent | f775bea997307fe701e05952c1c97877b40c9f9f (diff) | |
download | rust-libc-f9441d4a8ff8ba55e791431992b7594d04ccbd36.tar.gz |
Add final netlink constants referenced as needed for rtnetlink in the documentation
-rw-r--r-- | src/unix/notbsd/linux/mod.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 3e05ec9c81..2d40ca6d31 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1830,6 +1830,22 @@ pub const NDA_VNI: ::c_ushort = 7; pub const NDA_IFINDEX: ::c_ushort = 8; // linux/rtnetlink.h +pub const TCA_UNSPEC: ::c_ushort = 0; +pub const TCA_KIND: ::c_ushort = 1; +pub const TCA_OPTIONS: ::c_ushort = 2; +pub const TCA_STATS: ::c_ushort = 3; +pub const TCA_XSTATS: ::c_ushort = 4; +pub const TCA_RATE: ::c_ushort = 5; + +// possibly should go in linux/other/mod.rs +pub const TCA_FCNT: ::c_ushort = 6; +pub const TCA_STATS2: ::c_ushort = 7; +pub const TCA_STAB: ::c_ushort = 8; +pub const TCA_PAD: ::c_ushort = 9; +pub const TCA_DUMP_INVISIBLE: ::c_ushort = 10; +pub const TCA_CHAIN: ::c_ushort = 11; +pub const TCA_HW_OFFLOAD: ::c_ushort = 12; + pub const RTM_F_NOTIFY: ::c_uint = 0x100; pub const RTM_F_CLONED: ::c_uint = 0x200; pub const RTM_F_EQUALIZE: ::c_uint = 0x400; |