diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-14 10:57:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-14 11:29:39 +0200 |
commit | f59cb0453cd885736daa11ae2445982c5ab2fc83 (patch) | |
tree | e9df44bf9834bf57df4e84f0b564629e887bbcc2 /include | |
parent | 795aa6ef6a1aba99050735eadd0c2341b789b53b (diff) | |
download | op-kernel-dev-f59cb0453cd885736daa11ae2445982c5ab2fc83.zip op-kernel-dev-f59cb0453cd885736daa11ae2445982c5ab2fc83.tar.gz |
netfilter: nf_nat: move alloc_null_binding to nf_nat_core.c
Similar to nat_decode_session, alloc_null_binding is needed for both
ip_tables and nf_tables, so move it to nf_nat_core.c. This change
is required by nf_tables.
This is an adapted version of the original patch from Patrick McHardy.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_nat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_nat.h b/include/net/netfilter/nf_nat.h index c29b4e5..07eaaf6 100644 --- a/include/net/netfilter/nf_nat.h +++ b/include/net/netfilter/nf_nat.h @@ -45,6 +45,9 @@ unsigned int nf_nat_setup_info(struct nf_conn *ct, const struct nf_nat_range *range, enum nf_nat_manip_type maniptype); +extern unsigned int nf_nat_alloc_null_binding(struct nf_conn *ct, + unsigned int hooknum); + /* Is this tuple already taken? (not by us)*/ int nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, const struct nf_conn *ignored_conntrack); |