projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't treat packets coming in via TCP as having zero length.
[tinc]
/
src
/
top.c
diff --git
a/src/top.c
b/src/top.c
index
62c46f5
..
dc1fecf
100644
(file)
--- a/
src/top.c
+++ b/
src/top.c
@@
-108,7
+108,9
@@
static void update(int fd) {
} else {
found = xmalloc_and_zero(sizeof *found);
found->name = xstrdup(name);
} else {
found = xmalloc_and_zero(sizeof *found);
found->name = xstrdup(name);
- list_insert_after(&node_list, i, found);
+ fprintf(stderr, "Inserting %s before %s\n", found->name, node->name);
+ list_insert_before(&node_list, i, found);
+ changed = true;
break;
}
}
break;
}
}
@@
-117,6
+119,7
@@
static void update(int fd) {
found = xmalloc_and_zero(sizeof *found);
found->name = xstrdup(name);
list_insert_tail(&node_list, found);
found = xmalloc_and_zero(sizeof *found);
found->name = xstrdup(name);
list_insert_tail(&node_list, found);
+ changed = true;
}
found->known = true;
}
found->known = true;