From: Nicolas Dichtel Date: Fri, 1 Apr 2016 14:22:01 +0000 (+0200) Subject: iplink: display IFLA_PHYS_PORT_NAME X-Git-Tag: v4.6.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df590401d6297fd4df69f2d514ec055d59e887cc;p=thirdparty%2Fiproute2.git iplink: display IFLA_PHYS_PORT_NAME Signed-off-by: Nicolas Dichtel --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index f7bd1c76b..ca97907fe 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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 ",