Lines Matching refs:cwnd
139 u_int16_t cwnd; /* current congestion window */ member
1082 if (i >= seq->cwnd) { in ng_l2tp_rcvdata_ctrl()
1214 seq->cwnd = 1; in ng_l2tp_seq_init()
1312 seq->cwnd = 1; in ng_l2tp_seq_reset()
1366 if (seq->cwnd < seq->wmax) { in ng_l2tp_seq_recv_nr()
1369 if (seq->cwnd < seq->ssth) { in ng_l2tp_seq_recv_nr()
1370 seq->cwnd += nack; in ng_l2tp_seq_recv_nr()
1372 if (seq->cwnd > seq->ssth) { /* into cg.av. phase */ in ng_l2tp_seq_recv_nr()
1373 nack = seq->cwnd - seq->ssth; in ng_l2tp_seq_recv_nr()
1374 seq->cwnd = seq->ssth; in ng_l2tp_seq_recv_nr()
1379 if (seq->cwnd >= seq->ssth) { in ng_l2tp_seq_recv_nr()
1381 while (seq->acks >= seq->cwnd) { in ng_l2tp_seq_recv_nr()
1382 seq->acks -= seq->cwnd; in ng_l2tp_seq_recv_nr()
1383 if (seq->cwnd < seq->wmax) in ng_l2tp_seq_recv_nr()
1384 seq->cwnd++; in ng_l2tp_seq_recv_nr()
1409 while ((i = L2TP_SEQ_DIFF(seq->ns, seq->rack)) < seq->cwnd in ng_l2tp_seq_recv_nr()
1495 seq->ssth = (seq->cwnd + 1) / 2; in ng_l2tp_seq_rack_timeout()
1496 seq->cwnd = 1; in ng_l2tp_seq_rack_timeout()
1598 CHECK(seq->cwnd >= 1); in ng_l2tp_seq_check()
1599 CHECK(seq->cwnd <= seq->wmax); in ng_l2tp_seq_check()
1602 if (seq->cwnd < seq->ssth) in ng_l2tp_seq_check()
1605 CHECK(seq->acks <= seq->cwnd); in ng_l2tp_seq_check()
1613 for ( ; i < seq->cwnd; i++) /* verify peer's recv window full */ in ng_l2tp_seq_check()