Searched refs:num_nhops (Results 1 - 10 of 10) sorted by relevance

/freebsd-13-stable/sys/net/route/
H A Dnhgrp_ctl.c75 static void sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops);
78 struct weightened_nhop *wn, int num_nhops, int *perror);
114 sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops) argument
117 qsort(wn, num_nhops, sizeof(struct weightened_nhop), wn_cmp);
191 get_nhgrp_alloc_size(uint32_t nhg_size, uint32_t num_nhops) argument
198 sz += num_nhops * sizeof(struct weightened_nhop);
255 alloc_nhgrp(struct weightened_nhop *wn, int num_nhops) argument
262 nhgrp_size = calc_min_mpath_slots(wn, num_nhops);
268 size_t sz = get_nhgrp_alloc_size(nhgrp_size, num_nhops);
276 DPRINTF("new mpath group: num_nhops
432 get_nhgrp(struct nh_control *ctl, struct weightened_nhop *wn, int num_nhops, int *perror) argument
512 append_nhops(struct nh_control *ctl, const struct nhgrp_object *gr_orig, struct weightened_nhop *wn, int num_nhops, int *perror) argument
565 nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, struct route_nhop_data *rnd) argument
594 int error, i, num_nhops; local
[all...]
H A Droute_helpers.c383 uint32_t num_nhops; local
393 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_new, &num_nhops);
394 for (uint32_t i = 0; i < num_nhops; i++) {
403 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_old, &num_nhops);
404 for (uint32_t i = 0; i < num_nhops; i++) {
H A Droute_ctl.c144 uint32_t num_nhops; local
145 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops);
975 uint32_t num_nhops; local
977 wn = nhgrp_get_nhops((struct nhgrp_object *)nh_orig, &num_nhops);
979 for (int i = 0; i < num_nhops; i++) {
993 wn_new = mallocarray(num_nhops, sizeof(struct weightened_nhop),
1000 memcpy(wn_new, wn, num_nhops * sizeof(struct weightened_nhop));
1001 for (int i = 0; i < num_nhops; i++) {
1009 error = nhgrp_get_group(rnh, wn_new, num_nhops, &rnd_new);
1347 uint32_t num_nhops; local
[all...]
H A Dfib_algo.h44 uint32_t num_nhops; member in struct:rib_rtable_info
H A Droute_var.h309 int num_nhops, struct route_nhop_data *rnd);
H A Dfib_algo.c1716 rinfo->num_nhops = nhops_get_count(rh);
/freebsd-13-stable/sys/netinet/
H A Din_fib.c200 uint32_t num_nhops; local
201 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops);
202 for (int i = 0; i < num_nhops; i++) {
H A Din_fib_dxr.c973 da->d_bits, dxr_x, rinfo.num_prefixes, rinfo.num_nhops);
976 DXR_D, rinfo.num_prefixes, rinfo.num_nhops);
/freebsd-13-stable/sys/netinet6/
H A Din6_fib.c209 uint32_t num_nhops; local
210 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops);
211 for (int i = 0; i < num_nhops; i++) {
/freebsd-13-stable/sys/net/
H A Drtsock.c717 uint32_t num_nhops; local
718 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops);
721 for (int i = 0; i < num_nhops; i++) {
2219 uint32_t num_nhops; local
2220 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops);
2221 for (int i = 0; i < num_nhops; i++) {

Completed in 104 milliseconds