From 69de42c471c9c7f8cf0549ee9380b7dfd688fa2a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 22 Sep 2011 22:17:16 +0200 Subject: [PATCH] [lldpctl] Fix PVID value when displaying VLANs. Once the PVID of a port was found, subsequent VLAN were considered as PVID. --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 7586a9a9..97f26332 100644 --- a/src/display.c +++ b/src/display.c @@ -1040,7 +1040,7 @@ display_vlans(struct writer *w, struct lldpd_port *port) tag_start(w, "vlan", "VLAN"); tag_attr(w, "vlan-id", "", u2str(vlan->v_vid)); - if (foundpvid) + if (port->p_pvid == vlan->v_vid) tag_attr(w, "pvid", "pvid", "yes"); tag_data(w, vlan->v_name); tag_end(w); -- 2.39.5