Lines Matching refs:cur_seg
290 - cur_seg = &(pcb->unsent);
291 - while (*cur_seg &&
292 - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
293 - cur_seg = &((*cur_seg)->next );
295 - seg->next = *cur_seg;
296 - *cur_seg = seg;
297 + cur_seg = &(pcb->unsent);
298 + while (*cur_seg &&
299 + TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
300 + cur_seg = &((*cur_seg)->next);
302 + if (*cur_seg == NULL)
304 + seg->next = *cur_seg;
305 + *cur_seg = seg;