Home
last modified time | relevance | path

Searched refs:ro (Results 1 – 25 of 90) sorted by relevance

1234

/mirbsd/src/sys/netipx/
Dipx_outputfl.c58 ipx_outputfl(m0, ro, flags) in ipx_outputfl() argument
60 struct route *ro;
72 if (ro == NULL) {
73 ro = &ipxroute;
74 bzero((caddr_t)ro, sizeof(*ro));
76 dst = (struct sockaddr_ipx *)&ro->ro_dst;
77 if (ro->ro_rt == NULL) {
97 rtalloc(ro);
98 } else if ((ro->ro_rt->rt_flags & RTF_UP) == 0) {
102 rtfree(ro->ro_rt);
[all …]
Dipx_ip.c249 struct route *ro = &(ifn->ifen_route); local
303 error = ip_output(m, NULL, ro, SO_BROADCAST, NULL, NULL, NULL);
327 struct route ro; local
339 bzero((caddr_t)&ro, sizeof(ro));
340 ro.ro_dst = *(struct sockaddr *)ip_dst;
341 rtalloc(&ro);
342 if (ro.ro_rt == NULL || ro.ro_rt->rt_ifp == NULL) {
352 struct ifnet *ifp = ro.ro_rt->rt_ifp;
360 RTFREE(ro.ro_rt);
376 RTFREE(ro.ro_rt);
[all …]
Dipx_pcb.c152 struct route *ro; local
177 ro = &ipxp->ipxp_route;
178 dst = &satoipx_addr(ro->ro_dst);
184 if (ro->ro_rt && ! (ro->ro_rt->rt_flags & RTF_HOST)) {
189 if (ro->ro_rt)
190 RTFREE(ro->ro_rt);
191 ro->ro_rt = (struct rtentry *)0;
197 (ro->ro_rt == (struct rtentry *)0 ||
198 ro->ro_rt->rt_ifp == (struct ifnet *)0)) {
200 ro->ro_dst.sa_family = AF_IPX;
[all …]
Dipx_input.c423 ipx_do_route(src, ro) in ipx_do_route() argument
425 struct route *ro;
429 bzero((caddr_t)ro, sizeof(*ro));
430 dst = (struct sockaddr_ipx *)&ro->ro_dst;
436 rtalloc(ro);
437 if (ro->ro_rt == 0 || ro->ro_rt->rt_ifp == 0) {
440 ro->ro_rt->rt_use++;
445 ipx_undo_route(ro) in ipx_undo_route() argument
446 register struct route *ro; in ipx_undo_route()
448 if (ro->ro_rt) {
[all …]
Dipx.h223 int ipx_do_route(struct ipx_addr *src, struct route *ro);
230 int ipx_outputfl(struct mbuf *m0, struct route *ro, int flags);
234 void ipx_undo_route(struct route *ro);
Dipx_usrreq.c172 struct route *ro; in ipx_output() local
255 ro = &ipxp->ipxp_route; in ipx_output()
257 ro = 0; in ipx_output()
258 return (ipx_outputfl(m, ro, so->so_options & SO_BROADCAST)); in ipx_output()
/mirbsd/src/sys/netatalk/
Dddp_output.c173 ddp_route( m, ro ) in ddp_route() argument
175 struct route *ro;
183 if ( ro->ro_rt && ( ifp = ro->ro_rt->rt_ifp )) {
184 net = satosat( ro->ro_rt->rt_gateway )->sat_addr.s_net;
216 if ( ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) >=
218 ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) <=
220 elh->el_dnode = satosat( &ro->ro_dst )->sat_addr.s_node;
222 elh->el_dnode = satosat( ro->ro_rt->rt_gateway )->sat_addr.s_node;
226 if ( ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) >=
228 ntohs( satosat( &ro->ro_dst )->sat_addr.s_net ) <=
[all …]
Dddp_usrreq.c358 struct route *ro; local
381 ro = &ddp->ddp_route;
387 if ( ro->ro_rt ) {
394 if ( (ifp = ro->ro_rt->rt_ifp) != NULL ) {
403 if ( aa == NULL || ( satosat( &ro->ro_dst )->sat_addr.s_net !=
405 satosat( &ro->ro_dst )->sat_addr.s_node !=
407 RTFREE( ro->ro_rt );
408 ro->ro_rt = (struct rtentry *)0;
415 if ( ro->ro_rt == (struct rtentry *)0 ||
416 ro->ro_rt->rt_ifp == (struct ifnet *)0 ) {
[all …]
/mirbsd/src/sys/netinet6/
Din6_src.c96 in6_selectsrc(dstsock, opts, mopts, ro, laddr, errorp) in in6_selectsrc() argument
100 struct route_in6 *ro;
227 if (ro) {
228 if (ro->ro_rt &&
229 !IN6_ARE_ADDR_EQUAL(&satosin6(&ro->ro_dst)->sin6_addr, dst)) {
230 RTFREE(ro->ro_rt);
231 ro->ro_rt = (struct rtentry *)0;
233 if (ro->ro_rt == (struct rtentry *)0 ||
234 ro->ro_rt->rt_ifp == (struct ifnet *)0) {
238 bzero(&ro->ro_dst, sizeof(struct sockaddr_in6));
[all …]
Dip6_output.c142 ip6_output(m0, opt, ro, flags, im6o, ifpp) in ip6_output() argument
145 struct route_in6 *ro;
446 if (ro == 0) {
447 ro = &ip6route;
448 bzero((caddr_t)ro, sizeof(*ro));
450 ro_pmtu = ro;
452 ro = &opt->ip6po_route;
453 dst = (struct sockaddr_in6 *)&ro->ro_dst;
459 if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
462 RTFREE(ro->ro_rt);
[all …]
Dnd6_nbr.c358 struct route_in6 ro; local
360 bzero(&ro, sizeof(ro));
458 bcopy(&dst_sa, &ro.ro_dst, sizeof(dst_sa));
459 src0 = in6_selectsrc(&dst_sa, NULL, NULL, &ro, NULL,
522 ip6_output(m, NULL, &ro, dad ? IPV6_UNSPECSRC : 0, &im6o, NULL);
527 if (ro.ro_rt) { /* we don't cache this route. */
528 RTFREE(ro.ro_rt);
533 if (ro.ro_rt) {
534 RTFREE(ro.ro_rt);
864 struct route_in6 ro; local
[all …]
Dfrag6.c187 static struct route_in6 ro; local
200 dst = (struct sockaddr_in6 *)&ro.ro_dst;
201 if (ro.ro_rt
202 && ((ro.ro_rt->rt_flags & RTF_UP) == 0
204 RTFREE(ro.ro_rt);
205 ro.ro_rt = (struct rtentry *)0;
207 if (ro.ro_rt == NULL) {
214 rtalloc((struct route *)&ro);
216 if (ro.ro_rt != NULL && ro.ro_rt->rt_ifa != NULL)
217 dstifp = ((struct in6_ifaddr *)ro.ro_rt->rt_ifa)->ia_ifp;
/mirbsd/src/sys/net/
Dradix_mpath.c217 rtalloc_mpath(ro, hash) in rtalloc_mpath() argument
218 struct route *ro; in rtalloc_mpath()
228 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP))
230 ro->ro_rt = rtalloc1(&ro->ro_dst, 1);
232 if (!ro->ro_rt || !rn_mpath_next((struct radix_node *)ro->ro_rt))
236 rn0 = rn = (struct radix_node *)ro->ro_rt;
255 rtfree(ro->ro_rt);
256 ro->ro_rt = (struct rtentry *)rn;
257 ro->ro_rt->rt_refcnt++;
Dif_gre.c630 struct route *ro; in gre_compute_route() local
633 ro = &sc->route; in gre_compute_route()
635 bzero(ro, sizeof(struct route)); in gre_compute_route()
636 ((struct sockaddr_in *) &ro->ro_dst)->sin_addr = sc->g_dst; in gre_compute_route()
637 ro->ro_dst.sa_family = AF_INET; in gre_compute_route()
638 ro->ro_dst.sa_len = sizeof(ro->ro_dst); in gre_compute_route()
652 ((struct sockaddr_in *) &ro->ro_dst)->sin_addr.s_addr = htonl(a); in gre_compute_route()
655 rtalloc(ro); in gre_compute_route()
656 if (ro->ro_rt == 0) in gre_compute_route()
664 if (ro->ro_rt->rt_ifp == &sc->sc_if) { in gre_compute_route()
[all …]
Droute.c189 rtalloc_noclone(struct route *ro, int howstrict) in rtalloc_noclone() argument
191 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP)) in rtalloc_noclone()
193 ro->ro_rt = rtalloc2(&ro->ro_dst, 1, howstrict); in rtalloc_noclone()
250 rtalloc(struct route *ro) in rtalloc() argument
252 if (ro->ro_rt && ro->ro_rt->rt_ifp && (ro->ro_rt->rt_flags & RTF_UP)) in rtalloc()
254 ro->ro_rt = rtalloc1(&ro->ro_dst, 1); in rtalloc()
/mirbsd/src/sys/netinet/
Dip_output.c103 struct route *ro; in ip_output() local
123 ro = va_arg(ap, struct route *); in ip_output()
172 if (ro == 0) { in ip_output()
173 ro = &iproute; in ip_output()
174 bzero((caddr_t)ro, sizeof (*ro)); in ip_output()
177 dst = satosin(&ro->ro_dst); in ip_output()
183 if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 || in ip_output()
185 RTFREE(ro->ro_rt); in ip_output()
186 ro->ro_rt = (struct rtentry *)0; in ip_output()
189 if (ro->ro_rt == 0) { in ip_output()
[all …]
Din_pcb.c813 struct route *ro; local
815 ro = &inp->inp_route;
820 if (ro->ro_rt == NULL) {
822 bzero(ro, sizeof(struct route_in6));
824 bzero(ro, sizeof(struct route));
832 ro->ro_dst.sa_family = AF_INET6;
833 ro->ro_dst.sa_len = sizeof(struct sockaddr_in6);
834 ((struct sockaddr_in6 *) &ro->ro_dst)->sin6_addr =
836 rtalloc(ro);
842 ro->ro_dst.sa_family = AF_INET;
[all …]
Dip_icmp.c651 struct route ro; in icmp_reflect() local
653 bzero((caddr_t) &ro, sizeof(ro)); in icmp_reflect()
654 dst = satosin(&ro.ro_dst); in icmp_reflect()
659 rtalloc(&ro); in icmp_reflect()
660 if (ro.ro_rt == 0) { in icmp_reflect()
666 ia = ifatoia(ro.ro_rt->rt_ifa); in icmp_reflect()
667 ro.ro_rt->rt_use++; in icmp_reflect()
668 RTFREE(ro.ro_rt); in icmp_reflect()
/mirbsd/src/gnu/usr.bin/perl/ext/Fcntl/t/
Dfcntl.t24 if (sysopen(my $ro, "fcntl$$", O_RDONLY)) {
26 if (sysread($ro, my $read, 3)) {
39 close($ro);
/mirbsd/src/lib/libc/string/
Dbm.c152 size_t *d0, k, md2, n1, ro; in bm_exec() local
161 ro = pat->rareoff; in bm_exec()
176 if (s[ro] != rc) /* guard test */ in bm_exec()
193 if (s[ro] != rc) /* guard test */ in bm_exec()
/mirbsd/src/gnu/usr.bin/binutils/ld/scripttempl/
Darmbpabi.sc32 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }"
377 .rel.data.rel.ro 0 : { *(.rel.data.rel.ro${RELOCATING+*}) }
378 .rela.data.rel.ro 0 : { *(.rel.data.rel.ro${RELOCATING+*}) }
Delfxtensa.sc15 # OTHER_RELRO_SECTIONS - other than .data.rel.ro ...
117 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }"
256 .rel.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
257 .rela.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
Delf.sc17 # OTHER_RELRO_SECTIONS - other than .data.rel.ro ...
123 DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }"
281 .rel.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
282 .rela.data.rel.ro ${RELOCATING-0} : { *(.rel.data.rel.ro${RELOCATING+*}) }
/mirbsd/src/gnu/usr.bin/perl/
Dpod.lst148 ro perlcn Perl for Simplified Chinese (in EUC-CN)
149 ro perljp Perl for Japanese (in EUC-JP)
150 ro perlko Perl for Korean (in EUC-KR)
151 ro perltw Perl for Traditional Chinese (in Big5)
/mirbsd/src/bin/mksh/
Dexec.c451 cargs.ro = t->args; in execute()
939 args.ro = tp->args; in scriptexec()
940 *args.ro = sh; in scriptexec()
942 cap.ro = ap; in scriptexec()
1139 npath.ro = search_path(name, in findcom()
1142 if (npath.ro) { in findcom()
1143 strdupx(tp->val.s, npath.ro, APERM); in findcom()
1144 if (npath.ro != name) in findcom()
1149 (npath.ro = search_path(name, fpath, R_OK, in findcom()
1161 tp->u.fpath = npath.ro; in findcom()

1234