/freebsd/sys/net/route/ |
H A D | route_var.h | 49 struct rib_head { struct 118 rib_bump_gen(struct rib_head *rnh) in rib_bump_gen() 127 struct rib_head *rt_tables_get_rnh(uint32_t table, sa_family_t family); 207 void tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh); 208 void tmproutes_init(struct rib_head *rh); 209 void tmproutes_destroy(struct rib_head *rh); 213 int change_route(struct rib_head *rnh, struct rtentry *rt, 215 int change_route_conditional(struct rib_head *rnh, struct rtentry *rt, 218 struct rtentry *lookup_prefix(struct rib_head *rnh, 220 struct rtentry *lookup_prefix_rt(struct rib_head *rnh, const struct rtentry *rt, [all …]
|
H A D | route_ctl.h | 36 struct rib_head *rt_tables_get_rnh_safe(uint32_t table, sa_family_t family); 102 typedef void rib_walk_hook_f_t(struct rib_head *rnh, enum rib_walk_hook stage, 108 void rib_walk_ext_internal(struct rib_head *rnh, bool wlock, 110 void rib_walk_ext_locked(struct rib_head *rnh, rib_walktree_f_t *wa_f, 127 rib_lookup_prefix_plen(struct rib_head *rnh, struct sockaddr *dst, int plen, 158 uint32_t nhops_get_count(struct rib_head *rh); 164 struct rib_head *rh; 178 uint32_t nhgrp_get_count(struct rib_head *rh); 179 int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, 189 typedef void rib_subscription_cb_t(struct rib_head *rnh, struct rib_cmd_info *rc, [all …]
|
H A D | route_subscription.c | 48 struct rib_head *rnh; 56 rib_notify(struct rib_head *rnh, enum rib_subscription_type type, in rib_notify() 95 struct rib_head *rnh; in rib_subscribe() 107 rib_subscribe_internal(struct rib_head *rnh, rib_subscription_cb_t *f, void *arg, in rib_subscribe_internal() 127 rib_subscribe_locked(struct rib_head *rnh, rib_subscription_cb_t *f, void *arg, in rib_subscribe_locked() 151 struct rib_head *rnh = rs->rnh; in rib_unsubscribe() 165 struct rib_head *rnh = rs->rnh; in rib_unsubscribe_locked() 189 rib_init_subscriptions(struct rib_head *rnh) in rib_init_subscriptions() 196 rib_destroy_subscriptions(struct rib_head *rnh) in rib_destroy_subscriptions()
|
H A D | route_tables.c | 83 VNET_DEFINE_STATIC(struct rib_head **, rt_tables); 204 populate_kernel_routes(struct rib_head **new_rt_tables, struct rib_head *rh) in populate_kernel_routes() 207 struct rib_head *rh_src = new_rt_tables[i * (AF_MAX + 1) + rh->rib_family]; in populate_kernel_routes() 222 struct rib_head **prnh, *rh; in grow_rtables() 223 struct rib_head **new_rt_tables, **old_rt_tables; in grow_rtables() 323 struct rib_head *rnh; in rtables_destroy() 359 static inline struct rib_head * 362 struct rib_head **prnh; in rt_tables_get_rnh_ptr() 378 struct rib_head * 385 struct rib_head * [all …]
|
H A D | route_ctl.c | 77 static int add_route_byinfo(struct rib_head *rnh, struct rt_addrinfo *info, 79 static int change_route_byinfo(struct rib_head *rnh, struct rtentry *rt, 83 static int add_route_flags(struct rib_head *rnh, struct rtentry *rt, 86 static int add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt, 91 static int add_route(struct rib_head *rnh, struct rtentry *rt, 93 static int delete_route(struct rib_head *rnh, struct rtentry *rt, 95 static int rt_delete_conditional(struct rib_head *rnh, struct rtentry *rt, 104 static bool rib_can_multipath(struct rib_head *rh); 147 static struct rib_head * 150 struct rib_head *rnh; in get_rnh() [all …]
|
H A D | route_temporal.c | 84 struct rib_head *rnh; in expire_callout() 88 rnh = (struct rib_head *)arg; in expire_callout() 124 tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh) in tmproutes_update() 149 tmproutes_init(struct rib_head *rh) in tmproutes_init() 156 tmproutes_destroy(struct rib_head *rh) in tmproutes_destroy()
|
H A D | fib_algo.h | 78 typedef enum flm_op_result flm_change_t(struct rib_head *rnh, 80 typedef enum flm_op_result flm_change_batch_t(struct rib_head *rnh, 127 void fib_get_rtable_info(struct rib_head *rh, struct rib_rtable_info *rinfo); 128 struct rib_head *fib_get_rh(struct fib_data *fd);
|
H A D | route_ifaddrs.c | 209 struct rib_head *rh_dst = (struct rib_head *)arg; in pick_kernel_route() 230 rib_copy_kernel_routes(struct rib_head *rh_src, struct rib_head *rh_dst) in rib_copy_kernel_routes()
|
H A D | fib_algo.c | 184 struct rib_head *fd_rh; /* RIB table we're attached to */ 200 static void set_algo_fixed(struct rib_head *rh); 201 static bool is_algo_fixed(struct rib_head *rh); 206 static struct fib_lookup_module *fib_check_best_algo(struct rib_head *rh, 772 handle_rtable_change_cb(struct rib_head *rnh, struct rib_cmd_info *rc, in handle_rtable_change_cb() 916 sync_algo_end_cb(struct rib_head *rnh, enum rib_walk_hook stage, void *_data) in sync_algo_end_cb() 1048 fib_cleanup_algo(struct rib_head *rh, bool keep_first, bool in_callout) in fib_cleanup_algo() 1081 fib_destroy_rib(struct rib_head *rh) in fib_destroy_rib() 1154 try_setup_fd_instance(struct fib_lookup_module *flm, struct rib_head *rh, in try_setup_fd_instance() 1248 setup_fd_instance(struct fib_lookup_module *flm, struct rib_head *rh, in setup_fd_instance() [all …]
|
H A D | nhop_ctl.c | 86 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w); 256 nhop_create_from_info(struct rib_head *rnh, struct rt_addrinfo *info, in nhop_create_from_info() 315 struct rib_head *rnh = nhop_get_rh(nh); in nhop_get_nhop() 327 nhop_get_nhop_internal(struct rib_head *rnh, struct nhop_object *nh, int *perror) in nhop_get_nhop_internal() 371 struct rib_head *rnh = nhop_get_rh(nh); in nhop_get_unlinked() 436 nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, in nhop_create_from_nhop() 1033 struct rib_head * 1055 nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu) in nhops_update_ifmtu() 1189 dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w) in dump_nhop_entry() 1259 nhops_get_count(struct rib_head *rh) in nhops_get_count() [all …]
|
H A D | nhgrp_ctl.c | 464 struct rib_head *rh = rt_tables_get_rnh(fibnum, family); in nhgrp_alloc() 645 nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, in nhgrp_get_group() 665 nhgrp_get_filtered_group(struct rib_head *rh, const struct rtentry *rt, in nhgrp_get_filtered_group() 724 nhgrp_get_addition_group(struct rib_head *rh, struct route_nhop_data *rnd_orig, in nhgrp_get_addition_group() 834 dump_nhgrp_entry(struct rib_head *rh, const struct nhgrp_priv *nhg_priv, in dump_nhgrp_entry() 924 nhgrp_get_count(struct rib_head *rh) in nhgrp_get_count() 939 nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) in nhgrp_dump_sysctl()
|
H A D | route_ddb.c | 170 struct rib_head *rnh; in DB_SHOW_COMMAND() 209 struct rib_head *rh; in DB_SHOW_COMMAND_FLAGS()
|
H A D | route_helpers.c | 76 rib_walk_ext_locked(struct rib_head *rnh, rib_walktree_f_t *wa_f, in rib_walk_ext_locked() 96 rib_walk_ext_internal(struct rib_head *rnh, bool wlock, rib_walktree_f_t *wa_f, in rib_walk_ext_internal() 116 struct rib_head *rnh; in rib_walk_ext() 150 struct rib_head *rnh = rt_tables_get_rnh(fibnum, family); in rib_walk_from()
|
H A D | nhop.h | 174 struct rib_head; 222 struct rib_head *nhop_get_rh(const struct nhop_object *nh);
|
H A D | nhop.c | 76 nhops_init_rib(struct rib_head *rh) in nhops_init_rib() 138 nhops_destroy_rib(struct rib_head *rh) in nhops_destroy_rib()
|
/freebsd/sys/sys/ |
H A D | domain.h | 46 struct rib_head; 57 struct rib_head *(*dom_rtattach) /* initialize routing table */ 60 (struct rib_head *);
|
/freebsd/sys/netinet6/ |
H A D | in6_rmx.c | 140 struct rib_head * 143 struct rib_head *rh; in in6_inithead() 163 in6_detachhead(struct rib_head *rh)
|
H A D | in6_fib_algo.c | 219 lradix6_change_cb(struct rib_head *rnh, struct rib_cmd_info *rc, in lradix6_change_cb() 244 struct rib_head *rh; 251 struct rib_head *rh = (struct rib_head *)algo_data; in radix6_lookup() 277 struct rib_head *rh = rh = rt_tables_get_rnh(fibnum, AF_INET6); in fib6_radix_lookup_nh() 335 radix6_change_cb(struct rib_head *rnh, struct rib_cmd_info *rc, in radix6_change_cb()
|
H A D | in6_fib.c | 146 struct rib_head *rh; in fib6_lookup() 226 struct rib_head *rh; in lookup_nhop() 297 struct rib_head *rh; in fib6_lookup_rt()
|
/freebsd/sys/netinet/ |
H A D | in_rmx.c | 116 struct rib_head * 119 struct rib_head *rh; in in_inithead() 133 in_detachhead(struct rib_head *rh) in in_detachhead()
|
H A D | in_fib_algo.c | 479 bsearch4_change_cb(struct rib_head *rnh, struct rib_cmd_info *rc, in bsearch4_change_cb() 649 lradix4_change_cb(struct rib_head *rnh, struct rib_cmd_info *rc, in lradix4_change_cb() 674 struct rib_head *rh; 681 struct rib_head *rh = (struct rib_head *)algo_data; in radix4_lookup() 751 radix4_change_cb(struct rib_head *rnh, struct rib_cmd_info *rc, in radix4_change_cb()
|
H A D | in_fib.c | 138 struct rib_head *rh; in fib4_lookup() 216 struct rib_head *rh; in lookup_nhop() 284 struct rib_head *rh; in fib4_lookup_rt()
|
H A D | in_var.h | 440 struct rib_head; 475 struct rib_head *in_inithead(uint32_t fibnum); 477 void in_detachhead(struct rib_head *rh);
|
/freebsd/sys/net/ |
H A D | route.h | 417 struct rib_head; 429 struct rib_head *rt_table_init(int, int, u_int); 430 void rt_table_destroy(struct rib_head *);
|
H A D | route.c | 99 struct rib_head * 102 struct rib_head *rh; in rt_table_init() 104 rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); in rt_table_init() 153 rt_table_destroy(struct rib_head *rh) in rt_table_destroy() 514 struct rib_head *rnh; in rt_updatemtu()
|