summaryrefslogtreecommitdiff
path: root/tests/pure_executables.list
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-10-18 05:10:57 +0200
committerDmitry V. Levin <ldv@strace.io>2021-11-11 08:00:00 +0000
commit5d9eae4f85be47380de099765042c6164530263f (patch)
treecd75f4d1bdbf404375c074b88e069e8543c0e888 /tests/pure_executables.list
parentb5bbe51051227ceef23f2246cbbab89cd7f94a59 (diff)
downloadstrace-5d9eae4f85be47380de099765042c6164530263f.tar.gz
rtnl_link: make IFLA_PROTINFO decoding address family-aware
The IFLA_BRPORT_* attributes are placed in there only for messages with ifi_family=AF_BRIDGE, and ifi_family=AF_INET6 messages put IFLA_INET6_* attributes in there. * src/rtnl_link.c (decode_ifla_inet6_flags, decode_ifla_inet6_conf, decode_ifla_inet6_stats, decode_ifla_inet6_cacheinfo, decode_ifla_inet6_icmp6_stats, decode_ifla_inet6_agm, ifla_inet6_nla_decoders): Move before decode_ifla_protinfo. (decode_ifla_protinfo): Add protos, describe AF_BRIDGE and AF_INET6 protocols there, decode using decode_nla_af_spec. * tests/nlattr_ifla_brport.c (IFLA_AF, IFLA_AF_STR): Define to change the address family from AF_UNIX to AF_BRIDGE. * tests/nlattr_ifla_af_inet6.h: New file. * tests/nlattr_ifla_af_spec.c: Include it. (print_arr_val, print_arr_uval, print_inet6_conf_val, print_inet6_stats_val, print_icmp6_stats_val): Move to nlattr_ifla_af_inet6.h. (main): Move AF_INET6-related checks to check_ifla_af_inet6() in nlattr_ifla_af_inet6.h; call it. * tests/.gitignore: Add nlattr_ifla_protinfo, nlattr_ifla_protinfo-Xabbrev, nlattr_ifla_protinfo-Xraw, and nlattr_ifla_protinfo-Xverbose. * tests/Makefile.am (EXTRA_DIST): Add nlattr_ifla_af_inet6.h. * tests/gen_tests.in (nlattr_ifla_protinfo, nlattr_ifla_protinfo-Xabbrev, nlattr_ifla_protinfo-Xraw, nlattr_ifla_protinfo-Xverbose): New tests. * tests/nlattr_ifla_protinfo-Xabbrev.c: New file. * tests/nlattr_ifla_protinfo-Xraw.c: Likewise. * tests/nlattr_ifla_protinfo-Xverbose.c: Likewise. * tests/nlattr_ifla_protinfo.c: Likewise. * NEWS: Mention it. Fixes: v4.19~19 "rtnl_link: decode IFLA_PROTINFO netlink attribute of ifinfomsg"
Diffstat (limited to 'tests/pure_executables.list')
-rwxr-xr-xtests/pure_executables.list4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pure_executables.list b/tests/pure_executables.list
index a74ec667f..1f3be01c1 100755
--- a/tests/pure_executables.list
+++ b/tests/pure_executables.list
@@ -396,6 +396,10 @@ nlattr_ifla_brport-Xraw
nlattr_ifla_brport-Xverbose
nlattr_ifla_linkinfo
nlattr_ifla_port
+nlattr_ifla_protinfo
+nlattr_ifla_protinfo-Xabbrev
+nlattr_ifla_protinfo-Xraw
+nlattr_ifla_protinfo-Xverbose
nlattr_ifla_proto_down_reason
nlattr_ifla_xdp
nlattr_inet_diag_msg