Lines Matching refs:ip6
89 #include <netinet/ip6.h>
196 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
216 ip6 = mtod(m, struct ip6_hdr *);/* in case mpullup */
217 if (!IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src)) {
220 ip6_sprintf(&ip6->ip6_src),
397 struct ip6_hdr *ip6;
412 * Allocate mbufs to store ip6 header and MLD header.
436 /* fill in the ip6 header */
437 ip6 = mtod(mh, struct ip6_hdr *);
438 ip6->ip6_flow = 0;
439 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
440 ip6->ip6_vfc |= IPV6_VERSION;
442 ip6->ip6_nxt = IPPROTO_ICMPV6;
444 ip6->ip6_src = ia->ia_addr.sin6_addr;
445 ip6->ip6_dst = dst ? *dst : in6m->in6m_addr;