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