| /xnu-11417.101.15/bsd/netinet/ |
| H A D | tcp_rledbat.c | 77 tp->t_rlstate.win = tp->t_maxseg * bg_ss_fltsz; in tcp_rledbat_init() 94 tp->t_rlstate.win = tp->t_maxseg * bg_ss_fltsz; in tcp_rledbat_rwnd_init() 131 if (tp->t_rlstate.ssthresh > tp->t_rlstate.win) { in rledbat_congestion_avd() 146 if (tp->t_rlstate.ssthresh > tp->t_rlstate.win) { in rledbat_congestion_avd() 147 tp->t_rlstate.ssthresh = tp->t_rlstate.win; in rledbat_congestion_avd() 154 if (tp->t_rlstate.rcvd_bytes >= tp->t_rlstate.win) { in rledbat_congestion_avd() 156 tp->t_rlstate.rcvd_bytes -= tp->t_rlstate.win; in rledbat_congestion_avd() 163 if (tp->t_rlstate.ssthresh < tp->t_rlstate.win) { in rledbat_congestion_avd() 164 tp->t_rlstate.ssthresh = tp->t_rlstate.win; in rledbat_congestion_avd() 166 tp->t_rlstate.win += update; in rledbat_congestion_avd() [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() 166 if (win < tp->t_ccstate->cub_last_max) { in tcp_cubic_update() 173 K = ((float)tp->t_ccstate->cub_last_max - win) / tp->t_maxseg / tcp_cubic_coeff; in tcp_cubic_update() 175 K = (tp->t_ccstate->cub_last_max - win) / tp->t_maxseg / tcp_cubic_coeff; 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() 404 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_cubic_pre_fr() 406 win = (max(tp->t_pipeack, tp->t_lossflightsize)) >> 1; 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 | 766 int win = 0; in tcp_respond() local 789 win = tcp_sbspace(tp); in tcp_respond() 790 if (win > (int32_t)TCP_MAXWIN << tp->rcv_scale) { in tcp_respond() 791 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_respond() 895 nth->th_win = htons((u_short) (win >> tp->rcv_scale)); in tcp_respond() 897 nth->th_win = htons((u_short)win); in tcp_respond() 4690 int win = 0; in tcp_make_keepalive_frame() local 4754 win = tcp_sbspace(tp); in tcp_make_keepalive_frame() 4755 if (win > ((int32_t)TCP_MAXWIN << tp->rcv_scale)) { in tcp_make_keepalive_frame() 4756 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_make_keepalive_frame() [all …]
|
| H A D | tcp_input.c | 2044 int win; in tcp_input() local 3494 win = tcp_sbspace(tp); in tcp_input() 3495 if (win < 0) { in tcp_input() 3496 win = 0; in tcp_input() 3499 win = min(win, slowlink_wsize); in tcp_input() 3502 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in tcp_input()
|
| H A D | tcp_var.h | 349 uint32_t win; /* receive Ledbat window size */ member
|
| /xnu-11417.101.15/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() 123 src->fse_max_win = (uint16_t)((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() 414 if (SEQ_GEQ(ack + (win << sws), dst->fse_seqhi)) { in flow_track_tcp() [all …]
|
| /xnu-11417.101.15/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-11417.101.15/bsd/net/ |
| H A D | pf.c | 2667 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument 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() 7020 u_int16_t win = ntohs(th->th_win); in pf_test_state_tcp() local 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() [all …]
|