ubus.c: expose route enabled state
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 28 Jun 2012 22:05:43 +0000 (00:05 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 28 Jun 2012 22:05:43 +0000 (00:05 +0200)
ubus.c

diff --git a/ubus.c b/ubus.c
index b8de859b21b49baa50277641e643a336676f9dbd..b936b9a4326315daf9fb099a45066aeab05812ac 100644 (file)
--- 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);
        }
 }