Home | History | Annotate | Download | only in netinet

Lines Matching defs:mss

1654  * Compute the MSS to advertise to the peer.  Called only during
1662 * header size from MSS advertisement. MSS option must hold the maximum
1670 u_long mss = 0;
1675 * we advertise the max MTU of all attached networks as our MSS,
1685 * MSS, as the loopback MTU is never included in in_maxmtu.
1694 mss = ifp->if_mtu;
1704 mss = uimax(in_maxmtu, mss);
1722 if (mss > hdrsiz)
1723 mss -= hdrsiz;
1725 mss = uimax(tcp_mssdflt, mss);
1726 return (mss);
1730 * Set connection variables based on the peer's advertised MSS.
1736 * NOTE: Our advertised MSS value must be initialized in the TCPCB
1747 int mss;
1760 * As per RFC1122, use the default MSS value, unless they
1763 mss = tcp_mssdflt;
1765 mss = offer;
1766 mss = uimax(mss, 256); /* sanity */
1767 tp->t_peermss = mss;
1768 mss -= tcp_optlen(tp);
1770 mss -= ip_optlen(tp->t_inpcb);
1773 mss -= ip6_optlen(tp->t_inpcb);
1776 * XXX XXX What if mss goes negative or zero? This can happen if a
1782 * Make the socket buffer an integral number of MSS units. If
1783 * the MSS is larger than the socket buffer, artificially decrease
1784 * the MSS.
1795 if (bufsize < mss)
1796 mss = bufsize;
1798 bufsize = roundup(bufsize, mss);
1803 tp->t_segsz = mss;
1811 * than 2 * MSS.
1813 tp->snd_ssthresh = uimax(2 * mss, rt->rt_rmx.rmx_ssthresh);