• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet/

Lines Matching defs:ro

196 	struct route *ro,
202 error = ip_output_list(m0, 0, opt, ro, flags, imo, ipoa);
233 struct route *ro,
287 saved_route = dn_tag->ro;
288 ro = &saved_route;
327 if (!ro)
351 if (ro->ro_rt != NULL)
352 ia = (struct in_ifaddr *)ro->ro_rt->rt_ifa;
419 dst = (struct sockaddr_in *)&ro->ro_dst;
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 ||
512 !(ro->ro_flags & ROF_SRCIF_SELECTED))) {
516 ifa = in_selectsrcif(ip, ro, ifscope);
564 if (ro->ro_rt == NULL) {
587 rtalloc_scoped_ign_locked(ro, ign, ifscope);
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);
618 * still points to the address in "ro". (It may have been
621 dst = (struct sockaddr_in *)&ro->ro_dst;
918 state.ro = &iproute;
921 state.ro = ro;
947 if (state.ro != &iproute || state.ro->ro_rt != NULL) {
949 ro = state.ro;
952 ro = state.ro;
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;
1120 * pipe number, m, ifp, ro, dst because these are
1124 * XXX note: if the ifp or ro entry are deleted
1127 args.ro = ro;
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;
2697 struct route ro;
2712 bzero((caddr_t)&ro, sizeof(ro));
2713 dst = (struct sockaddr_in *)&ro.ro_dst;
2718 rtalloc_ign_locked(&ro, 0UL);
2719 if (ro.ro_rt != NULL) {
2720 ifp = ro.ro_rt->rt_ifp;
2721 rtfree_locked(ro.ro_rt);
3019 in_selectsrcif(struct ip *ip, struct route *ro, unsigned int ifscope)
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;
3128 ro->ro_flags &= ~ROF_SRCIF_SELECTED;
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))) {
3163 ro->ro_flags |= ROF_SRCIF_SELECTED;
3164 ro->ro_rt->generation_id = route_generation;