| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
#include <stdio.h> |
| 3 |
#include <string.h> |
| 4 |
|
| 5 |
#include "utils.h" |
| 6 |
#include "tc_util.h" |
| 7 |
|
| 8 |
static void explain(void) |
| 9 |
{ |
| 10 |
fprintf(stderr, "Usage: ... clsact\n"); |
| 11 |
} |
| 12 |
|
| 13 |
static int clsact_parse_opt(const struct qdisc_util *qu, int argc, char **argv, |
| 14 |
struct nlmsghdr *n, const char *dev) |
| 15 |
{ |
| 16 |
if (argc > 0) { |
| 17 |
fprintf(stderr, "What is \"%s\"?\n", *argv); |
| 18 |
explain(); |
| 19 |
return -1; |
| 20 |
} |
| 21 |
|
| 22 |
return 0; |
| 23 |
} |
| 24 |
|
| 25 |
static int clsact_print_opt(const struct qdisc_util *qu, FILE *f, struct rtattr *opt) |
| 26 |
{ |
| 27 |
return 0; |
| 28 |
} |
| 29 |
|
| 30 |
struct qdisc_util clsact_qdisc_util = { |
| 31 |
.id = "clsact", |
| 32 |
.parse_qopt = clsact_parse_opt, |
| 33 |
.print_qopt = clsact_print_opt, |
| 34 |
}; |