Skip to content

Commit 64a146e

Browse files
committed
Auto merge of #1539 - gluxon:master, r=gnzlbg
Add extended IFLA_ consts Only Netlink interface link attributes up `IFLA_STATS` are currently available. This commit adds `IFLA_COST` to `IFLA_MAX_MTU`. See https://github.com/torvalds/linux/blob/54ecb8f7/include/uapi/linux/if_link.h#L106 Thanks!
2 parents d742eed + 60a2167 commit 64a146e

File tree

1 file changed

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

1 file changed

+32
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,38 @@ pub const IFLA_MTU: ::c_ushort = 4;
11271127
pub const IFLA_LINK: ::c_ushort = 5;
11281128
pub const IFLA_QDISC: ::c_ushort = 6;
11291129
pub const IFLA_STATS: ::c_ushort = 7;
1130+
pub const IFLA_COST: ::c_ushort = 8;
1131+
pub const IFLA_PRIORITY: ::c_ushort = 9;
1132+
pub const IFLA_MASTER: ::c_ushort = 10;
1133+
pub const IFLA_WIRELESS: ::c_ushort = 11;
1134+
pub const IFLA_PROTINFO: ::c_ushort = 12;
1135+
pub const IFLA_TXQLEN: ::c_ushort = 13;
1136+
pub const IFLA_MAP: ::c_ushort = 14;
1137+
pub const IFLA_WEIGHT: ::c_ushort = 15;
1138+
pub const IFLA_OPERSTATE: ::c_ushort = 16;
1139+
pub const IFLA_LINKMODE: ::c_ushort = 17;
1140+
pub const IFLA_LINKINFO: ::c_ushort = 18;
1141+
pub const IFLA_NET_NS_PID: ::c_ushort = 19;
1142+
pub const IFLA_IFALIAS: ::c_ushort = 20;
1143+
pub const IFLA_NUM_VF: ::c_ushort = 21;
1144+
pub const IFLA_VFINFO_LIST: ::c_ushort = 22;
1145+
pub const IFLA_STATS64: ::c_ushort = 23;
1146+
pub const IFLA_VF_PORTS: ::c_ushort = 24;
1147+
pub const IFLA_PORT_SELF: ::c_ushort = 25;
1148+
pub const IFLA_AF_SPEC: ::c_ushort = 26;
1149+
pub const IFLA_GROUP: ::c_ushort = 27;
1150+
pub const IFLA_NET_NS_FD: ::c_ushort = 28;
1151+
pub const IFLA_EXT_MASK: ::c_ushort = 29;
1152+
pub const IFLA_PROMISCUITY: ::c_ushort = 30;
1153+
pub const IFLA_NUM_TX_QUEUES: ::c_ushort = 31;
1154+
pub const IFLA_NUM_RX_QUEUES: ::c_ushort = 32;
1155+
pub const IFLA_CARRIER: ::c_ushort = 33;
1156+
pub const IFLA_PHYS_PORT_ID: ::c_ushort = 34;
1157+
pub const IFLA_CARRIER_CHANGES: ::c_ushort = 35;
1158+
pub const IFLA_PHYS_SWITCH_ID: ::c_ushort = 36;
1159+
pub const IFLA_LINK_NETNSID: ::c_ushort = 37;
1160+
pub const IFLA_PHYS_PORT_NAME: ::c_ushort = 38;
1161+
pub const IFLA_PROTO_DOWN: ::c_ushort = 39;
11301162

11311163
pub const IFLA_INFO_UNSPEC: ::c_ushort = 0;
11321164
pub const IFLA_INFO_KIND: ::c_ushort = 1;

0 commit comments

Comments
 (0)