iproute2/include
Petr Machata a463d6b191 libnetlink: Add filtering to rtnl_statsdump_req_filter()
A number of functions in the rtnl_*_req family accept a caller-provided
callback to set up arbitrary filtering. rtnl_statsdump_req_filter()
currently only allows setting a field in the IFSM header, not custom
attributes. So far these were not necessary, but with introduction of more
detailed filtering settings, the callback becomes necessary.

To that end, add a filter_fn and filter_data arguments to the function.
Unlike the other filters, this one is typed to expect an IFSM pointer, to
permit tweaking the header itself as well.

Pass NULLs in the existing callers.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2022-04-27 20:12:42 -06:00
..
iptables SPDX license identifiers 2017-11-24 12:21:35 -08:00
libiptc SPDX license identifiers 2017-11-24 12:21:35 -08:00
netinet ss: report ecnseen 2011-11-23 14:51:54 -08:00
uapi Update kernel headers 2022-04-25 20:08:38 -06:00
bpf_api.h examples/bpf: add bpf examples with BTF defined maps 2020-11-24 22:14:08 -07:00
bpf_elf.h bpf: implement btf handling and map annotation 2018-07-17 19:38:44 -07:00
bpf_scm.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
bpf_util.h bpf: Export bpf syscall wrapper 2022-03-07 08:52:08 -07:00
cg_map.h ss: introduce cgroup2 cache and helper functions 2020-05-13 14:28:04 +00:00
color.h lib/color: make local functions static 2018-11-19 11:42:44 -08:00
dlfcn.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
ip6tables.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
iptables.h remove trailing whitespace 2021-04-27 11:55:53 -07:00
json_print.h json_print: Add print_tv() 2021-03-19 15:00:08 +00:00
json_writer.h Merge branch 'iproute2-master' into iproute2-next 2018-12-19 12:02:17 -08:00
libgenl.h mptcp: add support for event monitoring 2021-04-22 05:10:25 +00:00
libnetlink.h libnetlink: Add filtering to rtnl_statsdump_req_filter() 2022-04-27 20:12:42 -06:00
list.h devlink: Add support for devlink resource abstraction 2018-02-23 08:36:05 -08:00
ll_map.h ll_map: Add function to remove link cache entry by index 2019-02-22 18:51:15 -08:00
mnl_utils.h utils: Introduce helper routines for generic socket recv 2021-03-03 04:00:04 +00:00
names.h tc: drop unused name_to_id function 2018-11-19 11:42:44 -08:00
namespace.h netns: make netns_{save,restore} static 2019-06-20 14:30:41 -07:00
rt_names.h lib: rt_names: Add rtnl_dsfield_get_name() 2021-01-18 04:09:29 +00:00
rtm_map.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
utils.h Merge branch 'main' into next 2022-03-12 08:58:37 -07:00
version.h v5.17.0 2022-03-22 07:59:11 -07:00
xt-internal.h SPDX license identifiers 2017-11-24 12:21:35 -08:00
xtables.h tc: adjust xtables_match and xtables_target to changes in recent iptables 2019-06-24 16:12:17 -07:00