svn commit: r273062 - head/sys/netinet

Sean Bruno sbruno at FreeBSD.org
Mon Oct 13 21:05:29 UTC 2014


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 at 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);
 


More information about the svn-src-head mailing list