/external/libnl/lib/route/act/ |
D | nat.c | 32 struct tc_nat *nat = data; in nat_msg_parser() local 43 nla_memcpy(nat, tb[TCA_NAT_PARMS], sizeof(*nat)); in nat_msg_parser() 54 struct tc_nat *nat = data; in nat_msg_fill() local 56 if (!nat) in nat_msg_fill() 59 NLA_PUT(msg, TCA_NAT_PARMS, sizeof(*nat), nat); in nat_msg_fill() 70 struct tc_nat *nat = data; in nat_dump_line() local 75 if (!nat) in nat_dump_line() 78 if (nat->flags & TCA_NAT_FLAG_EGRESS) in nat_dump_line() 83 mask = nat->mask; in nat_dump_line() 89 inet_ntop(AF_INET, &nat->old_addr, buf, sizeof(buf)); in nat_dump_line() [all …]
|
/external/iptables/extensions/ |
D | libipt_SNAT.txlate | 1 iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4 2 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 4 iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4-1.2.3.6 5 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4-1.2.3.6 7 iptables-translate -t nat -A postrouting -p tcp -o eth0 -j SNAT --to 1.2.3.4:1-1023 8 nft add rule ip nat postrouting oifname "eth0" ip protocol tcp counter snat to 1.2.3.4:1-1023 10 iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4 --random 11 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 random 13 iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4 --random --persistent 14 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 random,persistent
|
D | libipt_DNAT.txlate | 1 iptables-translate -t nat -A prerouting -p tcp -o eth0 -j DNAT --to-destination 1.2.3.4 2 nft add rule ip nat prerouting oifname "eth0" ip protocol tcp counter dnat to 1.2.3.4 4 iptables-translate -t nat -A prerouting -p tcp -d 15.45.23.67 --dport 80 -j DNAT --to-destination 1… 5 nft add rule ip nat prerouting ip daddr 15.45.23.67 tcp dport 80 counter dnat to 192.168.1.1-192.16… 7 iptables-translate -t nat -A prerouting -p tcp -o eth0 -j DNAT --to-destination 1.2.3.4:1-1023 8 nft add rule ip nat prerouting oifname "eth0" ip protocol tcp counter dnat to 1.2.3.4:1-1023 10 iptables-translate -t nat -A prerouting -p tcp -o eth0 -j DNAT --to-destination 1.2.3.4 --random 11 nft add rule ip nat prerouting oifname "eth0" ip protocol tcp counter dnat to 1.2.3.4 random 13 iptables-translate -t nat -A prerouting -p tcp -o eth0 -j DNAT --to-destination 1.2.3.4 --random --… 14 nft add rule ip nat prerouting oifname "eth0" ip protocol tcp counter dnat to 1.2.3.4 random,persis…
|
D | libip6t_DNAT.txlate | 1 ip6tables-translate -t nat -A prerouting -i eth1 -p tcp --dport 8080 -j DNAT --to-destination [fec0… 2 nft add rule ip6 nat prerouting iifname "eth1" tcp dport 8080 counter dnat to [fec0::1234]:80 4 ip6tables-translate -t nat -A prerouting -p tcp -j DNAT --to-destination [fec0::1234]:1-20 5 nft add rule ip6 nat prerouting meta l4proto tcp counter dnat to [fec0::1234]:1-20 7 ip6tables-translate -t nat -A prerouting -p tcp -j DNAT --to-destination [fec0::1234]:80 --persiste… 8 nft add rule ip6 nat prerouting meta l4proto tcp counter dnat to [fec0::1234]:80 persistent 10 ip6tables-translate -t nat -A prerouting -p tcp -j DNAT --to-destination [fec0::1234]:80 --random -… 11 nft add rule ip6 nat prerouting meta l4proto tcp counter dnat to [fec0::1234]:80 random,persistent
|
D | libip6t_SNAT.txlate | 1 ip6tables-translate -t nat -A postrouting -o eth0 -p tcp -j SNAT --to [fec0::1234]:80 2 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:80 4 ip6tables-translate -t nat -A postrouting -o eth0 -p tcp -j SNAT --to [fec0::1234]:1-20 5 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:1-20 7 ip6tables-translate -t nat -A postrouting -o eth0 -p tcp -j SNAT --to [fec0::1234]:123 --random 8 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:123 r… 10 ip6tables-translate -t nat -A postrouting -o eth0 -p tcp -j SNAT --to [fec0::1234]:123 --random-ful… 11 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:123 f…
|
D | libip6t_MASQUERADE.txlate | 1 ip6tables-translate -t nat -A POSTROUTING -j MASQUERADE 2 nft add rule ip6 nat POSTROUTING counter masquerade 4 ip6tables-translate -t nat -A POSTROUTING -p tcp -j MASQUERADE --to-ports 10 5 nft add rule ip6 nat POSTROUTING meta l4proto tcp counter masquerade to :10 7 ip6tables-translate -t nat -A POSTROUTING -p tcp -j MASQUERADE --to-ports 10-20 --random 8 nft add rule ip6 nat POSTROUTING meta l4proto tcp counter masquerade to :10-20 random
|
D | libipt_MASQUERADE.txlate | 1 iptables-translate -t nat -A POSTROUTING -j MASQUERADE 2 nft add rule ip nat POSTROUTING counter masquerade 4 iptables-translate -t nat -A POSTROUTING -p tcp -j MASQUERADE --to-ports 10 5 nft add rule ip nat POSTROUTING ip protocol tcp counter masquerade to :10 7 iptables-translate -t nat -A POSTROUTING -p tcp -j MASQUERADE --to-ports 10-20 --random 8 nft add rule ip nat POSTROUTING ip protocol tcp counter masquerade to :10-20 random
|
D | libxt_owner.txlate | 1 iptables-translate -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner root -j ACCEPT 2 nft add rule ip nat OUTPUT tcp dport 80 skuid 0 counter accept 4 iptables-translate -t nat -A OUTPUT -p tcp --dport 80 -m owner --gid-owner 0-10 -j ACCEPT 5 nft add rule ip nat OUTPUT tcp dport 80 skgid 0-10 counter accept 7 iptables-translate -t nat -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner 1000 -j ACCEPT 8 nft add rule ip nat OUTPUT tcp dport 80 skuid != 1000 counter accept
|
D | libebt_dnat.txlate | 1 ebtables-translate -t nat -A PREROUTING -i someport --to-dst de:ad:00:be:ee:ff 2 nft add rule bridge nat PREROUTING iifname "someport" ether daddr set de:ad:0:be:ee:ff accept count… 4 ebtables-translate -t nat -A PREROUTING -i someport --to-dst de:ad:00:be:ee:ff --dnat-target ACCEPT 5 nft add rule bridge nat PREROUTING iifname "someport" ether daddr set de:ad:0:be:ee:ff accept count… 7 ebtables-translate -t nat -A PREROUTING -i someport --to-dst de:ad:00:be:ee:ff --dnat-target CONTIN… 8 nft add rule bridge nat PREROUTING iifname "someport" ether daddr set de:ad:0:be:ee:ff continue cou…
|
D | libip6t_hl.txlate | 1 ip6tables-translate -t nat -A postrouting -m hl --hl-gt 3 2 nft add rule ip6 nat postrouting ip6 hoplimit gt 3 counter 4 ip6tables-translate -t nat -A postrouting -m hl ! --hl-eq 3 5 nft add rule ip6 nat postrouting ip6 hoplimit != 3 counter
|
D | libipt_REDIRECT.txlate | 1 iptables-translate -t nat -A prerouting -p tcp --dport 80 -j REDIRECT --to-ports 8080 2 nft add rule ip nat prerouting tcp dport 80 counter redirect to :8080 4 iptables-translate -t nat -A prerouting -p tcp --dport 80 -j REDIRECT --to-ports 8080 --random 5 nft add rule ip nat prerouting tcp dport 80 counter redirect to :8080 random
|
D | libip6t_REDIRECT.txlate | 1 ip6tables-translate -t nat -A prerouting -p tcp --dport 80 -j REDIRECT --to-ports 8080 2 nft add rule ip6 nat prerouting tcp dport 80 counter redirect to :8080 4 ip6tables-translate -t nat -A prerouting -p tcp --dport 80 -j REDIRECT --to-ports 8080 --random 5 nft add rule ip6 nat prerouting tcp dport 80 counter redirect to :8080 random
|
D | libebt_snat.txlate | 1 ebtables-translate -t nat -A POSTROUTING -s 0:0:0:0:0:0 -o someport+ --to-source de:ad:00:be:ee:ff 2 nft add rule bridge nat POSTROUTING oifname "someport*" ether saddr 00:00:00:00:00:00 ether saddr s… 4 ebtables-translate -t nat -A POSTROUTING -o someport --to-src de:ad:00:be:ee:ff --snat-target CONTI… 5 nft add rule bridge nat POSTROUTING oifname "someport" ether saddr set de:ad:0:be:ee:ff continue co…
|
/external/libnetfilter_conntrack/utils/ |
D | expect_create_nat.c | 19 struct nf_conntrack *master, *expected, *mask, *nat; in main() local 93 nat = nfct_new(); in main() 94 if (!nat) { in main() 102 nfct_set_attr_u8(nat, ATTR_L3PROTO, AF_INET); in main() 103 nfct_set_attr_u32(nat, ATTR_IPV4_SRC, inet_addr("3.3.3.3")); in main() 104 nfct_set_attr_u32(nat, ATTR_IPV4_DST, 0); in main() 106 nfct_set_attr_u8(nat, ATTR_L4PROTO, IPPROTO_TCP); in main() 107 nfct_set_attr_u16(nat, ATTR_PORT_SRC, 12345); in main() 108 nfct_set_attr_u16(nat, ATTR_PORT_DST, 0); in main() 126 nfexp_set_attr(exp, ATTR_EXP_NAT_TUPLE, nat); in main() [all …]
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/ |
D | p5-cxx0x.cpp | 64 struct nat { struct 65 nat() = delete; 66 nat(const nat&) = delete; 67 nat &operator=(const nat&) = delete; 68 ~nat() = delete; 80 nat swap(any, any); 84 static const bool value = !is_same<type, nat>::value;
|
/external/cldr/common/testData/transforms/ |
D | und-Latn-t-und-ethi-m0-beta-metsehaf.txt | 59 ሕጻንነት ḥǝṣānǝnat 132 ስምምነት sǝmǝmǝnat 168 በሞግዚትነት bamogǝzitǝnat 174 በባርነት babārǝnat 193 በነጻነትና banaṣānatǝnā 203 በወንድማማችነት bawanǝdǝmāmāčǝnat 208 በዜግነት bazegǝnat 233 ባለቤትነት bālabetǝnat 238 ባርነትና bārǝnatǝnā 270 ነጻነት naṣānat [all …]
|
D | und-Latn-t-und-ethi.txt | 59 ሕጻንነት ḥǝṣānǝnat 132 ስምምነት sǝmǝmǝnat 168 በሞግዚትነት bamogǝzitǝnat 174 በባርነት babārǝnat 193 በነጻነትና banaṣānatǝnā 203 በወንድማማችነት bawanǝdǝmāmāčǝnat 208 በዜግነት bazegǝnat 233 ባለቤትነት bālabetǝnat 238 ባርነትና bārǝnatǝnā 270 ነጻነት naṣānat [all …]
|
/external/webrtc/rtc_base/ |
D | nat_socket_factory.cc | 401 Translator* nat = nats_.FindClient(local_addr); in CreateInternalSocket() local 402 if (nat) { in CreateInternalSocket() 403 socket = nat->internal_factory()->CreateSocket(family, type); in CreateInternalSocket() 404 *nat_addr = (type == SOCK_STREAM) ? nat->internal_tcp_address() in CreateInternalSocket() 405 : nat->internal_udp_address(); in CreateInternalSocket() 493 Translator* nat) { in Add() argument 494 (*this)[ext_ip] = nat; in Add() 495 return nat; in Add() 508 Translator* nat = nullptr; in FindClient() local 509 for (TranslatorMap::iterator it = begin(); it != end() && !nat; ++it) { in FindClient() [all …]
|
D | nat_server.cc | 22 RouteCmp::RouteCmp(NAT* nat) : symmetric(nat->IsSymmetric()) {} in RouteCmp() argument 44 AddrCmp::AddrCmp(NAT* nat) in AddrCmp() argument 45 : use_ip(nat->FiltersIP()), use_port(nat->FiltersPort()) {} in AddrCmp() 235 NAT* nat) in TransEntry() argument 237 allowlist = new AddressSet(AddrCmp(nat)); in TransEntry()
|
/external/linux-kselftest/tools/testing/selftests/netfilter/ |
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'
|
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; 325 ip netns exec "$ns0" nft flush chain $family nat output 412 table $family nat { 414 type nat hook postrouting priority 0; policy accept; 468 ip netns exec "$ns0" nft flush chain $family nat postrouting 513 table $family nat { [all …]
|
/external/iptables/iptables/tests/shell/testcases/ebtables/ |
D | 0002-ebtables-save-restore_0 | 56 $XT_MULTI ebtables -t nat -A PREROUTING --redirect-target ACCEPT 59 $XT_MULTI ebtables -t nat -A OUTPUT -j ACCEPT 60 $XT_MULTI ebtables -t nat -P OUTPUT DROP 62 $XT_MULTI ebtables -t nat -A POSTROUTING -j ACCEPT 65 $XT_MULTI ebtables -t nat -N nat_foo -P DROP
|
/external/iptables/iptables/tests/shell/testcases/ip6tables/ |
D | 0003-list-rules_0 | 8 $XT_MULTI ip6tables -t nat -A OUTPUT -o eth123 -m mark --mark 0x42 -j ACCEPT 43 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -t nat -S OUTPUT) 48 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -t nat -S OUTPUT)
|
/external/iptables/iptables/tests/shell/testcases/iptables/ |
D | 0003-list-rules_0 | 8 $XT_MULTI iptables -t nat -A OUTPUT -o eth123 -m mark --mark 0x42 -j ACCEPT 43 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -t nat -S OUTPUT) 48 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -t nat -S OUTPUT)
|
/external/dexmaker/dexmaker/src/main/java/com/android/dx/ |
D | FieldId.java | 35 final CstNat nat; field in FieldId 45 this.nat = new CstNat(new CstString(name), new CstString(type.name)); in FieldId() 46 this.constant = new CstFieldRef(declaringType.constant, nat); in FieldId()
|