summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_nat_proto_icmp.c
diff options
context:
space:
mode:
authorPatrick McHardy2008-04-14 11:15:47 +0200
committerPatrick McHardy2008-04-14 11:15:47 +0200
commit535b57c7c1524125444aa1b874332f6ff1608ef5 (patch)
treec127d9bce1b29158343447967c50edd51e357890 /net/ipv4/netfilter/nf_nat_proto_icmp.c
parent[NETFILTER]: nf_nat: fix random mode not to overwrite port rover (diff)
downloadkernel-qcow2-linux-535b57c7c1524125444aa1b874332f6ff1608ef5.tar.gz
kernel-qcow2-linux-535b57c7c1524125444aa1b874332f6ff1608ef5.tar.xz
kernel-qcow2-linux-535b57c7c1524125444aa1b874332f6ff1608ef5.zip
[NETFILTER]: nf_nat: move NAT ctnetlink helpers to nf_nat_proto_common
Move to nf_nat_proto_common and rename to nf_nat_proto_... since they're also used by protocols that don't have port numbers. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4/netfilter/nf_nat_proto_icmp.c')
-rw-r--r--net/ipv4/netfilter/nf_nat_proto_icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_icmp.c b/net/ipv4/netfilter/nf_nat_proto_icmp.c
index 03a02969aa57..ca601f84c4dc 100644
--- a/net/ipv4/netfilter/nf_nat_proto_icmp.c
+++ b/net/ipv4/netfilter/nf_nat_proto_icmp.c
@@ -79,7 +79,7 @@ const struct nf_nat_protocol nf_nat_protocol_icmp = {
.in_range = icmp_in_range,
.unique_tuple = icmp_unique_tuple,
#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
- .range_to_nlattr = nf_nat_port_range_to_nlattr,
- .nlattr_to_range = nf_nat_port_nlattr_to_range,
+ .range_to_nlattr = nf_nat_proto_range_to_nlattr,
+ .nlattr_to_range = nf_nat_proto_nlattr_to_range,
#endif
};