2005-04-16 22:20:36 +00:00
|
|
|
#ifndef _IP_NAT_CORE_H
|
|
|
|
#define _IP_NAT_CORE_H
|
|
|
|
#include <linux/list.h>
|
|
|
|
#include <linux/netfilter_ipv4/ip_conntrack.h>
|
|
|
|
|
|
|
|
/* This header used to share core functionality between the standalone
|
|
|
|
NAT module, and the compatibility layer's use of NAT for masquerading. */
|
|
|
|
|
2005-09-26 22:25:11 +00:00
|
|
|
extern unsigned int ip_nat_packet(struct ip_conntrack *ct,
|
2005-04-16 22:20:36 +00:00
|
|
|
enum ip_conntrack_info conntrackinfo,
|
|
|
|
unsigned int hooknum,
|
|
|
|
struct sk_buff **pskb);
|
|
|
|
|
2005-09-26 22:25:11 +00:00
|
|
|
extern int ip_nat_icmp_reply_translation(struct sk_buff **pskb,
|
|
|
|
struct ip_conntrack *ct,
|
|
|
|
enum ip_nat_manip_type manip,
|
|
|
|
enum ip_conntrack_dir dir);
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _IP_NAT_CORE_H */
|