]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: nf_nat: pass manip type instead of hook to nf_nat_setup_info
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 06:38:20 +0000 (22:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:57 +0000 (14:58 -0800)
commitcc01dcbd26865addfe9eb5431f1f9dbc511515ba
tree9af6cc5b90911d7b1cd08546924fac66e6c6bb8b
parentce4b1cebdcd4779097e9862670e5c5208e76712b
[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>
include/net/netfilter/nf_nat.h
net/ipv4/netfilter/ipt_MASQUERADE.c
net/ipv4/netfilter/ipt_NETMAP.c
net/ipv4/netfilter/ipt_REDIRECT.c
net/ipv4/netfilter/nf_nat_core.c
net/ipv4/netfilter/nf_nat_h323.c
net/ipv4/netfilter/nf_nat_helper.c
net/ipv4/netfilter/nf_nat_pptp.c
net/ipv4/netfilter/nf_nat_rule.c
net/ipv4/netfilter/nf_nat_sip.c
net/netfilter/nf_conntrack_netlink.c