summaryrefslogtreecommitdiff
path: root/include/netlink/cli/nh.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink/cli/nh.h')
-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 00000000..ee08c8e6
--- /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