projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the "fsck" command to the CLI.
[tinc]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
8f601c2
..
49161c1
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-238,10
+238,11
@@
static void check_reachability(void) {
n->status.udp_confirmed = false;
n->maxmtu = MTU;
n->status.udp_confirmed = false;
n->maxmtu = MTU;
+ n->maxrecentlen = 0;
n->minmtu = 0;
n->mtuprobes = 0;
n->minmtu = 0;
n->mtuprobes = 0;
- timeout_del(&n->
mtu
timeout);
+ timeout_del(&n->
udp_ping_
timeout);
char *name;
char *address;
char *name;
char *address;
@@
-276,12
+277,9
@@
static void check_reachability(void) {
memset(&n->status, 0, sizeof n->status);
n->options = 0;
} else if(n->connection) {
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 {
+ // Speed up UDP probing by sending our key.
+ if(!n->status.sptps)
send_ans_key(n);
send_ans_key(n);
- }
}
}
}
}
@@
-292,7
+290,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();
}
}