Home
last modified time | relevance | path

Searched refs:nat (Results 1 – 8 of 8) sorted by relevance

/net/ipv4/netfilter/
Dnf_nat_core.c151 const struct nf_conn_nat *nat; in find_appropriate_src() local
156 hlist_for_each_entry_rcu(nat, n, &net->ipv4.nat_bysource[h], bysource) { in find_appropriate_src()
157 ct = nat->ct; in find_appropriate_src()
287 struct nf_conn_nat *nat; in nf_nat_setup_info() local
291 nat = nfct_nat(ct); in nf_nat_setup_info()
292 if (!nat) { in nf_nat_setup_info()
293 nat = nf_ct_ext_add(ct, NF_CT_EXT_NAT, GFP_ATOMIC); in nf_nat_setup_info()
294 if (nat == NULL) { in nf_nat_setup_info()
335 nat = nfct_nat(ct); in nf_nat_setup_info()
336 nat->ct = ct; in nf_nat_setup_info()
[all …]
Dipt_MASQUERADE.c53 struct nf_conn_nat *nat; in masquerade_tg() local
63 nat = nfct_nat(ct); in masquerade_tg()
83 nat->masq_index = par->out->ifindex; in masquerade_tg()
99 const struct nf_conn_nat *nat = nfct_nat(i); in device_cmp() local
102 if (!nat) in device_cmp()
106 ret = (nat->masq_index == (int)(long)ifindex); in device_cmp()
Dnf_nat_helper.c46 struct nf_conn_nat *nat = nfct_nat(ct); in adjust_tcp_sequence() local
52 this_way = &nat->seq[dir]; in adjust_tcp_sequence()
53 other_way = &nat->seq[!dir]; in adjust_tcp_sequence()
334 struct nf_conn_nat *nat = nfct_nat(ct); in nf_nat_sack_adjust() local
364 optoff+op[1], &nat->seq[!dir]); in nf_nat_sack_adjust()
380 struct nf_conn_nat *nat = nfct_nat(ct); in nf_nat_seq_adjust() local
385 this_way = &nat->seq[dir]; in nf_nat_seq_adjust()
386 other_way = &nat->seq[!dir]; in nf_nat_seq_adjust()
Dnf_nat_standalone.c83 struct nf_conn_nat *nat; in nf_nat_fn() local
103 nat = nfct_nat(ct); in nf_nat_fn()
104 if (!nat) { in nf_nat_fn()
108 nat = nf_ct_ext_add(ct, NF_CT_EXT_NAT, GFP_ATOMIC); in nf_nat_fn()
109 if (nat == NULL) { in nf_nat_fn()
DKconfig162 the `nat' table in iptables: see the man page for iptables(8).
/net/netfilter/
Dnf_conntrack_netlink.c309 struct nf_conn_nat *nat = nfct_nat(ct); in ctnetlink_dump_nat_seq_adj() local
311 if (!(ct->status & IPS_SEQ_ADJUST) || !nat) in ctnetlink_dump_nat_seq_adj()
314 natseq = &nat->seq[IP_CT_DIR_ORIGINAL]; in ctnetlink_dump_nat_seq_adj()
318 natseq = &nat->seq[IP_CT_DIR_REPLY]; in ctnetlink_dump_nat_seq_adj()
1033 struct nf_conn_nat *nat = nfct_nat(ct); in ctnetlink_change_nat_seq_adj() local
1035 if (!nat) in ctnetlink_change_nat_seq_adj()
1039 ret = change_nat_seq_adj(&nat->seq[IP_CT_DIR_ORIGINAL], in ctnetlink_change_nat_seq_adj()
1048 ret = change_nat_seq_adj(&nat->seq[IP_CT_DIR_REPLY], in ctnetlink_change_nat_seq_adj()
/net/bridge/netfilter/
DKconfig39 tristate "ebt: nat table support"
41 The ebtables nat table is used to define rules that alter the MAC
/net/sched/
DKconfig482 module will be called nat.