aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/netfilter/ebt_snat.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge/netfilter/ebt_snat.c')
-rw-r--r--net/bridge/netfilter/ebt_snat.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/net/bridge/netfilter/ebt_snat.c b/net/bridge/netfilter/ebt_snat.c
index 0e83de781c0..363d0051e04 100644
--- a/net/bridge/netfilter/ebt_snat.c
+++ b/net/bridge/netfilter/ebt_snat.c
@@ -16,9 +16,10 @@
16#include <linux/netfilter_bridge/ebtables.h> 16#include <linux/netfilter_bridge/ebtables.h>
17#include <linux/netfilter_bridge/ebt_nat.h> 17#include <linux/netfilter_bridge/ebt_nat.h>
18 18
19static unsigned int ebt_target_snat(struct sk_buff *skb, unsigned int hooknr, 19static unsigned int
20 const struct net_device *in, const struct net_device *out, 20ebt_snat_tg(struct sk_buff *skb, const struct net_device *in,
21 const void *data, unsigned int datalen) 21 const struct net_device *out, unsigned int hook_nr,
22 const struct xt_target *target, const void *data)
22{ 23{
23 const struct ebt_nat_info *info = data; 24 const struct ebt_nat_info *info = data;
24 25
@@ -43,8 +44,10 @@ out:
43 return info->target | ~EBT_VERDICT_BITS; 44 return info->target | ~EBT_VERDICT_BITS;
44} 45}
45 46
46static bool ebt_target_snat_check(const char *tablename, unsigned int hookmask, 47static bool
47 const struct ebt_entry *e, void *data, unsigned int datalen) 48ebt_snat_tg_check(const char *tablename, const void *e,
49 const struct xt_target *target, void *data,
50 unsigned int hookmask)
48{ 51{
49 const struct ebt_nat_info *info = data; 52 const struct ebt_nat_info *info = data;
50 int tmp; 53 int tmp;
@@ -70,8 +73,8 @@ static struct ebt_target snat __read_mostly = {
70 .name = EBT_SNAT_TARGET, 73 .name = EBT_SNAT_TARGET,
71 .revision = 0, 74 .revision = 0,
72 .family = NFPROTO_BRIDGE, 75 .family = NFPROTO_BRIDGE,
73 .target = ebt_target_snat, 76 .target = ebt_snat_tg,
74 .check = ebt_target_snat_check, 77 .checkentry = ebt_snat_tg_check,
75 .targetsize = XT_ALIGN(sizeof(struct ebt_nat_info)), 78 .targetsize = XT_ALIGN(sizeof(struct ebt_nat_info)),
76 .me = THIS_MODULE, 79 .me = THIS_MODULE,
77}; 80};