summaryrefslogtreecommitdiff
path: root/system-dummy.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-15 11:03:52 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-03-15 11:10:36 +0100
commita63479ad899e089ffd8edf76b35391313b98bc17 (patch)
treec93777ef5637d69a8baafa4441d0d2b744704fab /system-dummy.c
parentad4f8bf0149a88f900c6721c08476730adaf5d58 (diff)
downloadnetifd-a63479ad899e089ffd8edf76b35391313b98bc17.tar.gz
always create device routes
Diffstat (limited to 'system-dummy.c')
-rw-r--r--system-dummy.c6
1 files changed, 2 insertions, 4 deletions
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;