Lines Matching refs:ip6
50 #include <netinet/ip6.h>
98 const struct ip6_hdr *ip6;
100 if (m->m_len >= sizeof(*ip6))
101 ip6 = mtod(m, const struct ip6_hdr *);
104 ip6 = &ip6buf;
110 bcopy(&ip6->ip6_src, &src->sin6.sin6_addr, sizeof(ip6->ip6_src));
111 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) {
113 src->sin6.sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]);
119 bcopy(&ip6->ip6_dst, &dst->sin6.sin6_addr, sizeof(ip6->ip6_dst));
120 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
122 dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);