diff options
author | Patrick McHardy <kaber@trash.net> | 2008-04-14 05:15:47 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-14 05:15:47 -0400 |
commit | 535b57c7c1524125444aa1b874332f6ff1608ef5 (patch) | |
tree | c127d9bce1b29158343447967c50edd51e357890 /net/ipv4/netfilter/nf_nat_proto_gre.c | |
parent | 5abd363f738dcd048ee790fb9b84d0768a8a407f (diff) |
[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_gre.c')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_gre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_nat_proto_gre.c b/net/ipv4/netfilter/nf_nat_proto_gre.c index 87af63d9e69..71b0935ee1c 100644 --- a/net/ipv4/netfilter/nf_nat_proto_gre.c +++ b/net/ipv4/netfilter/nf_nat_proto_gre.c | |||
@@ -125,8 +125,8 @@ static const struct nf_nat_protocol gre = { | |||
125 | .in_range = nf_nat_proto_in_range, | 125 | .in_range = nf_nat_proto_in_range, |
126 | .unique_tuple = gre_unique_tuple, | 126 | .unique_tuple = gre_unique_tuple, |
127 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 127 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
128 | .range_to_nlattr = nf_nat_port_range_to_nlattr, | 128 | .range_to_nlattr = nf_nat_proto_range_to_nlattr, |
129 | .nlattr_to_range = nf_nat_port_nlattr_to_range, | 129 | .nlattr_to_range = nf_nat_proto_nlattr_to_range, |
130 | #endif | 130 | #endif |
131 | }; | 131 | }; |
132 | 132 | ||