From: Roy Marples Date: Sun, 7 Jan 2018 18:37:50 +0000 (+0000) Subject: if: don't set MTU during interface discovery X-Git-Tag: v7.0.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93408ebc26922a7f2b7882b0bb3fe2089c436ac3;p=thirdparty%2Fdhcpcd.git if: don't set MTU during interface discovery --- diff --git a/src/if.c b/src/if.c index 06bb9258..adeb6d92 100644 --- a/src/if.c +++ b/src/if.c @@ -540,15 +540,6 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs, if_free(ifp); continue; } - - /* Ensure that the MTU is big enough for DHCP */ - if (if_getmtu(ifp) < MTU_MIN && active && - if_setmtu(ifp, MTU_MIN) == -1) - { - logerr("%s: if_setmtu", ifp->name); - if_free(ifp); - continue; - } } ifp->vlanid = if_vlanid(ifp);