Lines Matching refs:th
252 register struct tcp_seq_hash6 *th; local
276 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE];
277 th->nxt; th = th->nxt)
278 if (memcmp((char *)&tha, (char *)&th->addr,
279 sizeof(th->addr)) == 0)
282 if (!th->nxt || (flags & TH_SYN)) {
284 if (th->nxt == NULL) {
285 th->nxt = (struct tcp_seq_hash6 *)
286 calloc(1, sizeof(*th));
287 if (th->nxt == NULL)
290 th->addr = tha;
292 th->ack = seq, th->seq = ack - 1;
294 th->seq = seq, th->ack = ack - 1;
297 seq -= th->ack, ack -= th->seq;
299 seq -= th->seq, ack -= th->ack;
302 thseq = th->seq;
303 thack = th->ack;
308 register struct tcp_seq_hash *th; local
332 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE];
333 th->nxt; th = th->nxt)
334 if (memcmp((char *)&tha, (char *)&th->addr,
335 sizeof(th->addr)) == 0)
338 if (!th->nxt || (flags & TH_SYN)) {
340 if (th->nxt == NULL) {
341 th->nxt = (struct tcp_seq_hash *)
342 calloc(1, sizeof(*th));
343 if (th->nxt == NULL)
346 th->addr = tha;
348 th->ack = seq, th->seq = ack - 1;
350 th->seq = seq, th->ack = ack - 1;
353 seq -= th->ack, ack -= th->seq;
355 seq -= th->seq, ack -= th->ack;
358 thseq = th->seq;
359 thack = th->ack;