diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2023-05-10 19:58:37 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2023-05-10 20:08:00 +0200 |
commit | 83b7f0c841d64ad3d8f28fd73df4d0cc9268daad (patch) | |
tree | 3dce04e2109f84c52b7c4750b1d6f0964414eee5 /tests/.gitignore | |
parent | b30e9d446019b31c2a74b2addaa5b591e8947d61 (diff) | |
download | strace-83b7f0c841d64ad3d8f28fd73df4d0cc9268daad.tar.gz |
rtnl_tc_action: fix tcamsg attribute decoderesyr/tcamsg-fixes
It used the wrong attribute table initially.
An example of an actual usage:
tc actions add action simple sdata "foobar" index 1
* src/xlat/rtnl_tca_root_attrs.in: New file.
* src/xlat/rtnl_tca_root_flags.in: Likewise.
* src/rtnl_tc_action.c: Include "xlat/rtnl_tca_root_flags.h"
and "xlat/rtnl_tca_root_attrs.h".
(tcamsg_nla_decoders): Rename to...
(tca_act_nla_decoders): ...this.
(decode_tca_action, decode_tca_root_act_tab, decode_tca_root_act_flags,
decode_tca_msecs): New functions.
(tcamsg_nla_decoders): New decoder table.
(decode_tcamsg): Use rtnl_tca_root_attrs and "TCA_ROOT_???" as xlat
and dflt arguments in the decode_nlattr call. respectively.
* tests/.gitignore: Add nlattr_tcamsg-Xabbrev, nlattr_tcamsg-Xraw,
and nlattr_tcamsg-Xverbose.
* tests/pure_executables.list: Likewise.
* tests/gen_tests.in (nlattr_tcamsg-Xabbrev, nlattr_tcamsg-Xraw,
nlattr_tcamsg-Xverbose): New tests.
* tests/nlattr_tcamsg-Xabbrev.c: New file.
* tests/nlattr_tcamsg-Xraw.c: Likewise.
* tests/nlattr_tcamsg-Xverbose.c: Likewise.
* tests/nlattr_tcamsg.c: Update the expected output.
Diffstat (limited to 'tests/.gitignore')
-rw-r--r-- | tests/.gitignore | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index d9272ba33..85fe42e9c 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -650,6 +650,9 @@ nlattr_smc_diag_msg nlattr_tc_stats nlattr_tca_stab nlattr_tcamsg +nlattr_tcamsg-Xabbrev +nlattr_tcamsg-Xraw +nlattr_tcamsg-Xverbose nlattr_tcmsg nlattr_unix_diag_msg nsyscalls |