]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interface: use 10GBASE-CX4 for copper
authorVincent Bernat <vincent@bernat.im>
Sun, 7 Aug 2016 08:22:27 +0000 (10:22 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 7 Aug 2016 08:23:42 +0000 (10:23 +0200)
That's the best approximation available in RFC4836.

NEWS
src/daemon/interfaces-linux.c

diff --git a/NEWS b/NEWS
index 8e83039e67fa01dc16fc55c4977d75f6b5df74a4..fad18ee69d8cca5022cb9e2aa21f17d5e13a8f39 100644 (file)
--- 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
index 663cd0ac1c651250e00341edf6e2ec0010b46afd..06423e03178eb03eac0262dd94bd9e9fc3081ecf 100644 (file)
@@ -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;