Home
last modified time | relevance | path

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

1234567

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_ro_rw.ksh45 typeset -a rs_linux=( rw ro rw ro ro rw rw ro rw rw ro rw )
46 typeset -a rs_freebsd=( ro ro ro ro ro rw rw ro rw rw ro rw )
84 for option in default ro rw ; do
103 ro) log_must mount_ro $testfs $testmnt ;;
110 ro) log_must zfs mount -o ro $testfs ;;
/freebsd/sbin/ifconfig/
H A Diflagg.c95 struct lagg_reqopts ro = {}; in setlaggflowidshift() local
97 ro.ro_opts = LAGG_OPT_FLOWIDSHIFT; in setlaggflowidshift()
98 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); in setlaggflowidshift()
99 ro.ro_flowid_shift = (int)strtol(val, NULL, 10); in setlaggflowidshift()
100 if (ro.ro_flowid_shift & ~LAGG_OPT_FLOWIDSHIFT_MASK) in setlaggflowidshift()
103 if (ioctl_ctx(ctx, SIOCSLAGGOPTS, &ro) != 0) in setlaggflowidshift()
110 struct lagg_reqopts ro = {}; in setlaggrr_limit() local
112 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); in setlaggrr_limit()
113 ro.ro_opts = LAGG_OPT_RR_LIMIT; in setlaggrr_limit()
114 ro.ro_bkt = (uint32_t)strtoul(val, NULL, 10); in setlaggrr_limit()
[all …]
/freebsd/bin/sh/tests/expansion/
H A Darith10.011 readonly ro=4
15 check "0 && (ro = 2)" 0
16 check "ro" 4
17 check "1 || (ro = -1)" 1
18 check "ro" 4
24 check "0 ? ro = 3 : 52" 52
25 check "ro" 4
29 check "2 ? 1 : (ro += 2)" 1
30 check "ro" 4
/freebsd/sys/netinet/
H A Dsctp_os_bsd.h202 #define SCTP_ROUTE_IS_REAL_LOOP(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifa && (ro)->ro_nh->nh_ifa->ifa… argument
208 #define SCTP_GET_IFN_VOID_FROM_ROUTE(ro) (void *)ro->ro_nh->nh_ifp argument
209 #define SCTP_GET_IF_INDEX_FROM_ROUTE(ro) (ro)->ro_nh->nh_ifp->if_index argument
210 #define SCTP_ROUTE_HAS_VALID_IFN(ro) ((ro)->ro_nh && (ro)->ro_nh->nh_ifp) argument
354 #define SCTP_GET_HLIM(inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_i… argument
395 #define SCTP_RTALLOC(ro, vrf_id, fibnum) \ argument
397 if ((ro)->ro_nh == NULL) { \
398 (ro)->ro_nh = rib_lookup(fibnum, &(ro)->ro_dst, NHR_REF, 0); \
410 #define SCTP_IP_OUTPUT(result, o_pak, ro, _inp, vrf_id) \ argument
419 result = ip_output(o_pak, NULL, ro, o_flgs, 0, NULL); \
[all …]
H A Dip_output.c210 const struct sockaddr *gw, struct route *ro, bool stamp_tag) in ip_output_send() argument
273 error = (*ifp->if_output)(ifp, m, gw, ro); in ip_output_send()
293 rt_update_ro_flags(struct route *ro, const struct nhop_object *nh) in rt_update_ro_flags() argument
297 ro->ro_flags &= ~ (RT_REJECT|RT_BLACKHOLE|RT_HAS_GW); in rt_update_ro_flags()
299 ro->ro_flags |= (nh_flags & NHF_REJECT) ? RT_REJECT : 0; in rt_update_ro_flags()
300 ro->ro_flags |= (nh_flags & NHF_BLACKHOLE) ? RT_BLACKHOLE : 0; in rt_update_ro_flags()
301 ro->ro_flags |= (nh_flags & NHF_GATEWAY) ? RT_HAS_GW : 0; in rt_update_ro_flags()
317 ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags, in ip_output() argument
385 if (ro == NULL) { in ip_output()
386 ro = &iproute; in ip_output()
[all …]
H A Dsctp_timer.c342 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net()
343 if (alt->ro._s_addr) { in sctp_find_alternate_net()
344 sctp_free_ifa(alt->ro._s_addr); in sctp_find_alternate_net()
345 alt->ro._s_addr = NULL; in sctp_find_alternate_net()
350 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net()
938 if (net->ro._s_addr != NULL) { in sctp_t3rxt_timer()
939 sctp_free_ifa(net->ro._s_addr); in sctp_t3rxt_timer()
940 net->ro._s_addr = NULL; in sctp_t3rxt_timer()
945 RO_NHFREE(&net->ro); in sctp_t3rxt_timer()
1282 SCTPDBG_ADDR(SCTP_DEBUG_ASCONF1, &stcb->asoc.deleted_primary->ro._l_addr.sa); in sctp_delete_prim_timer()
[all …]
H A Dip_input.c947 struct route ro; in ip_forward() local
967 bzero(&ro, sizeof(ro)); in ip_forward()
968 sin = (struct sockaddr_in *)&ro.ro_dst; in ip_forward()
973 ro.ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_REF, flowid); in ip_forward()
974 if (ro.ro_nh != NULL) { in ip_forward()
975 if (ro.ro_nh->nh_flags & (NHF_BLACKHOLE | NHF_BROADCAST)) { in ip_forward()
978 NH_FREE(ro.ro_nh); in ip_forward()
981 if (ro.ro_nh->nh_flags & NHF_REJECT) { in ip_forward()
983 NH_FREE(ro.ro_nh); in ip_forward()
987 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward()
[all …]
H A Dip_fastfwd.c241 struct route ro; in ip_tryforward() local
461 bzero(&ro, sizeof(ro)); in ip_tryforward()
462 dst = (struct sockaddr_in *)&ro.ro_dst; in ip_tryforward()
468 ro.ro_flags |= RT_HAS_GW; in ip_tryforward()
516 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, gw, &ro); in ip_tryforward()
551 gw, &ro); in ip_tryforward()
H A Dsctp_output.c2448 sctp_route_t *ro, in sctp_choose_boundspecific_inp() argument
2467 ifn = SCTP_GET_IFN_VOID_FROM_ROUTE(ro); in sctp_choose_boundspecific_inp()
2468 ifn_index = SCTP_GET_IF_INDEX_FROM_ROUTE(ro); in sctp_choose_boundspecific_inp()
2581 sctp_route_t *ro, in sctp_choose_boundspecific_stcb() argument
2604 ifn = SCTP_GET_IFN_VOID_FROM_ROUTE(ro); in sctp_choose_boundspecific_stcb()
2605 ifn_index = SCTP_GET_IF_INDEX_FROM_ROUTE(ro); in sctp_choose_boundspecific_stcb()
2774 sctp_route_t *ro) in sctp_select_nth_preferred_addr_from_ifn_boundall() argument
2782 memcpy(&sin6, &ro->ro_dst, sizeof(struct sockaddr_in6)); in sctp_select_nth_preferred_addr_from_ifn_boundall()
2844 if (sctp_v6src_match_nexthop(&sifa->address.sin6, ro) == 0) { in sctp_select_nth_preferred_addr_from_ifn_boundall()
2853 if (sctp_v4src_match_nexthop(sifa, ro) == 0) { in sctp_select_nth_preferred_addr_from_ifn_boundall()
[all …]
H A Dif_ether.c355 struct route ro; in arprequest_internal() local
414 bzero(&ro, sizeof(ro)); in arprequest_internal()
424 ro.ro_prepend = linkhdr; in arprequest_internal()
425 ro.ro_plen = linkhdrsize; in arprequest_internal()
426 ro.ro_flags = 0; in arprequest_internal()
430 error = (*ifp->if_output)(ifp, m, &sa, &ro); in arprequest_internal()
783 struct route ro; in in_arpinput() local
1096 bzero(&ro, sizeof(ro)); in in_arpinput()
1111 ro.ro_prepend = linkhdr; in in_arpinput()
1112 ro.ro_plen = linkhdrsize; in in_arpinput()
[all …]
/freebsd/sys/net/
H A Droute.h380 #define RO_INVALIDATE_CACHE(ro) do { \ argument
381 if ((ro)->ro_lle != NULL) { \
382 LLE_FREE((ro)->ro_lle); \
383 (ro)->ro_lle = NULL; \
385 if ((ro)->ro_nh != NULL) { \
386 NH_FREE((ro)->ro_nh); \
387 (ro)->ro_nh = NULL; \
391 #define RO_GET_FAMILY(ro, dst) ((ro) != NULL && \ argument
392 (ro)->ro_flags & RT_HAS_GW \
393 ? (ro)->ro_dst.sa_family : (dst)->sa_family)
[all …]
H A Dif_infiniband.c164 struct mbuf *mb, const struct route *ro, struct infiniband_header *ibh, in infiniband_resolve_bpf() argument
167 struct ether_header *eh = (struct ether_header *)ro->ro_prepend; in infiniband_resolve_bpf()
170 if (((ro->ro_flags & RT_HAS_HEADER) == 0) || in infiniband_resolve_bpf()
171 (ro->ro_plen != ETHER_HDR_LEN)) { in infiniband_resolve_bpf()
266 const struct sockaddr *dst, struct route *ro, uint8_t *phdr, in infiniband_resolve_addr() argument
300 int af = RO_GET_FAMILY(ro, dst); in infiniband_resolve_addr()
320 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in infiniband_resolve_addr()
339 const struct sockaddr *dst, struct route *ro) in infiniband_output() argument
355 if (ro != NULL) { in infiniband_output()
357 if (ro->ro_prepend != NULL) { in infiniband_output()
[all …]
H A Dbpf_ifnet.c62 struct route ro = {}; in bpf_ifnet_write() local
149 ro.ro_prepend = (char *)&dst.sa_data; in bpf_ifnet_write()
150 ro.ro_plen = hlen; in bpf_ifnet_write()
151 ro.ro_flags = RT_HAS_HEADER; in bpf_ifnet_write()
158 error = ifp->if_output(ifp, m, &dst, &ro); in bpf_ifnet_write()
H A Dif_loop.c92 const struct sockaddr *dst, struct route *ro);
196 struct route *ro) in looutput() argument
213 if (ro != NULL && ro->ro_flags & (RT_REJECT|RT_BLACKHOLE)) { in looutput()
215 return (ro->ro_flags & RT_BLACKHOLE ? 0 : EHOSTUNREACH); in looutput()
229 af = RO_GET_FAMILY(ro, dst); in looutput()
H A Dif_ethersubr.c199 const struct sockaddr *dst, struct route *ro, u_char *phdr, in ether_resolve_addr() argument
236 int af = RO_GET_FAMILY(ro, dst); in ether_resolve_addr()
257 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in ether_resolve_addr()
279 const struct sockaddr *dst, struct route *ro) in ether_output() argument
293 if (ro != NULL) { in ether_output()
295 if (ro->ro_prepend != NULL) { in ether_output()
296 phdr = ro->ro_prepend; in ether_output()
297 hlen = ro->ro_plen; in ether_output()
299 if ((ro->ro_flags & RT_LLE_CACHE) != 0) { in ether_output()
300 lle = ro->ro_lle; in ether_output()
[all …]
/freebsd/lib/libifconfig/
H A Dlibifconfig_lagg.c49 struct lagg_reqopts ro; member
77 ls->l.ro = &ls->ro; in ifconfig_lagg_get_lagg_status()
84 strlcpy(ls->ro.ro_ifname, name, sizeof(ls->ro.ro_ifname)); in ifconfig_lagg_get_lagg_status()
85 ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGGOPTS, &ls->ro); in ifconfig_lagg_get_lagg_status()
/freebsd/cddl/lib/libdtrace/
H A Dsctp.d141 p->asoc.primary_destination->ro._s_addr == NULL ? "<unknown>" :
142 p->asoc.primary_destination->ro._s_addr->address.sa.sa_family == AF_INET ?
143 inet_ntoa(&p->asoc.primary_destination->ro._s_addr->address.sin.sin_addr.s_addr) :
144 p->asoc.primary_destination->ro._s_addr->address.sa.sa_family == AF_INET6 ?
145 inet_ntoa6(&p->asoc.primary_destination->ro._s_addr->address.sin6.sin6_addr) :
149 p->asoc.primary_destination->ro._l_addr.sa.sa_family == AF_INET ?
150 inet_ntoa(&p->asoc.primary_destination->ro._l_addr.sin.sin_addr.s_addr) :
151 p->asoc.primary_destination->ro._l_addr.sa.sa_family == AF_INET6 ?
152 inet_ntoa6(&p->asoc.primary_destination->ro._l_addr.sin6.sin6_addr) :
/freebsd/tools/test/stress2/misc/
H A Dmountu.sh92 mount -u -o ro $mntpoint 2>/dev/null || mount -fu -o ro $mntpoint
115 mount -u -o ro $mntpoint 2>/dev/null ||
116 mount -fu -o ro $mntpoint 2>/dev/null
141 mount -u -o ro $mntpoint 2>/dev/null || mount -fu -o ro $mntpoint
164 mount -u -o ro $mntpoint 2>/dev/null || mount -fu -o ro $mntpoint
180 UFS/NFS/msdosfs reclaim vnode on rw->ro forced remount, and
185 to already mapped pages (if ro->rw remount happen later), and
H A Dmountro4.sh45 mount -u -o ro $mntpoint
63 mount -u -o ro $mntpoint
87 mount -u -o ro $mntpoint
/freebsd/sys/conf/
H A Dldscript.i38625 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
26 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
135 ….data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkon…
H A Dldscript.amd6430 .rel.data.rel.ro : { *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*) }
31 .rela.data.rel.ro : { *(.rela.data.rel.ro* .rela.gnu.linkonce.d.rel.ro.*) }
141 ….data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkon…
/freebsd/sys/netinet6/
H A Din6_src.c636 cache_route(uint32_t fibnum, const struct sockaddr_in6 *dst, struct route_in6 *ro, in cache_route() argument
645 if (ro->ro_nh != NULL && ( in cache_route()
646 !NH_IS_VALID(ro->ro_nh) || ro->ro_dst.sin6_family != AF_INET6 || in cache_route()
647 !IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &dst->sin6_addr))) in cache_route()
648 RO_NHFREE(ro); in cache_route()
650 if (ro->ro_nh == NULL) { in cache_route()
651 ro->ro_dst = *dst; in cache_route()
661 ro->ro_nh = fib6_lookup(fibnum, paddr, scopeid, NHR_REF, flowid); in cache_route()
663 return (ro->ro_nh); in cache_route()
667 lookup_route(uint32_t fibnum, struct sockaddr_in6 *dst, struct route_in6 *ro, in lookup_route() argument
[all …]
H A Dip6_output.c301 struct mbuf *m, struct sockaddr_in6 *dst, struct route_in6 *ro, in ip6_output_send() argument
365 error = nd6_output_ifp(ifp, origifp, m, dst, (struct route *)ro); in ip6_output_send()
401 struct route_in6 *ro, int flags, struct ip6_moptions *im6o, in ip6_output() argument
599 ro_pmtu = ro; in ip6_output()
601 ro = &opt->ip6po_route; in ip6_output()
602 if (ro != NULL) in ip6_output()
603 dst = (struct sockaddr_in6 *)&ro->ro_dst; in ip6_output()
635 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output()
648 if (ro != NULL) { in ip6_output()
649 if (ro->ro_nh != NULL && inp != NULL) { in ip6_output()
[all …]
/freebsd/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/lib/libmp/tests/
H A Dlegacy_test.c98 short ro; in testdiv() local
109 mp_sdiv(c42, 5, t0, &ro); in testdiv()
111 t2 = mp_itom(ro); // Simpler to use common testmcmp() in testdiv()
115 mp_sdiv(c10, 8, t0, &ro); in testdiv()
117 t2 = mp_itom(ro); // Simpler to use common testmcmp() in testdiv()

1234567