/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | kpi_ipfilter.c | 264 struct route ro; local 265 struct sockaddr_in *sin = (struct sockaddr_in*)&ro.ro_dst; 300 bzero(&ro, sizeof(struct route)); 305 rtalloc(&ro); 306 if (ro.ro_rt == NULL) { 316 error = ip_output(m, NULL, &ro, IP_ALLOWBROADCAST | IP_RAWOUTPUT, imo, NULL); 319 if (ro.ro_rt) { 320 rtfree(ro.ro_rt); 321 ro.ro_rt = NULL; 334 struct route_in6 ro; local [all...] |
H A D | ip_output.c | 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 193 ip_output( struct mbuf *m0, struct mbuf *opt, struct route *ro, int flags, struct ip_moptions *imo, struct ip_out_args *ipoa) argument 229 ip_output_list( struct mbuf *m0, int packetchain, struct mbuf *opt, struct route *ro, int flags, struct ip_moptions *imo, struct ip_out_args *ipoa ) argument 2697 struct route ro; local 3019 in_selectsrcif(struct ip *ip, struct route *ro, unsigned int ifscope) argument [all...] |
H A D | tcp_subr.c | 485 struct route *ro = 0; local 513 ro = &tp->t_inpcb->inp_route; 522 ro = &sro; 523 bzero(ro, sizeof *ro); 662 (void) ip_output(m, NULL, ro, IP_OUTARGS, NULL, &ipoa); 664 if (ro == &sro && ro->ro_rt) { 665 rtfree(ro->ro_rt); 666 ro [all...] |
H A D | in_pcb.c | 623 struct route *ro; local 635 ro = &inp->inp_route; 636 if (ro->ro_rt && 637 (ro->ro_dst.sa_family != AF_INET || 638 satosin(&ro->ro_dst)->sin_addr.s_addr != 641 ro->ro_rt->generation_id != route_generation)) { 642 rtfree_locked(ro->ro_rt); 643 ro->ro_rt = (struct rtentry *)0; 646 (ro->ro_rt == (struct rtentry *)0 || 647 ro [all...] |
H A D | ip_flow.c | 316 const struct route *ro, 358 ipf->ipf_ro = *ro; 359 rtref(ro->ro_rt); 314 ipflow_create( const struct route *ro, struct mbuf *m) argument
|
H A D | ip_icmp.c | 827 struct route ro; local 854 bzero(&ro, sizeof ro); 855 (void) ip_output(m, opts, &ro, IP_OUTARGS, NULL, &ipoa); 856 if (ro.ro_rt) { 857 rtfree(ro.ro_rt); 858 ro.ro_rt = NULL;
|
H A D | ip_dummynet.h | 163 struct route ro; /* route, for ip_output. MUST COPY */ member in struct:dn_pkt_tag
|
H A D | udp_usrreq.c | 1014 struct route ro; local 1169 bcopy(&inp->inp_route, &ro, sizeof (ro)); 1170 ro.ro_rt = NULL; 1176 udp_dodisconnect ? &ro : &inp->inp_route, soopts, mopts, &ipoa); 1181 if (ro.ro_rt != NULL) { 1182 rtfree(ro.ro_rt); 1183 ro.ro_rt = NULL;
|
H A D | ip_dummynet.c | 478 struct route tmp_rt = pkt->ro; 1148 * ro route parameter (only used in ip_output, NULL otherwise) 1244 * We need to copy *ro because for ICMP pkts (and maybe others) 1246 * a pointer into *ro so it needs to be updated. 1249 pkt->ro = *(fwa->ro); 1250 if (fwa->ro->ro_rt) 1251 rtref(fwa->ro->ro_rt); 1252 if (fwa->dst == (struct sockaddr_in *)&fwa->ro->ro_dst) /* dst points into ro */ [all...] |
H A D | ip_fw2.h | 453 struct route *ro; /* for dummynet */ member in struct:ip_fw_args
|
H A D | ip_fw2.c | 525 static struct route ro; local 528 dst = (struct sockaddr_in *)&(ro.ro_dst); 532 ro.ro_rt = NULL; 539 rtalloc_ign(&ro, RTF_CLONING|RTF_PRCLONING); 542 if ((ro.ro_rt == NULL) || (ifp == NULL) || 543 (ro.ro_rt->rt_ifp->if_index != ifp->if_index))
|
H A D | ip_input.c | 2278 struct route *ro; local 2336 ro = &sav->sah->sa_route; 2337 if (ro->ro_rt && ro->ro_rt->rt_ifp) { 2339 ro->ro_rt->rt_ifp->if_mtu;
|
H A D | ip_mroute.c | 1818 static struct route ro; local 1836 error = ip_output(m, (struct mbuf *)0, &ro,
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | in6_src.c | 113 struct route_in6 *ro, 244 if (ro) { 246 if (ro->ro_rt && 247 (!(ro->ro_rt->rt_flags & RTF_UP) || 248 satosin6(&ro->ro_dst)->sin6_family != AF_INET6 || 249 !IN6_ARE_ADDR_EQUAL(&satosin6(&ro->ro_dst)->sin6_addr, 251 rtfree_locked(ro->ro_rt); 252 ro->ro_rt = (struct rtentry *)0; 254 if (ro->ro_rt == (struct rtentry *)0 || 255 ro 109 in6_selectsrc( struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, struct ip6_moptions *mopts, struct route_in6 *ro, struct in6_addr *laddr, struct in6_addr *src_storage, int *errorp) argument [all...] |
H A D | ip6_output.c | 165 struct route_in6 *ro, 401 (ip6->ip6_dst.s6_addr16[1] == 0) && (ro != NULL)) { 403 ip6->ip6_dst.s6_addr16[1] = htons(ro->ro_dst.sin6_scope_id); 544 if (ro == 0) { 545 ro = &ip6route; 546 bzero((caddr_t)ro, sizeof(*ro)); 548 ro_pmtu = ro; 550 ro = &opt->ip6po_route; 551 dst = (struct sockaddr_in6 *)&ro 162 ip6_output( struct mbuf *m0, struct ip6_pktopts *opt, struct route_in6 *ro, int flags, struct ip6_moptions *im6o, struct ifnet **ifpp, int locked) argument 1989 struct route_in6 ro; local [all...] |
H A D | frag6.c | 151 static struct route_in6 ro; local 168 dst = (struct sockaddr_in6 *)&ro.ro_dst; 169 if (ro.ro_rt 170 && ((ro.ro_rt->rt_flags & RTF_UP) == 0 172 rtfree(ro.ro_rt); 173 ro.ro_rt = (struct rtentry *)0; 175 if (ro.ro_rt == NULL) { 181 rtalloc((struct route *)&ro); 182 if (ro.ro_rt != NULL && ro [all...] |
H A D | in6_pcb.c | 506 struct route_in6 *ro, 643 if (ro) { 644 if (ro->ro_rt && 645 !IN6_ARE_ADDR_EQUAL(&satosin6(&ro->ro_dst)->sin6_addr, dst)) { 646 rtfree(ro->ro_rt); 647 ro->ro_rt = (struct rtentry *)0; 649 if (ro->ro_rt == (struct rtentry *)0 || 650 ro->ro_rt->rt_ifp == (struct ifnet *)0) { 654 bzero(&ro->ro_dst, sizeof(struct sockaddr_in6)); 655 dst6 = (struct sockaddr_in6 *)&ro [all...] |
H A D | ipsec.c | 2789 if (!state->ro) 2790 panic("state->ro == NULL in ipsec4_output"); 2933 state->ro = &sav->sah->sa_route; 2934 state->dst = (struct sockaddr *)&state->ro->ro_dst; 2936 if (state->ro->ro_rt 2937 && ((state->ro->ro_rt->rt_flags & RTF_UP) == 0 2939 rtfree(state->ro->ro_rt); 2940 state->ro->ro_rt = NULL; 2942 if (state->ro->ro_rt == 0) { 2946 rtalloc(state->ro); [all...] |
H A D | ip6_mroute.c | 1451 static struct route_in6 ro; local 1484 error = ip6_output(mb_copy, NULL, &ro, 1500 dst6 = (struct sockaddr_in6 *)&ro.ro_dst; 1506 ip6_mloopback(ifp, m, (struct sockaddr_in6 *)&ro.ro_dst); 1529 NULL, (struct sockaddr *)&ro.ro_dst, 0); 1533 (struct sockaddr *)&ro.ro_dst,
|
H A D | ipsec.h | 282 struct route *ro; member in struct:ipsec_output_state
|
H A D | icmp6.c | 2140 struct route_in6 ro; local 2147 bzero(&ro, sizeof(ro)); 2148 src = in6_selectsrc(&sa6_src, NULL, NULL, &ro, NULL, &src_storage, &e); 2149 if (ro.ro_rt) { 2150 rtfree(ro.ro_rt); /* XXX: we could use this */ 2151 ro.ro_rt = NULL;
|
H A D | ip6_forward.c | 261 state.ro = NULL; /* update at ipsec6_output_tunnel() */
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | route.c | 418 rtalloc(struct route *ro) argument 420 rtalloc_ign(ro, 0UL); 424 rtalloc_ign_locked(struct route *ro, u_long ignore) argument 426 return (rtalloc_ign_common_locked(ro, ignore, IFSCOPE_NONE)); 430 rtalloc_scoped_ign_locked(struct route *ro, u_long ignore, unsigned int ifscope) argument 432 return (rtalloc_ign_common_locked(ro, ignore, ifscope)); 436 rtalloc_ign_common_locked(struct route *ro, u_long ignore, argument 441 if ((rt = ro->ro_rt) != NULL) { 445 ro->ro_rt = NULL; 447 ro 452 rtalloc_ign(struct route *ro, u_long ignore) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/vm/ |
H A D | memory_object.c | 298 #define LIST_REQ_PAGEOUT_PAGES(object, data_cnt, action, po, ro, ioerr, iosync) \ 316 ro, \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/ |
H A D | key.c | 8154 struct route *ro; local 8158 ro = &sah->sa_route; 8159 if (ro->ro_rt && dst->sa_len == ro->ro_dst.sa_len 8160 && bcmp(dst, &ro->ro_dst, dst->sa_len) == 0) { 8161 rtfree(ro->ro_rt); 8162 ro->ro_rt = (struct rtentry *)NULL;
|