]> git.ipfire.org Git - thirdparty/iproute2.git/commit
actions: correctly report the number of actions flushed
authorJamal Hadi Salim <jhs@mojatatu.com>
Sat, 24 May 2014 13:13:35 +0000 (09:13 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 28 May 2014 23:54:31 +0000 (16:54 -0700)
commit288abf513f5d11b98f09c6977d2019097afb7e9f
tree980b48d0445b4b5c20eed92552713c6319563626
parent9282d08d93966dcca92cb4630efdc8c87ac53e41
actions: correctly report the number of actions flushed

This also fixes a long standing bug of not sanely reporting the
action chain ordering

Sample scenario test

on window 1(event window):
run "tc monitor" and observe events

on window 2:
sudo tc actions add action drop index 10
sudo tc actions add action ok index 12
sudo tc actions ls action gact
sudo tc actions flush action gact

See the event window reporting two entries
(doing another listing should show empty generic actions)

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/m_action.c