projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e4d57a
)
If PMTUDiscovery is not set, do not forward packets via TCP unnecessarily.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 24 May 2009 13:58:47 +0000
(15:58 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 24 May 2009 13:58:47 +0000
(15:58 +0200)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index 1730023d17c6f54c673896bbf4c25faf70b309f7..de6ae550ed24ddeeede7cb7c87a58b36f2d8c27a 100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-342,7
+342,7
@@
static void send_udppacket(node_t *n, vpn_packet_t *origpkt)
return;
}
- if(!n->minmtu && (inpkt->data[12] | inpkt->data[13])) {
+ if(
n->options & OPTION_PMTU_DISCOVERY &&
!n->minmtu && (inpkt->data[12] | inpkt->data[13])) {
ifdebug(TRAFFIC) logger(LOG_INFO,
_("No minimum MTU established yet for %s (%s), forwarding via TCP"),
n->name, n->hostname);