projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move try_sptps() closer to try_tx().
[tinc]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
8f601c2
..
70d6573
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-275,13
+275,6
@@
static void check_reachability(void) {
update_node_udp(n, NULL);
memset(&n->status, 0, sizeof n->status);
n->options = 0;
update_node_udp(n, NULL);
memset(&n->status, 0, sizeof n->status);
n->options = 0;
- } else if(n->connection) {
- if(n->status.sptps) {
- if(n->connection->outgoing)
- send_req_key(n);
- } else {
- send_ans_key(n);
- }
}
}
}
}
@@
-292,7
+285,7
@@
static void check_reachability(void) {
if (device_standby) {
if (reachable_count == 0 && became_unreachable_count > 0)
device_disable();
if (device_standby) {
if (reachable_count == 0 && became_unreachable_count > 0)
device_disable();
- else if (reachable_count == became_reachable_count)
+ else if (reachable_count
> 0 && reachable_count
== became_reachable_count)
device_enable();
}
}
device_enable();
}
}