ubus: add support for getting a list of remote hosts

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-07-06 19:23:59 +02:00
parent 8be33b596b
commit 0029f3ce2e
3 changed files with 24 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ static int remote_host_cmp(const void *k1, const void *k2, void *ptr)
static VLIST_TREE(interfaces, avl_strcmp, interfaces_update_cb, true, true);
LIST_HEAD(remote_nodes);
static AVL_TREE(remote_hosts, remote_host_cmp, false, NULL);
AVL_TREE(remote_hosts, remote_host_cmp, false, NULL);
static const char *
interface_name(struct interface *iface)