• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3  * Copyright (c) 2010-2011 Thomas Graf <tgraf@suug.ch>
4  */
5 
6 #ifndef __NETLINK_CLI_TC_H_
7 #define __NETLINK_CLI_TC_H_
8 
9 #include <netlink/route/tc.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 struct rtnl_tc_ops;
16 
17 extern void nl_cli_tc_parse_dev(struct rtnl_tc *, struct nl_cache *, char *);
18 extern void nl_cli_tc_parse_parent(struct rtnl_tc *, char *);
19 extern void nl_cli_tc_parse_handle(struct rtnl_tc *, char *, int);
20 extern void nl_cli_tc_parse_mtu(struct rtnl_tc *, char *);
21 extern void nl_cli_tc_parse_mpu(struct rtnl_tc *, char *);
22 extern void nl_cli_tc_parse_overhead(struct rtnl_tc *, char *);
23 extern void nl_cli_tc_parse_linktype(struct rtnl_tc *, char *);
24 extern void nl_cli_tc_parse_kind(struct rtnl_tc *, char *);
25 
26 struct nl_cli_tc_module
27 {
28 	const char *		tm_name;
29 	enum rtnl_tc_type	tm_type;
30 	struct rtnl_tc_ops *	tm_ops;
31 	void		      (*tm_parse_argv)(struct rtnl_tc *, int, char **);
32 	struct nl_list_head	tm_list;
33 };
34 
35 extern struct nl_cli_tc_module *nl_cli_tc_lookup(struct rtnl_tc_ops *);
36 extern void nl_cli_tc_register(struct nl_cli_tc_module *);
37 extern void nl_cli_tc_unregister(struct nl_cli_tc_module *);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif
44