summaryrefslogtreecommitdiff
path: root/include/net/netfilter/nf_nat_core.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-15 00:46:53 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-23 10:14:05 +0300
commit1f55236bd8dde69d1860a30c50793fb28d8405ae (patch)
tree3c15223784b0b1e41f757edf64f48bd0673acac3 /include/net/netfilter/nf_nat_core.h
parentb9ccc07e3f31ad8073697982bac014fbceef7ecb (diff)
downloadlinux-1f55236bd8dde69d1860a30c50793fb28d8405ae.tar.xz
netfilter: nf_nat: move common nat code to nat core
Copy-pasted, both l3 helpers almost use same code here. Split out the common part into an 'inet' helper. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_nat_core.h')
-rw-r--r--include/net/netfilter/nf_nat_core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_nat_core.h b/include/net/netfilter/nf_nat_core.h
index 235bd0e9a5aa..0d84dd29108d 100644
--- a/include/net/netfilter/nf_nat_core.h
+++ b/include/net/netfilter/nf_nat_core.h
@@ -11,6 +11,13 @@
unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
unsigned int hooknum, struct sk_buff *skb);
+unsigned int
+nf_nat_inet_fn(void *priv, struct sk_buff *skb,
+ const struct nf_hook_state *state,
+ unsigned int (*do_chain)(void *priv,
+ struct sk_buff *skb,
+ const struct nf_hook_state *state));
+
int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family);
static inline int nf_nat_initialized(struct nf_conn *ct,