Lines Matching defs:ip6o
331 struct ip6_hdr *ip6, *ip6o;
452 ip6o = mtod(m, struct ip6_hdr *);
453 ip6o->ip6_flow = 0;
454 ip6o->ip6_vfc &= ~IPV6_VERSION_MASK;
455 ip6o->ip6_vfc |= IPV6_VERSION;
456 ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6o));
457 ip6o->ip6_hlim = ip_defttl;
458 ip6o->ip6_dst = saidx->dst.sin6.sin6_addr;
459 ip6o->ip6_src = saidx->src.sin6.sin6_addr;
460 if (IN6_IS_SCOPE_LINKLOCAL(&ip6o->ip6_dst))
461 ip6o->ip6_dst.s6_addr16[1] = htons(saidx->dst.sin6.sin6_scope_id);
462 if (IN6_IS_SCOPE_LINKLOCAL(&ip6o->ip6_src))
463 ip6o->ip6_src.s6_addr16[1] = htons(saidx->src.sin6.sin6_scope_id);
473 ip6o->ip6_nxt = IPPROTO_IPIP;
485 ip6o->ip6_nxt = IPPROTO_IPV6;
492 ip6o->ip6_flow |= htonl((uint32_t)otos << 20);