X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-dummy.c;h=b3aefbe41f2e5682ba9d12f985e38e75faeaf696;hp=401a1a98746287ac41eadae68ba476d5700b8ccd;hb=a63479ad899e089ffd8edf76b35391313b98bc17;hpb=ad4f8bf0149a88f900c6721c08476730adaf5d58 diff --git a/system-dummy.c b/system-dummy.c index 401a1a9..b3aefbe 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -156,8 +156,7 @@ int system_add_route(struct device *dev, struct device_route *route) sprintf(gw, " gw %d.%d.%d.%d", a2[0], a2[1], a2[2], a2[3]); - if (route->flags & DEVADDR_DEVICE) - sprintf(devstr, " dev %s", dev->ifname); + sprintf(devstr, " dev %s", dev->ifname); if (route->metric > 0) sprintf(devstr, " metric %d", route->metric); @@ -185,8 +184,7 @@ int system_del_route(struct device *dev, struct device_route *route) sprintf(gw, " gw %d.%d.%d.%d", a2[0], a2[1], a2[2], a2[3]); - if (route->flags & DEVADDR_DEVICE) - sprintf(devstr, " dev %s", dev->ifname); + sprintf(devstr, " dev %s", dev->ifname); D(SYSTEM, "route del %s%s%s\n", addr, gw, devstr); return 0;