Merge git://git.infradead.org/hdrcleanup-2.6
[linux-2.6.git] / include / linux / netfilter_ipv4 / ip_nat_rule.h
1 #ifndef _IP_NAT_RULE_H
2 #define _IP_NAT_RULE_H
3 #include <linux/netfilter_ipv4/ip_conntrack.h>
4 #include <linux/netfilter_ipv4/ip_tables.h>
5 #include <linux/netfilter_ipv4/ip_nat.h>
6
7 #ifdef __KERNEL__
8
9 extern int ip_nat_rule_init(void) __init;
10 extern void ip_nat_rule_cleanup(void);
11 extern int ip_nat_rule_find(struct sk_buff **pskb,
12                             unsigned int hooknum,
13                             const struct net_device *in,
14                             const struct net_device *out,
15                             struct ip_conntrack *ct,
16                             struct ip_nat_info *info);
17
18 extern unsigned int
19 alloc_null_binding(struct ip_conntrack *conntrack,
20                    struct ip_nat_info *info,
21                    unsigned int hooknum);
22
23 extern unsigned int
24 alloc_null_binding_confirmed(struct ip_conntrack *conntrack,
25                              struct ip_nat_info *info,
26                              unsigned int hooknum);
27 #endif
28 #endif /* _IP_NAT_RULE_H */