Lines Matching refs:th
157 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th, in tcp_twcheck() argument
168 thflags = tcp_get_flags(th); in tcp_twcheck()
212 if ((s = tcp_log_addrs(&inp->inp_inc, th, NULL, NULL))) { in tcp_twcheck()
229 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_twcheck()
246 if (tcp_get_flags(th) & TH_ACK) { in tcp_twcheck()
247 tcp_respond(tp, mtod(m, void *), th, m, in tcp_twcheck()
248 (tcp_seq)0, th->th_ack, TH_RST); in tcp_twcheck()
250 if (tcp_get_flags(th) & TH_SYN) in tcp_twcheck()
252 if (tcp_get_flags(th) & TH_FIN) in tcp_twcheck()
254 tcp_respond(tp, mtod(m, void *), th, m, in tcp_twcheck()
255 th->th_seq+tlen, (tcp_seq)0, TH_RST|TH_ACK); in tcp_twcheck()
285 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); in tcp_twcheck()
294 th->th_seq != tp->rcv_nxt || th->th_ack != tp->snd_nxt) { in tcp_twcheck()
295 TCP_PROBE5(receive, NULL, NULL, m, NULL, th); in tcp_twcheck()
296 tcp_respond(tp, mtod(m, void *), th, m, tp->rcv_nxt, in tcp_twcheck()
303 TCP_PROBE5(receive, NULL, NULL, m, NULL, th); in tcp_twcheck()