#ifndef _NF_NAT_H #define _NF_NAT_H #include <linux/netfilter_ipv4.h> #include <linux/netfilter/nf_nat.h> #include <net/netfilter/nf_conntrack_tuple.h> enum nf_nat_manip_type { NF_NAT_MANIP_SRC, NF_NAT_MANIP_DST }; /* SRC manip occurs POST_ROUTING or LOCAL_IN */ #define HOOK2MANIP(hooknum) ((hooknum) != NF_INET_POST_ROUTING && \ (hooknum) != NF_INET_LOCAL_IN) #include <linux/list.h> #include <linux/netfilter/nf_conntrack_pptp.h> #include <net/netfilter/nf_conntrack_extend.h> /* per conntrack: nat application helper private data */ union nf_conntrack_nat_help { /* insert nat helper private data here */ #if defined(CONFIG_NF_NAT_PPTP) || defined(CONFIG_NF_NAT_PPTP_MODULE) struct nf_nat_pptp nat_pptp_info; #endif }; struct nf_conn; /* The structure embedded in the conntrack structure. */ struct nf_conn_nat { struct hlist_node bysource; struct nf_conn *ct; union nf_conntrack_nat_help help; #if IS_ENABLED(CONFIG_NF_NAT_MASQUERADE_IPV4) || \ IS_ENABLED(CONFIG_NF_NAT_MASQUERADE_IPV6) int masq_index; #endif }; /* Set up the info structure to map into this range. */ unsigned int nf_nat_setup_info(struct nf_conn *ct, const struct nf_nat_range *range, enum nf_nat_manip_type maniptype); extern unsigned int nf_nat_alloc_null_binding(struct nf_conn *ct, unsigned int hooknum); struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct); /* Is this tuple already taken? (not by us)*/ int nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, const struct nf_conn *ignored_conntrack);
static inline struct nf_conn_nat *nfct_nat(const struct nf_conn *ct) { #if defined(CONFIG_NF_NAT) || defined(CONFIG_NF_NAT_MODULE) return nf_ct_ext_find(ct, NF_CT_EXT_NAT); #else return NULL; #endif }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
yasuyuki kozakai | yasuyuki kozakai | 23 | 56.10% | 1 | 50.00% |
changli gao | changli gao | 18 | 43.90% | 1 | 50.00% |
Total | 41 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
jozsef kadlecsik | jozsef kadlecsik | 67 | 97.10% | 1 | 50.00% |
pablo neira ayuso | pablo neira ayuso | 2 | 2.90% | 1 | 50.00% |
Total | 69 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
jozsef kadlecsik | jozsef kadlecsik | 137 | 49.10% | 2 | 11.11% |
yasuyuki kozakai | yasuyuki kozakai | 62 | 22.22% | 4 | 22.22% |
changli gao | changli gao | 31 | 11.11% | 2 | 11.11% |
pablo neira ayuso | pablo neira ayuso | 23 | 8.24% | 3 | 16.67% |
patrick mchardy | patrick mchardy | 15 | 5.38% | 6 | 33.33% |
florian westphal | florian westphal | 11 | 3.94% | 1 | 5.56% |
Total | 279 | 100.00% | 18 | 100.00% |