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