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 <m...@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);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to