1 /* SPDX-License-Identifier: LGPL-2.1-only */ 2 /* 3 * Copyright (c) 2008-2010 Thomas Graf <tgraf@suug.ch> 4 */ 5 6 #ifndef __NETLINK_CLI_LINK_H_ 7 #define __NETLINK_CLI_LINK_H_ 8 9 #include <netlink/route/link.h> 10 #include <netlink/cli/utils.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 extern struct rtnl_link *nl_cli_link_alloc(void); 17 extern struct nl_cache *nl_cli_link_alloc_cache_family(struct nl_sock *, int); 18 extern struct nl_cache *nl_cli_link_alloc_cache_family_flags(struct nl_sock *, int, 19 unsigned int); 20 extern struct nl_cache *nl_cli_link_alloc_cache(struct nl_sock *); 21 extern struct nl_cache *nl_cli_link_alloc_cache_flags(struct nl_sock *, 22 unsigned int); 23 24 extern void nl_cli_link_parse_family(struct rtnl_link *, char *); 25 extern void nl_cli_link_parse_name(struct rtnl_link *, char *); 26 extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *); 27 extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *); 28 extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *); 29 extern void nl_cli_link_parse_weight(struct rtnl_link *, char *); 30 extern void nl_cli_link_parse_ifalias(struct rtnl_link *, char *); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif 37