libnl 3.10.0
nh.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2022 Stanislav Zaikin <zstaseg@gmail.com>
4 */
5
6#ifndef __NETLINK_CLI_NH_H_
7#define __NETLINK_CLI_NH_H_
8
9#include <netlink/route/nh.h>
10#include <netlink/cli/utils.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16extern struct rtnl_nh *nl_cli_nh_alloc(void);
17extern struct nl_cache *nl_cli_nh_alloc_cache_family(struct nl_sock *, int);
18extern struct nl_cache *nl_cli_nh_alloc_cache_family_flags(struct nl_sock *,
19 int, unsigned int);
20extern struct nl_cache *nl_cli_nh_alloc_cache(struct nl_sock *);
21extern struct nl_cache *nl_cli_nh_alloc_cache_flags(struct nl_sock *,
22 unsigned int);
23
24extern void nl_cli_nh_parse_family(struct rtnl_nh *, char *);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif