647: ipov->ih_pr = IPPROTO_TCP;
648: ipov->ih_len = htons(sizeof(struct tcphdr));
649: if (inp) {
670: ipov->ih_dst.s_addr,
671: htons(sizeof(struct tcphdr) + IPPROTO_TCP));
672: break;
680: ip6->ip6_nxt = IPPROTO_TCP;
681: ip6->ip6_plen = htons(sizeof(struct tcphdr));
682: ip6->ip6_src = in6p->in6p_laddr;
951: win = TCP_MAXWIN;
952: th->th_win = htons((u_int16_t)win);
953: th->th_off = sizeof (struct tcphdr) >> 2;
968: bzero(ipov->ih_x1, sizeof ipov->ih_x1);
969: ipov->ih_len = htons((u_int16_t)tlen);
970:
972: th->th_sum = in_cksum(m, hlen + tlen);
973: ip->ip_len = htons(hlen + tlen);
974: ip->ip_ttl = ip_defttl;
983: tlen);
984: ip6->ip6_plen = htons(tlen);
985: if (tp && tp->t_in6pcb) {