]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/p_icmp.c
bridge: fdb: add support for src_vni option
[mirror_iproute2.git] / tc / p_icmp.c
index a4b80c2c1bb94036c961bfcb250c283f15b7d3c9..15ce32309e398b94ae7042afb5f018740f250949 100644 (file)
@@ -13,7 +13,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -25,7 +24,8 @@
 
 
 static int
-parse_icmp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey)
+parse_icmp(int *argc_p, char ***argv_p,
+          struct m_pedit_sel *sel, struct m_pedit_key *tkey)
 {
        int res = -1;
 #if 0
@@ -47,7 +47,7 @@ parse_icmp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_
        }
        return -1;
 
-      done:
+done:
        *argc_p = argc;
        *argv_p = argv;
 #endif
@@ -55,7 +55,6 @@ parse_icmp(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_
 }
 
 struct m_pedit_util p_pedit_icmp = {
-       NULL,
-       "icmp",
-       parse_icmp,
+       .id = "icmp",
+       .parse_peopt = parse_icmp,
 };