Lines Matching refs:th
156 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
167 thflags = tcp_get_flags(th);
211 if ((s = tcp_log_addrs(&inp->inp_inc, th, NULL, NULL))) {
228 SEQ_GT(th->th_seq, tp->rcv_nxt)) {
245 if (tcp_get_flags(th) & TH_ACK) {
246 tcp_respond(tp, mtod(m, void *), th, m,
247 (tcp_seq)0, th->th_ack, TH_RST);
249 if (tcp_get_flags(th) & TH_SYN)
251 if (tcp_get_flags(th) & TH_FIN)
253 tcp_respond(tp, mtod(m, void *), th, m,
254 th->th_seq+tlen, (tcp_seq)0, TH_RST|TH_ACK);
284 seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0);
293 th->th_seq != tp->rcv_nxt || th->th_ack != tp->snd_nxt) {
294 TCP_PROBE5(receive, NULL, NULL, m, NULL, th);
295 tcp_respond(tp, mtod(m, void *), th, m, tp->rcv_nxt,
302 TCP_PROBE5(receive, NULL, NULL, m, NULL, th);