/* Get the numbers of pbufs on the ooseq list  */
static int tcp_oos_pbuf_count(struct tcp_pcb *pcb)
/* Get the numbers of pbufs on the ooseq list  */
static int tcp_oos_pbuf_count(struct tcp_pcb *pcb)
{
  int num = 0;
  struct tcp_seg* seg = pcb->ooseq;
  while(seg != NULL) {
    num += pbuf_clen(seg->p);
    seg = seg->next;
  }
  return num;
}