Home
last modified time | relevance | path

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

/freebsd/contrib/wireguard-tools/
H A Dipc-freebsd.h123 const nvlist_t *const *nvl_aips; 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()
173 if (!nvlist_exists_number(nvl_aips[j], "cidr")) in kernel_get_device()
175 if (!nvlist_exists_binary(nvl_aips[j], "ipv4") && !nvlist_exists_binary(nvl_aips[j], "ipv6")) in kernel_get_device()
180 number = nvlist_get_number(nvl_aips[j], "cidr"); in kernel_get_device()
181 if (nvlist_exists_binary(nvl_aips[j], "ipv4")) { in kernel_get_device()
182 binary = nvlist_get_binary(nvl_aips[j], "ipv4", &size); in kernel_get_device()
191 assert(nvlist_exists_binary(nvl_aips[j], "ipv6")); in kernel_get_device()
192 binary = nvlist_get_binary(nvl_aips[j], "ipv6", &size); in kernel_get_device()
[all …]
/freebsd/sys/dev/wg/
H A Dif_wg.c2606 nvlist_t *nvl, *nvl_peer, *nvl_aip, **nvl_peers, **nvl_aips; in wgc_get() local
2661 nvl_aips = mallocarray(aip_count, sizeof(void *), M_NVLIST, M_WAITOK | M_ZERO); in wgc_get()
2667 nvl_aips[j++] = nvl_aip = nvlist_create(0); in wgc_get()
2683 nvlist_add_nvlist_array(nvl_peer, "allowed-ips", (const nvlist_t *const *)nvl_aips, aip_count); in wgc_get()
2686 nvlist_destroy(nvl_aips[j]); in wgc_get()
2687 free(nvl_aips, M_NVLIST); in wgc_get()