From 2fb135c8c5d75c520ff97efe39547e3a689f288a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 7 Aug 2016 10:22:27 +0200 Subject: [PATCH] interface: use 10GBASE-CX4 for copper That's the best approximation available in RFC4836. --- NEWS | 4 ++++ src/daemon/interfaces-linux.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8e83039e..fad18ee6 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,8 @@ lldpd (0.9.5) + * Change: + + More Ethernet media supported. However, RFC4836 is quite + out-of-date with respected to 10G+ speeds, bringing some + inaccuracies. * Fix: + Compilation fix with older versions of GCC. + Don't use ethtool at all to get real MAC address for enslaved diff --git a/src/daemon/interfaces-linux.c b/src/daemon/interfaces-linux.c index 663cd0ac..06423e03 100644 --- a/src/daemon/interfaces-linux.c +++ b/src/daemon/interfaces-linux.c @@ -384,7 +384,7 @@ iflinux_macphy(struct lldpd_hardware *hardware) // fiber either but we don't have 10GIGBASET for // copper. No good solution. port->p_macphy.mau_type = (ethc.port == PORT_FIBRE) ? \ - LLDP_DOT3_MAU_10GIGBASEX : LLDP_DOT3_MAU_10GIGBASER; + LLDP_DOT3_MAU_10GIGBASELR : LLDP_DOT3_MAU_10GIGBASECX4; break; } if (ethc.port == PORT_AUI) port->p_macphy.mau_type = LLDP_DOT3_MAU_AUI; -- 2.47.2