| /xnu-11215/bsd/netinet/ |
| H A D | tcp_rledbat.c | 167 tp->t_rlstate.win = min(tcp_round_to(tp->t_rlstate.win, tp->t_maxseg), in rledbat_congestion_avd() 198 tp->t_rlstate.win = tcp_round_to(tp->t_rlstate.win, tp->t_maxseg); in rledbat_congestion_avd() 276 uint32_t win = tp->t_rlstate.win / 2; in tcp_rledbat_data_rcvd() local 277 win = tcp_round_to(win, tp->t_maxseg); in tcp_rledbat_data_rcvd() 279 win = 2 * tp->t_maxseg; in tcp_rledbat_data_rcvd() 282 tp->t_rlstate.win = win; in tcp_rledbat_data_rcvd() 304 tp->t_rlstate.win = min(tp->t_rlstate.win, in tcp_rledbat_data_rcvd() 329 tp->t_rlstate.win = min(tcp_round_to(tp->t_rlstate.win, tp->t_maxseg), in tcp_rledbat_data_rcvd() 391 if (win < 0) { in tcp_rledbat_switch_to() 392 win = 0; in tcp_rledbat_switch_to() [all …]
|
| H A D | tcp_cubic.c | 149 uint32_t elapsed_time, win; in tcp_cubic_update() local 151 win = min(tp->snd_cwnd, tp->snd_wnd); in tcp_cubic_update() 183 tp->t_ccstate->cub_origin_point = win; in tcp_cubic_update() 394 uint32_t win, avg; in tcp_cubic_pre_fr() local 400 win = min(tp->snd_cwnd, tp->snd_wnd); in tcp_cubic_pre_fr() 424 tp->t_ccstate->cub_last_max = win; in tcp_cubic_pre_fr() 470 win = (uint32_t)(win - (win * tcp_cubic_backoff)); in tcp_cubic_pre_fr() 471 win = tcp_round_to(win, tp->t_maxseg); in tcp_cubic_pre_fr() 472 if (win < 2 * tp->t_maxseg) { in tcp_cubic_pre_fr() 473 win = 2 * tp->t_maxseg; in tcp_cubic_pre_fr() [all …]
|
| H A D | tcp_newreno.c | 207 uint32_t win; in tcp_newreno_pre_fr() local 209 win = min(tp->snd_wnd, tp->snd_cwnd) / in tcp_newreno_pre_fr() 211 if (win < 2) { in tcp_newreno_pre_fr() 212 win = 2; in tcp_newreno_pre_fr() 214 tp->snd_ssthresh = win * tp->t_maxseg; in tcp_newreno_pre_fr() 281 u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg; in tcp_newreno_after_timeout() local 282 if (win < 2) { in tcp_newreno_after_timeout() 283 win = 2; in tcp_newreno_after_timeout() 285 tp->snd_ssthresh = win * tp->t_maxseg; in tcp_newreno_after_timeout()
|
| H A D | tcp_prague.c | 289 uint32_t win = tp->snd_cwnd; in tcp_prague_pre_fr() local 292 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_prague_pre_fr() 306 if (win < tp->t_ccstate->cubic_W_max) { in tcp_prague_pre_fr() 307 tp->t_ccstate->cubic_W_max = (uint32_t)((float)win * cubic_fast_convergence_factor); in tcp_prague_pre_fr() 309 tp->t_ccstate->cubic_W_max = win; in tcp_prague_pre_fr() 313 win = (uint32_t)(win * cubic_beta); in tcp_prague_pre_fr() 314 win = tcp_round_to(win, tp->t_maxseg); in tcp_prague_pre_fr() 315 if (win < 2 * tp->t_maxseg) { in tcp_prague_pre_fr() 316 win = 2 * tp->t_maxseg; in tcp_prague_pre_fr() 318 tp->snd_ssthresh = win; in tcp_prague_pre_fr()
|
| H A D | tcp_ledbat.c | 436 uint32_t win = min(tp->snd_wnd, tp->snd_cwnd); in tcp_ledbat_pre_fr() local 440 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_ledbat_pre_fr() 445 win = win / 2; in tcp_ledbat_pre_fr() 446 win = tcp_round_to(win, tp->t_maxseg); in tcp_ledbat_pre_fr() 447 if (win < 2 * tp->t_maxseg) { in tcp_ledbat_pre_fr() 448 win = 2 * tp->t_maxseg; in tcp_ledbat_pre_fr() 450 tp->snd_ssthresh = win; in tcp_ledbat_pre_fr()
|
| H A D | tcp_subr.c | 760 int win = 0; in tcp_respond() local 783 win = tcp_sbspace(tp); in tcp_respond() 784 if (win > (int32_t)TCP_MAXWIN << tp->rcv_scale) { in tcp_respond() 785 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_respond() 889 nth->th_win = htons((u_short) (win >> tp->rcv_scale)); in tcp_respond() 891 nth->th_win = htons((u_short)win); in tcp_respond() 4693 int win = 0; in tcp_make_keepalive_frame() local 4757 win = tcp_sbspace(tp); in tcp_make_keepalive_frame() 4758 if (win > ((int32_t)TCP_MAXWIN << tp->rcv_scale)) { in tcp_make_keepalive_frame() 4759 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_make_keepalive_frame() [all …]
|
| H A D | tcp_input.c | 2042 int win; in tcp_input() local 3457 win = tcp_sbspace(tp); in tcp_input() 3458 if (win < 0) { in tcp_input() 3459 win = 0; in tcp_input() 3462 win = min(win, slowlink_wsize); in tcp_input() 3465 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in tcp_input()
|
| H A D | tcp_var.h | 348 uint32_t win; /* receive Ledbat window size */ member
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_track.c | 120 int win = src->fse_max_win; in flow_track_tcp_init() local 122 win += (1 << src->fse_wscale); in flow_track_tcp_init() 248 uint16_t win = ntohs(pkt->pkt_flow_tcp_win); in flow_track_tcp() local 327 win = (uint16_t)(((u_int32_t)win + (1 << sws) - 1) in flow_track_tcp() 364 if (win > src->fse_max_win) { in flow_track_tcp() 365 src->fse_max_win = win; in flow_track_tcp() 406 if (src->fse_max_win < win) { in flow_track_tcp() 407 src->fse_max_win = win; in flow_track_tcp() 415 dst->fse_seqhi = ack + MAX((win << sws), 1); in flow_track_tcp() 488 if (src->fse_max_win < win) { in flow_track_tcp() [all …]
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_gss.c | 1258 uint32_t win = cp->gss_svc_seqwin; in nfs_gss_svc_seqnum_valid() local 1268 if (seq - cp->gss_svc_seqmax > win) { in nfs_gss_svc_seqnum_valid() 1269 bzero(bits, nfs_gss_seqbits_size(win)); in nfs_gss_svc_seqnum_valid() 1272 win_resetbit(bits, i % win); in nfs_gss_svc_seqnum_valid() 1275 win_setbit(bits, seq % win); in nfs_gss_svc_seqnum_valid() 1284 if (seq <= cp->gss_svc_seqmax - win) { in nfs_gss_svc_seqnum_valid() 1292 if (win_getbit(bits, seq % win)) { in nfs_gss_svc_seqnum_valid() 1296 win_setbit(bits, seq % win); in nfs_gss_svc_seqnum_valid() 1471 nfs_gss_seqbits_size(uint32_t win) in nfs_gss_seqbits_size() argument 1473 return nfsm_rndup((win + 7) / 8); in nfs_gss_seqbits_size()
|
| /xnu-11215/bsd/net/ |
| H A D | pf.c | 2780 th->th_win = htons(win); in pf_send_tcp() 5899 int win = s->src.max_win; in pf_test_rule() local 5900 win += 1 << (s->src.wscale & PF_WSCALE_MASK); in pf_test_rule() 5901 s->src.max_win = (win - 1) >> in pf_test_rule() 7232 win = ((u_int32_t)win + (1 << sws) - 1) in pf_test_state_tcp() 7274 if (win > src->max_win) { in pf_test_state_tcp() 7275 src->max_win = win; in pf_test_state_tcp() 7365 if (src->max_win < win) { in pf_test_state_tcp() 7366 src->max_win = win; in pf_test_state_tcp() 7474 if (src->max_win < win) { in pf_test_state_tcp() [all …]
|