summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-06-10 17:59:16 +0200
committerSteven Barth <steven@midlink.org>2014-06-10 17:59:16 +0200
commit8f0c8e8e91945a3e5c3fa7111b2a3494b731b32c (patch)
treeb6ab87437df9a14377a871ac130b9a24985c20a8 /system-linux.c
parentf5a15b82dab84a6783bf0edf6f6fae1641725b2c (diff)
Add support for onlink-flags for IPv4 routes
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c
index 06226ef..7447422 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1221,6 +1221,7 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd)
.rtm_protocol = (route->flags & DEVADDR_KERNEL) ? RTPROT_KERNEL : RTPROT_STATIC,
.rtm_scope = scope,
.rtm_type = (cmd == RTM_DELROUTE) ? 0: RTN_UNICAST,
+ .rtm_flags = (route->flags & DEVROUTE_ONLINK) ? RTNH_F_ONLINK : 0,
};
struct nl_msg *msg;