Lines Matching refs:ro_rt
351 if (ro->ro_rt != NULL)
352 ia = (struct in_ifaddr *)ro->ro_rt->rt_ifa;
430 if (ro->ro_rt != NULL) {
431 if (ro->ro_rt->generation_id != route_generation &&
439 if ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
442 rtfree_locked(ro->ro_rt);
443 ro->ro_rt = NULL;
450 if (!select_srcif && ro->ro_rt != NULL &&
451 ro->ro_rt->generation_id != route_generation)
452 ro->ro_rt->generation_id = route_generation;
454 if (ro->ro_rt == NULL) {
510 (ro->ro_rt == NULL ||
511 ro->ro_rt->generation_id != route_generation ||
564 if (ro->ro_rt == NULL) {
590 if (ro->ro_rt == NULL) {
599 ia = ifatoia(ro->ro_rt->rt_ifa);
602 ifp = ro->ro_rt->rt_ifp;
603 ro->ro_rt->rt_use++;
604 if (ro->ro_rt->rt_flags & RTF_GATEWAY)
605 dst = (struct sockaddr_in *)ro->ro_rt->rt_gateway;
606 if (ro->ro_rt->rt_flags & RTF_HOST)
607 isbroadcast = (ro->ro_rt->rt_flags & RTF_BROADCAST);
947 if (state.ro != &iproute || state.ro->ro_rt != NULL) {
989 if (ro->ro_rt && ro->ro_rt->generation_id != route_generation) {
996 rtfree_locked(ro->ro_rt);
997 ro->ro_rt = NULL;
1000 if (ro->ro_rt == NULL) {
1012 ia = ifatoia(ro->ro_rt->rt_ifa);
1015 ifp = ro->ro_rt->rt_ifp;
1274 ro_fwd->ro_rt = 0;
1278 if (ro_fwd->ro_rt == 0) {
1285 ia_fw = ifatoia(ro_fwd->ro_rt->rt_ifa);
1286 ifp = ro_fwd->ro_rt->rt_ifp;
1287 ro_fwd->ro_rt->rt_use++;
1288 if (ro_fwd->ro_rt->rt_flags & RTF_GATEWAY)
1289 dst = (struct sockaddr_in *)ro_fwd->ro_rt->rt_gateway;
1290 if (ro_fwd->ro_rt->rt_flags & RTF_HOST)
1292 (ro_fwd->ro_rt->rt_flags & RTF_BROADCAST);
1295 rtfree_locked(ro->ro_rt);
1296 ro->ro_rt = ro_fwd->ro_rt;
1411 if ((rte = ro->ro_rt) != NULL)
1426 if ((rte = ro->ro_rt) != NULL)
1458 if (ro->ro_rt && (ro->ro_rt->rt_flags & (RTF_UP | RTF_HOST))
1459 && !(ro->ro_rt->rt_rmx.rmx_locks & RTV_MTU)
1460 && (ro->ro_rt->rt_rmx.rmx_mtu > ifp->if_mtu)) {
1461 ro->ro_rt->rt_rmx.rmx_mtu = ifp->if_mtu;
1588 if ((rte = ro->ro_rt) != NULL)
1609 if (ro == &iproute && ro->ro_rt) {
1610 rtfree(ro->ro_rt);
1611 ro->ro_rt = NULL;
2719 if (ro.ro_rt != NULL) {
2720 ifp = ro.ro_rt->rt_ifp;
2721 rtfree_locked(ro.ro_rt);
3036 rt_ifp = (ro->ro_rt != NULL) ? ro->ro_rt->rt_ifp : NULL;
3045 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) {
3060 ro->ro_rt->generation_id != route_generation)
3067 if (ro->ro_rt != NULL) {
3108 if (ro->ro_rt != NULL &&
3110 !(ro->ro_rt->rt_flags & RTF_UP))) {
3126 rtfree_locked(ro->ro_rt);
3127 ro->ro_rt = NULL;
3160 if (ro->ro_rt != NULL && (!IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ||
3161 (ro->ro_rt->rt_gateway->sa_family == AF_LINK &&
3162 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) {
3164 ro->ro_rt->generation_id = route_generation;
3193 if (inp->inp_route.ro_rt != NULL) {
3194 rtfree_locked(inp->inp_route.ro_rt);
3195 inp->inp_route.ro_rt = NULL;