libnl  3.2.14
tc.h
1 /*
2  * netlink/cli/tc.h CLI Traffic Control Helpers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation version 2.1
7  * of the License.
8  *
9  * Copyright (c) 2010-2011 Thomas Graf <tgraf@suug.ch>
10  */
11 
12 #ifndef __NETLINK_CLI_TC_H_
13 #define __NETLINK_CLI_TC_H_
14 
15 #include <netlink/route/tc-api.h>
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 
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 #endif