/linux/fs/f2fs/ |
A D | node.h | 69 #define nat_get_nid(nat) ((nat)->ni.nid) argument 70 #define nat_set_nid(nat, n) ((nat)->ni.nid = (n)) argument 71 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr) argument 72 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b)) argument 73 #define nat_get_ino(nat) ((nat)->ni.ino) argument 74 #define nat_set_ino(nat, i) ((nat)->ni.ino = (i)) argument 75 #define nat_get_version(nat) ((nat)->ni.version) argument 76 #define nat_set_version(nat, v) ((nat)->ni.version = (v)) argument
|
/linux/net/ipv4/netfilter/ |
A 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() 239 struct nf_conn_nat *nat = nfct_nat(ct); in pptp_inbound_pkt() local [all …]
|
/linux/net/netfilter/ |
A 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 …]
|
A 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 191 if (WARN_ON_ONCE(!nat)) in nf_nat_helper_put() 194 module_put(nat->module); in nf_nat_helper_put() 540 list_add_rcu(&nat->list, &nf_ct_nat_helpers); in nf_nat_helper_register() [all …]
|
A 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() 718 struct nf_conn_nat *nat; in nf_nat_inet_fn() local 731 nat = nfct_nat(ct); in nf_nat_inet_fn() 766 if (nf_nat_oif_changed(state->hook, ctinfo, nat, in nf_nat_inet_fn() 775 if (nf_nat_oif_changed(state->hook, ctinfo, nat, state->out)) in nf_nat_inet_fn() 931 nfnetlink_parse_nat(const struct nlattr *nat, in nfnetlink_parse_nat() argument [all …]
|
/linux/arch/ia64/kernel/ |
A D | mca.c | 860 u64 fslot, tslot, nat; in copy_reg() local 865 nat = (fnat >> fslot) & 1; in copy_reg() 866 *tnat |= (nat << tslot); in copy_reg() 897 unsigned long *nat) in finish_pt_regs() argument 936 copy_reg(&bank[16-16], ms->pmsa_nat_bits, ®s->r16, nat); in finish_pt_regs() 937 copy_reg(&bank[17-16], ms->pmsa_nat_bits, ®s->r17, nat); in finish_pt_regs() 938 copy_reg(&bank[18-16], ms->pmsa_nat_bits, ®s->r18, nat); in finish_pt_regs() 939 copy_reg(&bank[19-16], ms->pmsa_nat_bits, ®s->r19, nat); in finish_pt_regs() 940 copy_reg(&bank[20-16], ms->pmsa_nat_bits, ®s->r20, nat); in finish_pt_regs() 983 unsigned long old_unat, old_rnat, new_rnat, nat; in ia64_mca_modify_original_stack() local [all …]
|
A D | unaligned.c | 342 if (nat) in set_rse_reg() 370 if (nat) in set_rse_reg() 410 if (nat) { in get_rse_reg() 434 if (nat) { in get_rse_reg() 441 *nat = (rnats & nat_mask) != 0; in get_rse_reg() 447 if (nat) in get_rse_reg() 448 *nat = 0; in get_rse_reg() 500 if (nat) { in setreg() 643 if (nat) in getreg() 644 *nat = 0; in getreg() [all …]
|
A D | ptrace.c | 124 ia64_rotl(nat & mask, dist); \ in ia64_put_scratch_nat_bits() 133 scratch_unat = PUT_BITS( 1, 1, nat); in ia64_put_scratch_nat_bits() 134 scratch_unat |= PUT_BITS( 2, 3, nat); in ia64_put_scratch_nat_bits() 135 scratch_unat |= PUT_BITS(12, 13, nat); in ia64_put_scratch_nat_bits() 136 scratch_unat |= PUT_BITS(14, 14, nat); in ia64_put_scratch_nat_bits() 137 scratch_unat |= PUT_BITS(15, 15, nat); in ia64_put_scratch_nat_bits() 138 scratch_unat |= PUT_BITS( 8, 11, nat); in ia64_put_scratch_nat_bits() 139 scratch_unat |= PUT_BITS(16, 31, nat); in ia64_put_scratch_nat_bits() 790 char nat = 0; in access_nat_bits() local 832 char nat = 0; in ptrace_getregs() local [all …]
|
A D | signal.c | 46 unsigned long ip, flags, nat, um, cfm, rsc; in restore_sigcontext() local 54 err |= __get_user(nat, &sc->sc_nat); in restore_sigcontext() 78 scr->scratch_unat = ia64_put_scratch_nat_bits(&scr->pt, nat); in restore_sigcontext() 168 unsigned long flags = 0, ifs, cfm, nat; in setup_sigcontext() local 185 nat = ia64_get_scratch_nat_bits(&scr->pt, scr->scratch_unat); in setup_sigcontext() 188 err |= __put_user(nat, &sc->sc_nat); in setup_sigcontext()
|
A D | process.c | 425 char nat; in do_copy_task_regs() local 457 unw_get_gr(info, i, &dst[i], &nat); in do_copy_task_regs() 458 if (nat) in do_copy_task_regs()
|
/linux/tools/testing/selftests/netfilter/ |
A D | conntrack_vrf.sh | 163 table ip nat { 175 type nat hook postrouting priority 0; 190 ip netns exec $ns0 nft list table ip nat |grep -q 'counter packets 2' && 191 ip netns exec $ns0 nft list table ip nat |grep -q 'untracked counter packets [1-9]' 212 table ip nat { 214 type nat hook postrouting priority 0; 227 ip netns exec $ns0 nft list table ip nat |grep -q 'counter packets 2'
|
A D | nft_nat.sh | 185 table $family nat { 187 type nat hook output priority 0; policy accept; 244 ip netns exec "$ns0" nft flush chain ip6 nat output 260 table $family nat { 262 type nat hook output priority 0; policy accept; 412 table $family nat { 513 table $family nat { 612 table $family nat { 650 ip netns exec "$ns0" nft delete table $family nat 694 table $family nat { [all …]
|
A D | nft_flowtable.sh | 333 table ip nat { 335 type nat hook prerouting priority 0; policy accept; 340 type nat hook postrouting priority 0; policy accept; 387 flush table ip nat 388 table ip nat { 390 type nat hook prerouting priority 0; policy accept; 395 type nat hook postrouting priority 0; policy accept; 487 ip netns exec nsr1 nft delete table ip nat
|
A D | conntrack_icmp_related.sh | 189 table ip nat { 191 type nat hook postrouting priority 0; policy accept; 195 table ip6 nat { 197 type nat hook postrouting priority 0; policy accept;
|
A D | conntrack_tcp_unreplied.sh | 118 table inet nat { 120 type nat hook prerouting priority 0; policy accept;
|
A D | nf_nat_edemux.sh | 71 ip netns exec $ns2 iptables -t nat -A OUTPUT -d 10.96.0.1/32 -p tcp --dport 443 -j DNAT --to-destin…
|
/linux/arch/ia64/include/asm/ |
A D | unwind.h | 87 } nat; member 199 unw_set_gr (struct unw_frame_info *i, int n, unsigned long v, char nat) in unw_set_gr() argument 201 return unw_access_gr(i, n, &v, &nat, 1); in unw_set_gr() 228 #define unw_get_gr(i,n,v,nat) unw_access_gr(i,n,v,nat,0) argument
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_tc.c | 212 actions->nat.l3_is_ipv4 = true; in bnxt_tc_parse_pedit() 214 actions->nat.src_xlate = true; in bnxt_tc_parse_pedit() 217 actions->nat.src_xlate = false; in bnxt_tc_parse_pedit() 227 actions->nat.src_xlate, &actions->nat.l3.ipv4.saddr, in bnxt_tc_parse_pedit() 233 actions->nat.l3_is_ipv4 = false; in bnxt_tc_parse_pedit() 239 actions->nat.src_xlate = true; in bnxt_tc_parse_pedit() 245 actions->nat.src_xlate = false; in bnxt_tc_parse_pedit() 265 if (actions->nat.src_xlate) in bnxt_tc_parse_pedit() 615 if (actions->nat.l3_is_ipv4) { in bnxt_hwrm_cfa_flow_alloc() 619 if (actions->nat.src_xlate) { in bnxt_hwrm_cfa_flow_alloc() [all …]
|
/linux/include/net/netfilter/ |
A D | nf_nat.h | 59 struct nf_conn_nat *nat, in nf_nat_oif_changed() argument 63 return nat && nat->masq_index && hooknum == NF_INET_POST_ROUTING && in nf_nat_oif_changed() 65 nat->masq_index != out->ifindex; in nf_nat_oif_changed()
|
A D | nf_conntrack_helper.h | 175 void nf_nat_helper_register(struct nf_conntrack_nat_helper *nat); 176 void nf_nat_helper_unregister(struct nf_conntrack_nat_helper *nat);
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | tc_ct.c | 73 bool nat; member 452 bool nat) in mlx5_tc_ct_entry_del_rule() argument 653 u8 zone_restore_id, bool nat) in mlx5_tc_ct_entry_create_mod_hdr() argument 668 if (nat) { in mlx5_tc_ct_entry_create_mod_hdr() 687 if (nat) { in mlx5_tc_ct_entry_create_mod_hdr() 741 zone_rule->nat = nat; in mlx5_tc_ct_entry_add_rule() 755 zone_restore_id, nat); in mlx5_tc_ct_entry_add_rule() 1392 bool nat) in tc_ct_pre_ct_add_rules() argument 1440 if (nat) in tc_ct_pre_ct_add_rules() 1492 bool nat) in mlx5_tc_ct_alloc_pre_ct() argument [all …]
|
/linux/net/openvswitch/ |
A D | conntrack.c | 900 } else if (info->nat & OVS_CT_SRC_NAT) { in ovs_ct_nat() 902 } else if (info->nat & OVS_CT_DST_NAT) { in ovs_ct_nat() 1023 if (info->nat && !nfct_seqadj(ct)) { in __ovs_ct_lookup() 1359 if (info->nat) { in ovs_ct_add_helper() 1417 if (info->nat) { in parse_nat() 1421 info->nat |= OVS_CT_NAT; in parse_nat() 1422 info->nat |= ((type == OVS_NAT_ATTR_SRC) in parse_nat() 1472 if (!info->nat) { in parse_nat() 1736 if (info->nat & OVS_CT_SRC_NAT) { in ovs_ct_nat_to_attr() 1739 } else if (info->nat & OVS_CT_DST_NAT) { in ovs_ct_nat_to_attr() [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | tc_actions.sh | 164 ct commit nat src addr 192.0.2.2 pipe \ 166 ct commit nat dst addr 192.0.2.1 pipe \
|
/linux/tools/testing/selftests/net/ |
A D | udpgro_fwd.sh | 218 ip netns exec $NS_DST $IPT -t nat -I PREROUTING -d $BM_NET$DST_NAT \ 238 ip netns exec $NS_DST $IPT -t nat -I PREROUTING -d $OL_NET$DST_NAT \
|
/linux/arch/ia64/include/uapi/asm/ |
A D | ptrace.h | 210 unsigned long nat; member
|