Lines Matching refs:ip6
97 #include <netinet/ip6.h>
510 struct ip6_hdr *ip6;
512 ip6 = mtod(m, struct ip6_hdr *);
514 (caddr_t)&ip6->ip6_dst - (caddr_t)ip6);
579 struct ip6_hdr *ip6 = NULL;
599 ip6 = mtod(m, struct ip6_hdr *);
600 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
605 th = (struct tcphdr *)((caddr_t)ip6 + off0);
608 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
618 if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src)) {
724 ip6 = mtod(m, struct ip6_hdr *);
725 th = (struct tcphdr *)((caddr_t)ip6 + off0);
828 inp = in6_pcblookup_hash(&tcbinfo, &ip6->ip6_src, th->th_sport,
829 &ip6->ip6_dst, th->th_dport, 1,
878 inet_ntop(AF_INET6, &ip6->ip6_dst, dbuf, sizeof(dbuf));
879 inet_ntop(AF_INET6, &ip6->ip6_src, sbuf, sizeof(sbuf));
905 ((isipv6 && !IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &ip6->ip6_src)) ||
988 bcopy((char *)ip6, (char *)tcp_saveipgen,
989 sizeof(*ip6));
1083 sin6->sin6_addr = ip6->ip6_src;
1153 inp->in6p_laddr = ip6->ip6_dst;
1590 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
1672 if (IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst,
1673 &ip6->ip6_src))
1692 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
1693 IN6_IS_ADDR_MULTICAST(&ip6->ip6_src))
1711 sin6->sin6_addr = ip6->ip6_src;
1715 inp->in6p_laddr = ip6->ip6_dst;
2911 (((ip6->ip6_src.s6_addr16[0]) << 16) | (ip6->ip6_dst.s6_addr16[0])),
3079 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
3080 IN6_IS_ADDR_MULTICAST(&ip6->ip6_src))