// Append any known addresses in the config file to the list we currently have
uint32_t known_count = 0;
// Append any known addresses in the config file to the list we currently have
uint32_t known_count = 0;
- if(count > 5 - known_count) {
- count = 5 - known_count;
+ for(uint32_t i = 0; i < count; i++) {
+ if(i < MAX_RECENT - known_count) {
+ n->recent[i + known_count] = packmsg_get_sockaddr(&in);
+ } else {
+ packmsg_skip_element(&in);
+ }
- for(uint32_t i = 0; i < count; i++) {
- n->recent[i + known_count] = packmsg_get_sockaddr(&in);
+ time_t last_reachable = packmsg_get_int64(&in);
+ time_t last_unreachable = packmsg_get_int64(&in);
+
+ if(!n->last_reachable) {
+ n->last_reachable = last_reachable;
node_add(mesh, mesh->self);
graph(mesh);
if(!config_scan_all(mesh, "current", "hosts", load_node, NULL)) {
node_add(mesh, mesh->self);
graph(mesh);
if(!config_scan_all(mesh, "current", "hosts", load_node, NULL)) {