Lines Matching refs:th
187 struct tcp_seq_hash *th = NULL; in tcp_print() local
352 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE]; in tcp_print()
353 th->nxt; th = th->nxt) in tcp_print()
354 if (!memcmp((char *)&tha, (char *)&th->addr, in tcp_print()
355 sizeof(th->addr))) in tcp_print()
358 if (!th->nxt || flags & TH_SYN) { in tcp_print()
360 if (th->nxt == NULL) { in tcp_print()
361 th->nxt = calloc(1, sizeof(*th)); in tcp_print()
362 if (th->nxt == NULL) in tcp_print()
365 th->addr = tha; in tcp_print()
367 th->ack = seq, th->seq = ack - 1; in tcp_print()
369 th->seq = seq, th->ack = ack - 1; in tcp_print()
372 seq -= th->ack, ack -= th->seq; in tcp_print()
374 seq -= th->seq, ack -= th->ack; in tcp_print()
529 s -= th->seq; in tcp_print()
530 e -= th->seq; in tcp_print()
532 s -= th->ack; in tcp_print()
533 e -= th->ack; in tcp_print()