3 #include <linux/list.h>
4 #include <net/netfilter/nf_conntrack.h>
5 #include <net/netfilter/nf_nat.h>
7 /* This header used to share core functionality between the standalone
8 NAT module, and the compatibility layer's use of NAT for masquerading. */
10 extern unsigned int nf_nat_packet(struct nf_conn *ct,
11 enum ip_conntrack_info ctinfo,
15 extern int nf_nat_icmp_reply_translation(struct nf_conn *ct,
16 enum ip_conntrack_info ctinfo,
20 static inline int nf_nat_initialized(struct nf_conn *ct,
21 enum nf_nat_manip_type manip)
23 if (manip == IP_NAT_MANIP_SRC)
24 return test_bit(IPS_SRC_NAT_DONE_BIT, &ct->status);
26 return test_bit(IPS_DST_NAT_DONE_BIT, &ct->status);
28 #endif /* _NF_NAT_CORE_H */