1 /* SPDX-License-Identifier: GPL-2.0 */
4 #include <linux/list.h>
5 #include <net/netfilter/nf_conntrack.h>
6 #include <net/netfilter/nf_nat.h>
8 /* This header used to share core functionality between the standalone
9 NAT module, and the compatibility layer's use of NAT for masquerading. */
11 unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
12 unsigned int hooknum, struct sk_buff *skb);
15 nf_nat_inet_fn(void *priv, struct sk_buff *skb,
16 const struct nf_hook_state *state);
18 int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family);
20 static inline int nf_nat_initialized(struct nf_conn *ct,
21 enum nf_nat_manip_type manip)
23 if (manip == NF_NAT_MANIP_SRC)
24 return ct->status & IPS_SRC_NAT_DONE;
26 return ct->status & IPS_DST_NAT_DONE;
29 #endif /* _NF_NAT_CORE_H */