Lines Matching defs:rwnd
224 * Figure out the value of window scale opton. Note that the rwnd is
232 uint32_t rwnd = (tcp)->tcp_rwnd; \
233 for (i = 0; rwnd > TCP_MAXWIN && i < TCP_MAX_WINSHIFT; \
234 i++, rwnd >>= 1) \
1344 * Just make sure our rwnd is at
1554 * side our rwnd in the SYN-ACK segment.
1936 * We do not allow the receive window to shrink. After setting rwnd,
1950 * XXX - Should allow a lower rwnd than tcp_recv_hiwat_minmss * mss if the
1954 tcp_rwnd_set(tcp_t *tcp, uint32_t rwnd)
1971 rwnd = MAX(rwnd, tcp_recv_hiwat_minmss * mss);
1979 if (rwnd < old_max_rwnd && tcp->tcp_state > TCPS_SYN_SENT) {
1981 rwnd = MSS_ROUNDUP(old_max_rwnd, mss);
1989 if (rwnd > max_transmittable_rwnd) {
1990 rwnd = max_transmittable_rwnd -
1992 if (rwnd < mss)
1993 rwnd = max_transmittable_rwnd;
1999 tcp->tcp_rwnd = old_max_rwnd = rwnd;
2003 * Increment the current rwnd by the amount the maximum grew (we
2007 tcp->tcp_rwnd += rwnd - old_max_rwnd;
2009 if ((tcp->tcp_rcv_ws > 0) && rwnd > tcp->tcp_cwnd_max)
2010 tcp->tcp_cwnd_max = rwnd;
2011 tcp->tcp_rwnd_max = rwnd;
2013 return (rwnd);
2840 * The following changes our rwnd to be a multiple of the
3122 /* Let's see if we can update our rwnd */
3287 * rnxt + rwnd because we want to accept 0 window probe.
6750 /* We might have come here just to updated the rwnd */
6856 printf("tcp_rcv_enqueue rwnd %d\n", tcp->tcp_rwnd);