3 #include <linux/list.h>
4 #include <net/netfilter/nf_conntrack.h>
6 /* This header used to share core functionality between the standalone
7 NAT module, and the compatibility layer's use of NAT for masquerading. */
9 extern unsigned int nf_nat_packet(struct nf_conn
*ct
,
10 enum ip_conntrack_info ctinfo
,
12 struct sk_buff
**pskb
);
14 extern int nf_nat_icmp_reply_translation(struct nf_conn
*ct
,
15 enum ip_conntrack_info ctinfo
,
17 struct sk_buff
**pskb
);
19 static inline int nf_nat_initialized(struct nf_conn
*ct
,
20 enum nf_nat_manip_type manip
)
22 if (manip
== IP_NAT_MANIP_SRC
)
23 return test_bit(IPS_SRC_NAT_DONE_BIT
, &ct
->status
);
25 return test_bit(IPS_DST_NAT_DONE_BIT
, &ct
->status
);
27 #endif /* _NF_NAT_CORE_H */