diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-09-22 22:37:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-09-25 18:45:52 +0200 |
commit | 0319a28e42d91fd837f161a4c19113bbca70b4bd (patch) | |
tree | eee6955daf8bc7a44fa78b54d9dc4862cc820afb /src/resolve/resolved-dns-server.c | |
parent | Merge pull request #29301 from poettering/pcr-extend-rename (diff) | |
download | systemd-0319a28e42d91fd837f161a4c19113bbca70b4bd.tar.xz systemd-0319a28e42d91fd837f161a4c19113bbca70b4bd.zip |
resolved: also expose interface index in server JSON data
Diffstat (limited to 'src/resolve/resolved-dns-server.c')
-rw-r--r-- | src/resolve/resolved-dns-server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-server.c b/src/resolve/resolved-dns-server.c index f23e3f5db9..b7db83965b 100644 --- a/src/resolve/resolved-dns-server.c +++ b/src/resolve/resolved-dns-server.c @@ -1106,6 +1106,7 @@ int dns_server_dump_state_to_json(DnsServer *server, JsonVariant **ret) { JSON_BUILD_PAIR_STRING("Server", strna(dns_server_string_full(server))), JSON_BUILD_PAIR_STRING("Type", strna(dns_server_type_to_string(server->type))), JSON_BUILD_PAIR_CONDITION(server->type == DNS_SERVER_LINK, "Interface", JSON_BUILD_STRING(server->link ? server->link->ifname : NULL)), + JSON_BUILD_PAIR_CONDITION(server->type == DNS_SERVER_LINK, "InterfaceIndex", JSON_BUILD_UNSIGNED(server->link ? server->link->ifindex : 0)), JSON_BUILD_PAIR_STRING("VerifiedFeatureLevel", strna(dns_server_feature_level_to_string(server->verified_feature_level))), JSON_BUILD_PAIR_STRING("PossibleFeatureLevel", strna(dns_server_feature_level_to_string(server->possible_feature_level))), JSON_BUILD_PAIR_STRING("DNSSECMode", strna(dnssec_mode_to_string(dns_server_get_dnssec_mode(server)))), |