From: Jo-Philipp Wich Date: Thu, 4 Apr 2013 12:41:40 +0000 (+0200) Subject: Expose route table if route is not in the main table X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=8e14def28d08c4bdb9997a518ad85afbc8ccfbc9 Expose route table if route is not in the main table --- diff --git a/ubus.c b/ubus.c index 1036899..0592399 100644 --- a/ubus.c +++ b/ubus.c @@ -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);