Lines Matching refs:end
56 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num) in tcp_sack_insert() argument
64 head[0].end = end; in tcp_sack_insert()
88 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
91 tmp[j].end = head[i].end; in tcp_sack_insert()
95 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
98 end = head[i].end; in tcp_sack_insert()
99 } else if (SEQ_LEQ(end, head[i].end) && in tcp_sack_insert()
100 SEQ_GEQ(end, head[i].begin)) { in tcp_sack_insert()
105 end = head[i].end; in tcp_sack_insert()
107 SEQ_LEQ(begin, head[i].end)) { in tcp_sack_insert()
121 head[0].end = end; in tcp_sack_insert()
124 head[i+1].end = tmp[i].end; in tcp_sack_insert()
139 tcp_sack_remove(sack_blk_t *head, tcp_seq end, int32_t *num) in tcp_sack_remove() argument
152 if (SEQ_GT(end, head[i].begin)) { in tcp_sack_remove()
160 if (SEQ_GEQ(end, head[i].end)) { in tcp_sack_remove()
164 tmp[j].begin = end; in tcp_sack_remove()
165 tmp[j].end = head[i].end; in tcp_sack_remove()
169 tmp[j].end = head[i].end; in tcp_sack_remove()
176 head[i].end = tmp[i].end; in tcp_sack_remove()
198 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_insert() argument
211 while ((tmp != NULL) && SEQ_LEQ(tmp->end, begin)) { in tcp_notsack_insert()
229 if (SEQ_LEQ(end, tmp->begin)) { in tcp_notsack_insert()
234 if (SEQ_LEQ(end, tmp->end)) { in tcp_notsack_insert()
239 if (end == tmp->end && SEQ_LEQ(begin, tmp->begin)) { in tcp_notsack_insert()
246 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
254 *sum -= end - tmp->begin; in tcp_notsack_insert()
255 tmp->begin = end; in tcp_notsack_insert()
256 } else if (end == tmp->end) { in tcp_notsack_insert()
257 *sum -= tmp->end - begin; in tcp_notsack_insert()
258 tmp->end = begin; in tcp_notsack_insert()
266 new->end = tmp->end; in tcp_notsack_insert()
267 new->begin = end; in tcp_notsack_insert()
270 tmp->end = begin; in tcp_notsack_insert()
274 *sum -= end - begin; in tcp_notsack_insert()
277 *sum -= end - tmp->begin; in tcp_notsack_insert()
278 tmp->begin = end; in tcp_notsack_insert()
287 tmp_sum -= tmp->end - begin; in tcp_notsack_insert()
288 tmp->end = begin; in tcp_notsack_insert()
296 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_insert()
300 if (SEQ_LEQ(tmp->end, end)) { in tcp_notsack_insert()
302 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
319 tmp_sum -= end - tmp->begin; in tcp_notsack_insert()
320 tmp->begin = end; in tcp_notsack_insert()
342 tcp_notsack_remove(notsack_blk_t **head, tcp_seq end, int32_t *num, in tcp_notsack_remove() argument
355 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_remove()
360 if (SEQ_GEQ(end, tmp->end)) { in tcp_notsack_remove()
362 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_remove()
375 tmp_sum -= end - tmp->begin; in tcp_notsack_remove()
376 tmp->begin = end; in tcp_notsack_remove()
398 void tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_update() argument
411 tmp->end = end; in tcp_notsack_update()
416 *sum = end - begin; in tcp_notsack_update()
430 if (SEQ_GEQ(tmp->end, begin)) { in tcp_notsack_update()
431 *sum += end - tmp->end; in tcp_notsack_update()
432 tmp->end = end; in tcp_notsack_update()
440 tmp->end = end; in tcp_notsack_update()
444 *sum += end - begin; in tcp_notsack_update()