From: Roy Marples Date: Wed, 23 Nov 2011 20:29:25 +0000 (+0000) Subject: Don't removed interfaces anymore when sending commands to an interface. X-Git-Tag: v5.5.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262eb0821803f9492c85a2d8977db93570f42651;p=thirdparty%2Fdhcpcd.git Don't removed interfaces anymore when sending commands to an interface. To remove an interface, it now has to be done explicty. --- diff --git a/dhcpcd.c b/dhcpcd.c index 59a18ce4..23f85774 100644 --- 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) {