summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_bridge
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2006-10-02 16:12:52 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-10-04 00:30:57 -0700
commitb18dfa90c008850e0f3bfd63638dd8fbe8e08701 (patch)
tree5d2683760ae0430f068f1d0f9ba686b3de029093 /include/linux/netfilter_bridge
parent9d02002d2dc2c7423e5891b97727fde4d667adf1 (diff)
downloadlinux-b18dfa90c008850e0f3bfd63638dd8fbe8e08701.tar.gz
linux-b18dfa90c008850e0f3bfd63638dd8fbe8e08701.tar.bz2
linux-b18dfa90c008850e0f3bfd63638dd8fbe8e08701.zip
[NETFILTER]: ebt_mark: add or/and/xor action support to mark target
The following patch adds or/and/xor functionality for the mark target, while staying backwards compatible. Signed-off-by: Bart De Schuymer <bdschuym@pandora.be> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter_bridge')
-rw-r--r--include/linux/netfilter_bridge/ebt_mark_t.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/netfilter_bridge/ebt_mark_t.h b/include/linux/netfilter_bridge/ebt_mark_t.h
index 110fec6a40a2..6270f6f33693 100644
--- a/include/linux/netfilter_bridge/ebt_mark_t.h
+++ b/include/linux/netfilter_bridge/ebt_mark_t.h
@@ -1,6 +1,18 @@
#ifndef __LINUX_BRIDGE_EBT_MARK_T_H
#define __LINUX_BRIDGE_EBT_MARK_T_H
+/* The target member is reused for adding new actions, the
+ * value of the real target is -1 to -NUM_STANDARD_TARGETS.
+ * For backward compatibility, the 4 lsb (2 would be enough,
+ * but let's play it safe) are kept to designate this target.
+ * The remaining bits designate the action. By making the set
+ * action 0xfffffff0, the result will look ok for older
+ * versions. [September 2006] */
+#define MARK_SET_VALUE (0xfffffff0)
+#define MARK_OR_VALUE (0xffffffe0)
+#define MARK_AND_VALUE (0xffffffd0)
+#define MARK_XOR_VALUE (0xffffffc0)
+
struct ebt_mark_t_info
{
unsigned long mark;