From: Vincent Bernat Date: Sat, 5 Dec 2009 10:58:51 +0000 (+0100) Subject: Don't set MFS with MTU value. X-Git-Tag: 0.5.0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77c4d9d0fdf94d07dd99a08df501c06b8feca9ad;p=thirdparty%2Flldpd.git Don't set MFS with MTU value. 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. --- diff --git a/src/interfaces.c b/src/interfaces.c index 8d714dbd..d549c3a4 100644 --- a/src/interfaces.c +++ b/src/interfaces.c @@ -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