Lines Matching refs:end
50 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num) in tcp_sack_insert() argument
58 head[0].end = end; in tcp_sack_insert()
82 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
85 tmp[j].end = head[i].end; in tcp_sack_insert()
89 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
92 end = head[i].end; in tcp_sack_insert()
93 } else if (SEQ_LEQ(end, head[i].end) && in tcp_sack_insert()
94 SEQ_GEQ(end, head[i].begin)) { in tcp_sack_insert()
99 end = head[i].end; in tcp_sack_insert()
101 SEQ_LEQ(begin, head[i].end)) { in tcp_sack_insert()
115 head[0].end = end; in tcp_sack_insert()
118 head[i+1].end = tmp[i].end; in tcp_sack_insert()
133 tcp_sack_remove(sack_blk_t *head, tcp_seq end, int32_t *num) in tcp_sack_remove() argument
146 if (SEQ_GT(end, head[i].begin)) { in tcp_sack_remove()
154 if (SEQ_GEQ(end, head[i].end)) { in tcp_sack_remove()
158 tmp[j].begin = end; in tcp_sack_remove()
159 tmp[j].end = head[i].end; in tcp_sack_remove()
163 tmp[j].end = head[i].end; in tcp_sack_remove()
170 head[i].end = tmp[i].end; in tcp_sack_remove()
192 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_insert() argument
205 while ((tmp != NULL) && SEQ_LEQ(tmp->end, begin)) { in tcp_notsack_insert()
223 if (SEQ_LEQ(end, tmp->begin)) { in tcp_notsack_insert()
228 if (SEQ_LEQ(end, tmp->end)) { in tcp_notsack_insert()
233 if (end == tmp->end && SEQ_LEQ(begin, tmp->begin)) { in tcp_notsack_insert()
240 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
248 *sum -= end - tmp->begin; in tcp_notsack_insert()
249 tmp->begin = end; in tcp_notsack_insert()
250 } else if (end == tmp->end) { in tcp_notsack_insert()
251 *sum -= tmp->end - begin; in tcp_notsack_insert()
252 tmp->end = begin; in tcp_notsack_insert()
261 new->end = tmp->end; in tcp_notsack_insert()
262 new->begin = end; in tcp_notsack_insert()
265 tmp->end = begin; in tcp_notsack_insert()
269 *sum -= end - begin; in tcp_notsack_insert()
272 *sum -= end - tmp->begin; in tcp_notsack_insert()
273 tmp->begin = end; in tcp_notsack_insert()
282 tmp_sum -= tmp->end - begin; in tcp_notsack_insert()
283 tmp->end = begin; in tcp_notsack_insert()
291 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_insert()
295 if (SEQ_LEQ(tmp->end, end)) { in tcp_notsack_insert()
297 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
314 tmp_sum -= end - tmp->begin; in tcp_notsack_insert()
315 tmp->begin = end; in tcp_notsack_insert()
337 tcp_notsack_remove(notsack_blk_t **head, tcp_seq end, int32_t *num, in tcp_notsack_remove() argument
350 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_remove()
355 if (SEQ_GEQ(end, tmp->end)) { in tcp_notsack_remove()
357 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_remove()
368 tmp_sum -= end - tmp->begin; in tcp_notsack_remove()
369 tmp->begin = end; in tcp_notsack_remove()
391 void tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_update() argument
404 tmp->end = end; in tcp_notsack_update()
409 *sum = end - begin; in tcp_notsack_update()
423 if (SEQ_GEQ(tmp->end, begin)) { in tcp_notsack_update()
424 *sum += end - tmp->end; in tcp_notsack_update()
425 tmp->end = end; in tcp_notsack_update()
432 tmp->end = end; in tcp_notsack_update()
436 *sum += end - begin; in tcp_notsack_update()