]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/q_multiq.c
tc flower: fix parsing vlan_id and vlan_prio
[mirror_iproute2.git] / tc / q_multiq.c
index de29202797974c590e93bfb22eda1720fefc77b1..8ad9e0b2fa3ca9ee3b8cb68f3785f9bd46685aff 100644 (file)
  * Author: Alexander Duyck <alexander.h.duyck@intel.com>
  *
  * Original Authors:   PJ Waskiewicz, <peter.p.waskiewicz.jr@intel.com> (RR)
- *                     Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> (from PRIO)
+ *                     Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> (from PRIO)
  *
  */
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -41,9 +40,9 @@ static void explain(void)
 }
 
 static int multiq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
-                           struct nlmsghdr *n)
+                           struct nlmsghdr *n, const char *dev)
 {
-       struct tc_multiq_qopt opt;
+       struct tc_multiq_qopt opt = {};
 
        if (argc) {
                if (strcmp(*argv, "help") == 0) {
@@ -77,7 +76,7 @@ static int multiq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
 }
 
 struct qdisc_util multiq_qdisc_util = {
-       .id             = "multiq",
+       .id             = "multiq",
        .parse_qopt     = multiq_parse_opt,
        .print_qopt     = multiq_print_opt,
 };