Home
last modified time | relevance | path

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

123456

/freebsd-13.1/sbin/ifconfig/
H A Diflagg.c103 struct lagg_reqopts ro; in setlaggflowidshift() local
105 bzero(&ro, sizeof(ro)); in setlaggflowidshift()
107 strlcpy(ro.ro_ifname, name, sizeof(ro.ro_ifname)); in setlaggflowidshift()
121 bzero(&ro, sizeof(ro)); in setlaggrr_limit()
122 strlcpy(ro.ro_ifname, name, sizeof(ro.ro_ifname)); in setlaggrr_limit()
125 if (ro.ro_bkt == 0) in setlaggrr_limit()
137 bzero(&ro, sizeof(ro)); in setlaggsetopt()
138 ro.ro_opts = d; in setlaggsetopt()
139 switch (ro.ro_opts) { in setlaggsetopt()
156 strlcpy(ro.ro_ifname, name, sizeof(ro.ro_ifname)); in setlaggsetopt()
[all …]
/freebsd-13.1/bin/sh/tests/expansion/
H A Darith10.012 readonly ro=4
16 check "0 && (ro = 2)" 0
17 check "ro" 4
18 check "1 || (ro = -1)" 1
19 check "ro" 4
25 check "0 ? ro = 3 : 52" 52
26 check "ro" 4
30 check "2 ? 1 : (ro += 2)" 1
31 check "ro" 4
/freebsd-13.1/sys/netinet/
H A Dsctp_os_bsd.h206 #define SCTP_ROUTE_IS_REAL_LOOP(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifa && (ro)->ro_nh->nh_ifa->ifa… argument
212 #define SCTP_GET_IFN_VOID_FROM_ROUTE(ro) (void *)ro->ro_nh->nh_ifp argument
213 #define SCTP_GET_IF_INDEX_FROM_ROUTE(ro) (ro)->ro_nh->nh_ifp->if_index argument
214 #define SCTP_ROUTE_HAS_VALID_IFN(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifp) argument
365 #define SCTP_GET_HLIM(inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_i… argument
398 #define SCTP_RTALLOC(ro, vrf_id, fibnum) \ argument
400 if ((ro)->ro_nh == NULL) { \
401 (ro)->ro_nh = rib_lookup(fibnum, &(ro)->ro_dst, NHR_REF, 0); \
422 result = ip_output(o_pak, NULL, ro, o_flgs, 0, NULL); \
433 (ro), 0, 0, ifp, NULL); \
[all …]
H A Dip_output.c390 if (ro == NULL) { in ip_output()
391 ro = &iproute; in ip_output()
392 bzero(ro, sizeof (*ro)); in ip_output()
395 if (ro->ro_nh == NULL) { in ip_output()
416 if (ro->ro_nh != NULL && in ip_output()
419 RO_INVALIDATE_CACHE(ro); in ip_output()
485 if (ro->ro_nh == NULL || (!NH_IS_VALID(ro->ro_nh))) { in ip_output()
549 __func__, mtu, ro, in ip_output()
550 (ro != NULL && ro->ro_nh != NULL) ? ro->ro_nh->nh_flags : 0, ifp)); in ip_output()
712 if (ro != NULL) { in ip_output()
[all …]
H A Dsctp_timer.c350 if (alt->ro._s_addr) { in sctp_find_alternate_net()
352 alt->ro._s_addr = NULL; in sctp_find_alternate_net()
943 if (net->ro._s_addr) { in sctp_t3rxt_timer()
945 net->ro._s_addr = NULL; in sctp_t3rxt_timer()
950 RO_NHFREE(&net->ro); in sctp_t3rxt_timer()
1424 if (net->ro._s_addr) { in sctp_heartbeat_timer()
1430 net->ro._s_addr = NULL; in sctp_heartbeat_timer()
1490 net->ro._s_addr = NULL; in sctp_pathmtu_timer()
1514 if (net->ro._s_addr) in sctp_pathmtu_timer()
1517 if (net->ro._s_addr) { in sctp_pathmtu_timer()
[all …]
H A Dip_fastfwd.c238 struct route ro; in ip_tryforward() local
463 bzero(&ro, sizeof(ro)); in ip_tryforward()
464 dst = (struct sockaddr_in *)&ro.ro_dst; in ip_tryforward()
470 ro.ro_flags |= RT_HAS_GW; in ip_tryforward()
492 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, gw, &ro); in ip_tryforward()
527 gw, &ro); in ip_tryforward()
H A Dif_ether.c358 struct route ro; in arprequest_internal() local
417 bzero(&ro, sizeof(ro)); in arprequest_internal()
427 ro.ro_prepend = linkhdr; in arprequest_internal()
428 ro.ro_plen = linkhdrsize; in arprequest_internal()
429 ro.ro_flags = 0; in arprequest_internal()
798 struct route ro; in in_arpinput() local
1120 bzero(&ro, sizeof(ro)); in in_arpinput()
1135 ro.ro_prepend = linkhdr; in in_arpinput()
1136 ro.ro_plen = linkhdrsize; in in_arpinput()
1137 ro.ro_flags = 0; in in_arpinput()
[all …]
H A Dsctp_output.c4091 ro = &iproute; in sctp_lowlevel_chunk_output()
4095 ro = (sctp_route_t *)&net->ro; in sctp_lowlevel_chunk_output()
4190 memcpy(&iproute, ro, sizeof(*ro)); in sctp_lowlevel_chunk_output()
4235 RO_NHFREE(ro); in sctp_lowlevel_chunk_output()
4237 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output()
4241 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_nh); in sctp_lowlevel_chunk_output()
4336 ro = (sctp_route_t *)&net->ro; in sctp_lowlevel_chunk_output()
4396 ro, in sctp_lowlevel_chunk_output()
4579 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output()
4583 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_nh); in sctp_lowlevel_chunk_output()
[all …]
/freebsd-13.1/sys/net/
H A Droute.h386 #define RO_INVALIDATE_CACHE(ro) do { \ argument
387 if ((ro)->ro_lle != NULL) { \
388 LLE_FREE((ro)->ro_lle); \
389 (ro)->ro_lle = NULL; \
391 if ((ro)->ro_nh != NULL) { \
392 NH_FREE((ro)->ro_nh); \
393 (ro)->ro_nh = NULL; \
397 #define RO_GET_FAMILY(ro, dst) ((ro) != NULL && \ argument
398 (ro)->ro_flags & RT_HAS_GW \
399 ? (ro)->ro_dst.sa_family : (dst)->sa_family)
[all …]
H A Dif_infiniband.c256 int af = RO_GET_FAMILY(ro, dst); in infiniband_resolve_addr()
276 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in infiniband_resolve_addr()
295 const struct sockaddr *dst, struct route *ro) in infiniband_output() argument
311 if (ro != NULL) { in infiniband_output()
313 if (ro->ro_prepend != NULL) { in infiniband_output()
314 phdr = ro->ro_prepend; in infiniband_output()
315 hlen = ro->ro_plen; in infiniband_output()
317 if ((ro->ro_flags & RT_LLE_CACHE) != 0) { in infiniband_output()
318 lle = ro->ro_lle; in infiniband_output()
323 ro->ro_lle = NULL; in infiniband_output()
[all …]
H A Dif_loop.c95 const struct sockaddr *dst, struct route *ro);
205 struct route *ro) in looutput() argument
222 if (ro != NULL && ro->ro_flags & (RT_REJECT|RT_BLACKHOLE)) { in looutput()
224 return (ro->ro_flags & RT_BLACKHOLE ? 0 : EHOSTUNREACH); in looutput()
238 af = RO_GET_FAMILY(ro, dst); in looutput()
H A Dif_ethersubr.c239 int af = RO_GET_FAMILY(ro, dst); in ether_resolve_addr()
260 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in ether_resolve_addr()
282 const struct sockaddr *dst, struct route *ro) in ether_output() argument
296 if (ro != NULL) { in ether_output()
298 if (ro->ro_prepend != NULL) { in ether_output()
299 phdr = ro->ro_prepend; in ether_output()
300 hlen = ro->ro_plen; in ether_output()
302 if ((ro->ro_flags & RT_LLE_CACHE) != 0) { in ether_output()
303 lle = ro->ro_lle; in ether_output()
308 ro->ro_lle = NULL; in ether_output()
[all …]
/freebsd-13.1/lib/libifconfig/
H A Dlibifconfig_lagg.c51 struct lagg_reqopts ro; member
79 ls->l.ro = &ls->ro; in ifconfig_lagg_get_lagg_status()
86 strlcpy(ls->ro.ro_ifname, name, sizeof(ls->ro.ro_ifname)); in ifconfig_lagg_get_lagg_status()
87 ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGGOPTS, &ls->ro); in ifconfig_lagg_get_lagg_status()
/freebsd-13.1/cddl/lib/libdtrace/
H A Dsctp.d143 p->asoc.primary_destination->ro._s_addr == NULL ? "<unknown>" :
144 p->asoc.primary_destination->ro._s_addr->address.sa.sa_family == AF_INET ?
145 inet_ntoa(&p->asoc.primary_destination->ro._s_addr->address.sin.sin_addr.s_addr) :
146 p->asoc.primary_destination->ro._s_addr->address.sa.sa_family == AF_INET6 ?
147 inet_ntoa6(&p->asoc.primary_destination->ro._s_addr->address.sin6.sin6_addr) :
151 p->asoc.primary_destination->ro._l_addr.sa.sa_family == AF_INET ?
152 inet_ntoa(&p->asoc.primary_destination->ro._l_addr.sin.sin_addr.s_addr) :
153 p->asoc.primary_destination->ro._l_addr.sa.sa_family == AF_INET6 ?
154 inet_ntoa6(&p->asoc.primary_destination->ro._l_addr.sin6.sin6_addr) :
/freebsd-13.1/sys/compat/cloudabi32/
H A Dcloudabi32_sock.c49 cloudabi32_recv_out_t ro = {}; in cloudabi32_sys_sock_recv() local
78 &rfdslen, &ro.ro_flags); in cloudabi32_sys_sock_recv()
83 ro.ro_datalen = rdatalen; in cloudabi32_sys_sock_recv()
84 ro.ro_fdslen = rfdslen; in cloudabi32_sys_sock_recv()
85 return (copyout(&ro, uap->out, sizeof(ro))); in cloudabi32_sys_sock_recv()
/freebsd-13.1/sys/compat/cloudabi64/
H A Dcloudabi64_sock.c49 cloudabi64_recv_out_t ro = {}; in cloudabi64_sys_sock_recv() local
78 &rfdslen, &ro.ro_flags); in cloudabi64_sys_sock_recv()
83 ro.ro_datalen = rdatalen; in cloudabi64_sys_sock_recv()
84 ro.ro_fdslen = rfdslen; in cloudabi64_sys_sock_recv()
85 return (copyout(&ro, uap->out, sizeof(ro))); in cloudabi64_sys_sock_recv()
/freebsd-13.1/sys/contrib/octeon-sdk/
H A Dcvmx-npi.h104 uint64_t ro : 1; /**< Relaxed ordering */ member
108 uint64_t ro : 1;
130 uint64_t ro : 1; /**< Relaxed ordering */ member
138 uint64_t ro : 1;
H A Dcvmx-shared-linux-n32.ld90 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
91 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
206 ….data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkon…
H A Dcvmx-shared-linux.ld89 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
90 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
205 ….data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkon…
/freebsd-13.1/sys/conf/
H A Dldscript.i38626 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
27 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
136 ….data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkon…
H A Dldscript.amd6431 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
32 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
142 ….data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkon…
/freebsd-13.1/contrib/lib9p/example/
H A Dserver.c45 bool ro = false; in main() local
58 ro = true; in main()
77 if (l9p_backend_fs_init(&fs_backend, rootfd, ro) != 0) in main()
/freebsd-13.1/lib/libmp/tests/
H A Dlegacy_test.c100 short ro; in testdiv() local
111 mp_sdiv(c42, 5, t0, &ro); in testdiv()
113 t2 = mp_itom(ro); // Simpler to use common testmcmp() in testdiv()
117 mp_sdiv(c10, 8, t0, &ro); in testdiv()
119 t2 = mp_itom(ro); // Simpler to use common testmcmp() in testdiv()
/freebsd-13.1/sys/netinet6/
H A Din6_src.c738 if (ro) { in selectroute()
739 if (ro->ro_nh && in selectroute()
740 (!NH_IS_VALID(ro->ro_nh) || in selectroute()
744 RO_NHFREE(ro); in selectroute()
746 if (ro->ro_nh == (struct nhop_object *)NULL) { in selectroute()
750 bzero(&ro->ro_dst, sizeof(struct sockaddr_in6)); in selectroute()
751 sa6 = (struct sockaddr_in6 *)&ro->ro_dst; in selectroute()
767 ro->ro_nh = fib6_lookup(fibnum, in selectroute()
781 if (ro->ro_nh) in selectroute()
782 ifp = ro->ro_nh->nh_ifp; in selectroute()
[all …]
H A Dip6_output.c627 ro_pmtu = ro; in ip6_output()
629 ro = &opt->ip6po_route; in ip6_output()
630 if (ro != NULL) in ip6_output()
663 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output()
676 if (ro != NULL) { in ip6_output()
691 nh = ro->ro_nh; in ip6_output()
694 if (ro->ro_lle) in ip6_output()
696 ro->ro_lle = NULL; in ip6_output()
1044 if (ro != NULL) in ip6_output()
1053 if (ro != NULL) in ip6_output()
[all …]

123456