]> git.ipfire.org Git - thirdparty/systemd.git/commit
json-util: generalize json_dispatch_address_family
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 19 Jun 2026 19:00:59 +0000 (15:00 -0400)
committerNick Rosbrook <enr0n@ubuntu.com>
Fri, 26 Jun 2026 13:12:10 +0000 (09:12 -0400)
commitc5f08a2e5cf1f246c908ddaaefbccdcfbdbaa754
treefefdc5893be8ea2758c011e21c559ce43989165d
parente61a0705db40a5d44909796680041ebb36f7f21e
json-util: generalize json_dispatch_address_family

There are several places where address family is dispatched from JSON,
so take json_dispatch_address_family from networkd and put it in
json-util.c.

Update the all instances in the tree to use this new function, adding
SD_JSON_RELAX to the dispatch flags if AF_UNSPEC should be allowed
in that case.
src/libsystemd/sd-json/json-util.c
src/libsystemd/sd-json/json-util.h
src/network/networkd-serialize.c
src/nss-resolve/nss-resolve.c
src/resolve/resolvectl.c
src/resolve/resolved-varlink.c
src/shared/dns-configuration.c