]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r338138:
authortuexen <tuexen@FreeBSD.org>
Fri, 25 Jan 2019 15:25:53 +0000 (15:25 +0000)
committertuexen <tuexen@FreeBSD.org>
Fri, 25 Jan 2019 15:25:53 +0000 (15:25 +0000)
commit0d2a542d371f306b5883f45bd35871ddfcdfbb22
treefd462974e76e58c3a22e01b663677ce630bff2e8
parent3630bdda24d9990794d2d09b82d9f73c7f877c5d
MFC r338138:

Enabling the IPPROTO_IPV6 level socket option IPV6_USE_MIN_MTU on a TCP
socket resulted in sending fragmented IPV6 packets.

This is fixes by reducing the MSS to the appropriate value. In addtion,
if the socket option is set before the handshake happens, announce this
MSS to the peer. This is not stricly required, but done since TCP
is conservative.

PR: 173444
Reviewed by: bz@, rrs@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D16796
sys/netinet/in_pcb.h
sys/netinet/tcp_input.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_usrreq.c