Lines Matching refs:mss
3161 u_short mss = 0;
3187 bcopy((char *) cp + 2, (char *) &mss, sizeof(mss));
3188 NTOHS(mss);
3239 tcp_mss(tp, mss, input_ifscope); /* sets t_maxseg */
3390 * If none, use an mss that can be handled on the outgoing
3420 register int rtt, mss;
3544 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt));
3546 mss = tcp_maxmtu(rt);
3548 mss -= min_protoh;
3554 mss = min(mss, tcp_v6mssdflt);
3558 mss = min(mss, tcp_mssdflt);
3561 mss = min(mss, offer);
3569 tp->t_maxopd = mss;
3578 mss -= TCPOLEN_TSTAMP_APPA;
3579 tp->t_maxseg = mss;
3591 * number of mss units; if the mss is larger than
3592 * the socket buffer, decrease the mss.
3599 if (bufsize < mss)
3600 mss = bufsize;
3602 bufsize = (((bufsize + (u_int64_t)mss - 1) / (u_int64_t)mss) * (u_int64_t)mss);
3607 tp->t_maxseg = mss;
3614 if (bufsize > mss) {
3615 bufsize = (((bufsize + (u_int64_t)mss - 1) / (u_int64_t)mss) * (u_int64_t)mss);
3626 tp->snd_cwnd = mss * ss_fltsz_local;
3628 tp->snd_cwnd = mss * ss_fltsz;
3635 * threshold to no less than 2*mss.
3637 tp->snd_ssthresh = max(2 * mss, rt->rt_rmx.rmx_ssthresh);
3654 int mss;
3694 mss = (isipv6 ? tcp_maxmtu6(rt) : tcp_maxmtu(rt));
3696 mss = tcp_maxmtu(rt);
3699 return (mss - min_protoh);