diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-11 15:29:05 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-11 15:29:05 +0200 |
commit | d64c608820ddb4817ef7dff1f993a5801ff99ca2 (patch) | |
tree | 9663570286e2305ea6d0f9b59d2c429a65c56e52 /bridge.c | |
parent | 5d4ed8a855022394bc002c42f42b1656c2cba06f (diff) | |
download | netifd-d64c608820ddb4817ef7dff1f993a5801ff99ca2.tar.gz |
implement a new ubus object "network.device", add a method for dumping detailed device information
Diffstat (limited to 'bridge.c')
-rw-r--r-- | bridge.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ static const struct config_param_list bridge_attr_list = { static struct device *bridge_create(struct blob_attr *attr); static void bridge_config_init(struct device *dev); static void bridge_free(struct device *dev); -static void bridge_dump_status(struct device *dev, struct blob_buf *b); +static void bridge_dump_info(struct device *dev, struct blob_buf *b); const struct device_type bridge_device_type = { .name = "Bridge", @@ -53,7 +53,7 @@ const struct device_type bridge_device_type = { .create = bridge_create, .config_init = bridge_config_init, .free = bridge_free, - .dump_status = bridge_dump_status, + .dump_info = bridge_dump_info, }; struct bridge_state { @@ -303,7 +303,7 @@ bridge_free(struct device *dev) } static void -bridge_dump_status(struct device *dev, struct blob_buf *b) +bridge_dump_info(struct device *dev, struct blob_buf *b) { struct bridge_state *bst; struct bridge_member *bm; |