Searched refs:weightened_nhop (Results 1 - 14 of 14) sorted by relevance

/freebsd-current/sys/net/route/
H A Dnhgrp_ctl.c78 static void sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops);
81 struct weightened_nhop *wn, int num_nhops, uint32_t uidx, int *perror);
89 const struct weightened_nhop *w_a = a;
90 const struct weightened_nhop *w_b = b;
107 sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops)
110 qsort(wn, num_nhops, sizeof(struct weightened_nhop), wn_cmp_idx);
116 * field in the `struct weightened_nhop`.
121 sort_weightened_nhops_weights(struct weightened_nhop *wn, int num_items)
147 calc_min_mpath_slots_fast(struct weightened_nhop *wn, size_t num_items,
188 calc_min_mpath_slots(struct weightened_nhop *w
[all...]
H A Dnhgrp_var.h58 struct weightened_nhop nhg_nh_weights[0];
H A Droute_ctl.h174 struct weightened_nhop;
176 const struct weightened_nhop *nhgrp_get_nhops(const struct nhgrp_object *nhg,
179 int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops,
H A Dnhop.h164 struct weightened_nhop { struct
226 struct weightened_nhop *wn, int num_nhops, int *perror);
H A Dnhgrp.c118 sizeof(struct weightened_nhop) * a->nhg_nh_count);
131 return (djb_hash(key, sizeof(struct weightened_nhop) * obj->nhg_nh_count));
H A Droute_helpers.c262 notify_add(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src,
278 notify_del(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src,
298 const struct weightened_nhop *wn_old, *wn_new;
299 struct weightened_nhop tmp = { NULL, 0 };
384 const struct weightened_nhop *wn;
H A Droute_rtentry.c117 const struct weightened_nhop *wn;
H A Droute_ctl.c1138 const struct weightened_nhop *wn = NULL;
1139 struct weightened_nhop *wn_new;
1158 wn_new = mallocarray(num_nhops, sizeof(struct weightened_nhop),
1165 memcpy(wn_new, wn, num_nhops * sizeof(struct weightened_nhop));
1512 const struct weightened_nhop *wn;
H A Droute_var.h291 struct weightened_nhop;
/freebsd-current/sys/netlink/route/
H A Dnexthop.c85 struct weightened_nhop *un_nhgrp_src; /* nexthops for nhg */
272 const struct weightened_nhop *wn;
273 struct weightened_nhop *wn_new, wn_base[MAX_STACK_NHOPS];
306 wn_new = malloc(num_nhops * sizeof(struct weightened_nhop), M_TEMP, M_NOWAIT);
409 struct weightened_nhop *wn = unhop->un_nhgrp_src;
756 struct weightened_nhop *wn;
H A Drt.c183 const struct weightened_nhop *wn = nhgrp_get_nhops(nhg, &num_nhops);
846 struct weightened_nhop *wn = npt_alloc(npt, sizeof(*wn) * num_nhops);
/freebsd-current/sys/netinet/
H A Din_fib.c198 const struct weightened_nhop *wn;
/freebsd-current/sys/netinet6/
H A Din6_fib.c207 const struct weightened_nhop *wn;
/freebsd-current/sys/net/
H A Drtsock.c721 const struct weightened_nhop *wn;
2223 const struct weightened_nhop *wn;

Completed in 257 milliseconds