diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-10-04 20:53:18 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-10-04 20:53:18 +0200 |
commit | 0c200d935346fe0ebde9b6dffbb683dddd166fb9 (patch) | |
tree | a880c12f3f68fd3abefd86bea8d445cab3c3c876 /net/ipv4/netfilter | |
parent | 758ff03387228824617cef9507e5682488bf9e0c (diff) | |
download | linux-stable-0c200d935346fe0ebde9b6dffbb683dddd166fb9.tar.gz linux-stable-0c200d935346fe0ebde9b6dffbb683dddd166fb9.tar.bz2 linux-stable-0c200d935346fe0ebde9b6dffbb683dddd166fb9.zip |
netfilter: nf_nat: make find/put static
The functions nf_nat_proto_find_get and nf_nat_proto_put are
only used internally in nf_nat_core. This might break some out
of tree NAT module.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4/netfilter')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index 2c084b3a8f0c..e2e00c4da883 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c @@ -47,7 +47,7 @@ __nf_nat_proto_find(u_int8_t protonum) return rcu_dereference(nf_nat_protos[protonum]); } -const struct nf_nat_protocol * +static const struct nf_nat_protocol * nf_nat_proto_find_get(u_int8_t protonum) { const struct nf_nat_protocol *p; @@ -60,14 +60,12 @@ nf_nat_proto_find_get(u_int8_t protonum) return p; } -EXPORT_SYMBOL_GPL(nf_nat_proto_find_get); -void +static void nf_nat_proto_put(const struct nf_nat_protocol *p) { module_put(p->me); } -EXPORT_SYMBOL_GPL(nf_nat_proto_put); /* We keep an extra hash for each conntrack, for fast searching. */ static inline unsigned int |