/freebsd-10.3-release/sys/net/ |
H A D | radix.h | 151 #define RADIX_NODE_HEAD_LOCK_INIT(rnh) \ 152 rw_init_flags(&(rnh)->rnh_lock, "radix node head", 0) 153 #define RADIX_NODE_HEAD_LOCK(rnh) rw_wlock(&(rnh)->rnh_lock) 154 #define RADIX_NODE_HEAD_UNLOCK(rnh) rw_wunlock(&(rnh)->rnh_lock) 155 #define RADIX_NODE_HEAD_RLOCK(rnh) rw_rlock(&(rnh)->rnh_lock) 156 #define RADIX_NODE_HEAD_RUNLOCK(rnh) rw_runlock(&(rnh) [all...] |
H A D | route.c | 166 struct radix_node_head **rnh; local 173 /* rnh is [fib=0][af=0]. */ 174 rnh = (struct radix_node_head **)V_rt_tables; 176 rnh += table * (AF_MAX+1) + fam; 178 return (rnh); 258 struct radix_node_head **rnh; local 282 rnh = rt_tables_get_rnh_ptr(table, fam); 283 if (rnh == NULL) 284 panic("%s: rnh NULL", __func__); 285 dom->dom_rtattach((void **)rnh, do 299 struct radix_node_head **rnh; local 404 struct radix_node_head *rnh; local 479 struct radix_node_head *rnh; local 582 struct radix_node_head *rnh; local 917 struct radix_node_head *rnh; local 1044 rn_mpath_update(int req, struct rt_addrinfo *info, struct radix_node_head *rnh, struct rtentry **ret_nrt) argument 1159 register struct radix_node_head *rnh; local 1445 struct radix_node_head *rnh; local 1524 struct radix_node_head *rnh; local [all...] |
H A D | radix_mpath.c | 60 rn_mpath_capable(struct radix_node_head *rnh) argument 63 return rnh->rnh_multipath; 162 rt_mpath_conflict(struct radix_node_head *rnh, struct rtentry *rt, argument 169 rn1 = rnh->rnh_lookup(rt_key(rt), netmask, rnh); 267 struct radix_node_head *rnh; local 271 rnh = (struct radix_node_head *)*head; 272 rnh->rnh_multipath = 1; 283 struct radix_node_head *rnh; local 287 rnh [all...] |
H A D | radix.c | 1141 struct radix_node_head *rnh; local 1145 R_Zalloc(rnh, struct radix_node_head *, sizeof (*rnh)); 1146 if (rnh == 0) 1149 RADIX_NODE_HEAD_LOCK_INIT(rnh); 1151 *head = rnh; 1152 t = rn_newpair(rn_zeros, off, rnh->rnh_nodes); 1153 ttt = rnh->rnh_nodes + 2; 1156 tt = t->rn_left; /* ... which in turn is rnh->rnh_nodes */ 1161 rnh 1174 struct radix_node_head *rnh; local 1189 struct radix_node_head *rnh; local 1210 struct radix_node_head * const rnh = arg; local 1222 struct radix_node_head *rnh; local [all...] |
H A D | rtsock.c | 557 struct radix_node_head *rnh; local 716 rnh = rt_tables_get_rnh(so->so_fibnum, 718 if (rnh == NULL) 721 RADIX_NODE_HEAD_RLOCK(rnh); 730 rt = (struct rtentry *) rnh->rnh_matchaddr( 731 info.rti_info[RTAX_DST], rnh); 733 rt = (struct rtentry *) rnh->rnh_lookup( 735 info.rti_info[RTAX_NETMASK], rnh); 738 RADIX_NODE_HEAD_RUNLOCK(rnh); 750 if (rn_mpath_capable(rnh) 1891 struct radix_node_head *rnh = NULL; /* silence compiler. */ local [all...] |
H A D | if.c | 901 struct radix_node_head *rnh; local 1000 rnh = rt_tables_get_rnh(j, i); 1001 if (rnh == NULL) 1003 RADIX_NODE_HEAD_LOCK(rnh); 1004 (void) rnh->rnh_walktree(rnh, if_rtdel, ifp); 1005 RADIX_NODE_HEAD_UNLOCK(rnh); 1447 * Called for each routing entry via the rnh->rnh_walktree() call above 1452 * arg argument passed to rnh->rnh_walktree() - detaching interface
|
/freebsd-10.3-release/sys/netinet/ |
H A D | in_rmx.c | 177 struct radix_node_head *rnh; member in struct:rtqk_arg 197 RADIX_NODE_HEAD_WLOCK_ASSERT(ap->rnh); 258 struct radix_node_head *rnh = rock; local 263 arg.rnh = rnh; 266 RADIX_NODE_HEAD_LOCK(rnh); 267 rnh->rnh_walktree(rnh, in_rtqkill, &arg); 268 RADIX_NODE_HEAD_UNLOCK(rnh); 293 RADIX_NODE_HEAD_LOCK(rnh); 304 struct radix_node_head *rnh; local 329 in_setmatchfunc(struct radix_node_head *rnh, int val) argument 342 struct radix_node_head *rnh; local 435 struct radix_node_head *rnh; local [all...] |
H A D | ip_icmp.c | 165 struct radix_node_head *rnh; local 176 if ((rnh = rt_tables_get_rnh(i, AF_INET)) == NULL) 178 RADIX_NODE_HEAD_LOCK(rnh); 179 in_setmatchfunc(rnh, new); 180 RADIX_NODE_HEAD_UNLOCK(rnh);
|
/freebsd-10.3-release/sys/netatalk/ |
H A D | at_rmx.c | 106 struct radix_node_head *rnh; local 111 rnh = *head; 112 rnh->rnh_addaddr = at_addroute; 113 rnh->rnh_deladdr = at_delroute; 114 rnh->rnh_matchaddr = at_matroute; 115 rnh->rnh_lookup = at_lookup;
|
/freebsd-10.3-release/sys/netpfil/ipfw/ |
H A D | ip_fw_table.c | 142 struct radix_node_head *rnh, **rnh_ptr; local 250 if ((rnh = *rnh_ptr) == NULL) { 253 if (!rn_inithead((void **)&rnh, offset)) { 261 rn_detachhead((void **)&rnh); 262 rnh = *rnh_ptr; 270 *rnh_ptr = rnh; 280 rn = rnh->rnh_addaddr(addr_ptr, mask_ptr, rnh, ent_ptr); 294 struct radix_node_head *rnh, **rnh_ptr; local 375 if ((rnh 398 struct radix_node_head * const rnh = arg; local 411 struct radix_node_head *rnh, *xrnh; local 474 struct radix_node_head **tables, **xtables, *rnh; local 537 struct radix_node_head *rnh; local 559 struct radix_node_head *rnh; local 607 struct radix_node_head *rnh; local 642 struct radix_node_head *rnh; local 665 struct radix_node_head *rnh; local 752 struct radix_node_head *rnh; local [all...] |
/freebsd-10.3-release/sys/netinet6/ |
H A D | in6_rmx.c | 180 struct radix_node_head *rnh; member in struct:rtqk_arg 193 struct radix_node_head *rnh; member in struct:mtuex_arg 223 in6_mtutimo_one(struct radix_node_head *rnh) argument 227 arg.rnh = rnh; 229 RADIX_NODE_HEAD_LOCK(rnh); 230 rnh->rnh_walktree(rnh, in6_mtuexpire, &arg); 231 RADIX_NODE_HEAD_UNLOCK(rnh); 238 struct radix_node_head *rnh; local 267 struct radix_node_head *rnh; local [all...] |
H A D | in6_ifattach.c | 801 struct radix_node_head *rnh; local 880 rnh = rt_tables_get_rnh(RT_DEFAULT_FIB, AF_INET6); 881 if (rnh != NULL) { 882 RADIX_NODE_HEAD_LOCK(rnh); 890 RADIX_NODE_HEAD_UNLOCK(rnh);
|
H A D | nd6_rtr.c | 1530 struct radix_node_head *rnh; local 1557 rnh = rt_tables_get_rnh(rt->rt_fibnum, AF_INET6); 1559 RADIX_NODE_HEAD_LOCK(rnh); 1569 RADIX_NODE_HEAD_UNLOCK(rnh); 2102 struct radix_node_head *rnh; local 2111 rnh = rt_tables_get_rnh(fibnum, AF_INET6); 2112 if (rnh == NULL) 2115 RADIX_NODE_HEAD_LOCK(rnh); 2116 rnh->rnh_walktree(rnh, rt6_deleterout [all...] |
/freebsd-10.3-release/sys/kern/ |
H A D | vfs_export.c | 95 register struct radix_node_head *rnh; local 167 if ((rnh = nep->ne_rtable[i]) == NULL) { 191 if ((rnh = nep->ne_rtable[i]) == NULL) { 199 RADIX_NODE_HEAD_LOCK(rnh); 200 rn = (*rnh->rnh_addaddr)(saddr, smask, rnh, np->netc_rnodes); 201 RADIX_NODE_HEAD_UNLOCK(rnh); 229 struct radix_node_head *rnh = (struct radix_node_head *) w; local 232 (*rnh->rnh_deladdr) (rn->rn_key, rn->rn_mask, rnh); 247 struct radix_node_head *rnh; local 429 register struct radix_node_head *rnh; local [all...] |
/freebsd-10.3-release/contrib/ipfilter/ |
H A D | radix_ipf.c | 1024 void delete_addr(ipf_rdx_head_t *rnh, int item); 1025 void dumptree(ipf_rdx_head_t *rnh); 1030 void test_addr(ipf_rdx_head_t *rnh, int pref, addrfamily_t *, int); 1212 printroots(rnh) 1213 ipf_rdx_head_t *rnh; 1216 GNAME(&rnh->nodes[0]), 1217 rnh->nodes[0].index, GNAME(rnh->nodes[0].parent), 1218 GNAME(rnh->nodes[0].left), GNAME(rnh 1234 ipf_rdx_head_t *rnh; local [all...] |
/freebsd-10.3-release/sys/contrib/ipfilter/netinet/ |
H A D | radix_ipf.c | 1024 void delete_addr(ipf_rdx_head_t *rnh, int item); 1025 void dumptree(ipf_rdx_head_t *rnh); 1030 void test_addr(ipf_rdx_head_t *rnh, int pref, addrfamily_t *, int); 1212 printroots(rnh) 1213 ipf_rdx_head_t *rnh; 1216 GNAME(&rnh->nodes[0]), 1217 rnh->nodes[0].index, GNAME(rnh->nodes[0].parent), 1218 GNAME(rnh->nodes[0].left), GNAME(rnh 1234 ipf_rdx_head_t *rnh; local [all...] |
/freebsd-10.3-release/sbin/routed/ |
H A D | radix.c | 855 struct radix_node_head *rnh; local 859 rnh = (struct radix_node_head *)rtmalloc(sizeof(*rnh), "rn_inithead"); 860 Bzero(rnh, sizeof (*rnh)); 861 *head = rnh; 862 t = rn_newpair(rn_zeros, off, rnh->rnh_nodes); 863 ttt = rnh->rnh_nodes + 2; 871 rnh->rnh_addaddr = rn_addroute; 872 rnh [all...] |
/freebsd-10.3-release/usr.bin/netstat/ |
H A D | route.c | 398 struct radix_node_head **rnhp, *rnh, head; local 432 if (kget(rnhp, rnh) != 0) 434 if (rnh == NULL) 436 /* Read the rnh data. */ 437 if (kget(rnh, head) != 0)
|
/freebsd-10.3-release/sys/nfs/ |
H A D | bootp_subr.c | 371 struct radix_node_head *rnh; local 374 rnh = rt_tables_get_rnh(0, AF_INET); 375 if (rnh == NULL) 377 RADIX_NODE_HEAD_RLOCK(rnh); /* could sleep XXX */ 378 bootpboot_p_tree(rnh->rnh_treetop); 379 RADIX_NODE_HEAD_RUNLOCK(rnh);
|
/freebsd-10.3-release/sys/netpfil/pf/ |
H A D | pf.c | 5200 struct radix_node_head *rnh; local 5218 rnh = rt_tables_get_rnh(0, af); 5219 if (rnh != NULL && rn_mpath_capable(rnh))
|