Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dmptcp_join.sh23 ns2="ns2-$rndh"
25 for netns in "$ns1" "$ns2";do
40 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
45 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
46 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
47 ip -net "$ns2" link set ns2eth$i up
50 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
58 for netns in "$ns1" "$ns2"; do
80 for netns in "$ns1" "$ns2";do
301 count=`ip netns exec $ns2 nstat -as | grep MPTcpExtMPJoinSynAckRx | awk '{print $2}'`
[all …]
Dsimult_flows.sh6 ns2="ns2-$rndh"
29 for netns in "$ns1" "$ns2" "$ns3";do
59 for i in "$ns1" "$ns2" "$ns3";do
64 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
65 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
66 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth1 netns "$ns3"
84 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
85 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
86 ip -net "$ns2" link set ns2eth1 up mtu 1500
88 ip -net "$ns2" addr add 10.0.2.2/24 dev ns2eth2
[all …]
Dmptcp_connect.sh116 ns2="ns2-$rndh"
129 for netns in "$ns1" "$ns2" "$ns3" "$ns4";do
147 for i in "$ns1" "$ns2" "$ns3" "$ns4";do
157 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
158 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth2 netns "$ns3"
168 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
169 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
170 ip -net "$ns2" link set ns2eth1 up
172 ip -net "$ns2" addr add 10.0.2.1/24 dev ns2eth3
173 ip -net "$ns2" addr add dead:beef:2::1/64 dev ns2eth3 nodad
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
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 …]
Dnft_flowtable.sh42 ip netns add ns2
65 ip link add veth1 netns nsr2 type veth peer name eth0 netns ns2
119 ip -net ns2 link set eth0 mtu $rmtu
205 if ! ip netns exec ns2 ping -c 1 -q 10.0.1.99 > /dev/null; then
315 if test_tcp_forwarding ns1 ns2; then
326 ip -net ns2 route del default via 10.0.2.1
327 ip -net ns2 route del default via dead:2::1
328 ip -net ns2 route add 192.168.10.1 via 10.0.2.1
346 if test_tcp_forwarding_nat ns1 ns2; then
364 ip netns exec ns2 sysctl net.ipv4.ip_no_pmtu_disc=0 > /dev/null
[all …]
Dnft_queue.sh13 ns2="ns2-$sfx"
20 ip netns del ${ns2}
52 ip netns add ${ns2}
59 ip link add veth1 netns ${nsrouter} type veth peer name eth0 netns ${ns2}
73 ip -net ${ns2} link set lo up
74 ip -net ${ns2} link set eth0 up
81 ip -net ${ns2} addr add 10.0.2.99/24 dev eth0
82 ip -net ${ns2} addr add dead:2::99/64 dev eth0
83 ip -net ${ns2} route add default via 10.0.2.1
84 ip -net ${ns2} route add default via dead:2::1
[all …]
Dbridge_brouter.sh28 ip netns add ns2
35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2
115 ip netns exec ns2 ping -q -c 1 10.0.0.11 > /dev/null
132 ip netns exec ns2 ping -c 1 -q 10.0.0.11 > /dev/null
/kernel/linux/linux-5.10/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 -p "${port}" > "${outfile}" &
213 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
234 ip netns exec "${ns2}" ip link add name testtun0 type "${ttype}" \
[all …]
Dtest_xdp_vlan.sh57 ip netns del ns2 2> /dev/null
127 ip netns del ns2 2> /dev/null
145 ip netns add ns2
155 ip link set veth2 netns ns2
163 ip netns exec ns2 ethtool -K veth2 rxvlan off
166 ip netns exec ns2 ethtool -K veth2 txvlan off
179 ip netns exec ns2 ip link add link $DEVNS2 name $DEVNS2.$VLAN type vlan id $VLAN
180 ip netns exec ns2 ip addr add ${IPADDR2}/24 dev $DEVNS2.$VLAN
181 ip netns exec ns2 ip link set $DEVNS2 up
182 ip netns exec ns2 ip link set $DEVNS2.$VLAN up
[all …]
Dtest_xdp_meta.sh14 ip netns del ns2 2> /dev/null
25 ip netns add ns2
32 ip link set veth2 netns ns2
35 ip netns exec ns2 ip addr add 10.1.1.22/24 dev veth2
38 ip netns exec ns2 tc qdisc add dev veth2 clsact
41 ip netns exec ns2 tc filter add dev veth2 ingress bpf da obj test_xdp_meta.o sec t
44 ip netns exec ns2 ip link set dev veth2 xdp obj test_xdp_meta.o sec x
47 ip netns exec ns2 ip link set dev veth2 up
50 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_dummy &> /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 …]
Dtest_xdp_veth.sh33 ip netns del ns2 2> /dev/null
81 ip netns add ns2
85 ip link add veth2 index 122 type veth peer name veth22 netns ns2
96 ip -n ns2 link set dev veth22 up
111 ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec xdp
/kernel/linux/linux-5.10/samples/bpf/
Dtc_l2_redirect.sh17 $IP netns add ns2
25 $IP link set dev vens2 netns ns2
34 $IP -n ns2 link set dev lo up
35 $IP -n ns2 link set dev vens2 up
36 $IP -n ns2 addr add 10.2.1.102/24 dev vens2
37 $IP -n ns2 addr add 2401:db02::66/64 dev vens2 nodad
38 $IP -n ns2 addr add 10.10.1.102 dev lo
39 $IP -n ns2 addr add 2401:face::66/64 dev lo nodad
40 $IP -n ns2 link add ipt2 type ipip local 10.2.1.102 remote 10.2.1.1
41 $IP -n ns2 link add ip6t2 type ip6tnl mode any local 2401:db02::66 remote 2401:db02::1
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dkirkwood-is2.dts4 #include <dt-bindings/leds/leds-ns2.h>
5 #include "kirkwood-ns2-common.dtsi"
25 ns2-leds {
26 compatible = "lacie,ns2-leds";
29 label = "ns2:blue:sata";
Dkirkwood-ns2.dts4 #include <dt-bindings/leds/leds-ns2.h>
5 #include "kirkwood-ns2-common.dtsi"
25 ns2-leds {
26 compatible = "lacie,ns2-leds";
29 label = "ns2:blue:sata";
Dkirkwood-ns2max.dts4 #include <dt-bindings/leds/leds-ns2.h>
5 #include "kirkwood-ns2-common.dtsi"
44 ns2-leds {
45 compatible = "lacie,ns2-leds";
48 label = "ns2:blue:sata";
Dkirkwood-ns2mini.dts4 #include <dt-bindings/leds/leds-ns2.h>
5 #include "kirkwood-ns2-common.dtsi"
45 ns2-leds {
46 compatible = "lacie,ns2-leds";
49 label = "ns2:blue:sata";
Dkirkwood-d2net.dts11 #include <dt-bindings/leds/leds-ns2.h>
23 ns2-leds {
24 compatible = "lacie,ns2-leds";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-ns2.txt4 - compatible: "lacie,ns2-leds".
6 Each LED is represented as a sub-node of the ns2-leds device.
21 #include <dt-bindings/leds/leds-ns2.h>
23 ns2-leds {
24 compatible = "lacie,ns2-leds";
27 label = "ns2:blue:sata";
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Dtest_util.c76 int64_t ns2 = timespec_to_ns(ts2); in timespec_add() local
77 return timespec_add_ns((struct timespec){0}, ns1 + ns2); in timespec_add()
83 int64_t ns2 = timespec_to_ns(ts2); in timespec_sub() local
84 return timespec_add_ns((struct timespec){0}, ns1 - ns2); in timespec_sub()
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
Dclone3_set_tid.c156 pid_t pid, ns1, ns2, ns3, ns_pid; in main() local
355 &ns3, &ns2, &ns1); in main()
360 ns1 = ns2 = ns3 = 0; in main()
385 if (ns3 == pid && ns2 == 42 && ns1 == 1) in main()
388 ns3, ns2, ns1); in main()
392 ns3, ns2, ns1); in main()

123