]> git.proxmox.com Git - mirror_iproute2.git/blob - tc/tc_common.h
utils: Introduce and use nodev() helper routine
[mirror_iproute2.git] / tc / tc_common.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2
3 #define TCA_BUF_MAX (64*1024)
4 #define MSG_IOV_MAX 128
5
6 extern struct rtnl_handle rth;
7
8 extern int do_qdisc(int argc, char **argv);
9 extern int do_class(int argc, char **argv);
10 extern int do_filter(int argc, char **argv, void *buf, size_t buflen);
11 extern int do_action(int argc, char **argv, void *buf, size_t buflen);
12 extern int do_tcmonitor(int argc, char **argv);
13 extern int do_exec(int argc, char **argv);
14
15 extern int print_action(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
16 extern int print_filter(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
17 extern int print_qdisc(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
18 extern int print_class(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
19 extern void print_size_table(FILE *fp, const char *prefix, struct rtattr *rta);
20
21 struct tc_estimator;
22 extern int parse_estimator(int *p_argc, char ***p_argv, struct tc_estimator *est);
23
24 struct tc_sizespec;
25 extern int parse_size_table(int *p_argc, char ***p_argv, struct tc_sizespec *s);
26 extern int check_size_table_opts(struct tc_sizespec *s);
27
28 extern int show_graph;
29 extern bool use_names;