Lines Matching defs:ip6
81 #include <netinet/ip6.h>
172 struct ip6_hdr *ip6;
189 ip6 = mtod(m, struct ip6_hdr *);/* in case mpullup */
190 if (!IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src)) {
196 inet_ntop(AF_INET6, &ip6->ip6_src, src, sizeof(src)),
404 struct ip6_hdr *ip6;
429 * Allocate mbufs to store ip6 header and MLD header.
452 /* fill in the ip6 header */
453 ip6 = mtod(mh, struct ip6_hdr *);
454 ip6->ip6_flow = 0;
455 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
456 ip6->ip6_vfc |= IPV6_VERSION;
458 ip6->ip6_nxt = IPPROTO_ICMPV6;
460 ip6->ip6_src = ia6 ? ia6->ia_addr.sin6_addr : in6addr_any;
461 ip6->ip6_dst = dst ? *dst : in6m->in6m_addr;