]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip: show min and max mtu
authorStephen Hemminger <sthemmin@microsoft.com>
Fri, 27 Jul 2018 20:43:50 +0000 (13:43 -0700)
committerDavid Ahern <dsahern@gmail.com>
Sun, 12 Aug 2018 21:24:31 +0000 (14:24 -0700)
Add min/max MTU to the link details

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipaddress.c

index bcee9ab731ce338d8208e017c70ed327a5339996..85958e1a9cef843708326b68bf79b9ccfbbf7b5e 100644 (file)
@@ -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]);