Lines Matching refs:unsent

127   /* first, try to add the fin to the last unsent segment */
128 if (pcb->unsent != NULL) {
130 for (last_unsent = pcb->unsent; last_unsent->next != NULL;
249 pcb->unsent != NULL ||
317 /* If total number of pbufs on the unsent/unacked queues exceeds the
329 pcb->unacked != NULL || pcb->unsent != NULL);
332 pcb->unacked == NULL && pcb->unsent == NULL);
403 * 2. Chain a new pbuf to the end of pcb->unsent.
421 /* Find the tail of the unsent queue. */
422 if (pcb->unsent != NULL) {
427 for (last_unsent = pcb->unsent; last_unsent->next != NULL;
430 /* Usable space at the end of the last unsent segment */
461 * Phase 2: Chain a new pbuf to the end of pcb->unsent.
511 LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
520 * variable, ready to be appended to pcb->unsent.
650 LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty",
664 * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that
668 pcb->unsent = queue;
684 pcb->unacked != NULL || pcb->unsent != NULL);
705 pcb->unsent != NULL);
787 /* Now append seg to pcb->unsent queue */
788 if (pcb->unsent == NULL) {
789 pcb->unsent = seg;
792 for (useg = pcb->unsent; useg->next != NULL; useg = useg->next);
796 /* The new unsent tail has no space */
815 pcb->unacked != NULL || pcb->unsent != NULL);
920 seg = pcb->unsent;
923 * because the ->unsent queue is empty or because the window does
943 (void*)pcb->unsent));
986 pcb->unsent = seg->next;
1029 seg = pcb->unsent;
1032 if (pcb->unsent == NULL) {
1033 /* last unsent has been removed, reset unsent_oversize */
1247 /* Move all unacked segments to the head of the unsent queue */
1249 /* concatenate unsent queue after unacked queue */
1250 seg->next = pcb->unsent;
1251 /* unsent queue is the concatenated queue (of unacked, unsent) */
1252 pcb->unsent = pcb->unacked;
1255 /* last unsent hasn't changed, no need to reset unsent_oversize */
1284 /* Move the first unacked segment to the unsent queue */
1285 /* Keep the unsent queue sorted. */
1289 cur_seg = &(pcb->unsent);
1298 /* the retransmitted segment is last in unsent, so reset unsent_oversize */
1436 seg = pcb->unsent;
1460 (unsent), seg->p->payload points to the IP header or TCP header.