summaryrefslogtreecommitdiff
path: root/libdde-linux26/contrib/include/net/tc_act
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 22:15:01 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-27 22:15:01 +0000
commit7996a3d79d55b7f879dfd62e202bbfe2963718d3 (patch)
tree8d9f6759fec4099b9be503c11c7ed174f7204980 /libdde-linux26/contrib/include/net/tc_act
parent4fbe7358c7747a9165f776eb19addbb9baf7def2 (diff)
really properly move files
Diffstat (limited to 'libdde-linux26/contrib/include/net/tc_act')
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_defact.h14
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_gact.h17
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_ipt.h17
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_mirred.h16
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_nat.h21
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_pedit.h15
-rw-r--r--libdde-linux26/contrib/include/net/tc_act/tc_skbedit.h34
7 files changed, 134 insertions, 0 deletions
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_defact.h b/libdde-linux26/contrib/include/net/tc_act/tc_defact.h
new file mode 100644
index 00000000..65f024b8
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_defact.h
@@ -0,0 +1,14 @@
+#ifndef __NET_TC_DEF_H
+#define __NET_TC_DEF_H
+
+#include <net/act_api.h>
+
+struct tcf_defact {
+ struct tcf_common common;
+ u32 tcfd_datalen;
+ void *tcfd_defdata;
+};
+#define to_defact(pc) \
+ container_of(pc, struct tcf_defact, common)
+
+#endif /* __NET_TC_DEF_H */
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_gact.h b/libdde-linux26/contrib/include/net/tc_act/tc_gact.h
new file mode 100644
index 00000000..9e3f6767
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_gact.h
@@ -0,0 +1,17 @@
+#ifndef __NET_TC_GACT_H
+#define __NET_TC_GACT_H
+
+#include <net/act_api.h>
+
+struct tcf_gact {
+ struct tcf_common common;
+#ifdef CONFIG_GACT_PROB
+ u16 tcfg_ptype;
+ u16 tcfg_pval;
+ int tcfg_paction;
+#endif
+};
+#define to_gact(pc) \
+ container_of(pc, struct tcf_gact, common)
+
+#endif /* __NET_TC_GACT_H */
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_ipt.h b/libdde-linux26/contrib/include/net/tc_act/tc_ipt.h
new file mode 100644
index 00000000..f7d25dfc
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_ipt.h
@@ -0,0 +1,17 @@
+#ifndef __NET_TC_IPT_H
+#define __NET_TC_IPT_H
+
+#include <net/act_api.h>
+
+struct xt_entry_target;
+
+struct tcf_ipt {
+ struct tcf_common common;
+ u32 tcfi_hook;
+ char *tcfi_tname;
+ struct xt_entry_target *tcfi_t;
+};
+#define to_ipt(pc) \
+ container_of(pc, struct tcf_ipt, common)
+
+#endif /* __NET_TC_IPT_H */
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_mirred.h b/libdde-linux26/contrib/include/net/tc_act/tc_mirred.h
new file mode 100644
index 00000000..ceac661c
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_mirred.h
@@ -0,0 +1,16 @@
+#ifndef __NET_TC_MIR_H
+#define __NET_TC_MIR_H
+
+#include <net/act_api.h>
+
+struct tcf_mirred {
+ struct tcf_common common;
+ int tcfm_eaction;
+ int tcfm_ifindex;
+ int tcfm_ok_push;
+ struct net_device *tcfm_dev;
+};
+#define to_mirred(pc) \
+ container_of(pc, struct tcf_mirred, common)
+
+#endif /* __NET_TC_MIR_H */
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_nat.h b/libdde-linux26/contrib/include/net/tc_act/tc_nat.h
new file mode 100644
index 00000000..4a691f34
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_nat.h
@@ -0,0 +1,21 @@
+#ifndef __NET_TC_NAT_H
+#define __NET_TC_NAT_H
+
+#include <linux/types.h>
+#include <net/act_api.h>
+
+struct tcf_nat {
+ struct tcf_common common;
+
+ __be32 old_addr;
+ __be32 new_addr;
+ __be32 mask;
+ u32 flags;
+};
+
+static inline struct tcf_nat *to_tcf_nat(struct tcf_common *pc)
+{
+ return container_of(pc, struct tcf_nat, common);
+}
+
+#endif /* __NET_TC_NAT_H */
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_pedit.h b/libdde-linux26/contrib/include/net/tc_act/tc_pedit.h
new file mode 100644
index 00000000..e6f6e159
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_pedit.h
@@ -0,0 +1,15 @@
+#ifndef __NET_TC_PED_H
+#define __NET_TC_PED_H
+
+#include <net/act_api.h>
+
+struct tcf_pedit {
+ struct tcf_common common;
+ unsigned char tcfp_nkeys;
+ unsigned char tcfp_flags;
+ struct tc_pedit_key *tcfp_keys;
+};
+#define to_pedit(pc) \
+ container_of(pc, struct tcf_pedit, common)
+
+#endif /* __NET_TC_PED_H */
diff --git a/libdde-linux26/contrib/include/net/tc_act/tc_skbedit.h b/libdde-linux26/contrib/include/net/tc_act/tc_skbedit.h
new file mode 100644
index 00000000..6abb3ed3
--- /dev/null
+++ b/libdde-linux26/contrib/include/net/tc_act/tc_skbedit.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2008, Intel Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307 USA.
+ *
+ * Author: Alexander Duyck <alexander.h.duyck@intel.com>
+ */
+
+#ifndef __NET_TC_SKBEDIT_H
+#define __NET_TC_SKBEDIT_H
+
+#include <net/act_api.h>
+
+struct tcf_skbedit {
+ struct tcf_common common;
+ u32 flags;
+ u32 priority;
+ u16 queue_mapping;
+};
+#define to_skbedit(pc) \
+ container_of(pc, struct tcf_skbedit, common)
+
+#endif /* __NET_TC_SKBEDIT_H */