Catch ipv6 case when attempting to do PLPMTUD blackhole detection.

Submitted by:	Mikhail <mp@lenta.ru>
MFC after:	2 weeks
Relnotes:	yes
This commit is contained in:
Sean Bruno 2014-10-13 21:05:29 +00:00
parent 33b8f2518c
commit 0f3e3bc526

View File

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