Signed-off-by: Jiri Pirko <j...@resnulli.us>
---
 ip/ipaddress.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index 43f7296..f794d02 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -470,6 +470,14 @@ 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_ID]) {
+               SPRINT_BUF(b1);
+               fprintf(fp, "portid %s ",
+                       hexstring_n2a(RTA_DATA(tb[IFLA_PHYS_PORT_ID]),
+                                     RTA_PAYLOAD(tb[IFLA_PHYS_PORT_ID]),
+                                     b1, sizeof(b1)));
+       }
+
        if (tb[IFLA_PHYS_SWITCH_ID]) {
                SPRINT_BUF(b1);
                fprintf(fp, "swid %s ",
-- 
1.9.0

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to