projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e9a4f
)
Delete mtuevent if it is not used.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 24 Jun 2011 20:10:03 +0000
(22:10 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 24 Jun 2011 20:10:03 +0000
(22:10 +0200)
Keeping it around prevents ans_key_h() from restarting PMTU discovery.
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
3627f31
..
7e617a6
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-81,6
+81,7
@@
static void send_mtu_probe_handler(int fd, short events, void *data) {
if(!n->status.reachable || !n->status.validkey) {
ifdebug(TRAFFIC) logger(LOG_INFO, "Trying to send MTU probe to unreachable or rekeying node %s (%s)", n->name, n->hostname);
n->mtuprobes = 0;
+ event_del(&n->mtuevent);
return;
}