diff options
author | Florian Westphal <fw@strlen.de> | 2014-04-28 15:09:50 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-04-29 14:56:22 -0400 |
commit | f768e5bdefe1ec9adbf7a116dfb156b73cacb582 (patch) | |
tree | 1d49bc5b3184cc71d34090a4b056e3b9a9427fb9 /include/net | |
parent | 683399eddb9fff742b1a14c5a5d03e12bfc0afff (diff) |
netfilter: add helper for adding nat extension
Reduce copy-past a bit by adding a common helper.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_nat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_nat.h b/include/net/netfilter/nf_nat.h index 07eaaf604092..a71dd333ac68 100644 --- a/include/net/netfilter/nf_nat.h +++ b/include/net/netfilter/nf_nat.h | |||
@@ -48,6 +48,8 @@ unsigned int nf_nat_setup_info(struct nf_conn *ct, | |||
48 | extern unsigned int nf_nat_alloc_null_binding(struct nf_conn *ct, | 48 | extern unsigned int nf_nat_alloc_null_binding(struct nf_conn *ct, |
49 | unsigned int hooknum); | 49 | unsigned int hooknum); |
50 | 50 | ||
51 | struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct); | ||
52 | |||
51 | /* Is this tuple already taken? (not by us)*/ | 53 | /* Is this tuple already taken? (not by us)*/ |
52 | int nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, | 54 | int nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, |
53 | const struct nf_conn *ignored_conntrack); | 55 | const struct nf_conn *ignored_conntrack); |