Lines Matching defs:th
226 register struct tcphdr *th;
1208 th = (struct tcphdr *)(ip6 + 1);
1209 tcp_fillheaders(tp, ip6, th);
1215 th = (struct tcphdr *)(ip + 1);
1217 tcp_fillheaders(tp, ip, th);
1247 th->th_seq = htonl(tp->snd_nxt);
1249 th->th_seq = htonl(tp->snd_max);
1251 th->th_seq = htonl(p->rxmit);
1255 th->th_ack = htonl(tp->rcv_nxt);
1259 bcopy(opt, th + 1, optlen);
1260 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
1262 th->th_flags = flags;
1274 th->th_win = htons((u_short) (recwin>>tp->rcv_scale));
1279 th->th_win = htons((u_short) (recwin>>tp->rcv_scale));
1295 th->th_urp = htons((u_short)(tp->snd_up - tp->snd_nxt));
1296 th->th_flags |= TH_URG;
1317 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
1325 th->th_sum = in_addword(th->th_sum,
1402 tcp_trace(TA_OUTPUT, tp->t_state, tp, mtod(m, void *), th, 0);