Home
last modified time | relevance | path

Searched refs:ns2 (Results 1 – 25 of 120) sorted by relevance

12345

/external/linux-kselftest/tools/testing/selftests/net/mptcp/
Dmptcp_join.sh47 ns2="ns2-$rndh"
49 for netns in "$ns1" "$ns2";do
67 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
72 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
73 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
74 ip -net "$ns2" link set ns2eth$i up
77 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
78 ip -net "$ns2" route add default via dead:beef:$i::1 dev ns2eth$i metric 10$i
86 tc -n $ns2 qdisc add dev ns2eth$i root netem rate 20mbit delay 1
94 for netns in "$ns1" "$ns2"; do
[all …]
Dsimult_flows.sh6 ns2="ns2-$rndh"
30 for netns in "$ns1" "$ns2" "$ns3";do
60 for i in "$ns1" "$ns2" "$ns3";do
67 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
68 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
69 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth1 netns "$ns3"
86 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
87 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
88 ip -net "$ns2" link set ns2eth1 up mtu 1500
90 ip -net "$ns2" addr add 10.0.2.2/24 dev ns2eth2
[all …]
Dmptcp_connect.sh124 ns2="ns2-$rndh"
138 for netns in "$ns1" "$ns2" "$ns3" "$ns4";do
159 for i in "$ns1" "$ns2" "$ns3" "$ns4";do
169 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
170 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth2 netns "$ns3"
180 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
181 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
182 ip -net "$ns2" link set ns2eth1 up
184 ip -net "$ns2" addr add 10.0.2.1/24 dev ns2eth3
185 ip -net "$ns2" addr add dead:beef:2::1/64 dev ns2eth3 nodad
[all …]
Dmptcp_sockopt.sh37 ns2="ns2-$rndh"
39 for netns in "$ns1" "$ns2";do
48 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
53 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
54 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
55 ip -net "$ns2" link set ns2eth$i up
58 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
63 ip netns exec $ns2 ./pm_nl_ctl add 10.0.$i.2 flags signal
64 ip netns exec $ns2 ./pm_nl_ctl add dead:beef:$i::2 flags signal
68 ip netns exec $ns2 ./pm_nl_ctl limits 8 8
[all …]
/external/linux-kselftest/tools/testing/selftests/netfilter/
Dconntrack_tcp_unreplied.sh14 ns2="ns2-$sfx"
30 ip netns pids $ns2 | xargs kill 2>/dev/null
33 ip netns del $ns2
47 cnt=$(ip netns exec $ns2 nft list counter inet filter "$name" | grep -q "$expect")
49 echo "ERROR: counter $name in $ns2 has unexpected value (expected $expect)" 1>&2
50 ip netns exec $ns2 nft list counter inet filter "$name" 1>&2
62 ip netns add $ns2 || exit 1
66 ip -net $ns1 link set netns $ns2 dev veth2
69 ip -net $ns2 link set up dev lo
71 ip -net $ns2 link set up dev veth2
[all …]
Dnft_conntrack_helper.sh13 ns2="ns2-$sfx"
19 ip netns del ${ns2}
49 ip netns add ${ns2}
51 ip link add veth0 netns ${ns1} type veth peer name veth0 netns ${ns2} > /dev/null 2>&1
60 ip -net ${ns2} link set lo up
61 ip -net ${ns2} link set veth0 up
66 ip -net ${ns2} addr add 10.0.1.2/24 dev veth0
67 ip -net ${ns2} addr add dead:1::2/64 dev veth0
118 sleep 3 | ip netns exec ${ns2} nc -w 2 -l -p $port > /dev/null &
124 check_for_helper "$ns2" "ip $msg" $port
[all …]
Dnft_nat.sh14 ns2="ns2-$sfx"
47 ip netns add "$ns2"
49 echo "SKIP: Could not create net namespace $ns2"
58 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2"
216 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns2${dir} | grep -q "$expect")
218 bad_counter "$ns0" ns2$dir "$expect" "test_local_dnat6 2"
236 cnt=$(ip netns exec "$ns2" nft list counter inet filter ns0${dir} | grep -q "$expect")
238 bad_counter "$ns2" ns0$dir "$expect" "test_local_dnat6 4"
243 test $lret -eq 0 && echo "PASS: ipv6 ping to $ns1 was $family NATted to $ns2"
296 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns2${dir} | grep -q "$expect")
[all …]
Dipvs.sh71 ip netns add ns2
74 ip link add veth02 netns ns0 type veth peer name veth20 netns ns2
75 ip link add veth12 netns ns1 type veth peer name veth21 netns ns2
91 ip netns exec ns2 ip link set lo up
92 ip netns exec ns2 ip link set veth21 up
93 ip netns exec ns2 ip addr add ${rip_v4}/24 dev veth21
94 ip netns exec ns2 ip link set veth20 up
95 ip netns exec ns2 ip addr add ${sip_v4}/24 dev veth20
117 ip netns exec ns2 nc -l -p 8080 > "${outfile}" &
147 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1
[all …]
Dnf_nat_edemux.sh13 ns2="ns2-$sfx"
18 ip netns del $ns2
47 ip netns add $ns2
52 ip link set netns $ns2 dev veth2
58 ip netns exec $ns2 ip link set up dev lo
59 ip netns exec $ns2 ip link set up dev veth2
60 ip netns exec $ns2 ip addr add 192.168.1.2/24 dev veth2
68 ip netns exec $ns2 sysctl -q net.ipv4.ip_local_port_range="10000 10000"
71 ip netns exec $ns2 iptables -t nat -A OUTPUT -d 10.96.0.1/32 -p tcp --dport 443 -j DNAT --to-destin…
74 ip netns exec $ns2 ip route add 10.96.0.1 via 192.168.1.1
[all …]
Dnft_synproxy.sh12 ns2="ns2-$rnd" # iperf server
29 ip netns add $ns2
33 ip netns pids $ns2 | xargs kill 2>/dev/null
35 ip netns del $ns2
43 ip link add veth1 netns $nsr type veth peer name eth0 netns $ns2
56 for n in $ns1 $ns2; do
61 ip -net $ns2 addr add 10.0.2.99/24 dev eth0
63 ip -net $ns2 route add default via 10.0.2.1
67 echo "ERROR: $ns1 cannot reach $ns2" 1>&2
71 if ! ip netns exec $ns2 ping -c 1 -q 10.0.1.99 > /dev/null; then
[all …]
Dnft_fib.sh11 ns2="ns2-$sfx"
20 ip netns del ${ns2}
54 ip netns add ${ns2}
117 load_ruleset ${ns2}
124 ip link add veth1 netns ${nsrouter} type veth peer name eth0 netns ${ns2}
138 ip -net ${ns2} link set lo up
139 ip -net ${ns2} link set eth0 up
146 ip -net ${ns2} addr add 10.0.2.99/24 dev eth0
147 ip -net ${ns2} addr add dead:2::99/64 dev eth0
148 ip -net ${ns2} route add default via 10.0.2.1
[all …]
Dnft_queue.sh13 ns2="ns2-$sfx"
20 ip netns pids ${ns2} | xargs kill 2>/dev/null
24 ip netns del ${ns2}
56 ip netns add ${ns2}
63 ip link add veth1 netns ${nsrouter} type veth peer name eth0 netns ${ns2}
77 ip -net ${ns2} link set lo up
78 ip -net ${ns2} link set eth0 up
85 ip -net ${ns2} addr add 10.0.2.99/24 dev eth0
86 ip -net ${ns2} addr add dead:2::99/64 dev eth0
87 ip -net ${ns2} route add default via 10.0.2.1
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_tc_tunnel.sh11 readonly ns2="${ns_prefix}2"
29 ip netns add "${ns2}"
32 peer name veth2 mtu 1500 netns "${ns2}"
37 ip -netns "${ns2}" link set veth2 up
40 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2
42 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad
56 ip netns del "${ns2}"
72 ip netns exec "${ns2}" nc "${netcat_opt}" -l "${port}" > "${outfile}" &
219 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
243 ip netns exec "${ns2}" ip link add name testtun0 type "${ttype}" \
[all …]
Dtest_xdp_vlan.sh60 ip netns del ns2 2> /dev/null
130 ip netns del ns2 2> /dev/null
148 ip netns add ns2
158 ip link set veth2 netns ns2
166 ip netns exec ns2 ethtool -K veth2 rxvlan off
169 ip netns exec ns2 ethtool -K veth2 txvlan off
182 ip netns exec ns2 ip link add link $DEVNS2 name $DEVNS2.$VLAN type vlan id $VLAN
183 ip netns exec ns2 ip addr add ${IPADDR2}/24 dev $DEVNS2.$VLAN
184 ip netns exec ns2 ip link set $DEVNS2 up
185 ip netns exec ns2 ip link set $DEVNS2.$VLAN up
[all …]
Dtest_xdp_meta.sh17 ip netns del ns2 2> /dev/null
28 ip netns add ns2
35 ip link set veth2 netns ns2
38 ip netns exec ns2 ip addr add 10.1.1.22/24 dev veth2
41 ip netns exec ns2 tc qdisc add dev veth2 clsact
44 ip netns exec ns2 tc filter add dev veth2 ingress bpf da obj test_xdp_meta.o sec t
47 ip netns exec ns2 ip link set dev veth2 xdp obj test_xdp_meta.o sec x
50 ip netns exec ns2 ip link set dev veth2 up
53 ip netns exec ns2 ping -c 1 10.1.1.11
Dtest_xdp_redirect.sh21 ip netns add ns2
24 ip link add veth2 index 222 type veth peer name veth22 netns ns2
29 ip -n ns2 link set dev veth22 up
32 ip -n ns2 addr add 10.1.1.22/24 dev veth22
40 ip netns del ns2 2> /dev/null
56 ip -n ns2 link set veth22 $xdpmode obj xdp_dummy.o sec xdp &> /dev/null
61 ip netns exec ns2 ping -c 1 10.1.1.11 &> /dev/null; then
Dtest_lwt_seg6local.sh45 ip netns del ns2 2> /dev/null
56 ip netns add ns2
71 ip link set veth2 netns ns2
72 ip link set veth3 netns ns2
82 ip netns exec ns2 ip link set dev veth2 up
83 ip netns exec ns2 ip link set dev veth3 up
96 ip netns exec ns2 ip -6 addr add fb00::21/16 dev veth2 scope link
97 ip netns exec ns2 ip -6 addr add fb00::34/16 dev veth3 scope link
98 ip netns exec ns2 ip -6 route add fb00::43 dev veth3 scope link
114 ip netns exec ns2 ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.o sec encap_srh dev v…
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.duration/time.duration.nonmember/
Dop_divide_duration.pass.cpp29 std::chrono::nanoseconds ns2(5); in main() local
30 assert(ns1 / ns2 == 3); in main()
34 std::chrono::nanoseconds ns2(5); in main() local
35 assert(us1 / ns2 == 3000); in main()
50 constexpr std::chrono::nanoseconds ns2(5); in main() local
51 static_assert(ns1 / ns2 == 3, ""); in main()
55 constexpr std::chrono::nanoseconds ns2(5); in main() local
56 static_assert(us1 / ns2 == 3000, ""); in main()
Dop_mod_duration.pass.cpp28 std::chrono::nanoseconds ns2(6); in main() local
29 std::chrono::nanoseconds r = ns1 % ns2; in main()
34 std::chrono::nanoseconds ns2(28); in main() local
35 std::chrono::nanoseconds r = us1 % ns2; in main()
47 constexpr std::chrono::nanoseconds ns2(6); in main() local
48 constexpr std::chrono::nanoseconds r = ns1 % ns2; in main()
53 constexpr std::chrono::nanoseconds ns2(28); in main() local
54 constexpr std::chrono::nanoseconds r = us1 % ns2; in main()
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/
Dop_divide_duration.pass.cpp29 std::chrono::nanoseconds ns2(5); in main() local
30 assert(ns1 / ns2 == 3); in main()
34 std::chrono::nanoseconds ns2(5); in main() local
35 assert(us1 / ns2 == 3000); in main()
50 constexpr std::chrono::nanoseconds ns2(5); in main() local
51 static_assert(ns1 / ns2 == 3, ""); in main()
55 constexpr std::chrono::nanoseconds ns2(5); in main() local
56 static_assert(us1 / ns2 == 3000, ""); in main()
Dop_mod_duration.pass.cpp28 std::chrono::nanoseconds ns2(6); in main() local
29 std::chrono::nanoseconds r = ns1 % ns2; in main()
34 std::chrono::nanoseconds ns2(28); in main() local
35 std::chrono::nanoseconds r = us1 % ns2; in main()
47 constexpr std::chrono::nanoseconds ns2(6); in main() local
48 constexpr std::chrono::nanoseconds r = ns1 % ns2; in main()
53 constexpr std::chrono::nanoseconds ns2(28); in main() local
54 constexpr std::chrono::nanoseconds r = us1 % ns2; in main()
/external/tcpdump/tests/
Ddnssec-vv.out4ns2.cynic.net., cynic.net. NS ns3.cynic.net., cynic.net. RRSIG, cynic.net. RRSIG ar: ns1.cynic.net…
8 …t., cynic.net. NS ns2.cynic.net., cynic.net. NS ns3.cynic.net., cynic.net. NS ns1.cynic.net. ar: n…
12 …t., cynic.net. NS ns3.cynic.net., cynic.net. NS ns2.cynic.net. ar: ns1.cynic.net. A 125.100.126.20…
/external/clang/test/CXX/basic/basic.lookup/basic.lookup.udir/
Dp1.cpp8 void ns2();
15 namespace ns2 { namespace
26 namespace test4 = ns2;
30 using namespace ns2;
/external/libxml2/result/XPath/tests/
Dnssimple7 namespace ns2 href=nsuri2
15 3 namespace ns2 href=nsuri2
25 namespace ns2 href=nsuri2
29 Expression: /doc/elem/namespace::ns2/following::*
35 Expression: /doc/elem/namespace::ns2/preceding::*
/external/linux-kselftest/tools/testing/selftests/net/
Dfib_tests.sh72 ip netns del ns2 &> /dev/null
447 ip netns add ns2
448 ip netns set ns2 auto
450 ip -netns ns2 link set dev lo up
453 $IP link set dev veth2 netns ns2
455 ip -netns ns2 address add 192.0.2.1/24 dev veth2
457 ip -netns ns2 link set dev veth2 up
461 ip -netns ns2 link set dev lo address 52:54:00:6a:c7:5e
462 ip -netns ns2 link set dev veth2 address 52:54:00:6a:c7:5e
465 ip netns exec ns2 tc qdisc add dev lo parent root handle 1: fq_codel
[all …]

12345