]> git.proxmox.com Git - mirror_iproute2.git/blob - tc/q_hpfq.c
c2963669c7dbe599c3ce9b6f6d6e66ae318a1ff2
[mirror_iproute2.git] / tc / q_hpfq.c
1 /*
2 * q_hpfq.c HPFQ.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *
9 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
10 *
11 */
12
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <unistd.h>
16 #include <syslog.h>
17 #include <fcntl.h>
18 #include <sys/socket.h>
19 #include <netinet/in.h>
20 #include <arpa/inet.h>
21 #include <string.h>
22
23 #include "utils.h"
24 #include "tc_util.h"
25
26 static void explain()
27 {
28 fprintf(stderr, "Usage: ... hpfq \n");
29 }
30
31 static void explain1(char *arg)
32 {
33 fprintf(stderr, "Illegal \"%s\"\n", arg);
34 }
35
36
37 #define usage() return(-1)
38
39 static int hpfq_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
40 {
41 return -1;
42 }
43
44 static int hpfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
45 {
46 return -1;
47 }
48
49 static int hpfq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
50 {
51 return -1;
52 }
53
54 struct qdisc_util hpfq_util = {
55 NULL,
56 "hpfq",
57 hpfq_parse_opt,
58 hpfq_print_opt,
59 hpfq_print_xstats,
60 };
61