Searched refs:nth (Results 1 – 2 of 2) sorted by relevance
123 struct tcphdr* nth; in tcp_twrespond() local151 nth = (struct tcphdr*) &outbuf[0]; in tcp_twrespond()157 nth->th_sport = tp->lport; in tcp_twrespond()158 nth->th_dport = tp->fport; in tcp_twrespond()159 nth->th_seq = htonl(tp->snd_nxt); in tcp_twrespond()160 nth->th_ack = htonl(tp->rcv_nxt); in tcp_twrespond()161 nth->th_off_x2 = ((sizeof(struct tcphdr) + optlen) >> 2) << TH_OFF_SHIFT; in tcp_twrespond()162 nth->th_flags = flags; in tcp_twrespond()163 nth->th_win = htons(tp->tw_last_win); in tcp_twrespond()164 nth->th_urp = 0; in tcp_twrespond()[all …]
307 struct tcphdr* nth = &th; in tcp_respond() local320 nth->th_sport = thgen->th_dport; in tcp_respond()321 nth->th_dport = thgen->th_sport; in tcp_respond()322 nth->th_seq = htonl(seq); in tcp_respond()323 nth->th_ack = htonl(ack); in tcp_respond()327 nth->th_off_x2 = (sizeof(struct tcphdr) >> 2) << TH_OFF_SHIFT; in tcp_respond()328 nth->th_flags = flags; in tcp_respond()330 nth->th_win = htons((uint16_t) (win >> tp->rcv_scale)); in tcp_respond()332 nth->th_win = htons((uint16_t)win); in tcp_respond()333 nth->th_urp = 0; in tcp_respond()[all …]