Searched refs:nhg_size (Results 1 - 4 of 4) sorted by relevance

/freebsd-13-stable/sys/net/route/
H A Dnhgrp_var.h61 #define _NHGRP_PRIV(_src) (&(_src)->nhops[(_src)->nhg_size])
H A Dnhgrp_ctl.c191 get_nhgrp_alloc_size(uint32_t nhg_size, uint32_t num_nhops) argument
196 sz += nhg_size * sizeof(struct nhop_object *);
275 nhg->nhg_size = nhgrp_size;
290 compile_nhgrp(nhg_priv, wn, nhg->nhg_size);
719 sz += sizeof(struct nhgrp_nhop_external) * nhg->nhg_size;
754 nhgc->nhgc_len += sizeof(struct nhgrp_nhop_external) * nhg->nhg_size;
755 nhgc->nhgc_count = nhg->nhg_size;
758 for (int i = 0; i < nhg->nhg_size; i++) {
H A Droute_var.h271 uint8_t nhg_size; /* dataplain group size */ member in struct:nhgrp_object
283 nh = nhg->nhops[flowid % nhg->nhg_size];
/freebsd-13-stable/usr.bin/netstat/
H A Dnhgrp.c204 size_t nhg_count, nhg_size; local
227 nhg_size = 16;
228 nhg_map = calloc(nhg_size, sizeof(struct nhops_map));
234 if (nhg_count >= nhg_size) {
235 nhg_size *= 2;
236 nhg_map = realloc(nhg_map, nhg_size * sizeof(struct nhops_map));

Completed in 158 milliseconds