/freebsd/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 …]
|
/freebsd/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/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 | 343 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net() 344 if (alt->ro._s_addr) { in sctp_find_alternate_net() 345 sctp_free_ifa(alt->ro._s_addr); in sctp_find_alternate_net() 346 alt->ro._s_addr = NULL; in sctp_find_alternate_net() 351 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net() 939 if (net->ro._s_addr != NULL) { in sctp_t3rxt_timer() 940 sctp_free_ifa(net->ro._s_addr); in sctp_t3rxt_timer() 941 net->ro._s_addr = NULL; in sctp_t3rxt_timer() 946 RO_NHFREE(&net->ro); in sctp_t3rxt_timer() 1283 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 | 921 struct route ro; in ip_forward() local 941 bzero(&ro, sizeof(ro)); in ip_forward() 942 sin = (struct sockaddr_in *)&ro.ro_dst; in ip_forward() 947 ro.ro_nh = fib4_lookup(M_GETFIB(m), ip->ip_dst, 0, NHR_REF, flowid); in ip_forward() 948 if (ro.ro_nh != NULL) { in ip_forward() 949 if (ro.ro_nh->nh_flags & (NHF_BLACKHOLE | NHF_BROADCAST)) { in ip_forward() 952 NH_FREE(ro.ro_nh); in ip_forward() 955 if (ro.ro_nh->nh_flags & NHF_REJECT) { in ip_forward() 957 NH_FREE(ro.ro_nh); in ip_forward() 961 ia = ifatoia(ro.ro_nh->nh_ifa); in ip_forward() [all …]
|
H A D | ip_fastfwd.c | 237 struct route ro; in ip_tryforward() local 452 bzero(&ro, sizeof(ro)); in ip_tryforward() 453 dst = (struct sockaddr_in *)&ro.ro_dst; in ip_tryforward() 459 ro.ro_flags |= RT_HAS_GW; in ip_tryforward() 481 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m, gw, &ro); in ip_tryforward() 516 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 …]
|
/freebsd/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 | 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() 230 af = RO_GET_FAMILY(ro, dst); in looutput()
|
H A D | if_ethersubr.c | 205 const struct sockaddr *dst, struct route *ro, u_char *phdr, in ether_resolve_addr() argument 242 int af = RO_GET_FAMILY(ro, dst); in ether_resolve_addr() 263 if (ro != NULL && (ro->ro_flags & RT_HAS_GW) != 0) in ether_resolve_addr() 285 const struct sockaddr *dst, struct route *ro) in ether_output() argument 299 if (ro != NULL) { in ether_output() 301 if (ro->ro_prepend != NULL) { in ether_output() 302 phdr = ro->ro_prepend; in ether_output() 303 hlen = ro->ro_plen; in ether_output() 305 if ((ro in ether_output() [all...] |
H A D | if_lagg.c | 1142 const struct sockaddr *dst, struct route *ro) in lagg_port_output() argument 1150 return ((*lp->lp_output)(ifp, m, dst, ro)); in lagg_port_output() 1347 struct lagg_reqopts *ro = (struct lagg_reqopts *)data; in lagg_ioctl() local 1408 ro->ro_opts = sc->sc_opts; in lagg_ioctl() 1414 ro->ro_opts |= LAGG_OPT_LACP_TXTEST; in lagg_ioctl() 1416 ro->ro_opts |= LAGG_OPT_LACP_RXTEST; in lagg_ioctl() 1418 ro->ro_opts |= LAGG_OPT_LACP_STRICT; in lagg_ioctl() 1420 ro->ro_opts |= LAGG_OPT_LACP_FAST_TIMO; in lagg_ioctl() 1422 ro->ro_active = sc->sc_active; in lagg_ioctl() 1424 ro->ro_active = 0; in lagg_ioctl() [all …]
|
/freebsd/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/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/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/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/sys/netinet6/ |
H A D | in6_src.c | 613 cache_route(uint32_t fibnum, const struct sockaddr_in6 *dst, struct route_in6 *ro, in cache_route() argument 622 if (ro->ro_nh != NULL && ( in cache_route() 623 !NH_IS_VALID(ro->ro_nh) || ro->ro_dst.sin6_family != AF_INET6 || in cache_route() 624 !IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, &dst->sin6_addr))) in cache_route() 625 RO_NHFREE(ro); in cache_route() 627 if (ro->ro_nh == NULL) { in cache_route() 628 ro->ro_dst = *dst; in cache_route() 638 ro->ro_nh = fib6_lookup(fibnum, paddr, scopeid, NHR_REF, flowid); in cache_route() 640 return (ro->ro_nh); in cache_route() 644 lookup_route(uint32_t fibnum, struct sockaddr_in6 *dst, struct route_in6 *ro, in lookup_route() argument [all …]
|
H A D | ip6_output.c | 304 struct mbuf *m, struct sockaddr_in6 *dst, struct route_in6 *ro, in ip6_output_send() argument 368 error = nd6_output_ifp(ifp, origifp, m, dst, (struct route *)ro); in ip6_output_send() 404 struct route_in6 *ro, int flags, struct ip6_moptions *im6o, in ip6_output() argument 613 ro_pmtu = ro; in ip6_output() 615 ro = &opt->ip6po_route; in ip6_output() 616 if (ro != NULL) in ip6_output() 617 dst = (struct sockaddr_in6 *)&ro->ro_dst; in ip6_output() 649 if (ro == NULL || ro->ro_nh == NULL) { in ip6_output() 662 if (ro != NULL) { in ip6_output() 663 if (ro->ro_nh != NULL && inp != NULL) { in ip6_output() [all …]
|
/freebsd/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/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/sys/dev/mmc/ |
H A D | mmcsd.c | 111 bool ro; member 180 const char *name, u_int cnt, off_t media_size, bool ro); 237 bool comp, ro; in mmcsd_attach() local 366 ro = mmc_get_read_only(dev); in mmcsd_attach() 368 device_get_unit(dev), mmc_get_media_size(dev) * sector_size, ro); in mmcsd_attach() 394 ro | ((ext_csd[EXT_CSD_BOOT_WP_STATUS] & in mmcsd_attach() 398 ro | ((ext_csd[EXT_CSD_BOOT_WP_STATUS] & in mmcsd_attach() 406 MMCSD_FMT_RPMB, 0, size, ro); in mmcsd_attach() 426 MMCSD_FMT_GP, i, size * erase_size * wp_size, ro); in mmcsd_attach() 479 off_t media_size, bool ro) in mmcsd_add_part() argument [all …]
|