Home
last modified time | relevance | path

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

/f-stack/freebsd/net/route/
H A Dnhgrp_ctl.c198 sz += num_nhops * sizeof(struct weightened_nhop); in get_nhgrp_alloc_size()
280 nhg_priv->nhg_nh_count = num_nhops; in alloc_nhgrp()
288 num_nhops * sizeof(struct weightened_nhop)); in alloc_nhgrp()
437 if (num_nhops > RIB_MAX_MPATH_WIDTH) { in get_nhgrp()
451 sort_weightened_nhops(wn, num_nhops); in get_nhgrp()
453 for (int i = 0; i < num_nhops; i++) { in get_nhgrp()
543 curr_nhops += num_nhops; in append_nhops()
594 int error, i, num_nhops; in nhgrp_get_filtered_group() local
609 num_nhops = 0; in nhgrp_get_filtered_group()
617 if (num_nhops == 0) { in nhgrp_get_filtered_group()
[all …]
H A Droute_helpers.c351 uint32_t num_nhops; in rib_decompose_notification() local
361 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_new, &num_nhops); in rib_decompose_notification()
362 for (uint32_t i = 0; i < num_nhops; i++) { in rib_decompose_notification()
371 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_old, &num_nhops); in rib_decompose_notification()
372 for (uint32_t i = 0; i < num_nhops; i++) { in rib_decompose_notification()
H A Droute_ctl.c144 uint32_t num_nhops; in destroy_rtentry() local
145 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in destroy_rtentry()
975 uint32_t num_nhops; in change_mpath_route() local
979 for (int i = 0; i < num_nhops; i++) { in change_mpath_route()
993 wn_new = mallocarray(num_nhops, sizeof(struct weightened_nhop), in change_mpath_route()
1000 memcpy(wn_new, wn, num_nhops * sizeof(struct weightened_nhop)); in change_mpath_route()
1001 for (int i = 0; i < num_nhops; i++) { in change_mpath_route()
1009 error = nhgrp_get_group(rnh, wn_new, num_nhops, &rnd_new); in change_mpath_route()
1347 uint32_t num_nhops; in rib_walk_del() local
1350 wn = nhgrp_get_nhops(nhg, &num_nhops); in rib_walk_del()
[all …]
H A Dfib_algo.h43 uint32_t num_nhops; member
H A Droute_var.h297 int num_nhops, struct route_nhop_data *rnd);
H A Dfib_algo.c1372 rinfo->num_nhops = nhops_get_count(rh); in fib_get_rtable_info()
/f-stack/freebsd/netinet/
H A Din_fib.c200 uint32_t num_nhops; in check_urpf() local
201 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in check_urpf()
202 for (int i = 0; i < num_nhops; i++) { in check_urpf()
/f-stack/freebsd/netinet6/
H A Din6_fib.c209 uint32_t num_nhops; in check_urpf() local
210 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in check_urpf()
211 for (int i = 0; i < num_nhops; i++) { in check_urpf()
/f-stack/freebsd/net/
H A Drtsock.c708 uint32_t num_nhops; in select_nhop() local
709 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in select_nhop()
712 for (int i = 0; i < num_nhops; i++) { in select_nhop()
2131 uint32_t num_nhops; in sysctl_dumpentry() local
2132 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in sysctl_dumpentry()
2133 for (int i = 0; i < num_nhops; i++) { in sysctl_dumpentry()
/f-stack/lib/
H A Dff_route.c610 uint32_t num_nhops; in select_nhop() local
611 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in select_nhop()
614 for (int i = 0; i < num_nhops; i++) { in select_nhop()