Lines Matching refs:ro_rt
798 if (ro && ro->ro_rt)
799 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
837 if (ro->ro_rt != NULL && (!(ro->ro_rt->rt_flags & RTF_UP) ||
840 ro->ro_rt->generation_id != route_generation)) {
841 rtfree(ro->ro_rt);
842 ro->ro_rt = NULL;
844 if (ro->ro_rt == NULL) {
1031 if (opt && opt->ip6po_nextroute.ro_rt) {
1353 if (ro->ro_rt)
1354 RT_LOCK_ASSERT_NOTHELD(ro->ro_rt);
1355 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt, adv);
1503 error = nd6_output(ifp, origifp, m, dst, ro->ro_rt,
1517 if (ipsec_state.ro.ro_rt) {
1518 rtfree(ipsec_state.ro.ro_rt);
1522 if (ro == &ip6route && ro->ro_rt) { /* brace necessary for rtfree */
1523 rtfree(ro->ro_rt);
1524 } else if (ro_pmtu == &ip6route && ro_pmtu->ro_rt) {
1525 rtfree(ro_pmtu->ro_rt);
1761 if (ro_pmtu->ro_rt &&
1762 ((ro_pmtu->ro_rt->rt_flags & RTF_UP) == 0 ||
1763 ro_pmtu->ro_rt->generation_id != route_generation ||
1765 rtfree(ro_pmtu->ro_rt);
1766 ro_pmtu->ro_rt = (struct rtentry *)NULL;
1768 if (ro_pmtu->ro_rt == NULL) {
1780 if (ro_pmtu->ro_rt != NULL) {
1788 RT_LOCK_SPIN(ro_pmtu->ro_rt);
1789 mtu = ro_pmtu->ro_rt->rt_rmx.rmx_mtu;
1803 if ((ro_pmtu->ro_rt->rt_rmx.rmx_locks & RTV_MTU) == 0)
1804 ro_pmtu->ro_rt->rt_rmx.rmx_mtu = mtu; /* XXX */
1818 RT_UNLOCK(ro_pmtu->ro_rt);
2393 if (sro.ro_rt)
2394 rtfree(sro.ro_rt);
2797 if (pktopt->ip6po_nextroute.ro_rt) {
2798 rtfree(pktopt->ip6po_nextroute.ro_rt);
2799 pktopt->ip6po_nextroute.ro_rt = NULL;
2819 if (pktopt->ip6po_route.ro_rt) {
2820 rtfree(pktopt->ip6po_route.ro_rt);
2821 pktopt->ip6po_route.ro_rt = NULL;