| /freebsd-14.2/sbin/ifconfig/ |
| H A D | iflagg.c | 95 struct lagg_reqopts ro = {}; in setlaggflowidshift() local 98 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); 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() 115 if (ro.ro_bkt == 0) in setlaggrr_limit() 125 struct lagg_reqopts ro = {}; in setlaggsetopt() local 127 ro.ro_opts = d; in setlaggsetopt() 128 switch (ro.ro_opts) { in setlaggsetopt() 145 strlcpy(ro.ro_ifname, ctx->ifname, sizeof(ro.ro_ifname)); in setlaggsetopt() 214 struct lagg_reqopts *ro; in lagg_status() local [all …]
|
| /freebsd-14.2/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
|
| /freebsd-14.2/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 361 #define SCTP_GET_HLIM(inp, ro) in6_selecthlim(&inp->ip_inp.inp, (ro ? (ro->ro_nh ? (ro->ro_nh->nh_i… argument 402 #define SCTP_RTALLOC(ro, vrf_id, fibnum) \ argument 404 if ((ro)->ro_nh == NULL) { \ 405 (ro)->ro_nh = rib_lookup(fibnum, &(ro)->ro_dst, NHR_REF, 0); \ 426 result = ip_output(o_pak, NULL, ro, o_flgs, 0, NULL); \ 438 (ro), 0, 0, ifp, NULL); \ [all …]
|
| H A D | ip_output.c | 382 if (ro == NULL) { in ip_output() 383 ro = &iproute; in ip_output() 384 bzero(ro, sizeof (*ro)); in ip_output() 387 if (ro->ro_nh == NULL) { in ip_output() 408 if (ro->ro_nh != NULL && in ip_output() 411 RO_INVALIDATE_CACHE(ro); in ip_output() 477 if (ro->ro_nh == NULL || (!NH_IS_VALID(ro->ro_nh))) { in ip_output() 541 __func__, mtu, ro, in ip_output() 542 (ro != NULL && ro->ro_nh != NULL) ? ro->ro_nh->nh_flags : 0, ifp)); in ip_output() 711 if (ro != NULL) { in ip_output() [all …]
|
| H A D | sctp_timer.c | 344 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net() 345 if (alt->ro._s_addr) { in sctp_find_alternate_net() 347 alt->ro._s_addr = NULL; in sctp_find_alternate_net() 352 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net() 942 net->ro._s_addr = NULL; in sctp_t3rxt_timer() 947 RO_NHFREE(&net->ro); in sctp_t3rxt_timer() 1421 net->ro._s_addr = NULL; in sctp_heartbeat_timer() 1483 net->ro._s_addr = NULL; in sctp_pathmtu_timer() 1507 if (net->ro._s_addr) in sctp_pathmtu_timer() 1510 if (net->ro._s_addr) { in sctp_pathmtu_timer() [all …]
|
| H A D | ip_fastfwd.c | 237 struct route ro; in ip_tryforward() local 454 bzero(&ro, sizeof(ro)); in ip_tryforward() 455 dst = (struct sockaddr_in *)&ro.ro_dst; in ip_tryforward() 461 ro.ro_flags |= RT_HAS_GW; in ip_tryforward() 483 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, gw, &ro); in ip_tryforward() 518 gw, &ro); in ip_tryforward()
|
| H A D | if_ether.c | 356 struct route ro; in arprequest_internal() local 415 bzero(&ro, sizeof(ro)); in arprequest_internal() 425 ro.ro_prepend = linkhdr; in arprequest_internal() 426 ro.ro_plen = linkhdrsize; in arprequest_internal() 427 ro.ro_flags = 0; in arprequest_internal() 784 struct route ro; in in_arpinput() local 1097 bzero(&ro, sizeof(ro)); in in_arpinput() 1112 ro.ro_prepend = linkhdr; in in_arpinput() 1113 ro.ro_plen = linkhdrsize; in in_arpinput() 1114 ro.ro_flags = 0; in in_arpinput() [all …]
|
| H A D | sctp_output.c | 4088 ro = &iproute; in sctp_lowlevel_chunk_output() 4092 ro = (sctp_route_t *)&net->ro; in sctp_lowlevel_chunk_output() 4187 memcpy(&iproute, ro, sizeof(*ro)); in sctp_lowlevel_chunk_output() 4240 RO_NHFREE(ro); in sctp_lowlevel_chunk_output() 4242 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output() 4246 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_nh); in sctp_lowlevel_chunk_output() 4341 ro = (sctp_route_t *)&net->ro; in sctp_lowlevel_chunk_output() 4401 ro, in sctp_lowlevel_chunk_output() 4584 if ((ro->ro_nh != NULL) && (net->ro._s_addr) && in sctp_lowlevel_chunk_output() 4588 mtu = SCTP_GATHER_MTU_FROM_ROUTE(net->ro._s_addr, &net->ro._l_addr.sa, ro->ro_nh); in sctp_lowlevel_chunk_output() [all …]
|
| H A D | ip_input.c | 923 struct route ro; in ip_forward() local 943 bzero(&ro, sizeof(ro)); in ip_forward() 944 sin = (struct sockaddr_in *)&ro.ro_dst; in ip_forward() 950 if (ro.ro_nh != NULL) { in ip_forward() 951 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward() 994 RO_NHFREE(&ro); in ip_forward() 1016 nh = ro.ro_nh; in ip_forward() 1038 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL, NULL); in ip_forward() 1040 if (error == EMSGSIZE && ro.ro_nh) in ip_forward() 1041 mtu = ro.ro_nh->nh_mtu; in ip_forward() [all …]
|
| /freebsd-14.2/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 | 264 int af = RO_GET_FAMILY(ro, dst); in infiniband_resolve_addr() 284 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in infiniband_resolve_addr() 303 const struct sockaddr *dst, struct route *ro) in infiniband_output() argument 319 if (ro != NULL) { in infiniband_output() 321 if (ro->ro_prepend != NULL) { in infiniband_output() 322 phdr = ro->ro_prepend; in infiniband_output() 323 hlen = ro->ro_plen; in infiniband_output() 325 if ((ro->ro_flags & RT_LLE_CACHE) != 0) { in infiniband_output() 326 lle = ro->ro_lle; in infiniband_output() 331 ro->ro_lle = NULL; in infiniband_output() [all …]
|
| H A D | if_loop.c | 95 const struct sockaddr *dst, struct route *ro); 199 struct route *ro) in looutput() argument 216 if (ro != NULL && ro->ro_flags & (RT_REJECT|RT_BLACKHOLE)) { in looutput() 218 return (ro->ro_flags & RT_BLACKHOLE ? 0 : EHOSTUNREACH); in looutput() 232 af = RO_GET_FAMILY(ro, dst); in looutput()
|
| H A D | if_ethersubr.c | 244 int af = RO_GET_FAMILY(ro, dst); in ether_resolve_addr() 265 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in ether_resolve_addr() 287 const struct sockaddr *dst, struct route *ro) in ether_output() argument 301 if (ro != NULL) { in ether_output() 303 if (ro->ro_prepend != NULL) { in ether_output() 304 phdr = ro->ro_prepend; in ether_output() 305 hlen = ro->ro_plen; in ether_output() 307 if ((ro->ro_flags & RT_LLE_CACHE) != 0) { in ether_output() 308 lle = ro->ro_lle; in ether_output() 313 ro->ro_lle = NULL; in ether_output() [all …]
|
| H A D | if_lagg.c | 1385 ro->ro_opts = sc->sc_opts; in lagg_ioctl() 1401 ro->ro_active = 0; in lagg_ioctl() 1405 ro->ro_bkt = sc->sc_stride; in lagg_ioctl() 1421 if (ro->ro_opts == 0 && ro->ro_bkt != 0) { in lagg_ioctl() 1427 sc->sc_stride = ro->ro_bkt; in lagg_ioctl() 1429 if (ro->ro_opts == 0) { in lagg_ioctl() 1440 switch (ro->ro_opts) { in lagg_ioctl() 1482 ro->ro_bkt == 0) { in lagg_ioctl() 1487 sc->sc_stride = ro->ro_bkt; in lagg_ioctl() 1488 } else if (ro->ro_opts > 0) in lagg_ioctl() [all …]
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/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) :
|
| /freebsd-14.2/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
|
| /freebsd-14.2/sys/conf/ |
| 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…
|
| 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…
|
| /freebsd-14.2/sys/netinet6/ |
| H A D | in6_src.c | 624 if (ro->ro_nh != NULL && ( in cache_route() 625 !NH_IS_VALID(ro->ro_nh) || ro->ro_dst.sin6_family != AF_INET6 || in cache_route() 627 RO_NHFREE(ro); in cache_route() 629 if (ro->ro_nh == NULL) { in cache_route() 630 ro->ro_dst = *dst; in cache_route() 642 return (ro->ro_nh); in cache_route() 667 } else if (ro != NULL) { in lookup_route() 668 nh = cache_route(fibnum, dst, ro, flowid); in lookup_route() 693 struct ip6_moptions *mopts, struct route_in6 *ro, in selectroute() argument 826 struct ip6_moptions *mopts, struct route_in6 *ro, in in6_selectroute() argument [all …]
|
| H A D | ip6_output.c | 631 ro_pmtu = ro; in ip6_output() 633 ro = &opt->ip6po_route; in ip6_output() 634 if (ro != NULL) in ip6_output() 667 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output() 680 if (ro != NULL) { in ip6_output() 696 nh = ro->ro_nh; in ip6_output() 698 if (ro->ro_lle) in ip6_output() 700 ro->ro_lle = NULL; in ip6_output() 1053 if (ro != NULL) in ip6_output() 1062 if (ro != NULL) in ip6_output() [all …]
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/contrib/bmake/unit-tests/ |
| H A D | objdir-writable.mk | 14 all: no-objdir ro-objdir explicit-objdir 27 ro-objdir:
|