]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't removed interfaces anymore when sending commands to an interface.
authorRoy Marples <roy@marples.name>
Wed, 23 Nov 2011 20:29:25 +0000 (20:29 +0000)
committerRoy Marples <roy@marples.name>
Wed, 23 Nov 2011 20:29:25 +0000 (20:29 +0000)
To remove an interface, it now has to be done explicty.

dhcpcd.c

index 59a18ce416f46dd23d5535af2cdc4d776c63c6e3..23f8577490161b0a2f608cdac15d35d733ea390b 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1436,25 +1436,6 @@ reconf_reboot(int action, int argc, char **argv, int oi)
        if (ifs == NULL)
                return;
 
-       /* Remove any old interfaces */
-       if (ifaces) {
-               for (ifl = NULL; ifl != ifaces;) {
-                       /* Work our way backwards */
-                       for (ifp = ifaces; ifp; ifp = ifp->next)
-                               if (ifp->next == ifl) {
-                                       ifl = ifp;
-                                       break;
-                               }
-                       for (ifn = ifs; ifn; ifn = ifn->next)
-                               if (strcmp(ifn->name, ifp->name) == 0)
-                                       break;
-                       if (ifn == NULL) {
-                               ifl = ifp->next;
-                               stop_interface(ifp);
-                       }
-               }
-       }
-       
        for (ifp = ifs; ifp && (ift = ifp->next, 1); ifp = ift) {
                ifl = NULL;
                for (ifn = ifaces; ifn; ifn = ifn->next) {