]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-lldp-rx: also dump received MUD URL
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 Jun 2025 01:52:16 +0000 (10:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Jun 2025 15:53:24 +0000 (00:53 +0900)
src/libsystemd-network/lldp-neighbor.c

index 0955c8cb0b0220d1b0e2ab754264ea4bf087195a..e35df5e145cbd5877c5de6e1c87cc22d511848a3 100644 (file)
@@ -815,5 +815,6 @@ int lldp_neighbor_build_json(sd_lldp_neighbor *n, sd_json_variant **ret) {
                         JSON_BUILD_PAIR_STRING_NON_EMPTY("SystemName", system_name),
                         JSON_BUILD_PAIR_STRING_NON_EMPTY("SystemDescription", system_description),
                         SD_JSON_BUILD_PAIR_CONDITION(valid_cc, "EnabledCapabilities", SD_JSON_BUILD_UNSIGNED(cc)),
+                        JSON_BUILD_PAIR_STRING_NON_EMPTY("MUDURL", n->mud_url),
                         SD_JSON_BUILD_PAIR_CONDITION(valid_vlanid, "VlanID", SD_JSON_BUILD_UNSIGNED(vlanid)));
 }