]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/client/display.c
client: display current MAU type even when autoneg is disabled
[thirdparty/lldpd.git] / src / client / display.c
index 77938c0beceb960217f3bc24bed174418b7b2c5d..fad64962db0b1d532f5eec4557f9cc5e7e6f6860 100644 (file)
@@ -360,14 +360,15 @@ display_port(struct writer *w, lldpctl_atom_t *port, int details)
                tag_datatag(w, "aggregation", "Port is aggregated. PortAggregID",
                    lldpctl_atom_get_str(port, lldpctl_k_port_dot3_aggregid));
 
-               long int autoneg_support, autoneg_enabled, autoneg_advertised;
+               long int autoneg_support, autoneg_enabled, autoneg_advertised, mautype;
                autoneg_support = lldpctl_atom_get_int(port,
                    lldpctl_k_port_dot3_autoneg_support);
                autoneg_enabled = lldpctl_atom_get_int(port,
                    lldpctl_k_port_dot3_autoneg_enabled);
                autoneg_advertised = lldpctl_atom_get_int(port,
                    lldpctl_k_port_dot3_autoneg_advertised);
-               if (autoneg_support > 0 || autoneg_enabled > 0) {
+               mautype = lldpctl_atom_get_int(port, lldpctl_k_port_dot3_mautype);
+               if (autoneg_support > 0 || autoneg_enabled > 0 || mautype > 0) {
                        tag_start(w, "auto-negotiation", "PMD autoneg");
                        tag_attr (w, "supported", "supported",
                            (autoneg_support > 0)?"yes":"no");