]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nss: convert findMACs to use json-c
authorJán Tomko <jtomko@redhat.com>
Wed, 14 Aug 2024 15:50:38 +0000 (17:50 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 24 Sep 2024 06:24:00 +0000 (08:24 +0200)
commit84198ad88a0d6ff5bfef29414cb615d7c8194b56
tree27451fed121a89bd0136e9875b7ec364757415f6
parenta8d828c88bbdaf83ae78dc06cdd84d5667fcc424
nss: convert findMACs to use json-c

While the parsing is still done by 1K buffers, the results
are no longer filtered during the parsing, but the whole JSON
has to live in memory at once, which was also the case before
the NSS plugin dropped its dependency on libvirt_util.

Also, the new parser might be more forgiving of missing elements.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tools/nss/libvirt_nss_macs.c