Lines Matching refs:ip6
96 #include <netinet/ip6.h>
393 struct ip6_hdr *ip6;
395 ip6 = (struct ip6_hdr *)ip_ptr;
396 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) |
398 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) |
400 ip6->ip6_nxt = IPPROTO_TCP;
401 ip6->ip6_plen = sizeof(struct tcphdr);
402 ip6->ip6_src = inp->in6p_laddr;
403 ip6->ip6_dst = inp->in6p_faddr;
492 struct ip6_hdr *ip6;
498 ip6 = ipgen;
534 bcopy((caddr_t)ip6, mtod(m, caddr_t),
536 ip6 = mtod(m, struct ip6_hdr *);
537 nth = (struct tcphdr *)(ip6 + 1);
556 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr);
557 nth = (struct tcphdr *)(ip6 + 1);
578 ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
628 ip6->ip6_hlim = in6_selecthlim(tp ? tp->t_inpcb : NULL,
1332 struct ip6_hdr *ip6;
1358 ip6 = ip6cp->ip6c_ip6;
1363 ip6 = NULL;
1368 if (ip6) {
1768 struct ip6_hdr *ip6 = NULL;
1780 ip6 = mtod(m, struct ip6_hdr *);
1781 th = (struct tcphdr *)(ip6 + 1);
1784 tcp_fillheaders(tp, ip6, th);