aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/netfilter/ebt_mark_m.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-10-08 05:35:15 -0400
committerPatrick McHardy <kaber@trash.net>2008-10-08 05:35:15 -0400
commit2d06d4a5cc107046508d860a0b47dbc43b829b79 (patch)
treef3ff0b039d27ba0c5b802e6468b8960b943ab8fb /net/bridge/netfilter/ebt_mark_m.c
parent815377fe344c799228ca6278613ca3100b069ad5 (diff)
netfilter: change Ebtables function signatures to match Xtables's
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/bridge/netfilter/ebt_mark_m.c')
-rw-r--r--net/bridge/netfilter/ebt_mark_m.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/net/bridge/netfilter/ebt_mark_m.c b/net/bridge/netfilter/ebt_mark_m.c
index 6512ad9b409..db64a0de4f7 100644
--- a/net/bridge/netfilter/ebt_mark_m.c
+++ b/net/bridge/netfilter/ebt_mark_m.c
@@ -12,9 +12,10 @@
12#include <linux/netfilter_bridge/ebtables.h> 12#include <linux/netfilter_bridge/ebtables.h>
13#include <linux/netfilter_bridge/ebt_mark_m.h> 13#include <linux/netfilter_bridge/ebt_mark_m.h>
14 14
15static bool ebt_filter_mark(const struct sk_buff *skb, 15static bool
16 const struct net_device *in, const struct net_device *out, const void *data, 16ebt_mark_mt(const struct sk_buff *skb, const struct net_device *in,
17 unsigned int datalen) 17 const struct net_device *out, const struct xt_match *match,
18 const void *data, int offset, unsigned int protoff, bool *hotdrop)
18{ 19{
19 const struct ebt_mark_m_info *info = data; 20 const struct ebt_mark_m_info *info = data;
20 21
@@ -23,8 +24,10 @@ static bool ebt_filter_mark(const struct sk_buff *skb,
23 return ((skb->mark & info->mask) == info->mark) ^ info->invert; 24 return ((skb->mark & info->mask) == info->mark) ^ info->invert;
24} 25}
25 26
26static bool ebt_mark_check(const char *tablename, unsigned int hookmask, 27static bool
27 const struct ebt_entry *e, void *data, unsigned int datalen) 28ebt_mark_mt_check(const char *table, const void *e,
29 const struct xt_match *match, void *data,
30 unsigned int hook_mask)
28{ 31{
29 const struct ebt_mark_m_info *info = data; 32 const struct ebt_mark_m_info *info = data;
30 33
@@ -41,8 +44,8 @@ static struct ebt_match filter_mark __read_mostly = {
41 .name = EBT_MARK_MATCH, 44 .name = EBT_MARK_MATCH,
42 .revision = 0, 45 .revision = 0,
43 .family = NFPROTO_BRIDGE, 46 .family = NFPROTO_BRIDGE,
44 .match = ebt_filter_mark, 47 .match = ebt_mark_mt,
45 .check = ebt_mark_check, 48 .checkentry = ebt_mark_mt_check,
46 .matchsize = XT_ALIGN(sizeof(struct ebt_mark_m_info)), 49 .matchsize = XT_ALIGN(sizeof(struct ebt_mark_m_info)),
47 .me = THIS_MODULE, 50 .me = THIS_MODULE,
48}; 51};