]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use d_droute.
authorRoy Marples <roy@marples.name>
Sun, 30 Mar 2008 08:07:37 +0000 (08:07 +0000)
committerRoy Marples <roy@marples.name>
Sun, 30 Mar 2008 08:07:37 +0000 (08:07 +0000)
configure.c

index 5cf24e04546f18e5fc6899b4e21161fd319980ff..ad9f8b848357c7668eb302adf17741c4b9b9a5ca 100644 (file)
@@ -666,9 +666,9 @@ configure(const struct options *options, struct interface *iface,
                if ((route->destination.s_addr ||
                     options->options & DHCPCD_GATEWAY) &&
                    (!up || !in_routes(dhcp->routes, route)))
-                       del_route(iface->name, &route->destination,
-                                 &route->netmask, &route->gateway,
-                                 options->metric);
+                       d_route(iface->name, &route->destination,
+                               &route->netmask, &route->gateway,
+                               options->metric);
        /* If we aren't up, then reset the interface as much as we can */
        if (!up) {
                if (iface->previous_routes) {