Lines Matching refs:ip6_forward_rt
348 * ip6_forward_rt contains the route entry that was recently used during
352 static struct route_in6 ip6_forward_rt;
624 if (ip6_forward_rt.ro_rt != NULL &&
625 (ip6_forward_rt.ro_rt->rt_flags & RTF_UP) != 0 &&
627 &((struct sockaddr_in6 *)(&ip6_forward_rt.ro_dst))->sin6_addr))
632 if (ip6_forward_rt.ro_rt) {
635 rtfree(ip6_forward_rt.ro_rt);
636 ip6_forward_rt.ro_rt = 0;
639 bzero(&ip6_forward_rt.ro_dst, sizeof(struct sockaddr_in6));
640 dst6 = (struct sockaddr_in6 *)&ip6_forward_rt.ro_dst;
645 ip6_forward_rt.ro_dst.sin6_scope_id =
649 rtalloc_ign((struct route *)&ip6_forward_rt, RTF_PRCLONING);
674 if (ip6_forward_rt.ro_rt &&
675 (ip6_forward_rt.ro_rt->rt_flags &
678 !(ip6_forward_rt.ro_rt->rt_flags & RTF_WASCLONED) &&
681 !(ip6_forward_rt.ro_rt->rt_flags & RTF_CLONED) &&
690 &rt6_key(ip6_forward_rt.ro_rt)->sin6_addr)
692 ip6_forward_rt.ro_rt->rt_ifp->if_type == IFT_LOOP) {
694 (struct in6_ifaddr *)ip6_forward_rt.ro_rt->rt_ifa;
731 if (ip6_forward_rt.ro_rt && ip6_forward_rt.ro_rt->rt_ifp
732 && ip6_forward_rt.ro_rt->rt_ifp->if_type == IFT_FAITH) {
735 deliverifp = ip6_forward_rt.ro_rt->rt_ifp; /* faith */
879 ip6_forward(m, &ip6_forward_rt, 0, 1);