Lines Matching refs:th
254 register struct tcp_seq_hash6 *th; local
278 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE];
279 th->nxt; th = th->nxt)
280 if (memcmp((char *)&tha, (char *)&th->addr,
281 sizeof(th->addr)) == 0)
284 if (!th->nxt || (flags & TH_SYN)) {
286 if (th->nxt == NULL) {
287 th->nxt = (struct tcp_seq_hash6 *)
288 calloc(1, sizeof(*th));
289 if (th->nxt == NULL)
292 th->addr = tha;
294 th->ack = seq, th->seq = ack - 1;
296 th->seq = seq, th->ack = ack - 1;
299 seq -= th->ack, ack -= th->seq;
301 seq -= th->seq, ack -= th->ack;
304 thseq = th->seq;
305 thack = th->ack;
310 register struct tcp_seq_hash *th; local
334 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE];
335 th->nxt; th = th->nxt)
336 if (memcmp((char *)&tha, (char *)&th->addr,
337 sizeof(th->addr)) == 0)
340 if (!th->nxt || (flags & TH_SYN)) {
342 if (th->nxt == NULL) {
343 th->nxt = (struct tcp_seq_hash *)
344 calloc(1, sizeof(*th));
345 if (th->nxt == NULL)
348 th->addr = tha;
350 th->ack = seq, th->seq = ack - 1;
352 th->seq = seq, th->ack = ack - 1;
355 seq -= th->ack, ack -= th->seq;
357 seq -= th->seq, ack -= th->ack;
360 thseq = th->seq;
361 thack = th->ack;