Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_fw_table_algo.c
Show First 20 Lines • Show All 4,041 Lines • ▼ Show 20 Lines | ta_find_kfib_tentry(void *ta_state, struct table_info *ti, | ||||
return (0); | return (0); | ||||
} | } | ||||
static void | static void | ||||
ta_foreach_kfib(void *ta_state, struct table_info *ti, ta_foreach_f *f, | ta_foreach_kfib(void *ta_state, struct table_info *ti, ta_foreach_f *f, | ||||
void *arg) | void *arg) | ||||
{ | { | ||||
RIB_RLOCK_TRACKER; | |||||
struct rib_head *rh; | struct rib_head *rh; | ||||
int error; | int error; | ||||
rh = rt_tables_get_rnh(ti->data, AF_INET); | rh = rt_tables_get_rnh(ti->data, AF_INET); | ||||
if (rh != NULL) { | if (rh != NULL) { | ||||
RIB_RLOCK(rh); | RIB_RLOCK(rh); | ||||
error = rh->rnh_walktree(&rh->head, (walktree_f_t *)f, arg); | error = rh->rnh_walktree(&rh->head, (walktree_f_t *)f, arg); | ||||
RIB_RUNLOCK(rh); | RIB_RUNLOCK(rh); | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |