Home
last modified time | relevance | path

Searched full:nat (Results 1 – 25 of 224) sorted by relevance

123456789

/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dnat.json4 "name": "Add nat action on ingress with default control action",
7 "nat"
11 "$TC actions flush action nat",
17 "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1",
19 "verifyCmd": "$TC actions ls action nat",
20 "matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 200.200.200.1 pass",
23 "$TC actions flush action nat"
28 "name": "Add nat action on ingress with pipe control action",
31 "nat"
35 "$TC actions flush action nat",
[all …]
H A Dct.json172 "name": "Try ct with zone, commit, mark, nat",
185 …"cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 nat src addr 5.5.5.7 index 42…
188 …"matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 nat src addr 5.5.5.7 pipe.*index …
196 "name": "Try ct with full nat ipv4 range syntax",
209 …"cmdUnderTest": "$TC actions add action ct commit nat src addr 5.5.5.7-5.5.6.0 port 1000-2000 inde…
212 …"matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 5.5.5.7-5.5.6.0 port 1000-2000…
220 "name": "Try ct with full nat ipv6 syntax",
233 … "cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1 port 1000-2000 index 44",
236 …"matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1 port 1000-2000 pipe.*i…
244 "name": "Try ct with full nat ipv6 range syntax",
[all …]
/openbmc/linux/net/ipv4/netfilter/
H A Dnf_nat_pptp.c5 * NAT support for PPTP (Point to Point Tunneling Protocol).
19 * TODO: - NAT to a unique tuple, not to TCP source port
40 MODULE_DESCRIPTION("Netfilter NAT helper module for PPTP");
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()
[all …]
/openbmc/linux/fs/f2fs/
H A Dnode.h11 /* node block offset on the NAT area dedicated to the given start node id */
37 /* vector size for gang look-up from nat cache that consists of radix tree */
51 IS_DIRTY, /* this nat entry is dirty? */
52 IS_PREALLOC, /* nat entry is preallocated */
67 struct list_head list; /* for clean or dirty nat list */
71 #define nat_get_nid(nat) ((nat)->ni.nid) argument
72 #define nat_set_nid(nat, n) ((nat)->ni.nid = (n)) argument
73 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr) argument
74 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b)) argument
75 #define nat_get_ino(nat) ((nat)->ni.ino) argument
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_nat_ovs.c2 /* Support nat functions for openvswitch and used by OVS and TC conntrack. */
7 * range is only used for new, uninitialized NAT state.
20 hooknum = NF_INET_LOCAL_IN; /* Source NAT */ in nf_ct_nat_execute()
22 hooknum = NF_INET_LOCAL_OUT; /* Destination NAT */ in nf_ct_nat_execute()
56 /* Initialize according to the NAT action. */ in nf_ct_nat_execute()
94 /* Add NAT extension if not confirmed yet. */ in nf_ct_nat()
96 return NF_DROP; /* Can't NAT. */ in nf_ct_nat()
100 /* NAT an established or related connection like before. */ in nf_ct_nat()
103 * for which NAT was applied in the forward in nf_ct_nat()
104 * direction. Do the reverse NAT. in nf_ct_nat()
H A Dnf_conntrack_helper.c132 struct nf_conntrack_nat_helper *nat; in nf_nat_helper_try_module_get() local
143 nat = nf_conntrack_nat_helper_find(h->nat_mod_name); in nf_nat_helper_try_module_get()
144 if (!nat) { in nf_nat_helper_try_module_get()
150 nat = nf_conntrack_nat_helper_find(mod_name); in nf_nat_helper_try_module_get()
151 if (!nat) { in nf_nat_helper_try_module_get()
157 if (!try_module_get(nat->module)) in nf_nat_helper_try_module_get()
167 struct nf_conntrack_nat_helper *nat; in nf_nat_helper_put() local
169 nat = nf_conntrack_nat_helper_find(helper->nat_mod_name); in nf_nat_helper_put()
170 if (WARN_ON_ONCE(!nat)) in nf_nat_helper_put()
173 module_put(nat->module); in nf_nat_helper_put()
[all …]
H A Dnft_chain_nat.c37 .name = "nat",
58 .name = "nat",
89 .name = "nat",
141 MODULE_ALIAS_NFT_CHAIN(AF_INET, "nat");
144 MODULE_ALIAS_NFT_CHAIN(AF_INET6, "nat");
147 MODULE_ALIAS_NFT_CHAIN(1, "nat"); /* NFPROTO_INET */
H A Dnf_nat_masquerade.c33 struct nf_conn_nat *nat; in nf_nat_masquerade_ipv4() local
60 nat = nf_ct_nat_ext_add(ct); in nf_nat_masquerade_ipv4()
61 if (nat) in nf_nat_masquerade_ipv4()
62 nat->masq_index = out->ifindex; in nf_nat_masquerade_ipv4()
141 const struct nf_conn_nat *nat = nfct_nat(i); in device_cmp() local
144 if (!nat) in device_cmp()
146 return nat->masq_index == w->ifindex; in device_cmp()
245 struct nf_conn_nat *nat; in nf_nat_masquerade_ipv6() local
258 nat = nf_ct_nat_ext_add(ct); in nf_nat_masquerade_ipv6()
259 if (nat) in nf_nat_masquerade_ipv6()
[all …]
H A Dnf_nat_bpf.c2 /* Unstable NAT Helpers for XDP and TC-BPF hook
19 /* bpf_ct_set_nat_info - Set source or destination nat address
21 * Set source or destination nat address of the newly allocated
28 * @addr - Nat source/destination address
29 * @port - Nat source/destination port. Non-positive values are
H A Dnf_nat_core.c187 * nf_nat_used_tuple - check if proposed nat tuple clashes with existing entry
188 * @tuple: proposed NAT binding
195 * INITIATOR -> NAT/PAT -> RESPONDER
197 * INITIATOR passes through NAT/PAT ("us") and SNAT is done (saddr rewrite).
198 * Then, later, NAT/PAT itself also connects to RESPONDER.
213 * @return: true if the proposed NAT mapping collides with an existing entry.
220 * incoming ones. NAT means they don't have a fixed mapping, in nf_nat_used_tuple()
238 * @tuple: proposed NAT binding
243 * @ignored_conntrack will not be subject to NAT.
245 * @return: true if the proposed NAT mapping collides with existing entry.
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/gdb/gdb/
H A D0001-mips-linux-nat-Define-_ABIO32-if-not-defined.patch4 Subject: [PATCH] mips-linux-nat: Define _ABIO32 if not defined
15 gdb/mips-linux-nat.c | 4 ++++
18 diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
20 --- a/gdb/mips-linux-nat.c
21 +++ b/gdb/mips-linux-nat.c
H A D0004-use-asm-sgidefs.h.patch18 gdb/mips-linux-nat.c | 2 +-
21 diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
23 --- a/gdb/mips-linux-nat.c
24 +++ b/gdb/mips-linux-nat.c
31 #include "nat/gdb_ptrace.h"
H A D0002-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch10 gdb/nat/ppc-linux.h | 6 ++++++
14 diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
16 --- a/gdb/nat/ppc-linux.h
17 +++ b/gdb/nat/ppc-linux.h
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dnft_nat.sh3 # This test is for basic NAT functionality: snat, dnat, redirect, masquerade.
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;
269 echo "SKIP: inet nat tests"
325 ip netns exec "$ns0" nft flush chain $family nat output
372 test $lret -eq 0 && echo "PASS: ping to $ns1 OK after $family nat output chain flush"
386 table $family nat {
[all …]
H A Dconntrack_vrf.sh163 table ip nat {
175 type nat hook postrouting priority 0;
189 # must also check that nat table was evaluated on second (lower device) iteration.
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;
226 # must also check that nat table was evaluated on second (lower device) iteration.
227 ip netns exec $ns0 nft list table ip nat |grep -q 'counter packets 2'
H A Dnf_nat_edemux.sh4 # Test NAT source port clash resolution
71 ip netns exec $ns2 iptables -t nat -A OUTPUT -d 10.96.0.1/32 -p tcp --dport 443 -j DNAT --to-destin…
84 # NAT must reallocate source port 10000 because
93 echo "PASS: socat can connect via NAT'd address"
95 echo "FAIL: socat cannot connect via NAT'd address"
H A Dnft_flowtable.sh500 # Same, but with NAT enabled. Same as in first test: we expect normal forward path
503 table ip nat {
505 type nat hook prerouting priority 0; policy accept;
510 type nat hook postrouting priority 0; policy accept;
522 echo "FAIL: flow offload for ns1/ns2 with NAT" 1>&2
542 echo "FAIL: flow offload for ns1/ns2 with NAT and pmtu discovery" 1>&2
547 # Add bridge interface br0 to Router1, with NAT enabled.
558 # br0 with NAT enabled.
560 flush table ip nat
561 table ip nat {
[all …]
/openbmc/qemu/include/tcg/
H A Dtcg-op-common.h472 # define NAT TCGv_i32 macro
475 # define NAT TCGv_i64 macro
483 glue(tcg_gen_ld_,PTR)((NAT)r, a, o); in tcg_gen_ld_ptr()
488 glue(tcg_gen_st_, PTR)((NAT)r, a, o); in tcg_gen_st_ptr()
493 glue(tcg_gen_discard_,PTR)((NAT)a); in tcg_gen_discard_ptr()
498 glue(tcg_gen_add_,PTR)((NAT)r, (NAT)a, (NAT)b); in tcg_gen_add_ptr()
503 glue(tcg_gen_addi_,PTR)((NAT)r, (NAT)a, b); in tcg_gen_addi_ptr()
508 glue(tcg_gen_mov_,PTR)((NAT)d, (NAT)s); in tcg_gen_mov_ptr()
513 glue(tcg_gen_movi_,PTR)((NAT)d, s); in tcg_gen_movi_ptr()
519 glue(tcg_gen_brcondi_,PTR)(cond, (NAT)a, b, label); in tcg_gen_brcondi_ptr()
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnf_nat.h22 /* per conntrack: nat application helper private data */
24 /* insert nat helper private data here */
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()
/openbmc/linux/arch/ia64/kernel/
H A Dunwind_i.h119 UNW_NAT_NONE, /* NaT not represented */
120 UNW_NAT_VAL, /* NaT represented by NaT value (fp reg) */
121 UNW_NAT_MEMSTK, /* NaT value is in unat word at offset OFF */
122 UNW_NAT_REGSTK /* NaT is in rnat */
132 UNW_INSN_SETNAT_MEMSTK, /* s[dst+1].nat.type = MEMSTK;
133 s[dst+1].nat.off = *s.pri_unat - s[dst] */
134 UNW_INSN_SETNAT_TYPE, /* s[dst+1].nat.type = val */
/openbmc/linux/net/ipv6/netfilter/
H A Dip6table_nat.c5 * Based on Rusty Russell's IPv4 NAT code. Development of IPv6 NAT
25 .name = "nat",
68 table = xt_find_table(net, NFPROTO_IPV6, "nat"); in ip6t_nat_register_lookups()
125 ip6t_unregister_table_exit(net, "nat"); in ip6table_nat_table_init()
138 ip6t_unregister_table_exit(net, "nat"); in ip6table_nat_net_exit()
/openbmc/linux/arch/ia64/lib/
H A Dstrlen.S46 // a NaT bit will be set if the translation is not present. The normal
62 // - after the loop we must test for Nat values because neither the
63 // czx nor cmp instruction raise a NaT consumption fault. We must be
64 // careful not to look too far for a Nat for which we don't care.
65 // For instance we don't need to look at a NaT in val2 if the zero byte
131 tnat.nz p6,p7=val1 // test NaT on val1
132 (p6) br.cond.spnt .recover // jump to recovery if val1 is NaT
138 tnat.nz.and p7,p0=val2 // test NaT if val2
139 (p7) br.cond.spnt .recover // jump to recovery if val2 is NaT
/openbmc/linux/net/openvswitch/
H A Dconntrack.c55 OVS_CT_NAT = 1 << 0, /* NAT for committed connections only. */
56 OVS_CT_SRC_NAT = 1 << 1, /* Source NAT for NEW connections. */
57 OVS_CT_DST_NAT = 1 << 2, /* Destination NAT for NEW connections. */
66 u8 nat : 3; /* enum ovs_ct_nat */ member
76 struct nf_nat_range2 range; /* Only present for SRC NAT and DST NAT. */
239 * 'keep_nat_flags' is true, the existing NAT flags retained, else they are
503 /* Must invert the tuple if skb has been transformed by NAT. */ in ovs_ct_find_existing()
674 if (!(info->nat & OVS_CT_NAT)) in ovs_ct_nat()
676 if (info->nat & OVS_CT_SRC_NAT) in ovs_ct_nat()
678 if (info->nat & OVS_CT_DST_NAT) in ovs_ct_nat()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/vpnc/vpnc/
H A Dlong-help46 Which NAT-Traversal Method to use:
47 * natt -- NAT-T as defined in RFC3947
48 * none -- disable use of any NAT-T method
49 * force-natt -- always use NAT-T encapsulation even
50 without presence of a NAT device
55 conf-variable: NAT Traversal Mode <natt/none/force-natt/cisco-udp>
130 This is only relevant if cisco-udp nat-traversal is used.
/openbmc/linux/arch/ia64/include/asm/
H A Dunwind.h86 signed long off : 61; /* NaT word is at loc+nat.off */
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

123456789