diff options
| author | Zheng Da <zhengda1936@gmail.com> | 2009-12-06 05:26:23 +0100 |
|---|---|---|
| committer | Zheng Da <zhengda1936@gmail.com> | 2009-12-06 05:26:23 +0100 |
| commit | 8a6d48c0542876eb3acfc0970c0ab7872db08d5f (patch) | |
| tree | 496e78bc728317ea779781b92f897d16936ee231 /libdde_linux26/contrib/include/net/tc_act | |
| parent | b4bffcfcdf3ab7a55d664e9aa5907f88da503f38 (diff) | |
check in the original version of dde linux26.
Diffstat (limited to 'libdde_linux26/contrib/include/net/tc_act')
17 files changed, 582 insertions, 0 deletions
diff --git a/libdde_linux26/contrib/include/net/tc_act/.svn/all-wcprops b/libdde_linux26/contrib/include/net/tc_act/.svn/all-wcprops new file mode 100644 index 00000000..7b781bd8 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/all-wcprops @@ -0,0 +1,47 @@ +K 25 +svn:wc:ra_dav:version-url +V 77 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act +END +tc_pedit.h +K 25 +svn:wc:ra_dav:version-url +V 88 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_pedit.h +END +tc_skbedit.h +K 25 +svn:wc:ra_dav:version-url +V 90 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_skbedit.h +END +tc_defact.h +K 25 +svn:wc:ra_dav:version-url +V 89 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_defact.h +END +tc_ipt.h +K 25 +svn:wc:ra_dav:version-url +V 86 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_ipt.h +END +tc_gact.h +K 25 +svn:wc:ra_dav:version-url +V 87 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_gact.h +END +tc_mirred.h +K 25 +svn:wc:ra_dav:version-url +V 89 +/repos/tudos/!svn/ver/174/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_mirred.h +END +tc_nat.h +K 25 +svn:wc:ra_dav:version-url +V 86 +/repos/tudos/!svn/ver/455/trunk/l4/pkg/dde/linux26/contrib/include/net/tc_act/tc_nat.h +END diff --git a/libdde_linux26/contrib/include/net/tc_act/.svn/entries b/libdde_linux26/contrib/include/net/tc_act/.svn/entries new file mode 100644 index 00000000..8c22b526 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/entries @@ -0,0 +1,266 @@ +9 + +dir +465 +http://svn.tudos.org/repos/tudos/trunk/l4/pkg/dde/linux26/contrib/include/net/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:14:51.000000Z +6a534e9fe07c944bf4390a2c876a0f32 +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +307 + +tc_skbedit.h +file + + + + +2009-11-15T17:14:51.000000Z +8096a358d64f6fe4fa655ca935a4db02 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +1066 + +tc_defact.h +file + + + + +2009-11-15T17:14:51.000000Z +a6e01f18618331fa0680a452df80d631 +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +272 + +tc_ipt.h +file + + + + +2009-11-15T17:14:51.000000Z +72467aa7462752da344aa260111e5b9b +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +309 + +tc_gact.h +file + + + + +2009-11-15T17:14:51.000000Z +1b3748be66ae0d7f70ef1dca505a491b +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +328 + +tc_mirred.h +file + + + + +2009-11-15T17:14:51.000000Z +cfe9d9d73147e46293a0a88318735d7c +2007-09-08T19:44:13.897747Z +174 +l4check + + + + + + + + + + + + + + + + + + + + + +314 + +tc_nat.h +file + + + + +2009-11-15T17:14:51.000000Z +a3297d8a89c631cbb7c929f982ef3296 +2009-05-20T14:32:55.606606Z +455 +l4check + + + + + + + + + + + + + + + + + + + + + +356 + diff --git a/libdde_linux26/contrib/include/net/tc_act/.svn/format b/libdde_linux26/contrib/include/net/tc_act/.svn/format new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/format @@ -0,0 +1 @@ +9 diff --git a/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_defact.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_defact.h.svn-base new file mode 100644 index 00000000..65f024b8 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_defact.h.svn-base @@ -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/.svn/text-base/tc_gact.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_gact.h.svn-base new file mode 100644 index 00000000..9e3f6767 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_gact.h.svn-base @@ -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/.svn/text-base/tc_ipt.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_ipt.h.svn-base new file mode 100644 index 00000000..f7d25dfc --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_ipt.h.svn-base @@ -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/.svn/text-base/tc_mirred.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_mirred.h.svn-base new file mode 100644 index 00000000..ceac661c --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_mirred.h.svn-base @@ -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/.svn/text-base/tc_nat.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_nat.h.svn-base new file mode 100644 index 00000000..4a691f34 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_nat.h.svn-base @@ -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/.svn/text-base/tc_pedit.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_pedit.h.svn-base new file mode 100644 index 00000000..e6f6e159 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_pedit.h.svn-base @@ -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/.svn/text-base/tc_skbedit.h.svn-base b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_skbedit.h.svn-base new file mode 100644 index 00000000..6abb3ed3 --- /dev/null +++ b/libdde_linux26/contrib/include/net/tc_act/.svn/text-base/tc_skbedit.h.svn-base @@ -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 */ 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 */ |
