Home | History | Annotate | Download | only in tc
      1 #include <stdio.h>
      2 #include <string.h>
      3 
      4 #include "utils.h"
      5 #include "tc_util.h"
      6 
      7 static void explain(void)
      8 {
      9 	fprintf(stderr, "Usage: ... clsact\n");
     10 }
     11 
     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 	addattr_l(n, 1024, TCA_OPTIONS, NULL, 0);
     22 	return 0;
     23 }
     24 
     25 static int clsact_print_opt(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 };
     35