Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2014 21:05:29 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273062 - head/sys/netinet
Message-ID:  <201410132105.s9DL5TNa069195@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Mon Oct 13 21:05:29 2014
New Revision: 273062
URL: https://svnweb.freebsd.org/changeset/base/273062

Log:
  Catch ipv6 case when attempting to do PLPMTUD blackhole detection.
  
  Submitted by:	Mikhail <mp@lenta.ru>
  MFC after:	2 weeks
  Relnotes:	yes

Modified:
  head/sys/netinet/tcp_output.c

Modified: head/sys/netinet/tcp_output.c
==============================================================================
--- head/sys/netinet/tcp_output.c	Mon Oct 13 21:04:14 2014	(r273061)
+++ head/sys/netinet/tcp_output.c	Mon Oct 13 21:05:29 2014	(r273062)
@@ -1273,6 +1273,11 @@ send:
 		 */
 		ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
 
+		if (V_path_mtu_discovery && tp->t_maxopd > V_tcp_minmss)
+			tp->t_flags2 |= TF2_PLPMTU_PMTUD;
+		else
+			tp->t_flags2 &= ~TF2_PLPMTU_PMTUD;
+
 		if (tp->t_state == TCPS_SYN_SENT)
 			TCP_PROBE5(connect__request, NULL, tp, ip6, tp, th);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410132105.s9DL5TNa069195>