Lines Matching defs:ip6
111 #include <netinet/ip6.h>
155 register struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
177 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_laddr, &ip6->ip6_dst))
180 !IN6_ARE_ADDR_EQUAL(&in6p->in6p_faddr, &ip6->ip6_src))
184 if (in6_cksum(m, ip6->ip6_nxt, *offp,
289 struct ip6_hdr *ip6;
314 ip6 = ip6cp->ip6c_ip6;
320 ip6 = NULL;
341 struct ip6_hdr *ip6;
397 M_PREPEND(m, sizeof(*ip6), M_WAIT);
402 ip6 = mtod(m, struct ip6_hdr *);
407 ip6->ip6_dst = *dst;
417 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
421 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) && im6o != NULL) {
432 ip6->ip6_dst.s6_addr16[1] = htons(pi->ipi6_ifindex);
436 } else if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) &&
440 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index);
453 ip6->ip6_dst.s6_addr16[1]
479 ip6->ip6_src = *in6a;
497 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) |
499 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) |
502 ip6->ip6_nxt = in6p->in6p_ip6_nxt;
503 ip6->ip6_hlim = in6_selecthlim(in6p, oifp);
531 *p = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen);