diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-15 11:03:52 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-15 11:10:36 +0100 |
commit | a63479ad899e089ffd8edf76b35391313b98bc17 (patch) | |
tree | c93777ef5637d69a8baafa4441d0d2b744704fab /system-linux.c | |
parent | ad4f8bf0149a88f900c6721c08476730adaf5d58 (diff) |
always create device routes
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system-linux.c b/system-linux.c index 0e6ce5a..66799e9 100644 --- a/system-linux.c +++ b/system-linux.c @@ -901,8 +901,7 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd) if (have_gw) nla_put(msg, RTA_GATEWAY, alen, &route->nexthop); - if (route->flags & DEVADDR_DEVICE) - nla_put_u32(msg, RTA_OIF, ifindex); + nla_put_u32(msg, RTA_OIF, ifindex); return system_rtnl_call(msg); } |