/* Get the tcplen (datalen + SYN/FIN) of all segments on the ooseq list */
static int tcp_oos_tcplen(struct tcp_pcb *pcb)
/* Get the tcplen (datalen + SYN/FIN) of all segments on the ooseq list */
static int tcp_oos_tcplen(struct tcp_pcb *pcb)
{
  int len = 0;
  struct tcp_seg* seg = pcb->ooseq;
  while(seg != NULL) {
    len += TCP_TCPLEN(seg);
    seg = seg->next;
  }
  return len;
}