if(n->status.reachable) {
ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Node %s (%s) became reachable"),
n->name, n->hostname);
+ avl_insert(node_udp_tree, n);
} else {
ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Node %s (%s) became unreachable"),
n->name, n->hostname);
+ avl_delete(node_udp_tree, n);
}
n->status.validkey = false;
cp();
avl_insert(node_tree, n);
- avl_insert(node_udp_tree, n);
}
void node_del(node_t *n)
}
avl_delete(node_tree, n);
- avl_delete(node_udp_tree, n);
}
node_t *lookup_node(char *name)