Searched refs:aip_count (Results 1 – 2 of 2) sorted by relevance
| /freebsd/contrib/wireguard-tools/ |
| H A D | ipc-freebsd.h | 124 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() 321 for (j = 0; j < aip_count; ++j) in kernel_set_device() 330 for (j = 0; j < aip_count && nvl_aips; ++j) in kernel_set_device()
|
| /freebsd/sys/dev/wg/ |
| H A D | if_wg.c | 2712 size_t size, peer_count, aip_count, i, j; in wgc_get() local 2764 aip_count = peer->p_aips_num; in wgc_get() 2765 if (aip_count) { in wgc_get() 2766 nvl_aips = mallocarray(aip_count, sizeof(void *), M_NVLIST, M_WAITOK | M_ZERO); in wgc_get() 2769 if (j >= aip_count) in wgc_get() 2788 nvlist_add_nvlist_array(nvl_peer, "allowed-ips", (const nvlist_t *const *)nvl_aips, aip_count); in wgc_get() 2790 for (j = 0; j < aip_count; ++j) in wgc_get()
|