From: Vincent Bernat Date: Thu, 22 Sep 2011 20:17:16 +0000 (+0200) Subject: [lldpctl] Fix PVID value when displaying VLANs. X-Git-Tag: 0.5.5~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69de42c471c9c7f8cf0549ee9380b7dfd688fa2a;p=thirdparty%2Flldpd.git [lldpctl] Fix PVID value when displaying VLANs. Once the PVID of a port was found, subsequent VLAN were considered as PVID. --- 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);