mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 20:47:11 +00:00
ip: show min and max mtu
Add min/max MTU to the link details Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
a0bc57e1ef
commit
e5faf729cb
@ -164,6 +164,8 @@ enum {
|
||||
IFLA_CARRIER_UP_COUNT,
|
||||
IFLA_CARRIER_DOWN_COUNT,
|
||||
IFLA_NEW_IFINDEX,
|
||||
IFLA_MIN_MTU,
|
||||
IFLA_MAX_MTU,
|
||||
__IFLA_MAX
|
||||
};
|
||||
|
||||
|
||||
@ -1012,6 +1012,16 @@ int print_linkinfo(const struct sockaddr_nl *who,
|
||||
" promiscuity %u ",
|
||||
rta_getattr_u32(tb[IFLA_PROMISCUITY]));
|
||||
|
||||
if (tb[IFLA_MIN_MTU])
|
||||
print_uint(PRINT_ANY,
|
||||
"min_mtu", "minmtu %u ",
|
||||
rta_getattr_u32(tb[IFLA_MIN_MTU]));
|
||||
|
||||
if (tb[IFLA_MAX_MTU])
|
||||
print_uint(PRINT_ANY,
|
||||
"max_mtu", "maxmtu %u ",
|
||||
rta_getattr_u32(tb[IFLA_MAX_MTU]));
|
||||
|
||||
if (tb[IFLA_LINKINFO])
|
||||
print_linktype(fp, tb[IFLA_LINKINFO]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user