mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-18 20:16:07 +00:00
iplink: display IFLA_PHYS_PORT_NAME
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
This commit is contained in:
parent
4dd3f50af4
commit
df590401d6
@ -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 ",
|
||||
|
Loading…
Reference in New Issue
Block a user