]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/m_pedit.h
tc: m_action: introduce support for hw stats type
[mirror_iproute2.git] / tc / m_pedit.h
index e2897b0c98082ba4ade7f859169761c48d53fd71..5d3628a70b99fafaf24c8eab7c2658f2a93bf0e3 100644 (file)
@@ -16,7 +16,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -32,6 +31,7 @@
 #define TIPV6 2
 #define TINT 3
 #define TU32 4
+#define TMAC 5
 
 #define RU32 0xFFFFFFFF
 #define RU16 0xFFFF
@@ -63,25 +63,15 @@ struct m_pedit_sel {
        bool extended;
 };
 
-struct m_pedit_util
-{
+struct m_pedit_util {
        struct m_pedit_util *next;
        char    id[PEDITKINDSIZ];
        int     (*parse_peopt)(int *argc_p, char ***argv_p,
-                              struct m_pedit_sel *sel, struct m_pedit_key *tkey);
+                              struct m_pedit_sel *sel,
+                              struct m_pedit_key *tkey);
 };
 
-extern int pack_key(struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int pack_key32(__u32 retain, struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int pack_key16(__u32 retain, struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int pack_key8(__u32 retain, struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int parse_val(int *argc_p, char ***argv_p, __u32 * val, int type);
-extern int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type, __u32 retain,
-                    struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-extern int parse_offset(int *argc_p, char ***argv_p,
-                       struct m_pedit_sel *sel, struct m_pedit_key *tkey);
-int parse_pedit(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);
-extern int print_pedit(struct action_util *au,FILE * f, struct rtattr *arg);
-extern int pedit_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats);
-
+int parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,
+             __u32 retain,
+             struct m_pedit_sel *sel, struct m_pedit_key *tkey);
 #endif