Home
last modified time | relevance | path

Searched refs:rn (Results 1 – 25 of 116) sorted by relevance

12345

/freebsd/sys/contrib/openzfs/module/zfs/
H A Drrwlock.c86 rrw_node_t *rn; in rrn_find() local
91 for (rn = tsd_get(rrw_tsd_key); rn != NULL; rn = rn->rn_next) { in rrn_find()
92 if (rn->rn_rrl == rrl) in rrn_find()
93 return (rn); in rrn_find()
104 rrw_node_t *rn; in rrn_add() local
106 rn = kmem_alloc(sizeof (*rn), KM_SLEEP); in rrn_add()
107 rn->rn_rrl = rrl; in rrn_add()
108 rn->rn_next = tsd_get(rrw_tsd_key); in rrn_add()
109 rn->rn_tag = tag; in rrn_add()
110 VERIFY(tsd_set(rrw_tsd_key, rn) == 0); in rrn_add()
[all …]
/freebsd/sys/net/
H A Dradix.c376 rn_nextprefix(struct radix_node *rn) in rn_nextprefix() argument
378 for (rn = rn->rn_dupedkey; rn != NULL; rn = rn->rn_dupedkey) { in rn_nextprefix()
379 if (!(rn->rn_flags & RNF_ROOT)) in rn_nextprefix()
380 return (rn); in rn_nextprefix()
960 struct radix_node *rn, *last = NULL; /* shut up gcc */ in rn_walktree_from() local
971 for (rn = h->rnh_treetop; rn->rn_bit >= 0; ) { in rn_walktree_from()
972 last = rn; in rn_walktree_from()
975 if (!(rn->rn_bmask & xm[rn->rn_offset])) { in rn_walktree_from()
978 if (rn->rn_bmask & xa[rn->rn_offset]) { in rn_walktree_from()
979 rn = rn->rn_right; in rn_walktree_from()
[all …]
/freebsd/contrib/lua/src/
H A Dliolib.c438 static int nextc (RN *rn) { in nextc() argument
439 if (l_unlikely(rn->n >= L_MAXLENNUM)) { /* buffer overflow? */ in nextc()
440 rn->buff[0] = '\0'; /* invalidate result */ in nextc()
444 rn->buff[rn->n++] = rn->c; /* save current char */ in nextc()
445 rn->c = l_getc(rn->f); /* read next one */ in nextc()
454 static int test2 (RN *rn, const char *set) { in test2() argument
455 if (rn->c == set[0] || rn->c == set[1]) in test2()
456 return nextc(rn); in test2()
464 static int readdigits (RN *rn, int hex) { in readdigits() argument
466 while ((hex ? isxdigit(rn->c) : isdigit(rn->c)) && nextc(rn)) in readdigits()
[all …]
/freebsd/contrib/netbsd-tests/net/route/
H A Dt_flags.sh48 $DEBUG && rump.netstat -rn -f inet
63 $DEBUG && rump.netstat -rn -f inet
86 $DEBUG && rump.netstat -rn -f inet
116 $DEBUG && rump.netstat -rn -f inet
129 $DEBUG && rump.netstat -rn -f inet
136 $DEBUG && rump.netstat -rn -f inet
155 $DEBUG && rump.netstat -rn -f inet
162 $DEBUG && rump.netstat -rn -f inet
177 $DEBUG && rump.netstat -rn -f inet
184 $DEBUG && rump.netstat -rn -f inet
[all …]
H A Dt_flags6.sh51 $DEBUG && rump.netstat -rn -f inet6
66 $DEBUG && rump.netstat -rn -f inet6
99 $DEBUG && rump.netstat -rn -f inet6
113 $DEBUG && rump.netstat -rn -f inet6
121 $DEBUG && rump.netstat -rn -f inet6
141 $DEBUG && rump.netstat -rn -f inet6
148 $DEBUG && rump.netstat -rn -f inet6
165 $DEBUG && rump.netstat -rn -f inet6
172 $DEBUG && rump.netstat -rn -f inet6
185 $DEBUG && rump.netstat -rn -f inet6
[all …]
/freebsd/sys/netinet/
H A Din_fib.c139 struct radix_node *rn; in fib4_lookup() local
156 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in fib4_lookup()
157 if (rn != NULL && ((rn->rn_flags & RNF_ROOT) == 0)) { in fib4_lookup()
158 nh = nhop_select((RNTORT(rn))->rt_nhop, flowid); in fib4_lookup()
217 struct radix_node *rn; in lookup_nhop() local
233 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in lookup_nhop()
234 if (rn != NULL && ((rn->rn_flags & RNF_ROOT) == 0)) in lookup_nhop()
235 nh = RNTORT(rn)->rt_nhop; in lookup_nhop()
285 struct radix_node *rn; in fib4_lookup_rt() local
303 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in fib4_lookup_rt()
[all …]
H A Din_fib_algo.c511 struct radix_node rn[2]; member
605 struct radix_node *rn; in lradix4_add_route_cb() local
629 rn = lr->rnh->rnh_addaddr((struct sockaddr *)&ae->addr, rt_mask, in lradix4_add_route_cb()
630 &lr->rnh->rh, ae->rn); in lradix4_add_route_cb()
631 if (rn == NULL) in lradix4_add_route_cb()
682 struct radix_node *rn; in radix4_lookup() local
694 rn = rn_match((void *)&sin4, &rh->head); in radix4_lookup()
695 if (rn != NULL && ((rn->rn_flags & RNF_ROOT) == 0)) in radix4_lookup()
696 nh = (RNTORT(rn))->rt_nhop; in radix4_lookup()
/freebsd/sys/netinet6/
H A Din6_fib.c147 struct radix_node *rn; in fib6_lookup() local
165 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in fib6_lookup()
166 if (rn != NULL && ((rn->rn_flags & RNF_ROOT) == 0)) { in fib6_lookup()
167 nh = nhop_select((RNTORT(rn))->rt_nhop, flowid); in fib6_lookup()
227 struct radix_node *rn; in lookup_nhop() local
247 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in lookup_nhop()
248 if (rn != NULL && ((rn->rn_flags & RNF_ROOT) == 0)) in lookup_nhop()
249 nh = RNTORT(rn)->rt_nhop; in lookup_nhop()
298 struct radix_node *rn; in fib6_lookup_rt() local
318 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in fib6_lookup_rt()
[all …]
H A Din6_fib_algo.c82 struct radix_node rn[2]; member
173 struct radix_node *rn; in lradix6_add_route_cb() local
199 rn = lr->rnh->rnh_addaddr((struct sockaddr *)&ae->addr, in lradix6_add_route_cb()
200 (struct sockaddr *)rt_mask, &lr->rnh->rh, ae->rn); in lradix6_add_route_cb()
201 if (rn == NULL) in lradix6_add_route_cb()
252 struct radix_node *rn; in radix6_lookup() local
266 rn = rn_match((void *)&sin6, &rh->head); in radix6_lookup()
267 if (rn != NULL && ((rn->rn_flags & RNF_ROOT) == 0)) in radix6_lookup()
268 nh = (RNTORT(rn))->rt_nhop; in radix6_lookup()
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c104 rdsk_node_t *rn = arg; in zpool_open_func() local
105 libpc_handle_t *hdl = rn->rn_hdl; in zpool_open_func()
113 if (should_skip_dev(zfs_basename(rn->rn_name))) in zpool_open_func()
120 if (stat64(rn->rn_name, &statbuf) != 0 || in zpool_open_func()
130 fd = open(rn->rn_name, O_RDONLY | O_DIRECT | O_CLOEXEC); in zpool_open_func()
132 fd = open(rn->rn_name, O_RDONLY | O_CLOEXEC); in zpool_open_func()
156 if (error || (rn->rn_vdev_guid && rn->rn_vdev_guid != vdev_guid)) { in zpool_open_func()
164 rn->rn_config = config; in zpool_open_func()
165 rn->rn_num_labels = num_labels; in zpool_open_func()
170 if (rn->rn_labelpaths) { in zpool_open_func()
[all …]
/freebsd/tests/sys/netinet/
H A Dfibs_test.sh124 setfib ${FIB0} netstat -rn -f inet | grep -q "^${ADDR}.*UHS.*lo0"
126 setfib ${FIB0} netstat -rn -f inet
129 setfib 0 netstat -rn -f inet | grep -q "^${ADDR}.*UHS.*lo0"
131 setfib 0 netstat -rn -f inet
136 setfib ${FIB0} netstat -rn -f inet | \
139 setfib ${FIB0} netstat -rn -f inet
142 setfib 0 netstat -rn -f inet | \
145 setfib 0 netstat -rn -f inet
181 setfib ${FIB0} netstat -rn -f inet6 | grep -q "^${ADDR}.*UHS.*lo0"
183 setfib ${FIB0} netstat -rn -f inet6
[all …]
/freebsd/crypto/openssl/crypto/lhash/
H A Dlhash.c110 OPENSSL_LH_NODE *nn, **rn; in OPENSSL_LH_insert() local
117 rn = getrn(lh, data, &hash); in OPENSSL_LH_insert()
119 if (*rn == NULL) { in OPENSSL_LH_insert()
127 *rn = nn; in OPENSSL_LH_insert()
131 ret = (*rn)->data; in OPENSSL_LH_insert()
132 (*rn)->data = data; in OPENSSL_LH_insert()
140 OPENSSL_LH_NODE *nn, **rn; in OPENSSL_LH_delete() local
144 rn = getrn(lh, data, &hash); in OPENSSL_LH_delete()
146 if (*rn == NULL) { in OPENSSL_LH_delete()
149 nn = *rn; in OPENSSL_LH_delete()
[all …]
/freebsd/contrib/netbsd-tests/net/icmp/
H A Dt_icmp_redirect.sh62 $DEBUG && rump.netstat -rn -f inet
76 $DEBUG && rump.netstat -rn -f inet
99 $DEBUG && rump.netstat -rn -f inet
135 $DEBUG && rump.netstat -rn -f inet
147 $DEBUG && rump.netstat -rn -f inet
221 $DEBUG && rump.netstat -rn -f inet
238 $DEBUG && rump.netstat -rn -f inet
245 $DEBUG && rump.netstat -rn -f inet
265 $DEBUG && rump.netstat -rn -f inet
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dradix_ipf.c1289 ipf_rdx_node_t *rn; in test_addr() local
1305 rn = ipf_rx_match(rnh, &af); in test_addr()
1306 stp = (myst_t *)rn; in test_addr()
1307 printf(" = %s (%s/%d)\n", GNAME(rn), in test_addr()
1308 rn ? addrname(&stp->dst) : "NULL", in test_addr()
1309 rn ? rn->maskbitcount : 0); in test_addr()
1313 rn = ipf_rx_match(rnh, addr); in test_addr()
1314 stp = (myst_t *)rn; in test_addr()
1315 printf(" = %s (%s/%d)\n", GNAME(rn), in test_addr()
1316 rn ? addrname(&stp->dst) : "NULL", rn ? rn->maskbitcount : 0); in test_addr()
[all …]
H A Dip_pool.c724 ipf_rdx_node_t *rn; in ipf_pool_search() local
757 rn = ipo->ipo_head->matchaddr(ipo->ipo_head, &v); in ipf_pool_search()
759 if ((rn != NULL) && (rn->root == 0)) { in ipf_pool_search()
760 m = (ip_pool_node_t *)rn; in ipf_pool_search()
787 ipf_rdx_node_t *rn; in ipf_pool_insert_node() local
790 if ((node->ipn_addr.adf_len > sizeof(*rn)) || in ipf_pool_insert_node()
796 if ((node->ipn_mask.adf_len > sizeof(*rn)) || in ipf_pool_insert_node()
854 rn = ipo->ipo_head->addaddr(ipo->ipo_head, &x->ipn_addr, &x->ipn_mask, in ipf_pool_insert_node()
857 printf("Added %p at %p\n", x, rn); in ipf_pool_insert_node()
860 if (rn == NULL) { in ipf_pool_insert_node()
/freebsd/sys/arm64/arm64/
H A Ddisassem.c432 arm64_disasm_reg_extend(int sf, int option, int rd, int rn, int amount) in arm64_disasm_reg_extend() argument
436 is_sp = rd == 31 || rn == 31; in arm64_disasm_reg_extend()
495 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; in disasm() local
510 shift = rd = rm = rn = imm = idx = option = amount = scale = 0; in disasm()
566 rn_absent = arm64_disasm_read_token(i_ptr, insn, "RN", &rn); in disasm()
591 arm64_reg(sf, rn, rn_sp)); in disasm()
595 di->di_printf("%s", arm64_reg(sf, rn, rn_sp)); in disasm()
619 ret |= arm64_disasm_read_token(i_ptr, insn, "RN", &rn); in disasm()
661 di->di_printf("[%s", arm64_x_reg(rn, 1)); in disasm()
666 di->di_printf("[%s]", arm64_x_reg(rn, 1)); in disasm()
[all …]
/freebsd/sys/net/route/
H A Droute_ddb.c130 rt_dumpentry_ddb(struct radix_node *rn, void *arg __unused) in rt_dumpentry_ddb() argument
138 rt = (void *)rn; in rt_dumpentry_ddb()
210 struct radix_node *rn; in DB_SHOW_COMMAND_FLAGS() local
252 rn = rh->rnh_matchaddr(&u, &rh->head); in DB_SHOW_COMMAND_FLAGS()
253 if (rn && ((rn->rn_flags & RNF_ROOT) == 0)) in DB_SHOW_COMMAND_FLAGS()
254 rt = (struct rtentry *)rn; in DB_SHOW_COMMAND_FLAGS()
H A Droute_helpers.c485 struct radix_node *rn; in get_inet_parent_prefix() local
502 rn = (struct radix_node *)rt; in get_inet_parent_prefix()
503 while ((rn = rn_nextprefix(rn)) != NULL) { in get_inet_parent_prefix()
504 rt = RNTORT(rn); in get_inet_parent_prefix()
557 struct radix_node *rn; in get_inet6_parent_prefix() local
574 rn = (struct radix_node *)rt; in get_inet6_parent_prefix()
575 while ((rn = rn_nextprefix(rn)) != NULL) { in get_inet6_parent_prefix()
576 rt = RNTORT(rn); in get_inet6_parent_prefix()
H A Droute_ctl.c1220 struct radix_node *rn; in add_route() local
1226 rn = rnh->rnh_addaddr(rt_key(rt), rt_mask_const(rt), &rnh->head, rt->rt_nodes); in add_route()
1228 if (rn != NULL) { in add_route()
1259 struct radix_node *rn; in delete_route() local
1261 rn = rnh->rnh_deladdr(rt_key_const(rt), rt_mask_const(rt), &rnh->head); in delete_route()
1262 if (rn == NULL) in delete_route()
1264 rt = RNTORT(rn); in delete_route()
1431 rt_checkdelroute(struct radix_node *rn, void *arg) in rt_checkdelroute() argument
1434 struct rtentry *rt = (struct rtentry *)rn; in rt_checkdelroute()
1533 rt_delete_unconditional(struct radix_node *rn, void *arg) in rt_delete_unconditional() argument
[all …]
/freebsd/sbin/routed/
H A Dradix.c810 struct radix_node *rn = h->rnh_treetop; in rn_walktree() local
817 while (rn->rn_b >= 0) in rn_walktree()
818 rn = rn->rn_l; in rn_walktree()
820 base = rn; in rn_walktree()
822 while (rn->rn_p->rn_r == rn && (rn->rn_flags & RNF_ROOT) == 0) in rn_walktree()
823 rn = rn->rn_p; in rn_walktree()
825 for (rn = rn->rn_p->rn_r; rn->rn_b >= 0;) in rn_walktree()
826 rn = rn->rn_l; in rn_walktree()
827 next = rn; in rn_walktree()
829 while ((rn = base)) { in rn_walktree()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_import_os.c105 rdsk_node_t *rn = arg; in zpool_open_func() local
116 if (strncmp(rn->rn_name, EXCLUDED_DIR, EXCLUDED_DIR_LEN) == 0) { in zpool_open_func()
117 char *name = rn->rn_name + EXCLUDED_DIR_LEN; in zpool_open_func()
130 if ((fd = open(rn->rn_name, O_RDONLY|O_NONBLOCK|O_CLOEXEC)) < 0) in zpool_open_func()
163 rn->rn_config = config; in zpool_open_func()
164 rn->rn_num_labels = num_labels; in zpool_open_func()
/freebsd/crypto/openssl/util/
H A Dmkerr.pl558 my $rn;
560 $rn = $strings{$i};
561 $rn = "" if $rn eq '*';
564 $rn = $1;
565 $rn =~ tr/_[A-Z]/ [a-z]/;
566 $strings{$i} = $rn;
568 my $short = " {ERR_PACK($pack_lib, 0, $i), \"$rn\"},";
572 print OUT " {ERR_PACK($pack_lib, 0, $i),\n \"$rn\"},\n";
/freebsd/sys/kern/
H A Dsubr_rangeset.c127 struct rs_el *r, *rn; in rangeset_remove_pred() local
201 rn = rs->rs_dup_data(rs->rs_data_ctx, r); in rangeset_remove_pred()
202 if (rn == NULL) { in rangeset_remove_pred()
206 rn->re_start = end; in rangeset_remove_pred()
207 rn->re_end = r->re_end; in rangeset_remove_pred()
208 error = RANGESET_PCTRIE_INSERT(&rs->rs_trie, rn); in rangeset_remove_pred()
210 rs->rs_free_data(rs->rs_data_ctx, rn); in rangeset_remove_pred()
H A Dvfs_export.c71 static int vfs_free_netcred(struct radix_node *rn, void *w);
108 struct radix_node *rn; in vfs_hang_addrlist() local
205 rn = (*rnh->rnh_addaddr)(saddr, smask, &rnh->rh, np->netc_rnodes); in vfs_hang_addrlist()
207 if (rn == NULL || np != (struct netcred *)rn) { /* already exists */ in vfs_hang_addrlist()
232 vfs_free_netcred(struct radix_node *rn, void *w) in vfs_free_netcred() argument
237 (*rnh->rnh_deladdr) (rn->rn_key, rn->rn_mask, &rnh->rh); in vfs_free_netcred()
238 cred = ((struct netcred *)rn)->netc_anon; in vfs_free_netcred()
241 free(rn, M_NETADDR); in vfs_free_netcred()
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_ipv6address.sh77 $DEBUG && rump.netstat -rn -f inet6
82 $DEBUG && rump.netstat -rn -f inet6
87 $DEBUG && rump.netstat -rn -f inet6
134 $DEBUG && rump.netstat -rn -f inet6
144 $DEBUG && rump.netstat -rn -f inet6
158 $DEBUG && rump.netstat -rn -f inet6
253 $DEBUG && rump.netstat -rn -f inet6

12345