Lines Matching refs:th
113 struct tcphdr* th = NULL; in tcp_output() local
1019 th = (struct tcphdr*) (&outbuf[0]); in tcp_output()
1026 tcpip_fillheaders(tp, &ip6info, th); in tcp_output()
1106 th->th_seq = htonl(tp->snd_nxt); in tcp_output()
1108 th->th_seq = htonl(tp->snd_max); in tcp_output()
1110 th->th_seq = htonl(p->rxmit); in tcp_output()
1122 if (len > 0 && !tcp_timer_active(tp, TT_PERSIST) && SEQ_LT(ntohl(th->th_seq), tp->snd_max)) { in tcp_output()
1127 th->th_ack = htonl(tp->rcv_nxt); in tcp_output()
1129 bcopy(opt, th + 1, optlen); in tcp_output()
1130 th->th_off_x2 = ((sizeof (struct tcphdr) + optlen) >> 2) << TH_OFF_SHIFT; in tcp_output()
1132 th->th_flags = flags; in tcp_output()
1153 th->th_win = htons((uint16_t) in tcp_output()
1156 th->th_win = htons((uint16_t)(recwin >> tp->rcv_scale)); in tcp_output()
1166 if (th->th_win == 0) { in tcp_output()
1171 th->th_urp = htons((uint16_t)(tp->snd_up - tp->snd_nxt)); in tcp_output()
1172 th->th_flags |= TH_URG; in tcp_output()