diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-05-08 22:45:06 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-05-08 22:45:06 +0200 |
| commit | 878c5456c5a2f9bff741a7b7bcdccd5c1694db22 (patch) | |
| tree | bcf3d101215fa70b953aa7e9d0de805c5f8865b4 /libdde_linux26/contrib/include/linux/tc_act | |
| parent | 9062642230b7bfb48e7b30f98cba8528172b2d36 (diff) | |
| parent | c8f311a7a32d4b0cb0c21672f63bca8efdf5d83a (diff) | |
Merge branch 'dde' into HEAD
Diffstat (limited to 'libdde_linux26/contrib/include/linux/tc_act')
19 files changed, 798 insertions, 0 deletions
diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/all-wcprops b/libdde_linux26/contrib/include/linux/tc_act/.svn/all-wcprops new file mode 100644 index 00000000..19e80d53 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/all-wcprops @@ -0,0 +1,53 @@ +K 25 +svn:wc:ra_dav:version-url +V 79 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act +END +tc_pedit.h +K 25 +svn:wc:ra_dav:version-url +V 90 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_pedit.h +END +tc_skbedit.h +K 25 +svn:wc:ra_dav:version-url +V 92 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_skbedit.h +END +tc_defact.h +K 25 +svn:wc:ra_dav:version-url +V 91 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_defact.h +END +tc_ipt.h +K 25 +svn:wc:ra_dav:version-url +V 88 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_ipt.h +END +Kbuild +K 25 +svn:wc:ra_dav:version-url +V 86 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/Kbuild +END +tc_gact.h +K 25 +svn:wc:ra_dav:version-url +V 89 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_gact.h +END +tc_mirred.h +K 25 +svn:wc:ra_dav:version-url +V 91 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_mirred.h +END +tc_nat.h +K 25 +svn:wc:ra_dav:version-url +V 88 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act/tc_nat.h +END diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/entries b/libdde_linux26/contrib/include/linux/tc_act/.svn/entries new file mode 100644 index 00000000..5939864f --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/entries @@ -0,0 +1,300 @@ +9 + +dir +465 +http://svn.tudos.org/repos/tudos/trunk/l4/pkg/dde/linux26/contrib/include/linux/tc_act +http://svn.tudos.org/repos/tudos + + + +2009-05-20T14:32:55.606606Z +455 +l4check + + +svn:special svn:externals svn:needs-lock + + + + + + + + + + + +a704ac0b-3a55-4d43-a2a9-7be6f07c34fb + +tc_pedit.h +file + + + + +2009-11-15T17:15:27.000000Z +5ebb282794b2a4e0fe616e5b83afff19 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +782 + +tc_skbedit.h +file + + + + +2009-11-15T17:15:27.000000Z +65d8ec42770e98ef9a674ce2705bcab9 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +1185 + +tc_defact.h +file + + + + +2009-11-15T17:15:27.000000Z +232364c81c929bf3e20c5ee5088253d0 +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +325 + +tc_ipt.h +file + + + + +2009-11-15T17:15:27.000000Z +3b5b74014a726db1444ee3d646c634f8 +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +361 + +Kbuild +file + + + + +2009-11-15T17:15:27.000000Z +2a97626fc8d70647ee2903fdb3eac714 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +136 + +tc_gact.h +file + + + + +2009-11-15T17:15:27.000000Z +8ad55094bd70082225d931c8958d9072 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +571 + +tc_mirred.h +file + + + + +2009-11-15T17:15:27.000000Z +4ddd27b1f7d4b1609f924c172811dc15 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +913 + +tc_nat.h +file + + + + +2009-11-15T17:15:27.000000Z +5f700f5d12299867c8b49f7d5fc541ee +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +370 + diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/format b/libdde_linux26/contrib/include/linux/tc_act/.svn/format new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/format @@ -0,0 +1 @@ +9 diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/Kbuild.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/Kbuild.svn-base new file mode 100644 index 00000000..76990937 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/Kbuild.svn-base @@ -0,0 +1,6 @@ +header-y += tc_gact.h +header-y += tc_ipt.h +header-y += tc_mirred.h +header-y += tc_pedit.h +header-y += tc_nat.h +header-y += tc_skbedit.h diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_defact.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_defact.h.svn-base new file mode 100644 index 00000000..964f473a --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_defact.h.svn-base @@ -0,0 +1,21 @@ +#ifndef __LINUX_TC_DEF_H +#define __LINUX_TC_DEF_H + +#include <linux/pkt_cls.h> + +struct tc_defact +{ + tc_gen; +}; + +enum +{ + TCA_DEF_UNSPEC, + TCA_DEF_TM, + TCA_DEF_PARMS, + TCA_DEF_DATA, + __TCA_DEF_MAX +}; +#define TCA_DEF_MAX (__TCA_DEF_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_gact.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_gact.h.svn-base new file mode 100644 index 00000000..e895c0a3 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_gact.h.svn-base @@ -0,0 +1,35 @@ +#ifndef __LINUX_TC_GACT_H +#define __LINUX_TC_GACT_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_ACT_GACT 5 +struct tc_gact +{ + tc_gen; + +}; + +struct tc_gact_p +{ +#define PGACT_NONE 0 +#define PGACT_NETRAND 1 +#define PGACT_DETERM 2 +#define MAX_RAND (PGACT_DETERM + 1 ) + __u16 ptype; + __u16 pval; + int paction; +}; + +enum +{ + TCA_GACT_UNSPEC, + TCA_GACT_TM, + TCA_GACT_PARMS, + TCA_GACT_PROB, + __TCA_GACT_MAX +}; +#define TCA_GACT_MAX (__TCA_GACT_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_ipt.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_ipt.h.svn-base new file mode 100644 index 00000000..4b6f7b6c --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_ipt.h.svn-base @@ -0,0 +1,21 @@ +#ifndef __LINUX_TC_IPT_H +#define __LINUX_TC_IPT_H + +#include <linux/pkt_cls.h> + +#define TCA_ACT_IPT 6 + +enum +{ + TCA_IPT_UNSPEC, + TCA_IPT_TABLE, + TCA_IPT_HOOK, + TCA_IPT_INDEX, + TCA_IPT_CNT, + TCA_IPT_TM, + TCA_IPT_TARG, + __TCA_IPT_MAX +}; +#define TCA_IPT_MAX (__TCA_IPT_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_mirred.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_mirred.h.svn-base new file mode 100644 index 00000000..0a99ab60 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_mirred.h.svn-base @@ -0,0 +1,29 @@ +#ifndef __LINUX_TC_MIR_H +#define __LINUX_TC_MIR_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_ACT_MIRRED 8 +#define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ +#define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ +#define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ +#define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ + +struct tc_mirred +{ + tc_gen; + int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ + __u32 ifindex; /* ifindex of egress port */ +}; + +enum +{ + TCA_MIRRED_UNSPEC, + TCA_MIRRED_TM, + TCA_MIRRED_PARMS, + __TCA_MIRRED_MAX +}; +#define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_nat.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_nat.h.svn-base new file mode 100644 index 00000000..e7cf31e8 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_nat.h.svn-base @@ -0,0 +1,29 @@ +#ifndef __LINUX_TC_NAT_H +#define __LINUX_TC_NAT_H + +#include <linux/pkt_cls.h> +#include <linux/types.h> + +#define TCA_ACT_NAT 9 + +enum +{ + TCA_NAT_UNSPEC, + TCA_NAT_PARMS, + TCA_NAT_TM, + __TCA_NAT_MAX +}; +#define TCA_NAT_MAX (__TCA_NAT_MAX - 1) + +#define TCA_NAT_FLAG_EGRESS 1 + +struct tc_nat +{ + tc_gen; + __be32 old_addr; + __be32 new_addr; + __be32 mask; + __u32 flags; +}; + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_pedit.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_pedit.h.svn-base new file mode 100644 index 00000000..54ce9064 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_pedit.h.svn-base @@ -0,0 +1,37 @@ +#ifndef __LINUX_TC_PED_H +#define __LINUX_TC_PED_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_ACT_PEDIT 7 + +enum +{ + TCA_PEDIT_UNSPEC, + TCA_PEDIT_TM, + TCA_PEDIT_PARMS, + __TCA_PEDIT_MAX +}; +#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) + +struct tc_pedit_key +{ + __u32 mask; /* AND */ + __u32 val; /*XOR */ + __u32 off; /*offset */ + __u32 at; + __u32 offmask; + __u32 shift; +}; + +struct tc_pedit_sel +{ + tc_gen; + unsigned char nkeys; + unsigned char flags; + struct tc_pedit_key keys[0]; +}; +#define tc_pedit tc_pedit_sel + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_skbedit.h.svn-base b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_skbedit.h.svn-base new file mode 100644 index 00000000..a14e461a --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/.svn/text-base/tc_skbedit.h.svn-base @@ -0,0 +1,44 @@ +/* + * 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 __LINUX_TC_SKBEDIT_H +#define __LINUX_TC_SKBEDIT_H + +#include <linux/pkt_cls.h> + +#define TCA_ACT_SKBEDIT 11 + +#define SKBEDIT_F_PRIORITY 0x1 +#define SKBEDIT_F_QUEUE_MAPPING 0x2 + +struct tc_skbedit { + tc_gen; +}; + +enum { + TCA_SKBEDIT_UNSPEC, + TCA_SKBEDIT_TM, + TCA_SKBEDIT_PARMS, + TCA_SKBEDIT_PRIORITY, + TCA_SKBEDIT_QUEUE_MAPPING, + __TCA_SKBEDIT_MAX +}; +#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/Kbuild b/libdde_linux26/contrib/include/linux/tc_act/Kbuild new file mode 100644 index 00000000..76990937 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/Kbuild @@ -0,0 +1,6 @@ +header-y += tc_gact.h +header-y += tc_ipt.h +header-y += tc_mirred.h +header-y += tc_pedit.h +header-y += tc_nat.h +header-y += tc_skbedit.h diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_defact.h b/libdde_linux26/contrib/include/linux/tc_act/tc_defact.h new file mode 100644 index 00000000..964f473a --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_defact.h @@ -0,0 +1,21 @@ +#ifndef __LINUX_TC_DEF_H +#define __LINUX_TC_DEF_H + +#include <linux/pkt_cls.h> + +struct tc_defact +{ + tc_gen; +}; + +enum +{ + TCA_DEF_UNSPEC, + TCA_DEF_TM, + TCA_DEF_PARMS, + TCA_DEF_DATA, + __TCA_DEF_MAX +}; +#define TCA_DEF_MAX (__TCA_DEF_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_gact.h b/libdde_linux26/contrib/include/linux/tc_act/tc_gact.h new file mode 100644 index 00000000..e895c0a3 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_gact.h @@ -0,0 +1,35 @@ +#ifndef __LINUX_TC_GACT_H +#define __LINUX_TC_GACT_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_ACT_GACT 5 +struct tc_gact +{ + tc_gen; + +}; + +struct tc_gact_p +{ +#define PGACT_NONE 0 +#define PGACT_NETRAND 1 +#define PGACT_DETERM 2 +#define MAX_RAND (PGACT_DETERM + 1 ) + __u16 ptype; + __u16 pval; + int paction; +}; + +enum +{ + TCA_GACT_UNSPEC, + TCA_GACT_TM, + TCA_GACT_PARMS, + TCA_GACT_PROB, + __TCA_GACT_MAX +}; +#define TCA_GACT_MAX (__TCA_GACT_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_ipt.h b/libdde_linux26/contrib/include/linux/tc_act/tc_ipt.h new file mode 100644 index 00000000..4b6f7b6c --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_ipt.h @@ -0,0 +1,21 @@ +#ifndef __LINUX_TC_IPT_H +#define __LINUX_TC_IPT_H + +#include <linux/pkt_cls.h> + +#define TCA_ACT_IPT 6 + +enum +{ + TCA_IPT_UNSPEC, + TCA_IPT_TABLE, + TCA_IPT_HOOK, + TCA_IPT_INDEX, + TCA_IPT_CNT, + TCA_IPT_TM, + TCA_IPT_TARG, + __TCA_IPT_MAX +}; +#define TCA_IPT_MAX (__TCA_IPT_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_mirred.h b/libdde_linux26/contrib/include/linux/tc_act/tc_mirred.h new file mode 100644 index 00000000..0a99ab60 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_mirred.h @@ -0,0 +1,29 @@ +#ifndef __LINUX_TC_MIR_H +#define __LINUX_TC_MIR_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_ACT_MIRRED 8 +#define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ +#define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ +#define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ +#define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ + +struct tc_mirred +{ + tc_gen; + int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ + __u32 ifindex; /* ifindex of egress port */ +}; + +enum +{ + TCA_MIRRED_UNSPEC, + TCA_MIRRED_TM, + TCA_MIRRED_PARMS, + __TCA_MIRRED_MAX +}; +#define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_nat.h b/libdde_linux26/contrib/include/linux/tc_act/tc_nat.h new file mode 100644 index 00000000..e7cf31e8 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_nat.h @@ -0,0 +1,29 @@ +#ifndef __LINUX_TC_NAT_H +#define __LINUX_TC_NAT_H + +#include <linux/pkt_cls.h> +#include <linux/types.h> + +#define TCA_ACT_NAT 9 + +enum +{ + TCA_NAT_UNSPEC, + TCA_NAT_PARMS, + TCA_NAT_TM, + __TCA_NAT_MAX +}; +#define TCA_NAT_MAX (__TCA_NAT_MAX - 1) + +#define TCA_NAT_FLAG_EGRESS 1 + +struct tc_nat +{ + tc_gen; + __be32 old_addr; + __be32 new_addr; + __be32 mask; + __u32 flags; +}; + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_pedit.h b/libdde_linux26/contrib/include/linux/tc_act/tc_pedit.h new file mode 100644 index 00000000..54ce9064 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_pedit.h @@ -0,0 +1,37 @@ +#ifndef __LINUX_TC_PED_H +#define __LINUX_TC_PED_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_ACT_PEDIT 7 + +enum +{ + TCA_PEDIT_UNSPEC, + TCA_PEDIT_TM, + TCA_PEDIT_PARMS, + __TCA_PEDIT_MAX +}; +#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) + +struct tc_pedit_key +{ + __u32 mask; /* AND */ + __u32 val; /*XOR */ + __u32 off; /*offset */ + __u32 at; + __u32 offmask; + __u32 shift; +}; + +struct tc_pedit_sel +{ + tc_gen; + unsigned char nkeys; + unsigned char flags; + struct tc_pedit_key keys[0]; +}; +#define tc_pedit tc_pedit_sel + +#endif diff --git a/libdde_linux26/contrib/include/linux/tc_act/tc_skbedit.h b/libdde_linux26/contrib/include/linux/tc_act/tc_skbedit.h new file mode 100644 index 00000000..a14e461a --- /dev/null +++ b/libdde_linux26/contrib/include/linux/tc_act/tc_skbedit.h @@ -0,0 +1,44 @@ +/* + * 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 __LINUX_TC_SKBEDIT_H +#define __LINUX_TC_SKBEDIT_H + +#include <linux/pkt_cls.h> + +#define TCA_ACT_SKBEDIT 11 + +#define SKBEDIT_F_PRIORITY 0x1 +#define SKBEDIT_F_QUEUE_MAPPING 0x2 + +struct tc_skbedit { + tc_gen; +}; + +enum { + TCA_SKBEDIT_UNSPEC, + TCA_SKBEDIT_TM, + TCA_SKBEDIT_PARMS, + TCA_SKBEDIT_PRIORITY, + TCA_SKBEDIT_QUEUE_MAPPING, + __TCA_SKBEDIT_MAX +}; +#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) + +#endif |
