Lines Matching refs:ip6
125 #include <netinet/ip6.h>
176 struct ip6_hdr *ip6;
342 ip6 = mtod(m, struct ip6_hdr *);
343 ip6->ip6_flow = in6p->in6p_flowinfo & IPV6_FLOWINFO_MASK;
344 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
345 ip6->ip6_vfc |= IPV6_VERSION;
347 ip6->ip6_plen = htons((u_short)plen);
349 ip6->ip6_nxt = IPPROTO_UDP;
350 ip6->ip6_hlim = in6_selecthlim(in6p,
353 ip6->ip6_src = *laddr;
354 ip6->ip6_dst = *faddr;
386 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) &&