]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Don't set MFS with MTU value.
authorVincent Bernat <bernat@luffy.cx>
Sat, 5 Dec 2009 10:58:51 +0000 (11:58 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 5 Dec 2009 10:58:51 +0000 (11:58 +0100)
Because there is no way to retrieve MFS value from Linux (unless we
try to set it to some arbitrary value), we did use the MTU instead.
This is incorrect, as notified in ticket #31.

Since some equipements could use this value to trigger an alert, we
prefer not to send any value. We don't seem able to detect for VLAN
support or Jumbo frames support.

src/interfaces.c

index 8d714dbd3f24120128f11fb71ae9ed4429d3809f..d549c3a4cc564133adc2ff3bbd7d35098236143d 100644 (file)
@@ -574,7 +574,7 @@ iface_mtu(struct lldpd *cfg, struct lldpd_hardware *hardware)
                LLOG_WARN("unable to get MTU of %s, using 1500", hardware->h_ifname);
                hardware->h_mtu = 1500;
        } else
-               hardware->h_mtu = hardware->h_lport.p_mfs = ifr.ifr_mtu;
+               hardware->h_mtu = ifr.ifr_mtu;
 }
 
 static void