Lines Matching defs:ip6
73 #include <netinet/ip6.h>
162 struct ip6_hdr *ip6 = NULL;
274 ip6 = (struct ip6_hdr *) ipo;
275 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
277 ip6->ip6_flow &= ~htonl(0xff << 20);
278 ip6->ip6_flow |= htonl((u_int32_t) itos << 20);
299 in6_localip(&ip6->ip6_src) != 0) {
360 struct ip6_hdr *ip6, *ip6o;
469 ip6 = mtod(m, struct ip6_hdr *);
470 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src))
471 ip6->ip6_src.s6_addr16[1] = 0;
472 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
473 ip6->ip6_dst.s6_addr16[1] = 0;
491 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));