| /freebsd-13-stable/sys/net/route/ |
| HD | 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 …]
|
| HD | 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()
|
| HD | route_tables.c | 82 VNET_DEFINE_STATIC(struct rib_head **, rt_tables); 203 populate_kernel_routes(struct rib_head **new_rt_tables, struct rib_head *rh) in populate_kernel_routes() 206 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() 330 struct rib_head *rnh; in rtables_destroy() 366 static inline struct rib_head * 369 struct rib_head **prnh; in rt_tables_get_rnh_ptr() 385 struct rib_head * 395 struct rib_head *rnh; in rt_tables_get_gen()
|
| HD | route_ctl.c | 76 static int add_route_byinfo(struct rib_head *rnh, struct rt_addrinfo *info, 78 static int change_route_byinfo(struct rib_head *rnh, struct rtentry *rt, 82 static int add_route_flags(struct rib_head *rnh, struct rtentry *rt, 85 static int add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt, 90 static int add_route(struct rib_head *rnh, struct rtentry *rt, 92 static int delete_route(struct rib_head *rnh, struct rtentry *rt, 94 static int rt_delete_conditional(struct rib_head *rnh, struct rtentry *rt, 101 static bool rib_can_multipath(struct rib_head *rh); 145 static struct rib_head * 148 struct rib_head *rnh; in get_rnh() [all …]
|
| HD | route_ctl.h | 100 typedef void rib_walk_hook_f_t(struct rib_head *rnh, enum rib_walk_hook stage, 106 void rib_walk_ext_internal(struct rib_head *rnh, bool wlock, 108 void rib_walk_ext_locked(struct rib_head *rnh, rib_walktree_f_t *wa_f, 158 uint32_t nhops_get_count(struct rib_head *rh); 165 uint32_t nhgrp_get_count(struct rib_head *rh); 166 int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, 176 typedef void rib_subscription_cb_t(struct rib_head *rnh, struct rib_cmd_info *rc, 182 struct rib_subscription *rib_subscribe_internal(struct rib_head *rnh, 185 struct rib_subscription *rib_subscribe_locked(struct rib_head *rnh, 189 void rib_notify(struct rib_head *rnh, enum rib_subscription_type type,
|
| HD | route_temporal.c | 85 struct rib_head *rnh; in expire_callout() 89 rnh = (struct rib_head *)arg; in expire_callout() 125 tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh) in tmproutes_update() 150 tmproutes_init(struct rib_head *rh) in tmproutes_init() 157 tmproutes_destroy(struct rib_head *rh) in tmproutes_destroy()
|
| HD | 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);
|
| HD | route_ifaddrs.c | 210 struct rib_head *rh_dst = (struct rib_head *)arg; in pick_kernel_route() 231 rib_copy_kernel_routes(struct rib_head *rh_src, struct rib_head *rh_dst) in rib_copy_kernel_routes()
|
| HD | 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 …]
|
| HD | nhop_ctl.c | 85 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w); 255 nhop_create_from_info(struct rib_head *rnh, struct rt_addrinfo *info, in nhop_create_from_info() 314 struct rib_head *rnh = nhop_get_rh(nh); in nhop_get_nhop() 326 nhop_get_nhop_internal(struct rib_head *rnh, struct nhop_object *nh, int *perror) in nhop_get_nhop_internal() 370 struct rib_head *rnh = nhop_get_rh(nh); in nhop_get_unlinked() 435 nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, in nhop_create_from_nhop() 1032 struct rib_head * 1054 nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu) in nhops_update_ifmtu() 1138 dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w) in dump_nhop_entry() 1208 nhops_get_count(struct rib_head *rh) in nhops_get_count() [all …]
|
| HD | nhgrp_ctl.c | 467 struct rib_head *rh = rt_tables_get_rnh(fibnum, family); in nhgrp_alloc() 648 nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, in nhgrp_get_group() 668 nhgrp_get_filtered_group(struct rib_head *rh, const struct rtentry *rt, in nhgrp_get_filtered_group() 727 nhgrp_get_addition_group(struct rib_head *rh, struct route_nhop_data *rnd_orig, in nhgrp_get_addition_group() 837 dump_nhgrp_entry(struct rib_head *rh, const struct nhgrp_priv *nhg_priv, in dump_nhgrp_entry() 927 nhgrp_get_count(struct rib_head *rh) in nhgrp_get_count() 942 nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) in nhgrp_dump_sysctl()
|
| HD | route_ddb.c | 169 struct rib_head *rnh; in DB_SHOW_COMMAND() 208 struct rib_head *rh; in DB_SHOW_COMMAND_FLAGS()
|
| HD | 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()
|
| HD | nhop.h | 174 struct rib_head; 222 struct rib_head *nhop_get_rh(const struct nhop_object *nh);
|
| HD | 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-13-stable/sys/netinet6/ |
| HD | in6_rmx.c | 146 struct rib_head * 149 struct rib_head *rh; in in6_inithead() 169 in6_detachhead(struct rib_head *rh) in in6_detachhead()
|
| HD | 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()
|
| HD | in6_fib.c | 145 struct rib_head *rh; in fib6_lookup() 225 struct rib_head *rh; in lookup_nhop() 296 struct rib_head *rh; in fib6_lookup_rt()
|
| /freebsd-13-stable/sys/sys/ |
| HD | domain.h | 47 struct rib_head; 62 struct rib_head *(*dom_rtattach) /* initialize routing table */ 65 (struct rib_head *);
|
| /freebsd-13-stable/sys/netinet/ |
| HD | 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()
|
| HD | 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()
|
| HD | in_fib.c | 137 struct rib_head *rh; in fib4_lookup() 215 struct rib_head *rh; in lookup_nhop() 283 struct rib_head *rh; in fib4_lookup_rt()
|
| HD | in_var.h | 452 struct rib_head; 487 struct rib_head *in_inithead(uint32_t fibnum); 489 void in_detachhead(struct rib_head *rh);
|
| /freebsd-13-stable/sys/net/ |
| HD | route.c | 96 struct rib_head * 99 struct rib_head *rh; in rt_table_init() 101 rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); in rt_table_init() 150 rt_table_destroy(struct rib_head *rh) in rt_table_destroy() 421 struct rib_head *rh; in rib_lookup_info() 656 struct rib_head *rnh; in rt_updatemtu()
|
| HD | route.h | 421 struct rib_head; 434 struct rib_head *rt_table_init(int, int, u_int); 435 void rt_table_destroy(struct rib_head *);
|