• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/net/route/

Lines Matching refs:weightened_nhop

75 static void sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops);
78 struct weightened_nhop *wn, int num_nhops, int *perror);
86 const struct weightened_nhop *wa = a;
87 const struct weightened_nhop *wb = b;
114 sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops)
117 qsort(wn, num_nhops, sizeof(struct weightened_nhop), wn_cmp);
134 calc_min_mpath_slots_fast(const struct weightened_nhop *wn, size_t num_items)
168 calc_min_mpath_slots(const struct weightened_nhop *wn, size_t num_items)
184 * an arbirtrary number of 'struct weightened_nhop' object.
198 sz += num_nhops * sizeof(struct weightened_nhop);
211 compile_nhgrp(struct nhgrp_priv *dst_priv, const struct weightened_nhop *x,
255 alloc_nhgrp(struct weightened_nhop *wn, int num_nhops)
288 num_nhops * sizeof(struct weightened_nhop));
432 get_nhgrp(struct nh_control *ctl, struct weightened_nhop *wn, int num_nhops,
513 struct weightened_nhop *wn, int num_nhops, int *perror)
516 struct weightened_nhop *pnhops;
527 sz = (src_priv->nhg_nh_count + num_nhops) * (sizeof(struct weightened_nhop));
530 pnhops = (struct weightened_nhop *)&storage[0];
541 curr_nhops * sizeof(struct weightened_nhop));
542 memcpy(&pnhops[curr_nhops], wn, num_nhops * sizeof(struct weightened_nhop));
547 if (pnhops != (struct weightened_nhop *)&storage[0])
565 nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops,
591 struct weightened_nhop *pnhops;
598 sz = src_priv->nhg_nh_count * (sizeof(struct weightened_nhop));
601 pnhops = (struct weightened_nhop *)&storage[0];
614 sizeof(struct weightened_nhop));
632 if (pnhops != (struct weightened_nhop *)&storage[0])
649 struct weightened_nhop wn[2] = {};
686 struct weightened_nhop *