diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-09-06 13:11:12 +0200 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2023-09-11 09:16:45 -0600 |
commit | 20b299a3ec3520b1f382f31c08427117493efa59 (patch) | |
tree | 9cbd6aaca2b398079fc366fe5c3f41bab78b6820 /include | |
parent | fd1c2af8cbaaf0e69013474ac91bbc835bbe2056 (diff) | |
download | iproute2-20b299a3ec3520b1f382f31c08427117493efa59.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/mnl_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mnl_utils.h b/include/mnl_utils.h index 219393484..76fe1dfec 100644 --- a/include/mnl_utils.h +++ b/include/mnl_utils.h @@ -30,5 +30,6 @@ int mnlu_socket_recv_run(struct mnl_socket *nl, unsigned int seq, void *buf, siz mnl_cb_t cb, void *data); int mnlu_gen_socket_recv_run(struct mnlu_gen_socket *nlg, mnl_cb_t cb, void *data); +int mnlu_gen_cmd_dump_policy(struct mnlu_gen_socket *nlg, uint8_t cmd); #endif /* __MNL_UTILS_H__ */ |