Lines Matching refs:ro_rt
557 if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
560 ro->ro_rt->generation_id != route_generation)) {
561 rtfree(ro->ro_rt);
562 ro->ro_rt = (struct rtentry *)0;
564 if (ro->ro_rt == 0) {
640 if (ro->ro_rt == 0) {
647 if (ro->ro_rt == 0) {
654 ia = ifatoia6(ro->ro_rt->rt_ifa);
655 ifp = ro->ro_rt->rt_ifp;
656 ro->ro_rt->rt_use++;
657 if (ro->ro_rt->rt_flags & RTF_GATEWAY)
658 dst = (struct sockaddr_in6 *)ro->ro_rt->rt_gateway;
741 if (ro->ro_rt == 0) {
742 ro->ro_rt = rtalloc1_locked(
745 if (ro->ro_rt == 0) {
752 ia = ifatoia6(ro->ro_rt->rt_ifa);
753 ifp = ro->ro_rt->rt_ifp;
754 ro->ro_rt->rt_use++;
830 if (ro_pmtu->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
833 rtfree(ro_pmtu->ro_rt);
834 ro_pmtu->ro_rt = (struct rtentry *)0;
836 if (ro_pmtu->ro_rt == 0) {
845 if (ro_pmtu->ro_rt != NULL) {
848 mtu = ro_pmtu->ro_rt->rt_rmx.rmx_mtu;
862 if ((ro_pmtu->ro_rt->rt_rmx.rmx_locks & RTV_MTU) == 0)
863 ro_pmtu->ro_rt->rt_rmx.rmx_mtu = mtu; /* XXX */
1007 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, 1);
1143 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, 1);
1155 if (ro == &ip6route && ro->ro_rt) { /* brace necessary for rtfree */
1156 rtfree(ro->ro_rt);
1157 ro->ro_rt = NULL;
1158 } else if (ro_pmtu == &ip6route && ro_pmtu->ro_rt) {
1159 rtfree(ro_pmtu->ro_rt);
1160 ro_pmtu->ro_rt = NULL;
1886 if (pktopt->ip6po_route.ro_rt) {
1887 rtfree(pktopt->ip6po_route.ro_rt);
1888 pktopt->ip6po_route.ro_rt = NULL;
2166 ro.ro_rt = NULL;
2173 if (ro.ro_rt == NULL) {
2177 ifp = ro.ro_rt->rt_ifp;
2178 rtfree(ro.ro_rt);
2179 ro.ro_rt = NULL;