]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - include/net/netfilter/nf_nat_core.h
Merge branch 'psmouse-passthrough' into next
[mirror_ubuntu-zesty-kernel.git] / include / net / netfilter / nf_nat_core.h
CommitLineData
5b1158e9
JK
1#ifndef _NF_NAT_CORE_H
2#define _NF_NAT_CORE_H
3#include <linux/list.h>
4#include <net/netfilter/nf_conntrack.h>
4ba88779 5#include <net/netfilter/nf_nat.h>
5b1158e9
JK
6
7/* This header used to share core functionality between the standalone
8 NAT module, and the compatibility layer's use of NAT for masquerading. */
9
4e77be46
JP
10unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
11 unsigned int hooknum, struct sk_buff *skb);
5b1158e9 12
c7af6483 13int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family);
5b1158e9
JK
14
15static inline int nf_nat_initialized(struct nf_conn *ct,
16 enum nf_nat_manip_type manip)
17{
cbc9f2f4 18 if (manip == NF_NAT_MANIP_SRC)
a7c2f4d7 19 return ct->status & IPS_SRC_NAT_DONE;
5b1158e9 20 else
a7c2f4d7 21 return ct->status & IPS_DST_NAT_DONE;
5b1158e9 22}
e6a7d3c0
PNA
23
24struct nlattr;
25
26extern int
27(*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct,
28 enum nf_nat_manip_type manip,
39938324 29 const struct nlattr *attr);
e6a7d3c0 30
5b1158e9 31#endif /* _NF_NAT_CORE_H */