Lines Matching +full:default +full:- +full:cli
1 /* SPDX-License-Identifier: LGPL-2.1-only */
6 #include <netlink/cli/utils.h>
7 #include <netlink/cli/tc.h>
8 #include <netlink/cli/qdisc.h>
9 #include <netlink/cli/class.h>
10 #include <netlink/cli/link.h>
12 #include <netlink-private/route/tc-api.h>
21 "Usage: nl-class-add [OPTIONS]... class [CONFIGURATION]...\n" in print_usage()
24 " -q, --quiet Do not print informal notifications.\n" in print_usage()
25 " -h, --help Show this help text.\n" in print_usage()
26 " -v, --version Show versioning information.\n" in print_usage()
27 " --update Update class if it exists.\n" in print_usage()
28 " --update-only Only update class, never create it.\n" in print_usage()
29 " -d, --dev=DEV Network device the class should be attached to.\n" in print_usage()
30 " -i, --id=ID ID of new class (default: auto-generated)\n" in print_usage()
31 " -p, --parent=ID ID of parent { root | ingress | class-ID }\n" in print_usage()
32 " --mtu=SIZE Overwrite MTU (default: MTU of network device)\n" in print_usage()
33 " --mpu=SIZE Minimum packet size on the link (default: 0).\n" in print_usage()
34 " --overhead=SIZE Overhead in bytes per packet (default: 0).\n" in print_usage()
35 " --linktype=TYPE Overwrite linktype (default: type of network device)\n" in print_usage()
38 " -h, --help Show help text of class specific options.\n" in print_usage()
41 " $ nl-class-add --dev=eth1 --parent=root htb --rate=100mbit\n" in print_usage()
88 { "update-only", 0, 0, ARG_UPDATE_ONLY }, in main()
98 if (c == -1) in main()
121 nl_cli_fatal(EINVAL, "You must specify a network device (--dev=XXX)"); in main()
124 nl_cli_fatal(EINVAL, "You must specify a parent (--parent=XXX)"); in main()
140 tm->tm_parse_argv(tc, argc, argv); in main()