Lines Matching defs:ip6
79 #include <netinet/ip6.h>
127 struct ip6_hdr *ip6 = NULL;
242 ip6 = mtod(m, struct ip6_hdr *);
243 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
245 ip6->ip6_flow &= ~htonl(0xff << 20);
246 ip6->ip6_flow |= htonl((uint32_t)itos << 20);
279 if (ip6) {
286 if (IN6_ARE_ADDR_EQUAL(&sin6->sin6_addr, &ip6->ip6_src)) {
331 struct ip6_hdr *ip6, *ip6o;
434 ip6 = mtod(m, struct ip6_hdr *);
435 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src))
436 ip6->ip6_src.s6_addr16[1] = 0;
437 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst))
438 ip6->ip6_dst.s6_addr16[1] = 0;