/freebsd-11-stable/sys/net/ |
H A D | radix.h | 160 #define RADIX_NODE_HEAD_LOCK_INIT(rnh) \ 161 rw_init_flags(&(rnh)->rnh_lock, "radix node head", 0) 162 #define RADIX_NODE_HEAD_LOCK(rnh) rw_wlock(&(rnh)->rnh_lock) 163 #define RADIX_NODE_HEAD_UNLOCK(rnh) rw_wunlock(&(rnh)->rnh_lock) 164 #define RADIX_NODE_HEAD_RLOCK(rnh) rw_rlock(&(rnh)->rnh_lock) 165 #define RADIX_NODE_HEAD_RUNLOCK(rnh) rw_runlock(&(rnh) [all...] |
H A D | route.c | 144 static struct rtentry *rt_unlinkrte(struct rib_head *rnh, 148 static struct radix_node *rt_mpath_unlink(struct rib_head *rnh, 182 struct rib_head **rnh; local 189 /* rnh is [fib=0][af=0]. */ 190 rnh = (struct rib_head **)V_rt_tables; 192 rnh += table * (AF_MAX+1) + fam; 194 return (rnh); 207 struct rib_head *rnh; local 209 rnh = *rt_tables_get_rnh_ptr(table, fam); 210 KASSERT(rnh ! 279 struct rib_head **rnh; local 315 struct rib_head **rnh; local 371 struct radix_head * const rnh = arg; local 501 struct rib_head *rnh; local 593 struct rib_head *rnh; local 976 struct rib_head *rnh; local 1012 struct rib_head *rnh; member in struct:rt_delinfo 1060 struct rib_head *rnh; local 1174 rt_unlinkrte(struct rib_head *rnh, struct rt_addrinfo *info, int *perror) argument 1355 struct rib_head *rnh; local 1439 rt_mpath_unlink(struct rib_head *rnh, struct rt_addrinfo *info, struct rtentry *rto, int *perror) argument 1509 rt_flowtable_check_route(struct rib_head *rnh, struct rt_addrinfo *info) argument 1581 struct rib_head *rnh; local 1809 rtrequest1_fib_change(struct rib_head *rnh, struct rt_addrinfo *info, struct rtentry **ret_nrt, u_int fibnum) argument 2025 struct rib_head *rnh; local [all...] |
H A D | radix_mpath.c | 61 rt_mpath_capable(struct rib_head *rnh) argument 64 return rnh->rnh_multipath; 170 rt_mpath_conflict(struct rib_head *rnh, struct rtentry *rt, argument 177 rn1 = rnh->rnh_lookup(rt_key(rt), netmask, &rnh->head); 295 struct rib_head *rnh; local 299 rnh = (struct rib_head *)*head; 300 rnh->rnh_multipath = 1; 311 struct rib_head *rnh; local 315 rnh [all...] |
H A D | radix.c | 1145 struct radix_node_head *rnh; local 1148 rnh = *head; 1154 R_Zalloc(rnh, struct radix_node_head *, sizeof (*rnh)); 1156 if (rnh == NULL || rmh == NULL) { 1157 if (rnh != NULL) 1158 R_Free(rnh); 1165 rn_inithead_internal(&rnh->rh, rnh->rnh_nodes, off); 1167 *head = rnh; 1184 struct radix_head * const rnh = arg; local 1196 struct radix_node_head *rnh; local [all...] |
H A D | rtsock.c | 548 struct rib_head *rnh; local 730 rnh = rt_tables_get_rnh(fibnum, saf); 731 if (rnh == NULL) 734 RIB_RLOCK(rnh); 743 rt = (struct rtentry *) rnh->rnh_matchaddr( 744 info.rti_info[RTAX_DST], &rnh->head); 746 rt = (struct rtentry *) rnh->rnh_lookup( 748 info.rti_info[RTAX_NETMASK], &rnh->head); 751 RIB_RUNLOCK(rnh); 763 if (rt_mpath_capable(rnh) 1860 struct rib_head *rnh = NULL; /* silence compiler. */ local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | vfs_export.c | 105 struct radix_node_head *rnh; local 183 rnh = NULL; 187 if ((rnh = nep->ne4) == NULL) { 189 rnh = vfs_create_addrlist_af(&nep->ne4, off); 195 if ((rnh = nep->ne6) == NULL) { 197 rnh = vfs_create_addrlist_af(&nep->ne6, off); 202 if (rnh == NULL) { 209 RADIX_NODE_HEAD_LOCK(rnh); 210 rn = (*rnh->rnh_addaddr)(saddr, smask, &rnh 239 struct radix_node_head *rnh = (struct radix_node_head *) w; local 263 struct radix_node_head *rnh; local 464 struct radix_node_head *rnh; local [all...] |
/freebsd-11-stable/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-11-stable/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-11-stable/sys/netinet6/ |
H A D | in6_rmx.c | 157 struct rib_head *rnh; member in struct:mtuex_arg 182 in6_mtutimo_setwa(struct rib_head *rnh, uint32_t fibum, int af, argument 189 arg->rnh = rnh;
|
H A D | nd6_rtr.c | 1776 struct rib_head *rnh; local 1810 rnh = rt_tables_get_rnh(rt->rt_fibnum, AF_INET6); 1812 RIB_WLOCK(rnh); 1822 RIB_WUNLOCK(rnh);
|
/freebsd-11-stable/sbin/routed/ |
H A D | radix.c | 856 struct radix_node_head *rnh; local 860 rnh = (struct radix_node_head *)rtmalloc(sizeof(*rnh), "rn_inithead"); 861 Bzero(rnh, sizeof (*rnh)); 862 *head = rnh; 863 t = rn_newpair(rn_zeros, off, rnh->rnh_nodes); 864 ttt = rnh->rnh_nodes + 2; 872 rnh->rnh_addaddr = rn_addroute; 873 rnh [all...] |
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_table_algo.c | 405 struct radix_node_head *rnh; local 412 rnh = (struct radix_node_head *)ti->state; 413 ent = (struct radix_addr_entry *)(rnh->rnh_matchaddr(&sa, &rnh->rh)); 423 rnh = (struct radix_node_head *)ti->xstate; 424 xent = (struct radix_addr_xentry *)(rnh->rnh_matchaddr(&sa6, &rnh->rh)); 461 struct radix_node_head * const rnh = arg; local 465 rnh->rnh_deladdr(rn->rn_key, rn->rn_mask, &rnh 475 struct radix_node_head *rnh; local 544 struct radix_node_head *rnh; local 574 struct radix_node_head *rnh; local 710 struct radix_node_head *rnh; local 811 struct radix_node_head *rnh; local [all...] |
/freebsd-11-stable/sys/nfs/ |
H A D | bootp_subr.c | 378 struct rib_head *rnh; local 381 rnh = rt_tables_get_rnh(0, AF_INET); 382 if (rnh == NULL) 384 RIB_RLOCK(rnh); /* could sleep XXX */ 385 bootpboot_p_tree(rnh->rnh_treetop); 386 RIB_RUNLOCK(rnh);
|
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf.c | 5321 struct radix_node_head *rnh; local 5337 rnh = rt_tables_get_rnh(0, af); 5338 if (rnh != NULL && rn_mpath_capable(rnh)) 5425 struct radix_node_head *rnh; local 5428 rnh = rt_tables_get_rnh(0, af); 5429 if (rnh != NULL && rn_mpath_capable(rnh))
|