From: Stephen Hemminger Date: Fri, 25 Nov 2022 18:48:02 +0000 (-0800) Subject: tc: put size table options in json object X-Git-Tag: v6.1.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067396574d820d15b0a98ec75bd950674cb991ad;p=thirdparty%2Fiproute2.git tc: put size table options in json object Missed this part from earlier change. Fixes: 6af6f02cce42 ("tc: add json support to size table") Signed-off-by: Stephen Hemminger --- diff --git a/tc/tc_stab.c b/tc/tc_stab.c index 06dc1b134..0f9440034 100644 --- a/tc/tc_stab.c +++ b/tc/tc_stab.c @@ -117,6 +117,7 @@ void print_size_table(struct rtattr *rta) memcpy(&s, RTA_DATA(tb[TCA_STAB_BASE]), MIN(RTA_PAYLOAD(tb[TCA_STAB_BASE]), sizeof(s))); + open_json_object("stab"); print_string(PRINT_FP, NULL, " ", NULL); if (s.linklayer) @@ -135,5 +136,6 @@ void print_size_table(struct rtattr *rta) if (s.tsize) print_uint(PRINT_ANY, "tsize", "tsize %u ", s.tsize); + close_json_object(); } }