]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc/basic: fix json output filter
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Dec 2022 15:30:54 +0000 (07:30 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Dec 2022 15:30:54 +0000 (07:30 -0800)
commitd4b01c0f4187e5c7c902223d96f845b8d21ce03c
treefa634cf7820f5b89a7ce9b543d28a59d1672d064
parentf38059746dcd9184ed131a01dc30858b64a9306a
tc/basic: fix json output filter

The flowid and handle in basic were not using JSON routines to print.
 To reproduce the issue:

 $ tc qdisc add dev eth1 handle ffff: ingress
 $ tc filter add dev eth1 parent ffff: prio 20 protocol all u32 match ip dport 22 \
     0xffff action police conform-exceed drop/ok rate 100000 burst 15k flowid ffff:1

 $ tc filter add dev eth1 parent ffff: prio 255 protocol all basic action police \
     conform-exceed drop/ok rate 100000 burst 15k flowid ffff:3

Reported-by: Christian Pössinger <christian@poessinger.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/f_basic.c