Lines Matching defs:rwnd
801 tcp_fuse_set_rcv_hiwat(tcp_t *tcp, size_t rwnd)
809 if (rwnd > tcps->tcps_max_buf)
810 rwnd = tcps->tcps_max_buf;
815 rwnd = P2ROUNDUP_TYPED(rwnd, PAGESIZE, size_t);
817 if (rwnd > max_win) {
818 rwnd = max_win - (max_win % tcp->tcp_mss);
819 if (rwnd < tcp->tcp_mss)
820 rwnd = max_win;
827 tcp->tcp_connp->conn_rcvbuf = rwnd;
828 tcp->tcp_rwnd = rwnd;
829 return (rwnd);