Home
last modified time | relevance | path

Searched refs:win (Results 1 – 12 of 12) sorted by relevance

/xnu-12377.81.4/bsd/netinet/
H A Dtcp_rledbat.c77 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 Dtcp_cubic.c146 uint32_t elapsed_time, win; in tcp_cubic_update() local
148 win = min(tp->snd_cwnd, tp->snd_wnd); in tcp_cubic_update()
163 if (win < tp->t_ccstate->cub_last_max) { in tcp_cubic_update()
169 K = ((float)tp->t_ccstate->cub_last_max - win) / tp->t_maxseg / tcp_cubic_coeff; in tcp_cubic_update()
176 tp->t_ccstate->cub_origin_point = win; in tcp_cubic_update()
358 uint32_t win, avg; in tcp_cubic_pre_fr() local
364 win = min(tp->snd_cwnd, tp->snd_wnd); in tcp_cubic_pre_fr()
367 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_cubic_pre_fr()
381 if (win < tp->t_ccstate->cub_last_max) { in tcp_cubic_pre_fr()
382 tp->t_ccstate->cub_last_max = (uint32_t)((float)win * tcp_cubic_fast_convergence_factor); in tcp_cubic_pre_fr()
[all …]
H A Dtcp_newreno.c213 uint32_t win; in tcp_newreno_pre_fr() local
215 win = min(tp->snd_wnd, tp->snd_cwnd) / in tcp_newreno_pre_fr()
217 if (win < 2) { in tcp_newreno_pre_fr()
218 win = 2; in tcp_newreno_pre_fr()
220 tp->snd_ssthresh = win * tp->t_maxseg; in tcp_newreno_pre_fr()
289 u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg; in tcp_newreno_after_timeout() local
290 if (win < 2) { in tcp_newreno_after_timeout()
291 win = 2; in tcp_newreno_after_timeout()
293 tp->snd_ssthresh = win * tp->t_maxseg; in tcp_newreno_after_timeout()
H A Dtcp_prague.c283 uint32_t win = tp->snd_cwnd; in tcp_prague_pre_fr() local
286 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_prague_pre_fr()
300 if (win < tp->t_ccstate->cubic_W_max) { in tcp_prague_pre_fr()
301 tp->t_ccstate->cubic_W_max = (uint32_t)((float)win * cubic_fast_convergence_factor); in tcp_prague_pre_fr()
303 tp->t_ccstate->cubic_W_max = win; in tcp_prague_pre_fr()
307 win = (uint32_t)(win * cubic_beta); in tcp_prague_pre_fr()
308 win = tcp_round_to(win, tp->t_maxseg); in tcp_prague_pre_fr()
309 if (win < 2 * tp->t_maxseg) { in tcp_prague_pre_fr()
310 win = 2 * tp->t_maxseg; in tcp_prague_pre_fr()
312 tp->snd_ssthresh = win; in tcp_prague_pre_fr()
H A Dtcp_ledbat.c442 uint32_t win = min(tp->snd_wnd, tp->snd_cwnd); in tcp_ledbat_pre_fr() local
446 win = max(tp->t_pipeack, tp->t_lossflightsize); in tcp_ledbat_pre_fr()
451 win = win / 2; in tcp_ledbat_pre_fr()
452 win = tcp_round_to(win, tp->t_maxseg); in tcp_ledbat_pre_fr()
453 if (win < 2 * tp->t_maxseg) { in tcp_ledbat_pre_fr()
454 win = 2 * tp->t_maxseg; in tcp_ledbat_pre_fr()
456 tp->snd_ssthresh = win; in tcp_ledbat_pre_fr()
H A Dtcp_syncookie.c325 uint32_t win; in syncookie_respond() local
347 win = ((so->so_rcv.sb_flags & SB_USRSIZE) != 0) ? in syncookie_respond()
349 win = imin(win, TCP_MAXWIN); in syncookie_respond()
369 tpi->th->th_seq + 1, seq, win, flags, tpi->to, mss, rcv_scale, tpi->ts_offset, &tra, true); in syncookie_respond()
H A Dtcp_subr.c938 int win = 0; in tcp_respond() local
961 win = tcp_sbspace(tp); in tcp_respond()
962 if (win > (int32_t)TCP_MAXWIN << tp->rcv_scale) { in tcp_respond()
963 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_respond()
981 win = rcv_win; in tcp_respond()
1078 nth->th_win = htons((u_short) (win >> tp->rcv_scale)); in tcp_respond()
1080 nth->th_win = htons((u_short)win); in tcp_respond()
4882 int win = 0; in tcp_make_keepalive_frame() local
4946 win = tcp_sbspace(tp); in tcp_make_keepalive_frame()
4947 if (win > ((int32_t)TCP_MAXWIN << tp->rcv_scale)) { in tcp_make_keepalive_frame()
[all …]
H A Dtcp_input.c2778 int win; in tcp_input() local
4029 win = tcp_sbspace(tp); in tcp_input()
4030 if (win < 0) { in tcp_input()
4031 win = 0; in tcp_input()
4034 win = min(win, slowlink_wsize); in tcp_input()
4037 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in tcp_input()
H A Dtcp_var.h388 uint32_t win; /* receive Ledbat window size */ member
/xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c120 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-12377.81.4/bsd/nfs/
H A Dnfs_gss.c1260 uint32_t win = cp->gss_svc_seqwin; in nfs_gss_svc_seqnum_valid() local
1270 if (seq - cp->gss_svc_seqmax > win) { in nfs_gss_svc_seqnum_valid()
1271 bzero(bits, nfs_gss_seqbits_size(win)); in nfs_gss_svc_seqnum_valid()
1274 win_resetbit(bits, i % win); in nfs_gss_svc_seqnum_valid()
1277 win_setbit(bits, seq % win); in nfs_gss_svc_seqnum_valid()
1286 if (seq <= cp->gss_svc_seqmax - win) { in nfs_gss_svc_seqnum_valid()
1294 if (win_getbit(bits, seq % win)) { in nfs_gss_svc_seqnum_valid()
1298 win_setbit(bits, seq % win); in nfs_gss_svc_seqnum_valid()
1473 nfs_gss_seqbits_size(uint32_t win) in nfs_gss_seqbits_size() argument
1475 return nfsm_rndup((win + 7) / 8); in nfs_gss_seqbits_size()
/xnu-12377.81.4/bsd/net/
H A Dpf.c2670 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument
2783 th->th_win = htons(win); in pf_send_tcp()
5902 int win = s->src.max_win; in pf_test_rule() local
5903 win += 1 << (s->src.wscale & PF_WSCALE_MASK); in pf_test_rule()
5904 s->src.max_win = (win - 1) >> in pf_test_rule()
7023 u_int16_t win = ntohs(th->th_win); in pf_test_state_tcp() local
7235 win = ((u_int32_t)win + (1 << sws) - 1) in pf_test_state_tcp()
7277 if (win > src->max_win) { in pf_test_state_tcp()
7278 src->max_win = win; in pf_test_state_tcp()
7368 if (src->max_win < win) { in pf_test_state_tcp()
[all …]