Home
last modified time | relevance | path

Searched refs:snat (Results 1 – 13 of 13) sorted by relevance

/external/iptables/extensions/
Dlibebt_snat.t3 -o someport -j snat --to-source a:b:c:d:e:f;-o someport -j snat --to-src 0a:0b:0c:0d:0e:0f --snat-t…
4 -o someport+ -j snat --to-src de:ad:00:be:ee:ff --snat-target CONTINUE;=;OK
Dlibipt_SNAT.txlate2 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4
5 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4-1.2.3.6
8 nft add rule ip nat postrouting oifname "eth0" ip protocol tcp counter snat to 1.2.3.4:1-1023
11 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 random
14 nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 random,persistent
Dlibip6t_SNAT.txlate2 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:80
5 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:1-20
8 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:123 r…
11 nft add rule ip6 nat postrouting oifname "eth0" meta l4proto tcp counter snat to [fec0::1234]:123 f…
Dlibebt_snat.txlate4 ebtables-translate -t nat -A POSTROUTING -o someport --to-src de:ad:00:be:ee:ff --snat-target CONTI…
Dlibxt_conntrack.txlate47 nft add rule ip filter INPUT ct status snat counter accept
/external/libnetfilter_conntrack/src/conntrack/
Dobjopt.c57 ct->snat.min_ip.v4 = ct->repl.dst.v4; in setobjopt_undo_snat()
58 ct->snat.max_ip.v4 = ct->snat.min_ip.v4; in setobjopt_undo_snat()
63 memcpy(&ct->snat.min_ip.v6, &ct->repl.dst.v6, in setobjopt_undo_snat()
65 memcpy(&ct->snat.max_ip.v6, &ct->snat.min_ip.v6, in setobjopt_undo_snat()
100 ct->snat.l4min.all = ct->repl.l4dst.tcp.port; in setobjopt_undo_spat()
101 ct->snat.l4max.all = ct->snat.l4min.all; in setobjopt_undo_spat()
Dcopy.c290 dest->snat.min_ip.v4 = orig->snat.min_ip.v4; in copy_attr_snat_ipv4()
302 memcpy(&dest->snat.min_ip.v6, &orig->snat.min_ip.v6, in copy_attr_snat_ipv6()
316 dest->snat.l4min.all = orig->snat.l4min.all; in copy_attr_snat_port()
Dsetter.c240 ct->snat.min_ip.v4 = ct->snat.max_ip.v4 = *((uint32_t *) value); in set_attr_snat_ipv4()
252 memcpy(&ct->snat.min_ip.v6, value, sizeof(struct in6_addr)); in set_attr_snat_ipv6()
253 memcpy(&ct->snat.max_ip.v6, value, sizeof(struct in6_addr)); in set_attr_snat_ipv6()
266 ct->snat.l4min.all = ct->snat.l4max.all = *((uint16_t *) value); in set_attr_snat_port()
Dgetter.c209 return &ct->snat.min_ip.v4; in get_attr_snat_ipv4()
219 return &ct->snat.min_ip.v6; in get_attr_snat_ipv6()
229 return &ct->snat.l4min.all; in get_attr_snat_port()
Dbuild_mnl.c291 nfct_build_nat(nlh, &ct->snat, l3protonum); in nfct_build_snat()
292 nfct_build_protonat(nlh, ct, &ct->snat); in nfct_build_snat()
303 nfct_build_nat(nlh, &ct->snat, AF_INET); in nfct_build_snat_ipv4()
314 nfct_build_nat(nlh, &ct->snat, AF_INET6); in nfct_build_snat_ipv6()
325 nfct_build_protonat(nlh, ct, &ct->snat); in nfct_build_snat_port()
Dbuild.c303 __build_nat(req, size, &ct->snat, l3protonum); in __build_snat()
304 __build_protonat(req, size, ct, &ct->snat); in __build_snat()
315 __build_nat(req, size, &ct->snat, AF_INET); in __build_snat_ipv4()
326 __build_nat(req, size, &ct->snat, AF_INET6); in __build_snat_ipv6()
337 __build_protonat(req, size, ct, &ct->snat); in __build_snat_port()
/external/libnetfilter_conntrack/include/internal/
Dobject.h178 struct __nfct_nat snat; member
/external/libnl/lib/netfilter/
Dct_obj.c513 __ADD(IPS_SRC_NAT, snat),