summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/ipt_MASQUERADE.c
diff options
context:
space:
mode:
authorPatrick McHardy2007-12-18 07:38:20 +0100
committerDavid S. Miller2008-01-28 23:58:57 +0100
commitcc01dcbd26865addfe9eb5431f1f9dbc511515ba (patch)
tree9af6cc5b90911d7b1cd08546924fac66e6c6bb8b /net/ipv4/netfilter/ipt_MASQUERADE.c
parent[NETFILTER]: nf_nat: sprinkle a few __read_mostlys (diff)
downloadkernel-qcow2-linux-cc01dcbd26865addfe9eb5431f1f9dbc511515ba.tar.gz
kernel-qcow2-linux-cc01dcbd26865addfe9eb5431f1f9dbc511515ba.tar.xz
kernel-qcow2-linux-cc01dcbd26865addfe9eb5431f1f9dbc511515ba.zip
[NETFILTER]: nf_nat: pass manip type instead of hook to nf_nat_setup_info
nf_nat_setup_info gets the hook number and translates that to the manip type to perform. This is a relict from the time when one manip per hook could exist, the exact hook number doesn't matter anymore, its converted to the manip type. Most callers already know what kind of NAT they want to perform, so pass the maniptype in directly. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/ipt_MASQUERADE.c')
-rw-r--r--net/ipv4/netfilter/ipt_MASQUERADE.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_MASQUERADE.c b/net/ipv4/netfilter/ipt_MASQUERADE.c
index f54150356cee..1cbff7b3084f 100644
--- a/net/ipv4/netfilter/ipt_MASQUERADE.c
+++ b/net/ipv4/netfilter/ipt_MASQUERADE.c
@@ -95,7 +95,7 @@ masquerade_tg(struct sk_buff *skb, const struct net_device *in,
mr->range[0].min, mr->range[0].max });
/* Hand modified range to generic setup. */
- return nf_nat_setup_info(ct, &newrange, hooknum);
+ return nf_nat_setup_info(ct, &newrange, IP_NAT_MANIP_SRC);
}
static int