Lines Matching defs:ip6
150 struct ip6_hdr *ip6;
188 ip6 = mtod(m, struct ip6_hdr *);
189 otos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
200 ip6 = NULL;
266 ip6 = mtod(m, struct ip6_hdr *);
267 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
273 ip6->ip6_flow &= ~htonl(0xff << 20);
274 ip6->ip6_flow |= htonl((u_int32_t) itos << 20);
292 } else if (ip6) {
296 sin6->sin6_addr = ip6->ip6_src;
348 struct ip6_hdr *ip6, *ip6o;
468 ip6 = mtod(m, struct ip6_hdr *);
469 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_src))
470 ip6->ip6_src.s6_addr16[1] = 0;
471 if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst))
472 ip6->ip6_dst.s6_addr16[1] = 0;