projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
088b5fd
)
Send MTU probes only once every PingInterval.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 11 Jan 2015 13:44:27 +0000
(14:44 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 11 Jan 2015 13:44:27 +0000
(14:44 +0100)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
f666fd9
..
44f9ef4
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-968,7
+968,7
@@
static void try_mtu(node_t *n) {
/* mtuprobes == 0..19: initial discovery, send bursts with 1 second interval, mtuprobes++
mtuprobes == 20: fix MTU, and go to -1
/* mtuprobes == 0..19: initial discovery, send bursts with 1 second interval, mtuprobes++
mtuprobes == 20: fix MTU, and go to -1
- mtuprobes == -1: send one >maxmtu probe every ping
timeout
*/
+ mtuprobes == -1: send one >maxmtu probe every ping
interval
*/
struct timeval elapsed;
timersub(&now, &n->mtu_ping_sent, &elapsed);
struct timeval elapsed;
timersub(&now, &n->mtu_ping_sent, &elapsed);
@@
-976,7
+976,7
@@
static void try_mtu(node_t *n) {
if(n->mtuprobes != 0 && elapsed.tv_sec == 0 && elapsed.tv_usec < 333333)
return;
} else {
if(n->mtuprobes != 0 && elapsed.tv_sec == 0 && elapsed.tv_usec < 333333)
return;
} else {
- if(elapsed.tv_sec < ping
timeout
)
+ if(elapsed.tv_sec < ping
interval
)
return;
}
return;
}