]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 324050
authorsephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Oct 2017 06:28:46 +0000 (06:28 +0000)
committersephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Oct 2017 06:28:46 +0000 (06:28 +0000)
commit2f7ad5154cd6121032d692b0b9fb2f803f99302f
treee1e8eec52c087889c795dc05189ee3b6df180b19
parent0282550fca751ae2df3574ec0db5d5008f79db4d
MFC 324050

    tcp: Don't "negotiate" MSS.

    _NO_ OSes actually "negotiate" MSS.

    RFC 879:
    "... This Maximum Segment Size (MSS) announcement (often mistakenly
    called a negotiation) ..."

    This negotiation behaviour was introduced 11 years ago by r159955
    without any explaination about why FreeBSD had to "negotiate" MSS:

        In syncache_respond() do not reply with a MSS that is larger than what
        the peer announced to us but make it at least tcp_minmss in size.

        Sponsored by:   TCP/IP Optimization Fundraise 2005

    The tcp_minmss behaviour is still kept.

    Syncookie fix was prodded by tuexen, who also helped to test this
    patch w/ packetdrill.

    Reviewed by:    tuexen, karels, bz (previous version)
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D12430

git-svn-id: svn://svn.freebsd.org/base/stable/10@324520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/tcp_syncache.c