]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
if: don't set MTU during interface discovery
authorRoy Marples <roy@marples.name>
Sun, 7 Jan 2018 18:37:50 +0000 (18:37 +0000)
committerRoy Marples <roy@marples.name>
Sun, 7 Jan 2018 18:37:50 +0000 (18:37 +0000)
src/if.c

index 06bb92585a6b5586f5b0bb240356fadfd471b340..adeb6d921f2f91bec479a158a876495f87745106 100644 (file)
--- 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);