Lines Matching refs:ro_rt

3158 			if (ro4->ro_rt != NULL) {
3159 RT_LOCK(ro4->ro_rt);
3161 if (ro4->ro_rt != NULL &&
3162 (ro4->ro_rt->generation_id != route_generation ||
3163 !(ro4->ro_rt->rt_flags & RTF_UP) ||
3165 RT_UNLOCK(ro4->ro_rt);
3166 rtfree(ro4->ro_rt);
3167 ro4->ro_rt = NULL;
3169 if (ro4->ro_rt == 0) {
3174 if (ro4->ro_rt == 0) {
3181 RT_LOCK(ro4->ro_rt);
3193 if (ro4->ro_rt->rt_flags & RTF_GATEWAY)
3194 dst4 = (struct sockaddr_in *)(void *)ro4->ro_rt->rt_gateway;
3195 RT_UNLOCK(ro4->ro_rt);
3196 if (state->ro.ro_rt != NULL) {
3197 rtfree(state->ro.ro_rt);
3198 state->ro.ro_rt = NULL;
3619 if (ro4->ro_rt) {
3620 RT_LOCK(ro4->ro_rt);
3622 if (ro4->ro_rt != NULL &&
3623 (ro4->ro_rt->generation_id != route_generation ||
3624 !(ro4->ro_rt->rt_flags & RTF_UP) ||
3626 RT_UNLOCK(ro4->ro_rt);
3627 rtfree(ro4->ro_rt);
3628 ro4->ro_rt = NULL;
3630 if (ro4->ro_rt == NULL) {
3635 RT_UNLOCK(ro4->ro_rt);
3643 if (ro4_copy.ro_rt != NULL) {
3644 rtfree(ro4_copy.ro_rt);
3653 if (ro4_copy.ro_rt != NULL) {
3654 rtfree(ro4_copy.ro_rt);
3664 if (ro4_copy.ro_rt != NULL) {
3665 rtfree(ro4_copy.ro_rt);
3672 if (ro4_copy.ro_rt != NULL) {
3673 rtfree(ro4_copy.ro_rt);
3681 if (ro4_copy.ro_rt != NULL) {
3682 rtfree(ro4_copy.ro_rt);
3694 if (ro4_copy.ro_rt != NULL) {
3695 rtfree(ro4_copy.ro_rt);
3702 if (ro4_copy.ro_rt != NULL) {
3703 rtfree(ro4_copy.ro_rt);
3731 if (ro6->ro_rt) {
3732 RT_LOCK(ro6->ro_rt);
3734 if (ro6->ro_rt != NULL &&
3735 (ro6->ro_rt->generation_id != route_generation ||
3736 !(ro6->ro_rt->rt_flags & RTF_UP) ||
3738 RT_UNLOCK(ro6->ro_rt);
3739 rtfree(ro6->ro_rt);
3740 ro6->ro_rt = NULL;
3742 if (ro6->ro_rt == 0) {
3748 if (ro6->ro_rt) {
3749 RT_LOCK(ro6->ro_rt);
3752 if (ro6->ro_rt == 0) {
3770 if (ro6->ro_rt->rt_flags & RTF_GATEWAY)
3771 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway;
3772 RT_UNLOCK(ro6->ro_rt);
3773 if (state->ro.ro_rt != NULL) {
3774 rtfree(state->ro.ro_rt);
3775 state->ro.ro_rt = NULL;
4459 if (sav->sah->sa_route.ro_rt != NULL &&
4460 rt_key(sav->sah->sa_route.ro_rt)->sa_family != AF_INET) {
4461 rtfree(sav->sah->sa_route.ro_rt);
4462 sav->sah->sa_route.ro_rt = NULL;