Lines Matching defs:th
222 static struct mbuf* tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th);
277 register struct tcphdr *th;
714 * 2. send buffer is filled to 7/8th with data (so we actually
1462 th = (struct tcphdr *)(void *)(ip6 + 1);
1463 tcp_fillheaders(tp, ip6, th);
1474 th = (struct tcphdr *)(void *)(ip + 1);
1476 tcp_fillheaders(tp, ip, th);
1506 th->th_seq = htonl(tp->snd_nxt);
1508 th->th_seq = htonl(tp->snd_max);
1510 th->th_seq = htonl(p->rxmit);
1514 th->th_ack = htonl(tp->rcv_nxt);
1518 bcopy(opt, th + 1, optlen);
1519 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
1521 th->th_flags = flags;
1551 th->th_win = htons((u_short) (recwin>>tp->rcv_scale));
1561 if (th->th_win == 0)
1566 th->th_urp = htons((u_short)(tp->snd_up - tp->snd_nxt));
1567 th->th_flags |= TH_URG;
1591 th->th_sum = in_addword(th->th_sum,
1600 th->th_sum = in_addword(th->th_sum,
1696 tcp_trace(TA_OUTPUT, tp->t_state, tp, mtod(m, void *), th, 0);
1789 th->th_flags == TH_ACK && tp->snd_una == tp->snd_max &&
1803 th);
1808 struct ip *, ip, struct tcpcb *, tp, struct tcphdr *, th);
1820 ((th->th_flags & TH_ACK) == TH_ACK) && (!len) &&
1823 mnext = tcp_send_lroacks(tp, m, th);
2238 tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th)
2242 tcp_seq org_ack = ntohl(th->th_ack);
2257 th->th_ack = htonl(prev_ack);
2297 th->th_ack);