Lines Matching refs:th
245 static struct mbuf* tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th);
287 struct tcphdr *th;
774 * 2. send buffer is filled to 7/8th with data (so we actually
1679 th = (struct tcphdr *)(void *)(ip6 + 1);
1680 tcp_fillheaders(tp, ip6, th);
1695 th = (struct tcphdr *)(void *)(ip + 1);
1697 tcp_fillheaders(tp, ip, th);
1731 th->th_seq = htonl(tp->snd_nxt);
1733 th->th_seq = htonl(tp->snd_max);
1735 th->th_seq = htonl(p->rxmit);
1739 th->th_ack = htonl(tp->rcv_nxt);
1744 th->th_ack = th->th_seq + 1;
1748 bcopy(opt, th + 1, optlen);
1749 th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
1751 th->th_flags = flags;
1783 th->th_win = htons((u_short) (recwin>>tp->rcv_scale));
1793 if (th->th_win == 0)
1798 th->th_urp = htons((u_short)(tp->snd_up - tp->snd_nxt));
1799 th->th_flags |= TH_URG;
1824 th->th_sum = in_addword(th->th_sum,
1833 th->th_sum = in_addword(th->th_sum,
1978 tcp_trace(TA_OUTPUT, tp->t_state, tp, mtod(m, void *), th, 0);
2086 th->th_flags == TH_ACK && tp->snd_una == tp->snd_max &&
2100 th);
2105 struct ip *, ip, struct tcpcb *, tp, struct tcphdr *, th);
2117 ((th->th_flags & TH_ACK) == TH_ACK) && (!len) &&
2120 mnext = tcp_send_lroacks(tp, m, th);
2567 tcp_send_lroacks(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th)
2571 tcp_seq org_ack = ntohl(th->th_ack);
2580 unsigned short winsz = ntohs(th->th_win);
2590 th->th_ack = htonl(prev_ack);
2595 th->th_win = htons(scaled_win>>tp->rcv_scale);