Home
last modified time | relevance | path

Searched refs:aip_count (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/wireguard-tools/
H A Dipc-freebsd.h124 size_t aip_count, j; in kernel_get_device() local
169 nvl_aips = nvlist_get_nvlist_array(nvl_peers[i], "allowed-ips", &aip_count); in kernel_get_device()
170 if (!aip_count || !nvl_aips) in kernel_get_device()
172 for (j = 0; j < aip_count; ++j) { in kernel_get_device()
281 size_t aip_count = 0, j = 0; in kernel_set_device() local
289 ++aip_count; in kernel_set_device()
290 if (aip_count) { in kernel_set_device()
291 nvl_aips = calloc(aip_count, sizeof(*nvl_aips)); in kernel_set_device()
319 for (j = 0; j < aip_count; ++j) in kernel_set_device()
328 for (j = 0; j < aip_count && nvl_aips; ++j) in kernel_set_device()
/freebsd/sys/dev/wg/
H A Dif_wg.c2607 size_t size, peer_count, aip_count, i, j; in wgc_get() local
2659 aip_count = peer->p_aips_num; in wgc_get()
2660 if (aip_count) { in wgc_get()
2661 nvl_aips = mallocarray(aip_count, sizeof(void *), M_NVLIST, M_WAITOK | M_ZERO); in wgc_get()
2664 if (j >= aip_count) in wgc_get()
2683 nvlist_add_nvlist_array(nvl_peer, "allowed-ips", (const nvlist_t *const *)nvl_aips, aip_count); in wgc_get()
2685 for (j = 0; j < aip_count; ++j) in wgc_get()