8#include <netlink/cli/utils.h>
9#include <netlink/cli/tc.h>
11static void print_usage(
void)
14"Usage: nl-qdisc-add [...] ingress\n"
17" --help Show this help text.\n"
20" # Attach ingress to eth1\n"
21" nl-qdisc-add --dev=eth1 --parent=root ingress\n");
24static void ingress_parse_argv(
struct rtnl_tc *tc,
int argc,
char **argv)
28 static struct option long_opts[] = {
29 {
"help", 0, 0,
'h' },
33 c = getopt_long(argc, argv,
"h", long_opts, &optidx);
48 .tm_type = RTNL_TC_TYPE_QDISC,
49 .tm_parse_argv = ingress_parse_argv,
52static void _nl_init ingress_init(
void)
54 nl_cli_tc_register(&ingress_module);
57static void _nl_exit ingress_exit(
void)
59 nl_cli_tc_unregister(&ingress_module);