weightened_nhop
sizeof(struct weightened_nhop) * a->nhg_nh_count);
return (djb_hash(key, sizeof(struct weightened_nhop) * obj->nhg_nh_count));
sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops)
qsort(wn, num_nhops, sizeof(struct weightened_nhop), wn_cmp_idx);
const struct weightened_nhop *wn;
sort_weightened_nhops_weights(struct weightened_nhop *wn, int num_items)
calc_min_mpath_slots_fast(struct weightened_nhop *wn, size_t num_items,
calc_min_mpath_slots(struct weightened_nhop *wn, size_t num_items,
sz += num_nhops * sizeof(struct weightened_nhop);
compile_nhgrp(struct nhgrp_priv *dst_priv, const struct weightened_nhop *x,
alloc_nhgrp(struct weightened_nhop *wn, int num_nhops, uint32_t min_metric)
num_nhops * sizeof(struct weightened_nhop));
nhgrp_alloc(uint32_t fibnum, int family, struct weightened_nhop *wn, int num_nhops,
get_nhgrp(struct nh_control *ctl, struct weightened_nhop *wn, int num_nhops,
struct weightened_nhop *wn, int num_nhops, int *perror)
struct weightened_nhop *pnhops;
sz = (src_priv->nhg_nh_count + num_nhops) * (sizeof(struct weightened_nhop));
pnhops = (struct weightened_nhop *)&storage[0];
curr_nhops * sizeof(struct weightened_nhop));
memcpy(&pnhops[curr_nhops], wn, num_nhops * sizeof(struct weightened_nhop));
if (pnhops != (struct weightened_nhop *)&storage[0])
struct weightened_nhop *pnhops;
sizeof(struct weightened_nhop);
pnhops = (struct weightened_nhop *)&storage[0];
orig_priv->nhg_nh_count * sizeof(struct weightened_nhop));
add_priv->nhg_nh_count * sizeof(struct weightened_nhop));
if (pnhops != (struct weightened_nhop *)&storage[0])
nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops,
static void sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops);
struct weightened_nhop *pnhops;
sz = src_priv->nhg_nh_count * (sizeof(struct weightened_nhop));
pnhops = (struct weightened_nhop *)&storage[0];
struct weightened_nhop *wn, int num_nhops, uint32_t uidx, int *perror);
sizeof(struct weightened_nhop));
if (pnhops != (struct weightened_nhop *)&storage[0])
struct weightened_nhop wn[2] = {};
const struct weightened_nhop *w_a = a;
struct weightened_nhop wn = {};
const struct weightened_nhop *w_b = b;
const struct weightened_nhop *
const struct weightened_nhop *wn = &nhg_priv->nhg_nh_weights[i];
struct weightened_nhop nhg_nh_weights[0];
struct weightened_nhop *wn, int num_nhops, int *perror);
const struct weightened_nhop *wn = NULL;
struct weightened_nhop *wn_new;
wn_new = mallocarray(num_nhops, sizeof(struct weightened_nhop),
memcpy(wn_new, wn, num_nhops * sizeof(struct weightened_nhop));
const struct weightened_nhop *wn;
const struct weightened_nhop *wn;
struct weightened_nhop;
const struct weightened_nhop *nhgrp_get_nhops(const struct nhgrp_object *nhg,
int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops,
notify_add(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src,
notify_del(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src,
const struct weightened_nhop *wn_old, *wn_new;
struct weightened_nhop tmp = { NULL, 0 };
const struct weightened_nhop *wn;
const struct weightened_nhop *wn;
struct weightened_nhop;
const struct weightened_nhop *wn;
const struct weightened_nhop *wn;
const struct weightened_nhop *wn;
const struct weightened_nhop *wn;
const struct weightened_nhop *wn;
struct weightened_nhop *wn_new, wn_base[MAX_STACK_NHOPS];
wn_new = malloc(num_nhops * sizeof(struct weightened_nhop), M_TEMP, M_NOWAIT);
struct weightened_nhop *wn = unhop->un_nhgrp_src;
struct weightened_nhop *wn;
struct weightened_nhop *un_nhgrp_src; /* nexthops for nhg */
const struct weightened_nhop *wn;
struct weightened_nhop *wn = npt_alloc(npt, sizeof(*wn) * num_nhops);