summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStanislav Zaikin <zstaseg@gmail.com>2023-07-27 09:11:07 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-31 13:11:28 (GMT)
commitbeba5a189cf0032b2edc86fd12a5591809025f4f (patch)
tree19453d95ecc2c3e4a15fe2dd09101d0a67fa1920 /include
parent780d06ae8bee5b2a8b3072a215de71929363e8d4 (diff)
downloadlibnl-beba5a189cf0032b2edc86fd12a5591809025f4f.zip
libnl-beba5a189cf0032b2edc86fd12a5591809025f4f.tar.gz
libnl-beba5a189cf0032b2edc86fd12a5591809025f4f.tar.bz2
cli: add nl-nh-list utility
Diffstat (limited to 'include')
-rw-r--r--include/netlink/cli/nh.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/netlink/cli/nh.h b/include/netlink/cli/nh.h
new file mode 100644
index 0000000..ee08c8e
--- /dev/null
+++ b/include/netlink/cli/nh.h
@@ -0,0 +1,30 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
+/*
+ * Copyright (c) 2022 Stanislav Zaikin <zstaseg@gmail.com>
+ */
+
+#ifndef __NETLINK_CLI_NH_H_
+#define __NETLINK_CLI_NH_H_
+
+#include <netlink/route/nh.h>
+#include <netlink/cli/utils.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern struct rtnl_nh *nl_cli_nh_alloc(void);
+extern struct nl_cache *nl_cli_nh_alloc_cache_family(struct nl_sock *, int);
+extern struct nl_cache *nl_cli_nh_alloc_cache_family_flags(struct nl_sock *,
+ int, unsigned int);
+extern struct nl_cache *nl_cli_nh_alloc_cache(struct nl_sock *);
+extern struct nl_cache *nl_cli_nh_alloc_cache_flags(struct nl_sock *,
+ unsigned int);
+
+extern void nl_cli_nh_parse_family(struct rtnl_nh *, char *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif