| /src/sbin/ifconfig/ |
| H A D | iflagg.c | 95 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 …]
|
| /src/bin/sh/tests/expansion/ |
| H A D | arith10.0 | 11 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
|
| /src/sys/netinet/ |
| H A D | sctp_os_bsd.h | 202 #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 D | ip_output.c | 211 const struct sockaddr *gw, struct route *ro, bool stamp_tag) in ip_output_send() argument 274 error = (*ifp->if_output)(ifp, m, gw, ro); in ip_output_send() 294 rt_update_ro_flags(struct route *ro, const struct nhop_object *nh) in rt_update_ro_flags() argument 298 ro->ro_flags &= ~ (RT_REJECT|RT_BLACKHOLE|RT_HAS_GW); in rt_update_ro_flags() 300 ro->ro_flags |= (nh_flags & NHF_REJECT) ? RT_REJECT : 0; in rt_update_ro_flags() 301 ro->ro_flags |= (nh_flags & NHF_BLACKHOLE) ? RT_BLACKHOLE : 0; in rt_update_ro_flags() 302 ro->ro_flags |= (nh_flags & NHF_GATEWAY) ? RT_HAS_GW : 0; in rt_update_ro_flags() 318 ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags, in ip_output() argument 386 if (ro == NULL) { in ip_output() 387 ro = &iproute; in ip_output() [all …]
|
| H A D | sctp_timer.c | 342 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 D | ip_input.c | 937 struct route ro; in ip_forward() local 957 bzero(&ro, sizeof(ro)); in ip_forward() 958 sin = (struct sockaddr_in *)&ro.ro_dst; in ip_forward() 963 ro.ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_REF, flowid); in ip_forward() 964 if (ro.ro_nh != NULL) { in ip_forward() 965 if (ro.ro_nh->nh_flags & (NHF_BLACKHOLE | NHF_BROADCAST)) { in ip_forward() 968 NH_FREE(ro.ro_nh); in ip_forward() 971 if (ro.ro_nh->nh_flags & NHF_REJECT) { in ip_forward() 973 NH_FREE(ro.ro_nh); in ip_forward() 977 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward() [all …]
|
| H A D | ip_fastfwd.c | 241 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 D | sctp_output.c | 2448 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 D | if_ether.c | 355 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 …]
|
| /src/sys/net/ |
| H A D | route.h | 389 #define RO_INVALIDATE_CACHE(ro) do { \ argument 390 if ((ro)->ro_lle != NULL) { \ 391 LLE_FREE((ro)->ro_lle); \ 392 (ro)->ro_lle = NULL; \ 394 if ((ro)->ro_nh != NULL) { \ 395 NH_FREE((ro)->ro_nh); \ 396 (ro)->ro_nh = NULL; \ 400 #define RO_GET_FAMILY(ro, dst) ((ro) != NULL && \ argument 401 (ro)->ro_flags & RT_HAS_GW \ 402 ? (ro)->ro_dst.sa_family : (dst)->sa_family) [all …]
|
| H A D | if_infiniband.c | 164 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 D | bpf_ifnet.c | 62 struct route ro = {}; in bpf_ifnet_write() local 154 ro.ro_prepend = (char *)&dst.sa_data; in bpf_ifnet_write() 155 ro.ro_plen = hlen; in bpf_ifnet_write() 156 ro.ro_flags = RT_HAS_HEADER; in bpf_ifnet_write() 163 error = ifp->if_output(ifp, m, &dst, &ro); in bpf_ifnet_write()
|
| H A D | if_loop.c | 93 const struct sockaddr *dst, struct route *ro); 197 struct route *ro) in looutput() argument 214 if (ro != NULL && ro->ro_flags & (RT_REJECT|RT_BLACKHOLE)) { in looutput() 216 return (ro->ro_flags & RT_BLACKHOLE ? 0 : EHOSTUNREACH); in looutput() 228 af = RO_GET_FAMILY(ro, dst); in looutput()
|
| H A D | if_ethersubr.c | 199 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 …]
|
| H A D | if_lagg.c | 1144 const struct sockaddr *dst, struct route *ro) in lagg_port_output() argument 1152 return ((*lp->lp_output)(ifp, m, dst, ro)); in lagg_port_output() 1350 struct lagg_reqopts *ro = (struct lagg_reqopts *)data; in lagg_ioctl() local 1411 ro->ro_opts = sc->sc_opts; in lagg_ioctl() 1417 ro->ro_opts |= LAGG_OPT_LACP_TXTEST; in lagg_ioctl() 1419 ro->ro_opts |= LAGG_OPT_LACP_RXTEST; in lagg_ioctl() 1421 ro->ro_opts |= LAGG_OPT_LACP_STRICT; in lagg_ioctl() 1423 ro->ro_opts |= LAGG_OPT_LACP_FAST_TIMO; in lagg_ioctl() 1425 ro->ro_active = sc->sc_active; in lagg_ioctl() 1427 ro->ro_active = 0; in lagg_ioctl() [all …]
|
| /src/lib/libifconfig/ |
| H A D | libifconfig_lagg.c | 49 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()
|
| /src/cddl/lib/libdtrace/ |
| H A D | sctp.d | 141 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) :
|
| /src/tools/test/stress2/misc/ |
| H A D | mountu.sh | 92 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 D | mountro4.sh | 45 mount -u -o ro $mntpoint 63 mount -u -o ro $mntpoint 87 mount -u -o ro $mntpoint
|
| /src/sys/conf/ |
| H A D | ldscript.amd64 | 30 .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…
|
| H A D | ldscript.i386 | 25 .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…
|
| /src/sys/netinet6/ |
| H A D | in6_src.c | 636 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 D | ip6_output.c | 302 struct mbuf *m, struct sockaddr_in6 *dst, struct route_in6 *ro, in ip6_output_send() argument 366 error = nd6_output_ifp(ifp, origifp, m, dst, (struct route *)ro); in ip6_output_send() 402 struct route_in6 *ro, int flags, struct ip6_moptions *im6o, in ip6_output() argument 600 ro_pmtu = ro; in ip6_output() 602 ro = &opt->ip6po_route; in ip6_output() 603 if (ro != NULL) in ip6_output() 604 dst = (struct sockaddr_in6 *)&ro->ro_dst; in ip6_output() 636 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output() 649 if (ro != NULL) { in ip6_output() 650 if (ro->ro_nh != NULL && inp != NULL) { in ip6_output() [all …]
|
| /src/contrib/lib9p/example/ |
| H A D | server.c | 45 bool ro = false; in main() local 58 ro = true; in main() 77 if (l9p_backend_fs_init(&fs_backend, rootfd, ro) != 0) in main()
|
| /src/lib/libmp/tests/ |
| H A D | legacy_test.c | 98 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()
|