rtnl_link: add IFLA_MIN_MTU and IFLA_MAX_MTU attributes
Introduced by Linux commit v4.19-rc1~140^2~205^2~1. * rtnl_link.c (ifinfomsg_nla_decoders) <[IFLA_MIN_MTU], [IFLA_MAX_MTU]>: New decoder, calls decode_nla_u32. * xlat/rtnl_link_attrs.in (IFLA_MIN_MTU, IFLA_MAX_MTU): New constant.
This commit is contained in:
parent
4fa680e63f
commit
24535be245
@ -903,6 +903,8 @@ static const nla_decoder_t ifinfomsg_nla_decoders[] = {
|
||||
[IFLA_CARRIER_UP_COUNT] = decode_nla_u32,
|
||||
[IFLA_CARRIER_DOWN_COUNT] = decode_nla_u32,
|
||||
[IFLA_NEW_IFINDEX] = decode_nla_ifindex,
|
||||
[IFLA_MIN_MTU] = decode_nla_u32,
|
||||
[IFLA_MAX_MTU] = decode_nla_u32,
|
||||
};
|
||||
|
||||
DECL_NETLINK_ROUTE_DECODER(decode_ifinfomsg)
|
||||
|
@ -48,3 +48,5 @@ IFLA_IF_NETNSID 46
|
||||
IFLA_CARRIER_UP_COUNT 47
|
||||
IFLA_CARRIER_DOWN_COUNT 48
|
||||
IFLA_NEW_IFINDEX 49
|
||||
IFLA_MIN_MTU 50
|
||||
IFLA_MAX_MTU 51
|
||||
|
Loading…
Reference in New Issue
Block a user