Lines Matching refs:ro_rt

751 		if (ro->ro_rt != NULL)
752 RT_LOCK_SPIN(ro->ro_rt);
753 if (ro->ro_rt && (ro->ro_dst.sa_family != AF_INET ||
757 ro->ro_rt->generation_id != route_generation)) {
758 RT_UNLOCK(ro->ro_rt);
759 rtfree(ro->ro_rt);
760 ro->ro_rt = NULL;
763 (ro->ro_rt == NULL || ro->ro_rt->rt_ifp == NULL)) {
764 if (ro->ro_rt != NULL)
765 RT_UNLOCK(ro->ro_rt);
773 if (ro->ro_rt != NULL)
774 RT_LOCK_SPIN(ro->ro_rt);
781 if (nocell && ro->ro_rt != NULL) {
782 RT_LOCK_ASSERT_HELD(ro->ro_rt);
783 if (ro->ro_rt->rt_ifp->if_type == IFT_CELLULAR) {
784 RT_UNLOCK(ro->ro_rt);
785 rtfree(ro->ro_rt);
786 ro->ro_rt = NULL;
798 if (ro->ro_rt != NULL) {
800 RT_CONVERT_LOCK(ro->ro_rt);
801 if (!(ro->ro_rt->rt_ifp->if_flags & IFF_LOOPBACK)) {
802 ia = ifatoia(ro->ro_rt->rt_ifa);
807 RT_UNLOCK(ro->ro_rt);
1013 if ((rt = inp->inp_route.ro_rt) != NULL) {
1014 inp->inp_route.ro_rt = NULL;
1078 if (inp->inp_route.ro_rt != NULL) {
1079 rtfree(inp->inp_route.ro_rt);
1080 inp->inp_route.ro_rt = NULL;
1201 if ((rt = inp->inp_route.ro_rt) != NULL) {
1227 inp->inp_route.ro_rt = NULL;
1247 if ((rt = inp->inp_route.ro_rt) != NULL) {
1255 inp->inp_route.ro_rt = NULL;
1938 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET) {
1939 rtfree(src->ro_rt);
1940 src->ro_rt = NULL;
1954 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET)
1994 if (inp->inp_route.ro_rt != NULL) {
1995 rtfree(inp->inp_route.ro_rt);
1996 inp->inp_route.ro_rt = NULL;
2016 if (inp->inp_route.ro_rt != NULL) {
2017 rtfree(inp->inp_route.ro_rt);
2018 inp->inp_route.ro_rt = NULL;
2259 if ((rt = inp->inp_route.ro_rt) != NULL) {