diff options
author | Erich Eckner <git@eckner.net> | 2019-09-27 10:10:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-27 10:10:54 +0200 |
commit | 6fc1bd0fa4f8f50480fc7aeadf56d87ff29762db (patch) | |
tree | 5f72aa3382cee2787d2085649bff8805e618af43 /tinc/graph.patch | |
parent | 6f229a972bc0a5368370826feb006fc6e53d9f36 (diff) | |
download | archlinuxewe.git.save-6fc1bd0fa4f8f50480fc7aeadf56d87ff29762db.tar.xz |
tinc neu
Diffstat (limited to 'tinc/graph.patch')
-rw-r--r-- | tinc/graph.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tinc/graph.patch b/tinc/graph.patch new file mode 100644 index 00000000..d3dddec1 --- /dev/null +++ b/tinc/graph.patch @@ -0,0 +1,18 @@ +diff --git a/src/graph.c b/src/graph.c +index c63fdf9c..ecabb1bf 100644 +--- a/src/graph.c ++++ b/src/graph.c +@@ -366,7 +366,12 @@ 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\" [dir=both];\n", e->from->name, e->to->name); ++ } ++ else ++ fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name); + } + + fprintf(file, "}\n"); |