Searched refs:nat (Results 1 – 10 of 10) sorted by relevance
/net/ipv4/netfilter/ |
D | nf_nat_pptp.c | 53 struct nf_conn_nat *nat; in pptp_nat_expected() local 55 nat = nf_ct_nat_ext_add(ct); in pptp_nat_expected() 56 if (WARN_ON_ONCE(!nat)) in pptp_nat_expected() 59 nat_pptp_info = &nat->help.nat_pptp_info; in pptp_nat_expected() 129 struct nf_conn_nat *nat = nfct_nat(ct); in pptp_outbound_pkt() local 135 if (WARN_ON_ONCE(!nat)) in pptp_outbound_pkt() 138 nat_pptp_info = &nat->help.nat_pptp_info; in pptp_outbound_pkt() 203 struct nf_conn_nat *nat = nfct_nat(ct); in pptp_exp_gre() local 207 if (WARN_ON_ONCE(!nat)) in pptp_exp_gre() 210 nat_pptp_info = &nat->help.nat_pptp_info; in pptp_exp_gre() [all …]
|
D | Kconfig | 224 This enables the `nat' table in iptables. This allows masquerading,
|
/net/netfilter/ |
D | nf_nat_masquerade.c | 32 struct nf_conn_nat *nat; in nf_nat_masquerade_ipv4() local 59 nat = nf_ct_nat_ext_add(ct); in nf_nat_masquerade_ipv4() 60 if (nat) in nf_nat_masquerade_ipv4() 61 nat->masq_index = out->ifindex; in nf_nat_masquerade_ipv4() 136 const struct nf_conn_nat *nat = nfct_nat(i); in device_cmp() local 139 if (!nat) in device_cmp() 141 return nat->masq_index == w->ifindex; in device_cmp() 240 struct nf_conn_nat *nat; in nf_nat_masquerade_ipv6() local 253 nat = nf_ct_nat_ext_add(ct); in nf_nat_masquerade_ipv6() 254 if (nat) in nf_nat_masquerade_ipv6() [all …]
|
D | nf_conntrack_helper.c | 153 struct nf_conntrack_nat_helper *nat; in nf_nat_helper_try_module_get() local 164 nat = nf_conntrack_nat_helper_find(h->nat_mod_name); in nf_nat_helper_try_module_get() 165 if (!nat) { in nf_nat_helper_try_module_get() 171 nat = nf_conntrack_nat_helper_find(mod_name); in nf_nat_helper_try_module_get() 172 if (!nat) { in nf_nat_helper_try_module_get() 178 if (!try_module_get(nat->module)) in nf_nat_helper_try_module_get() 188 struct nf_conntrack_nat_helper *nat; in nf_nat_helper_put() local 190 nat = nf_conntrack_nat_helper_find(helper->nat_mod_name); in nf_nat_helper_put() 191 if (WARN_ON_ONCE(!nat)) in nf_nat_helper_put() 194 module_put(nat->module); in nf_nat_helper_put() [all …]
|
D | nf_nat_core.c | 568 struct nf_conn_nat *nat = nfct_nat(ct); in nf_ct_nat_ext_add() local 569 if (nat) in nf_ct_nat_ext_add() 570 return nat; in nf_ct_nat_ext_add() 573 nat = nf_ct_ext_add(ct, NF_CT_EXT_NAT, GFP_ATOMIC); in nf_ct_nat_ext_add() 575 return nat; in nf_ct_nat_ext_add() 708 struct nf_conn_nat *nat; in nf_nat_inet_fn() local 721 nat = nfct_nat(ct); in nf_nat_inet_fn() 756 if (nf_nat_oif_changed(state->hook, ctinfo, nat, in nf_nat_inet_fn() 765 if (nf_nat_oif_changed(state->hook, ctinfo, nat, state->out)) in nf_nat_inet_fn() 921 nfnetlink_parse_nat(const struct nlattr *nat, in nfnetlink_parse_nat() argument [all …]
|
D | nf_conntrack_pptp.c | 535 struct nf_conn_nat *nat = nf_ct_ext_find(ct, NF_CT_EXT_NAT); in conntrack_pptp_help() local 537 if (!nat && !nf_ct_ext_add(ct, NF_CT_EXT_NAT, GFP_ATOMIC)) in conntrack_pptp_help()
|
D | Kconfig | 556 tristate "Netfilter nf_tables nat module" 558 This option adds the "nat" expression that you can use to perform
|
/net/openvswitch/ |
D | conntrack.c | 62 u8 nat : 3; /* enum ovs_ct_nat */ member 890 if (info->nat & OVS_CT_NAT && ctinfo != IP_CT_NEW && in ovs_ct_nat() 904 } else if (info->nat & OVS_CT_SRC_NAT) { in ovs_ct_nat() 906 } else if (info->nat & OVS_CT_DST_NAT) { in ovs_ct_nat() 1004 if (info->nat && !(key->ct_state & OVS_CS_F_NAT_MASK) && in __ovs_ct_lookup() 1024 if (info->nat && !nfct_seqadj(ct)) { in __ovs_ct_lookup() 1367 if (info->nat) { in ovs_ct_add_helper() 1425 if (info->nat) { in parse_nat() 1429 info->nat |= OVS_CT_NAT; in parse_nat() 1430 info->nat |= ((type == OVS_NAT_ATTR_SRC) in parse_nat() [all …]
|
/net/bridge/netfilter/ |
D | Kconfig | 76 tristate "ebt: nat table support" 78 The ebtables nat table is used to define rules that alter the MAC
|
/net/ipv6/netfilter/ |
D | Kconfig | 267 This enables the `nat' table in ip6tables. This allows masquerading,
|