13 #include <netlink/cli/utils.h>
14 #include <netlink/cli/tc.h>
16 static void print_usage(
void)
19 "Usage: nl-qdisc-add [...] ingress\n"
22 " --help Show this help text.\n"
25 " # Attach ingress to eth1\n"
26 " nl-qdisc-add --dev=eth1 --parent=root ingress\n");
29 static void ingress_parse_argv(
struct rtnl_tc *tc,
int argc,
char **argv)
33 static struct option long_opts[] = {
34 {
"help", 0, 0,
'h' },
38 c = getopt_long(argc, argv,
"h", long_opts, &optidx);
53 .tm_type = RTNL_TC_TYPE_QDISC,
54 .tm_parse_argv = ingress_parse_argv,
57 static void __init ingress_init(
void)
59 nl_cli_tc_register(&ingress_module);
62 static void __exit ingress_exit(
void)
64 nl_cli_tc_unregister(&ingress_module);