Lines Matching defs:ro

157 	struct ip6_moptions *, struct route_in6 *ro,
202 struct inpcb *inp, struct route_in6 *ro,
249 if ((*errorp = in6_selectif(dstsock, opts, mopts, ro, &ip6oa,
311 if ((*errorp = in6_selectif(dstsock, opts, mopts, ro, &ip6oa,
572 struct ip6_pktopts *opts, struct ip6_moptions *mopts, struct route_in6 *ro,
694 if (!select_srcif || (ro != NULL && ro->ro_rt != NULL &&
695 (ro->ro_rt->rt_flags & RTF_UP) &&
696 ro->ro_rt->generation_id == route_generation &&
697 (ro->ro_flags & ROF_SRCIF_SELECTED))) {
698 if (ro != NULL && ro->ro_rt != NULL) {
699 ifa = ro->ro_rt->rt_ifa;
712 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) {
716 rt_ifp = (ro->ro_rt != NULL) ? ro->ro_rt->rt_ifp : NULL;
730 ro->ro_rt->generation_id != route_generation)
753 if (ro->ro_rt != NULL) {
868 if (ro == NULL)
870 if (ro->ro_rt != NULL)
871 RT_LOCK(ro->ro_rt);
872 if (ro->ro_rt != NULL && (!(ro->ro_rt->rt_flags & RTF_UP) ||
873 satosin6(&ro->ro_dst)->sin6_family != AF_INET6 ||
874 ro->ro_rt->generation_id != route_generation ||
875 !IN6_ARE_ADDR_EQUAL(&satosin6(&ro->ro_dst)->sin6_addr, dst) ||
877 (ifa->ifa_ifp != ro->ro_rt->rt_ifp && !proxied_ifa))))) {
878 RT_UNLOCK(ro->ro_rt);
879 rtfree(ro->ro_rt);
880 ro->ro_rt = NULL;
882 if (ro->ro_rt == NULL) {
885 if (ro->ro_rt != NULL)
886 RT_UNLOCK(ro->ro_rt);
888 bzero(&ro->ro_dst, sizeof(struct sockaddr_in6));
889 sa6 = (struct sockaddr_in6 *)&ro->ro_dst;
894 ro->ro_rt = rtalloc1_scoped(
895 &((struct route *)ro)->ro_dst, 0, 0, ifscope);
897 rtalloc_scoped((struct route *)ro, ifscope);
899 if (ro->ro_rt != NULL)
900 RT_LOCK(ro->ro_rt);
908 if (ro->ro_rt != NULL)
909 RT_UNLOCK(ro->ro_rt);
913 if (ro->ro_rt != NULL) {
914 RT_LOCK_ASSERT_HELD(ro->ro_rt);
915 ifp = ifp0 = ro->ro_rt->rt_ifp;
919 route = ro;
984 if (ro->ro_rt != NULL)
985 RT_UNLOCK(ro->ro_rt);
1066 struct ip6_moptions *mopts, struct route_in6 *ro,
1073 if (ro == NULL) {
1075 ro = &sro;
1078 if ((err = selectroute(NULL, dstsock, opts, mopts, ro, retifp,
1120 if (ro == &sro && rt && rt == sro.ro_rt)
1139 struct ip6_pktopts *opts, struct ip6_moptions *mopts, struct route_in6 *ro,
1144 return (selectroute(srcsock, dstsock, opts, mopts, ro, retifp,