X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-linux.c;h=66799e97fb9efe82a99bc7c4328367646adeccfc;hp=0e6ce5ac686570dc15de99b6f6b46c43225d6d4c;hb=b32cffd4f0a2b904a1e3c38e5141100970f89a65;hpb=87648299f8944a3268210e0315f6b5244d42fa4f 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); }