Lines Matching refs:ro4
3004 struct route *ro4;
3156 ro4= &sav->sah->sa_route;
3157 dst4 = (struct sockaddr_in *)(void *)&ro4->ro_dst;
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) {
3173 rtalloc(ro4);
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);
3200 route_copyout(&state->ro, ro4, sizeof(state->ro));
3590 struct route *ro4 = NULL;
3617 ro4 = &sav->sah->sa_route;
3618 dst4 = (struct sockaddr_in *)(void *)&ro4->ro_dst;
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);
3637 route_copyout(&ro4_copy, ro4, sizeof(ro4_copy));
3713 route_copyin(&ro4_copy, ro4, sizeof(ro4_copy));