• Home
  • Raw
  • Download

Lines Matching refs:th

253                         register struct tcp_seq_hash6 *th;  in tcp_print()  local
277 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE]; in tcp_print()
278 th->nxt; th = th->nxt) in tcp_print()
279 if (memcmp((char *)&tha, (char *)&th->addr, in tcp_print()
280 sizeof(th->addr)) == 0) in tcp_print()
283 if (!th->nxt || (flags & TH_SYN)) { in tcp_print()
285 if (th->nxt == NULL) { in tcp_print()
286 th->nxt = (struct tcp_seq_hash6 *) in tcp_print()
287 calloc(1, sizeof(*th)); in tcp_print()
288 if (th->nxt == NULL) in tcp_print()
292 th->addr = tha; in tcp_print()
294 th->ack = seq, th->seq = ack - 1; in tcp_print()
296 th->seq = seq, th->ack = ack - 1; in tcp_print()
299 seq -= th->ack, ack -= th->seq; in tcp_print()
301 seq -= th->seq, ack -= th->ack; in tcp_print()
304 thseq = th->seq; in tcp_print()
305 thack = th->ack; in tcp_print()
307 register struct tcp_seq_hash *th; in tcp_print() local
328 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE]; in tcp_print()
329 th->nxt; th = th->nxt) in tcp_print()
330 if (memcmp((char *)&tha, (char *)&th->addr, in tcp_print()
331 sizeof(th->addr)) == 0) in tcp_print()
334 if (!th->nxt || (flags & TH_SYN)) { in tcp_print()
336 if (th->nxt == NULL) { in tcp_print()
337 th->nxt = (struct tcp_seq_hash *) in tcp_print()
338 calloc(1, sizeof(*th)); in tcp_print()
339 if (th->nxt == NULL) in tcp_print()
343 th->addr = tha; in tcp_print()
345 th->ack = seq, th->seq = ack - 1; in tcp_print()
347 th->seq = seq, th->ack = ack - 1; in tcp_print()
350 seq -= th->ack, ack -= th->seq; in tcp_print()
352 seq -= th->seq, ack -= th->ack; in tcp_print()
355 thseq = th->seq; in tcp_print()
356 thack = th->ack; in tcp_print()