Displaying 5 results from an estimated 5 matches for "edge_weight_tree".
2011 Jan 03
1
Tinc improvements
.../* Determine which socket we have to use */
for(sock = 0; sock < listen_sockets; sock++)
@@ -574,29 +584,28 @@
static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
avl_node_t *node;
edge_t *e;
- node_t *n = NULL;
static time_t last_hard_try = 0;
- for(node = edge_weight_tree->head; node; node = node->next) {
+ for (node = edge_weight_tree->head; node; node = node->next) {
e = node->data;
- if(sockaddrcmp_noport(from, &e->address)) {
- if(last_hard_try == now)
- continue;
- last_hard_try = now;
+ if (sockaddrcmp_noport(from, &e-&g...
2018 Nov 28
1
Fix issue with graphviz file format
Hello,
Here's a quick patch to secure node names in generated graphviz
network maps.
Thanks for tinc!
2019 Sep 28
0
[PATCH] src/graph.c: print bidirectional edges with a single two-headed arrow
...er <git at eckner.net>
---
src/graph.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/graph.c b/src/graph.c
index c63fdf9c..91f5c990 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -366,7 +366,13 @@ void dump_graph(void) {
/* now dump all edges */
for(node = edge_weight_tree->head; node; node = node->next) {
e = node->data;
- fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name);
+ if (e->reverse) {
+ if (e->reverse > e)
+ fprintf(file, " \"%s\" -> \"%s\" [d...
2008 Sep 30
1
Problem compiling tinc-1.0.8 on gcc-2.95
...;status.st.mst = false;
}
/* Do we have something to do at all? */
@@ -95,7 +95,7 @@
for(node = node_tree->head; node; node = node->next) {
n = node->data;
- n->status.visited = false;
+ n->status.st.visited = false;
nodes++;
}
@@ -103,8 +103,8 @@
for(node = edge_weight_tree->head; node; node = node->next) {
e = node->data;
- if(e->from->status.reachable) {
- e->from->status.visited = true;
+ if(e->from->status.st.reachable) {
+ e->from->status.st.visited = true;
break;
}
}
@@ -115,19 +115,19 @@
next = node->next...
2007 Jul 21
2
tincctl patches
(Second try to send this. I wonder if the first one gotten eaten by a
spam filter; I'll link to patches instead of attaching them.)
Here are the tincctl patches I've been working on. They apply to
http://www.tinc-vpn.org/svn/tinc/branches/1.1@1545. I intend to commit
them once the crypto stuff's fixed. Since they're basically done, I'm
emailing them now for review and in case