Skip to content

Commit f9441d4

Browse files
committed
Add final netlink constants referenced as needed for rtnetlink in the documentation
1 parent f775bea commit f9441d4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,6 +1830,22 @@ pub const NDA_VNI: ::c_ushort = 7;
18301830
pub const NDA_IFINDEX: ::c_ushort = 8;
18311831

18321832
// linux/rtnetlink.h
1833+
pub const TCA_UNSPEC: ::c_ushort = 0;
1834+
pub const TCA_KIND: ::c_ushort = 1;
1835+
pub const TCA_OPTIONS: ::c_ushort = 2;
1836+
pub const TCA_STATS: ::c_ushort = 3;
1837+
pub const TCA_XSTATS: ::c_ushort = 4;
1838+
pub const TCA_RATE: ::c_ushort = 5;
1839+
1840+
// possibly should go in linux/other/mod.rs
1841+
pub const TCA_FCNT: ::c_ushort = 6;
1842+
pub const TCA_STATS2: ::c_ushort = 7;
1843+
pub const TCA_STAB: ::c_ushort = 8;
1844+
pub const TCA_PAD: ::c_ushort = 9;
1845+
pub const TCA_DUMP_INVISIBLE: ::c_ushort = 10;
1846+
pub const TCA_CHAIN: ::c_ushort = 11;
1847+
pub const TCA_HW_OFFLOAD: ::c_ushort = 12;
1848+
18331849
pub const RTM_F_NOTIFY: ::c_uint = 0x100;
18341850
pub const RTM_F_CLONED: ::c_uint = 0x200;
18351851
pub const RTM_F_EQUALIZE: ::c_uint = 0x400;

0 commit comments

Comments
 (0)