Commit df590401 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by Stephen Hemminger

iplink: display IFLA_PHYS_PORT_NAME

Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
parent 4dd3f50a
...@@ -813,6 +813,10 @@ int print_linkinfo(const struct sockaddr_nl *who, ...@@ -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)); 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]) { if (tb[IFLA_PHYS_PORT_ID]) {
SPRINT_BUF(b1); SPRINT_BUF(b1);
fprintf(fp, "portid %s ", fprintf(fp, "portid %s ",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment