projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a47c335
)
Expose route table if route is not in the main table
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 4 Apr 2013 12:41:40 +0000
(14:41 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 4 Apr 2013 13:06:10 +0000
(15:06 +0200)
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 10368998c32b57db83387d5ec43de4833316536f..0592399404fd60d38273b020a48ac15e31203f85 100644
(file)
--- 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);