]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Add devtool_set_meta_status_cb().
[meshlink] / src / protocol_auth.c
index c17d9e8214b9b196c30b4725c2a456e204142a1e..2154faae09cce7cf9a305464561eaf2e9adb507f 100644 (file)
@@ -298,7 +298,7 @@ static void send_everything(meshlink_handle_t *mesh, connection_t *c) {
        /* Send all known subnets and edges */
 
        for splay_each(node_t, n, mesh->nodes) {
-               for splay_each(edge_t, e, n->edge_tree) {
+               for inner_splay_each(edge_t, e, n->edge_tree) {
                        send_add_edge(mesh, c, e, 0);
                }
        }
@@ -370,6 +370,10 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
 
        logger(mesh, MESHLINK_INFO, "Connection with %s activated", c->name);
 
+       if(mesh->meta_status_cb) {
+               mesh->meta_status_cb(mesh, (meshlink_node_t *)n, true);
+       }
+
        /* Send him everything we know */
 
        send_everything(mesh, c);