Skip to content

Commit 6a25288

Browse files
committed
Auto merge of #1540 - gluxon:add-IFLA_INFO_, r=gnzlbg
Add IFLA_INFO_ consts See https://github.com/torvalds/linux/blob/54ecb8f7/include/uapi/linux/if_link.h#L354-L362
2 parents f607101 + 6caa8ea commit 6a25288

File tree

1 file changed

+7
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+7
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,13 @@ pub const IFLA_LINK: ::c_ushort = 5;
11281128
pub const IFLA_QDISC: ::c_ushort = 6;
11291129
pub const IFLA_STATS: ::c_ushort = 7;
11301130

1131+
pub const IFLA_INFO_UNSPEC: ::c_ushort = 0;
1132+
pub const IFLA_INFO_KIND: ::c_ushort = 1;
1133+
pub const IFLA_INFO_DATA: ::c_ushort = 2;
1134+
pub const IFLA_INFO_XSTATS: ::c_ushort = 3;
1135+
pub const IFLA_INFO_SLAVE_KIND: ::c_ushort = 4;
1136+
pub const IFLA_INFO_SLAVE_DATA: ::c_ushort = 5;
1137+
11311138
// linux/if_tun.h
11321139
pub const IFF_TUN: ::c_int = 0x0001;
11331140
pub const IFF_TAP: ::c_int = 0x0002;

0 commit comments

Comments
 (0)