summaryrefslogtreecommitdiff
path: root/ubus.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-29 00:05:43 +0200
committerJo-Philipp Wich <jow@openwrt.org>2012-06-29 00:05:43 +0200
commit19048f79a49b1f242f03e2d81cec6b6e11f18a9e (patch)
tree32805fa3838758e6d22e74ec01808c6be6ce693a /ubus.c
parent13f7f295f33c2639c390d4a6b2c58d1845e12fc3 (diff)
downloadnetifd-19048f79a49b1f242f03e2d81cec6b6e11f18a9e.tar.gz
ubus.c: expose route enabled state
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ubus.c b/ubus.c
index b8de859..b936b9a 100644
--- a/ubus.c
+++ b/ubus.c
@@ -432,6 +432,8 @@ interface_ip_dump_route_list(struct interface_ip_settings *ip)
inet_ntop(af, &route->nexthop, buf, buflen);
blobmsg_add_string_buffer(&b);
+ blobmsg_add_u8(&b, "enabled", route->enabled);
+
blobmsg_close_table(&b, r);
}
}