mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-12-12 19:23:34 +08:00
6af6f02cce
Fix the JSON output if size addaption table is used. Example: [ { "kind": "fq_codel", "handle": "1:", "dev": "enp2s0", "root": true, "refcnt": 2, "options": { "limit": 10240, "flows": 1024, "quantum": 1514, "target": 4999, "interval": 99999, "memory_limit": 33554432, "ecn": true, "drop_batch": 64 }, "stab": { "overhead": 30, "mpu": 68, "mtu": 2047, "tsize": 512 } } ] Remove fixed prefix arg and no longer needed fp arg. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
31 lines
915 B
C
31 lines
915 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(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;
|