392: */
393: *txsegsizep = min(tp->t_peermss - optlen, size);
394: /*
400: if (so)
401: *txsegsizep = min(so->so_snd.sb_hiwat >> 1, *txsegsizep);
402: *rxsegsizep = min(tp->t_ourmss - optlen, size);
403:
667: */
668: tp->snd_cwnd = min(tp->snd_cwnd,
669: (tcp_cwm_burstsize * txsegsize) +
688: #endif
689: tp->snd_cwnd = min(tp->snd_cwnd,
690: TCP_INITIAL_WINDOW(ss, txsegsize));
733: off = tp->snd_nxt - tp->snd_una;
734: win = min(tp->snd_wnd, tp->snd_cwnd);
735:
761:
762: cwin = min(tp->snd_wnd, tp->snd_cwnd) - sack_bytes_rxmt;
763: if (cwin < 0)
942: if (!sbreserve(&so->so_snd,
943: min(so->so_snd.sb_hiwat + tcp_autosndbuf_inc,
944: tcp_autosndbuf_max), so))
960: #endif
961: len = (min(len, IP_MAXPACKET) / txsegsize) * txsegsize;
962: if (len <= txsegsize) {
1018: */
1019: long adv = min(win, (long)TCP_MAXWIN << tp->rcv_scale) -
1020: (tp->rcv_adv - tp->rcv_nxt);