tag_start(w, "advertised", "Adv");
tag_attr(w, "type", "", desc);
- tag_attr(w, "hd", "HD", (port->p_macphy.autoneg_advertised & bithd)?"yes":"no");
- tag_attr(w, "fd", "FD", (port->p_macphy.autoneg_advertised)?"yes":"no");
+ if (bitfd != bithd) {
+ tag_attr(w, "hd", "HD", (port->p_macphy.autoneg_advertised & bithd)?"yes":"no");
+ tag_attr(w, "fd", "FD", (port->p_macphy.autoneg_advertised & bitfd)?"yes":"no");
+ }
tag_end (w);
}
#endif
"10Base-T");
display_autoneg(w, port, LLDP_DOT3_LINK_AUTONEG_100BASE_TX,
LLDP_DOT3_LINK_AUTONEG_100BASE_TXFD,
- "100Base-T");
+ "100Base-TX");
display_autoneg(w, port, LLDP_DOT3_LINK_AUTONEG_100BASE_T2,
LLDP_DOT3_LINK_AUTONEG_100BASE_T2FD,
"100Base-T2");
+ display_autoneg(w, port, LLDP_DOT3_LINK_AUTONEG_100BASE_T4,
+ LLDP_DOT3_LINK_AUTONEG_100BASE_T4,
+ "100Base-T4");
display_autoneg(w, port, LLDP_DOT3_LINK_AUTONEG_1000BASE_X,
LLDP_DOT3_LINK_AUTONEG_1000BASE_XFD,
- "100Base-X");
+ "1000Base-X");
display_autoneg(w, port, LLDP_DOT3_LINK_AUTONEG_1000BASE_T,
LLDP_DOT3_LINK_AUTONEG_1000BASE_TFD,
"1000Base-T");