Searched refs:rnh (Results 1 - 20 of 20) sorted by relevance

/freebsd-9.3-release/sys/net/
H A Dradix.h151 #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 Droute.c175 struct radix_node_head **rnh; local
182 /* rnh is [fib=0][af=0]. */
183 rnh = (struct radix_node_head **)V_rt_tables;
185 rnh += table * (AF_MAX+1) + fam;
187 return (rnh);
225 struct radix_node_head **rnh; local
248 rnh = rt_tables_get_rnh_ptr(table, fam);
249 if (rnh == NULL)
250 panic("%s: rnh NULL", __func__);
251 dom->dom_rtattach((void **)rnh, do
265 struct radix_node_head **rnh; local
367 struct radix_node_head *rnh; local
442 struct radix_node_head *rnh; local
546 struct radix_node_head *rnh; local
881 struct radix_node_head *rnh; local
1008 rn_mpath_update(int req, struct rt_addrinfo *info, struct radix_node_head *rnh, struct rtentry **ret_nrt) argument
1123 register struct radix_node_head *rnh; local
1429 struct radix_node_head *rnh; local
1508 struct radix_node_head *rnh; local
[all...]
H A Dradix_mpath.c60 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 Dradix.c1141 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 *rnh; local
[all...]
H A Drtsock.c562 struct radix_node_head *rnh; local
695 rnh = rt_tables_get_rnh(so->so_fibnum,
697 if (rnh == NULL)
700 RADIX_NODE_HEAD_RLOCK(rnh);
709 rt = (struct rtentry *) rnh->rnh_matchaddr(
710 info.rti_info[RTAX_DST], rnh);
712 rt = (struct rtentry *) rnh->rnh_lookup(
714 info.rti_info[RTAX_NETMASK], rnh);
717 RADIX_NODE_HEAD_RUNLOCK(rnh);
729 if (rn_mpath_capable(rnh)
1802 struct radix_node_head *rnh = NULL; /* silence compiler. */ local
[all...]
H A Dif.c845 struct radix_node_head *rnh; local
932 rnh = rt_tables_get_rnh(j, i);
933 if (rnh == NULL)
935 RADIX_NODE_HEAD_LOCK(rnh);
936 (void) rnh->rnh_walktree(rnh, if_rtdel, ifp);
937 RADIX_NODE_HEAD_UNLOCK(rnh);
1367 * Called for each routing entry via the rnh->rnh_walktree() call above
1372 * arg argument passed to rnh->rnh_walktree() - detaching interface
/freebsd-9.3-release/sys/netinet/
H A Din_rmx.c177 struct radix_node_head *rnh; member in struct:rtqk_arg
197 RADIX_NODE_HEAD_WLOCK_ASSERT(ap->rnh);
262 struct radix_node_head *rnh = rock; local
267 arg.rnh = rnh;
270 RADIX_NODE_HEAD_LOCK(rnh);
271 rnh->rnh_walktree(rnh, in_rtqkill, &arg);
272 RADIX_NODE_HEAD_UNLOCK(rnh);
297 RADIX_NODE_HEAD_LOCK(rnh);
308 struct radix_node_head *rnh; local
333 in_setmatchfunc(struct radix_node_head *rnh, int val) argument
346 struct radix_node_head *rnh; local
439 struct radix_node_head *rnh; local
[all...]
H A Dip_icmp.c161 struct radix_node_head *rnh; local
172 if ((rnh = rt_tables_get_rnh(i, AF_INET)) == NULL)
174 RADIX_NODE_HEAD_LOCK(rnh);
175 in_setmatchfunc(rnh, new);
176 RADIX_NODE_HEAD_UNLOCK(rnh);
/freebsd-9.3-release/sys/netpfil/ipfw/
H A Dip_fw_table.c142 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
751 struct radix_node_head *rnh; local
[all...]
/freebsd-9.3-release/sys/netatalk/
H A Dat_rmx.c106 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-9.3-release/sys/netinet6/
H A Din6_rmx.c180 struct radix_node_head *rnh; member in struct:rtqk_arg
193 struct radix_node_head *rnh; member in struct:mtuex_arg
224 in6_mtutimo_one(struct radix_node_head *rnh) argument
228 arg.rnh = rnh;
230 RADIX_NODE_HEAD_LOCK(rnh);
231 rnh->rnh_walktree(rnh, in6_mtuexpire, &arg);
232 RADIX_NODE_HEAD_UNLOCK(rnh);
239 struct radix_node_head *rnh; local
268 struct radix_node_head *rnh; local
[all...]
H A Din6_ifattach.c814 struct radix_node_head *rnh; local
889 rnh = rt_tables_get_rnh(RT_DEFAULT_FIB, AF_INET6);
890 if (rnh != NULL) {
891 RADIX_NODE_HEAD_LOCK(rnh);
899 RADIX_NODE_HEAD_UNLOCK(rnh);
H A Dnd6_rtr.c1555 struct radix_node_head *rnh; local
1582 rnh = rt_tables_get_rnh(rt->rt_fibnum, AF_INET6);
1584 RADIX_NODE_HEAD_LOCK(rnh);
1594 RADIX_NODE_HEAD_UNLOCK(rnh);
2121 struct radix_node_head *rnh; local
2133 rnh = rt_tables_get_rnh(fibnum, AF_INET6);
2134 if (rnh == NULL)
2137 RADIX_NODE_HEAD_LOCK(rnh);
2138 rnh->rnh_walktree(rnh, rt6_deleterout
[all...]
/freebsd-9.3-release/sys/kern/
H A Dvfs_export.c95 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-9.3-release/contrib/ipfilter/
H A Dradix.c1002 struct radix_node_head *rnh; local
1006 R_Malloc(rnh, struct radix_node_head *, sizeof (*rnh));
1007 if (rnh == 0)
1009 *head = rnh;
1010 return rn_inithead0(rnh, off);
1014 rn_inithead0(rnh, off)
1015 struct radix_node_head *rnh;
1020 Bzero(rnh, sizeof (*rnh));
1069 struct radix_node_head *rnh = p; local
1130 struct radix_node_head *rnh; local
[all...]
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_pool.c963 struct radix_node_head *rnh = p; local
966 d = rnh->rnh_deladdr(n->rn_key, NULL, rnh);
975 rn_freehead(rnh)
976 struct radix_node_head *rnh;
979 RADIX_NODE_HEAD_LOCK(rnh);
980 (*rnh->rnh_walktree)(rnh, rn_freenode, rnh);
982 rnh
[all...]
/freebsd-9.3-release/sbin/routed/
H A Dradix.c855 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-9.3-release/usr.bin/netstat/
H A Droute.c148 struct radix_node_head **rnhp, *rnh, head; local
197 if (kget(rnhp, rnh) != 0)
199 if (rnh == NULL)
201 /* Read the rnh data. */
202 if (kget(rnh, head) != 0)
/freebsd-9.3-release/sys/nfs/
H A Dbootp_subr.c361 struct radix_node_head *rnh; local
364 rnh = rt_tables_get_rnh(0, AF_INET);
365 if (rnh == NULL)
367 RADIX_NODE_HEAD_RLOCK(rnh); /* could sleep XXX */
368 bootpboot_p_tree(rnh->rnh_treetop);
369 RADIX_NODE_HEAD_RUNLOCK(rnh);
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dpf.c5727 struct radix_node_head *rnh; local
5753 rnh = rt_tables_get_rnh(0, af);
5754 if (rnh != NULL && rn_mpath_capable(rnh))

Completed in 158 milliseconds