mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-12 22:33:23 +00:00

The tools "ip" and "tc" use a flag "use_iec", which indicates whether, when formatting rate values, the prefixes "K", "M", etc. should refer to powers of 1024, or powers of 1000. The flag is currently kept as a global variable in "ip" and "tc", but is nonetheless declared in util.h. Instead, move the declaration to tool-specific headers ip/ip_common.h and tc/tc_common.h. Signed-off-by: Petr Machata <me@pmachata.org> Signed-off-by: David Ahern <dsahern@gmail.com>
31 lines
945 B
C
31 lines
945 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#define TCA_BUF_MAX (64*1024)
|
|
|
|
extern struct rtnl_handle rth;
|
|
|
|
int do_qdisc(int argc, char **argv);
|
|
int do_class(int argc, char **argv);
|
|
int do_filter(int argc, char **argv);
|
|
int do_chain(int argc, char **argv);
|
|
int do_action(int argc, char **argv);
|
|
int do_tcmonitor(int argc, char **argv);
|
|
int do_exec(int argc, char **argv);
|
|
|
|
int print_action(struct nlmsghdr *n, void *arg);
|
|
int print_filter(struct nlmsghdr *n, void *arg);
|
|
int print_qdisc(struct nlmsghdr *n, void *arg);
|
|
int print_class(struct nlmsghdr *n, void *arg);
|
|
void print_size_table(FILE *fp, const char *prefix, struct rtattr *rta);
|
|
|
|
struct tc_estimator;
|
|
int parse_estimator(int *p_argc, char ***p_argv, struct tc_estimator *est);
|
|
|
|
struct tc_sizespec;
|
|
int parse_size_table(int *p_argc, char ***p_argv, struct tc_sizespec *s);
|
|
int check_size_table_opts(struct tc_sizespec *s);
|
|
|
|
extern int show_graph;
|
|
extern bool use_names;
|
|
extern int use_iec;
|