Lines Matching defs:th
263 register struct tcp_seq_hash *th;
355 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE];
356 th->nxt; th = th->nxt)
357 if (memcmp((char *)&tha, (char *)&th->addr,
358 sizeof(th->addr)) == 0)
361 if (!th->nxt || (flags & TH_SYN)) {
363 if (th->nxt == NULL) {
364 th->nxt = (struct tcp_seq_hash *)
365 calloc(1, sizeof(*th));
366 if (th->nxt == NULL)
369 th->addr = tha;
371 th->ack = seq, th->seq = ack - 1;
373 th->seq = seq, th->ack = ack - 1;
376 seq -= th->ack, ack -= th->seq;
378 seq -= th->seq, ack -= th->ack;
381 thseq = th->seq;
382 thack = th->ack;