From 2c67eafc6e6c5e210636c0d2bad15827bf2d7cf0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 24 May 2009 15:58:47 +0200 Subject: [PATCH] If PMTUDiscovery is not set, do not forward packets via TCP unnecessarily. --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index 1730023d..de6ae550 100644 --- 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); -- 2.39.5