]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iplink: display IFLA_PHYS_PORT_NAME
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 1 Apr 2016 14:22:01 +0000 (16:22 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Apr 2016 22:02:21 +0000 (22:02 +0000)
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
ip/ipaddress.c

index f7bd1c76bf96fdd9b422122034d44fcc2e4cc131..ca97907fe88dc287fddc1ec6cba467f2cfe300ff 100644 (file)
@@ -813,6 +813,10 @@ int print_linkinfo(const struct sockaddr_nl *who,
                fprintf(fp, "master %s ", ll_idx_n2a(*(int *)RTA_DATA(tb[IFLA_MASTER]), b1));
        }
 
+       if (tb[IFLA_PHYS_PORT_NAME])
+               fprintf(fp, "portname %s ",
+                       rta_getattr_str(tb[IFLA_PHYS_PORT_NAME]));
+
        if (tb[IFLA_PHYS_PORT_ID]) {
                SPRINT_BUF(b1);
                fprintf(fp, "portid %s ",