]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: u32: add support for json output
authorWen Liang <liangwen12year@gmail.com>
Wed, 26 Jan 2022 19:44:47 +0000 (14:44 -0500)
committerDavid Ahern <dsahern@kernel.org>
Thu, 3 Feb 2022 03:51:11 +0000 (20:51 -0700)
commitc733722b993cb82832722b1490cbc5002035fd20
tree19e7612e694dd7eccbed1470fb8e8f2ba064b96b
parent5f44590ddec520bb7aa00d2b9ace69b1275f2f6a
tc: u32: add support for json output

Currently u32 filter output does not support json. This commit uses
proper json functions to add support for it.

`sprint_u32_handle` adds an extra space after the raw check, remove the
extra space.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
Tested-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
tc/f_u32.c