Home
last modified time | relevance | path

Searched refs:rib_head (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/sys/net/route/
H A Droute_var.h49 struct rib_head { struct
118 rib_bump_gen(struct rib_head *rnh) in rib_bump_gen()
208 void tmproutes_init(struct rib_head *rh);
209 void tmproutes_destroy(struct rib_head *rh);
218 struct rtentry *lookup_prefix(struct rib_head *rnh,
240 void rib_init_subscriptions(struct rib_head *rnh);
244 void rib_copy_kernel_routes(struct rib_head *rh_src, struct rib_head *rh_dst);
248 int nhops_init_rib(struct rib_head *rh);
249 void nhops_destroy_rib(struct rib_head *rh);
310 int nhgrp_get_addition_group(struct rib_head *rnh,
[all …]
H A Droute_ctl.h36 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);
195 struct rib_subscription *rib_subscribe_internal(struct rib_head *rnh,
198 struct rib_subscription *rib_subscribe_locked(struct rib_head *rnh,
[all …]
H A Droute_subscription.c48 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 Droute_tables.c83 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()
328 struct rib_head *rnh; in rtables_destroy()
364 static inline struct rib_head *
367 struct rib_head **prnh; in rt_tables_get_rnh_ptr()
383 struct rib_head *
390 struct rib_head *
[all …]
H A Droute_ctl.c147 static struct rib_head *
150 struct rib_head *rnh; in get_rnh()
171 rib_can_multipath(struct rib_head *rh) in rib_can_multipath()
695 struct rib_head *rnh; in rib_add_route()
923 struct rib_head *rnh; in rib_del_route()
1043 struct rib_head *rnh; in rib_change_route()
1415 struct rib_head *rnh;
1474 struct rib_head *rnh; in rib_walk_del()
1533 struct rib_head *rnh = (struct rib_head *)arg; in rt_delete_unconditional()
1547 rib_flush_routes(struct rib_head *rnh) in rib_flush_routes()
[all …]
H A Droute_temporal.c84 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 Dfib_algo.h78 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 Droute_ifaddrs.c209 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 Dfib_algo.c184 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);
1081 fib_destroy_rib(struct rib_head *rh) in fib_destroy_rib()
1248 setup_fd_instance(struct fib_lookup_module *flm, struct rib_head *rh, in setup_fd_instance()
1460 struct rib_head *rh = NULL; in set_fib_algo()
1746 struct rib_head *
1865 set_algo_fixed(struct rib_head *rh) in set_algo_fixed()
1882 is_algo_fixed(struct rib_head *rh) in is_algo_fixed()
1949 fib_select_algo_initial(struct rib_head *rh, struct fib_dp *dp) in fib_select_algo_initial()
[all …]
H A Dnhop_ctl.c86 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 Dnhgrp_ctl.c464 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 Droute_ddb.c170 struct rib_head *rnh; in DB_SHOW_COMMAND()
209 struct rib_head *rh; in DB_SHOW_COMMAND_FLAGS()
H A Droute_helpers.c76 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 Dnhop.h174 struct rib_head;
222 struct rib_head *nhop_get_rh(const struct nhop_object *nh);
H A Dnhop.c76 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 Ddomain.h46 struct rib_head;
57 struct rib_head *(*dom_rtattach) /* initialize routing table */
60 (struct rib_head *);
/freebsd/sys/netinet6/
H A Din6_rmx.c140 struct rib_head *
143 struct rib_head *rh; in in6_inithead()
163 in6_detachhead(struct rib_head *rh) in in6_detachhead()
H A Din6_fib_algo.c219 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 Din6_fib.c146 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 Din_rmx.c116 struct rib_head *
119 struct rib_head *rh; in in_inithead()
133 in_detachhead(struct rib_head *rh) in in_detachhead()
H A Din_fib_algo.c479 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 Din_fib.c138 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 Din_var.h440 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 Droute.h416 struct rib_head;
428 struct rib_head *rt_table_init(int, int, u_int);
429 void rt_table_destroy(struct rib_head *);
H A Droute.c95 struct rib_head *
98 struct rib_head *rh; in rt_table_init()
100 rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); in rt_table_init()
149 rt_table_destroy(struct rib_head *rh) in rt_table_destroy()
510 struct rib_head *rnh; in rt_updatemtu()

12