Skip to content

Commit

Permalink
Add more IPLA flags, from newer libc
Browse files Browse the repository at this point in the history
Update the libc dependency accordingly.
  • Loading branch information
joshtriplett committed Jan 17, 2021
1 parent 192d2e0 commit 47e59be
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -22,7 +22,7 @@ path = "src/lib.rs"

[dependencies]
byteorder = "1.2"
libc = "0.2.66"
libc = "0.2.82"

[dependencies.log]
version = "0.4"
Expand Down
18 changes: 17 additions & 1 deletion src/consts/rtnl.rs
Expand Up @@ -199,7 +199,23 @@ impl_var!(
PhysSwitchId => libc::IFLA_PHYS_SWITCH_ID,
LinkNetnsid => libc::IFLA_LINK_NETNSID,
PhysPortName => libc::IFLA_PHYS_PORT_NAME,
ProtoDown => libc::IFLA_PROTO_DOWN
ProtoDown => libc::IFLA_PROTO_DOWN,
GsoMaxSegs => libc::IFLA_GSO_MAX_SEGS,
GsoMaxSize => libc::IFLA_GSO_MAX_SIZE,
Pad => libc::IFLA_PAD,
Xdp => libc::IFLA_XDP,
Event => libc::IFLA_EVENT,
NewNetnsid => libc::IFLA_NEW_NETNSID,
IfNetnsid => libc::IFLA_IF_NETNSID,
CarrierUpCount => libc::IFLA_CARRIER_UP_COUNT,
CarrierDownCount => libc::IFLA_CARRIER_DOWN_COUNT,
NewIfindex => libc::IFLA_NEW_IFINDEX,
MinMtu => libc::IFLA_MIN_MTU,
MaxMtu => libc::IFLA_MAX_MTU,
PropList => libc::IFLA_PROP_LIST,
AltIfname => libc::IFLA_ALT_IFNAME,
PermAddress => libc::IFLA_PERM_ADDRESS,
ProtoDownReason => libc::IFLA_PROTO_DOWN_REASON,
);

impl_var!(
Expand Down

0 comments on commit 47e59be

Please sign in to comment.