Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_ctl.h
Context not available. | |||||
struct sockaddr *gateway, struct sockaddr *author, struct ifnet *ifp, | struct sockaddr *gateway, struct sockaddr *author, struct ifnet *ifp, | ||||
int flags, int expire_sec); | int flags, int expire_sec); | ||||
enum rib_walk_hook { | typedef int rt_walktree_f_t(struct rtentry *, void *); | ||||
RIB_WALK_HOOK_PRE, /* Hook is called before iteration */ | void rib_walk(int af, u_int fibnum, rt_walktree_f_t *wa_f, void *arg); | ||||
RIB_WALK_HOOK_POST, /* Hook is called after iteration */ | void rib_walk_del(u_int fibnum, int family, rt_filter_f_t *filter_f, | ||||
}; | |||||
typedef int rib_walktree_f_t(struct rtentry *, void *); | |||||
typedef void rib_walk_hook_f_t(struct rib_head *rnh, enum rib_walk_hook stage, | |||||
void *arg); | |||||
void rib_walk(uint32_t fibnum, int af, bool wlock, rib_walktree_f_t *wa_f, | |||||
void *arg); | |||||
void rib_walk_ext(uint32_t fibnum, int af, bool wlock, rib_walktree_f_t *wa_f, | |||||
rib_walk_hook_f_t *hook_f, void *arg); | |||||
void rib_walk_del(u_int fibnum, int family, rib_filter_f_t *filter_f, | |||||
void *arg, bool report); | void *arg, bool report); | ||||
void rib_foreach_table_walk(int family, bool wlock, rib_walktree_f_t *wa_f, | typedef void rt_setwarg_t(struct rib_head *, uint32_t, int, void *); | ||||
rib_walk_hook_f_t *hook_f, void *arg); | void rt_foreach_fib_walk(int af, rt_setwarg_t *, rt_walktree_f_t *, void *); | ||||
void rib_foreach_table_walk_del(int family, rib_filter_f_t *filter_f, void *arg); | void rt_foreach_fib_walk_del(int af, rt_filter_f_t *filter_f, void *arg); | ||||
struct route_nhop_data; | struct route_nhop_data; | ||||
const struct rtentry *rib_lookup_prefix(uint32_t fibnum, int family, | const struct rtentry *rib_lookup_prefix(uint32_t fibnum, int family, | ||||
Context not available. |