]> git.ipfire.org Git - thirdparty/iproute2.git/commit
mnl_utils: introduce a helper to check if dump policy exists for command
authorJiri Pirko <jiri@nvidia.com>
Wed, 6 Sep 2023 11:11:12 +0000 (13:11 +0200)
committerDavid Ahern <dsahern@kernel.org>
Mon, 11 Sep 2023 15:16:45 +0000 (09:16 -0600)
commit20b299a3ec3520b1f382f31c08427117493efa59
tree9cbd6aaca2b398079fc366fe5c3f41bab78b6820
parentfd1c2af8cbaaf0e69013474ac91bbc835bbe2056
mnl_utils: introduce a helper to check if dump policy exists for command

Benefit from GET_POLICY command of ctrl netlink and introduce a helper
that dumps policies and finds out, if there is a separate policy
specified for dump op of specified command.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/mnl_utils.h
lib/mnl_utils.c