From: Yu Watanabe Date: Fri, 1 Nov 2024 21:02:21 +0000 (+0900) Subject: network/json: add missing entries for route properties X-Git-Tag: v257-rc1~33^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca212a9843440fd15be32068365aa9a9b6d079c;p=thirdparty%2Fsystemd.git network/json: add missing entries for route properties --- diff --git a/src/network/networkd-json.c b/src/network/networkd-json.c index 7ccf653f741..07d52c96c04 100644 --- a/src/network/networkd-json.c +++ b/src/network/networkd-json.c @@ -236,6 +236,7 @@ static int route_append_json(Route *route, sd_json_variant **array) { "Source", JSON_BUILD_IN_ADDR(&route->src, route->family)), JSON_BUILD_PAIR_UNSIGNED_NON_ZERO("SourcePrefixLength", route->src_prefixlen), JSON_BUILD_PAIR_IN_ADDR_NON_NULL("PreferredSource", &route->prefsrc, route->family), + SD_JSON_BUILD_PAIR_UNSIGNED("TOS", route->tos), SD_JSON_BUILD_PAIR_UNSIGNED("Scope", route->scope), SD_JSON_BUILD_PAIR_STRING("ScopeString", scope), SD_JSON_BUILD_PAIR_UNSIGNED("Protocol", route->protocol), @@ -250,6 +251,7 @@ static int route_append_json(Route *route, sd_json_variant **array) { SD_JSON_BUILD_PAIR_UNSIGNED("Flags", route->flags), SD_JSON_BUILD_PAIR_STRING("FlagsString", strempty(flags)), JSON_BUILD_PAIR_FINITE_USEC("LifetimeUSec", route->lifetime_usec), + JSON_BUILD_PAIR_UNSIGNED_NON_ZERO("NextHopID", route->nexthop_id), SD_JSON_BUILD_PAIR_STRING("ConfigSource", network_config_source_to_string(route->source)), SD_JSON_BUILD_PAIR_STRING("ConfigState", state), JSON_BUILD_PAIR_IN_ADDR_NON_NULL("ConfigProvider", &route->provider, route->family));