Home
last modified time | relevance | path

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

/xnu-8796.141.3/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.c149 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 Dtcp_newreno.c207 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 Dtcp_ledbat.c436 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 Dtcp_subr.c739 int win = 0; in tcp_respond() local
762 win = tcp_sbspace(tp); in tcp_respond()
763 if (win > (int32_t)TCP_MAXWIN << tp->rcv_scale) { in tcp_respond()
764 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_respond()
868 nth->th_win = htons((u_short) (win >> tp->rcv_scale)); in tcp_respond()
870 nth->th_win = htons((u_short)win); in tcp_respond()
3886 int win = 0; in tcp_make_keepalive_frame() local
3950 win = tcp_sbspace(tp); in tcp_make_keepalive_frame()
3951 if (win > ((int32_t)TCP_MAXWIN << tp->rcv_scale)) { in tcp_make_keepalive_frame()
3952 win = (int32_t)TCP_MAXWIN << tp->rcv_scale; in tcp_make_keepalive_frame()
[all …]
H A Dtcp_input.c1900 int win; in tcp_input() local
3253 win = tcp_sbspace(tp); in tcp_input()
3254 if (win < 0) { in tcp_input()
3255 win = 0; in tcp_input()
3258 win = min(win, slowlink_wsize); in tcp_input()
3261 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in tcp_input()
H A Dtcp_var.h274 uint32_t win; /* receive Ledbat window size */ member
/xnu-8796.141.3/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c119 int win = src->fse_max_win; in flow_track_tcp_init() local
121 win += (1 << src->fse_wscale); in flow_track_tcp_init()
122 src->fse_max_win = (uint16_t)((win - 1) >> src->fse_wscale); in flow_track_tcp_init()
247 uint16_t win = ntohs(pkt->pkt_flow_tcp_win); in flow_track_tcp() local
317 win = (uint16_t)(((u_int32_t)win + (1 << sws) - 1) in flow_track_tcp()
349 if (win > src->fse_max_win) { in flow_track_tcp()
350 src->fse_max_win = win; in flow_track_tcp()
391 if (src->fse_max_win < win) { in flow_track_tcp()
392 src->fse_max_win = win; in flow_track_tcp()
399 if (SEQ_GEQ(ack + (win << sws), dst->fse_seqhi)) { in flow_track_tcp()
[all …]
/xnu-8796.141.3/bsd/nfs/
H A Dnfs_gss.c1255 uint32_t win = cp->gss_svc_seqwin; in nfs_gss_svc_seqnum_valid() local
1265 if (seq - cp->gss_svc_seqmax > win) { in nfs_gss_svc_seqnum_valid()
1266 bzero(bits, nfs_gss_seqbits_size(win)); in nfs_gss_svc_seqnum_valid()
1269 win_resetbit(bits, i % win); in nfs_gss_svc_seqnum_valid()
1272 win_setbit(bits, seq % win); in nfs_gss_svc_seqnum_valid()
1281 if (seq <= cp->gss_svc_seqmax - win) { in nfs_gss_svc_seqnum_valid()
1289 if (win_getbit(bits, seq % win)) { in nfs_gss_svc_seqnum_valid()
1293 win_setbit(bits, seq % win); in nfs_gss_svc_seqnum_valid()
1468 nfs_gss_seqbits_size(uint32_t win) in nfs_gss_seqbits_size() argument
1470 return nfsm_rndup((win + 7) / 8); in nfs_gss_seqbits_size()
/xnu-8796.141.3/bsd/net/
H A Dpf.c2629 u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, in pf_send_tcp() argument
2742 th->th_win = htons(win); in pf_send_tcp()
5863 int win = s->src.max_win; in pf_test_rule() local
5864 win += 1 << (s->src.wscale & PF_WSCALE_MASK); in pf_test_rule()
5865 s->src.max_win = (win - 1) >> in pf_test_rule()
6984 u_int16_t win = ntohs(th->th_win); in pf_test_state_tcp() local
7196 win = ((u_int32_t)win + (1 << sws) - 1) in pf_test_state_tcp()
7238 if (win > src->max_win) { in pf_test_state_tcp()
7239 src->max_win = win; in pf_test_state_tcp()
7329 if (src->max_win < win) { in pf_test_state_tcp()
[all …]