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
This commit is contained in:
parent
c397bdf30f
commit
823f6f19d1
@ -1047,6 +1047,8 @@ syncache_respond(struct syncache *sc, struct mbuf *m)
|
||||
|
||||
/* Determine MSS we advertize to other end of connection. */
|
||||
mssopt = tcp_mssopt(&sc->sc_inc);
|
||||
if (sc->sc_peer_mss)
|
||||
mssopt = max( min(sc->sc_peer_mss, mssopt), tcp_minmss);
|
||||
|
||||
/* Compute the size of the TCP options. */
|
||||
if (sc->sc_flags & SCF_NOOPT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user