diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-04-04 14:41:40 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-04-04 15:06:10 +0200 |
commit | 8e14def28d08c4bdb9997a518ad85afbc8ccfbc9 (patch) | |
tree | 7cf11d9d967fb8748b02d7e17e2869f3ed2193ed /ubus.c | |
parent | a47c3353cdf46b730f43198052c8f807e2bd313f (diff) |
Expose route table if route is not in the main table
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -419,6 +419,9 @@ interface_ip_dump_route_list(struct interface_ip_settings *ip, bool enabled) if (route->flags & DEVROUTE_METRIC) blobmsg_add_u32(&b, "metric", route->metric); + if (route->flags & DEVROUTE_TABLE) + blobmsg_add_u32(&b, "table", route->table); + if (route->valid_until) blobmsg_add_u32(&b, "valid", route->valid_until - now); |