Home
last modified time | relevance | path

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

123

/linux-6.6.21/tools/testing/selftests/net/mptcp/
Dmptcp_join.sh26 ns2=""
91 ns2="ns2-$rndh"
94 for netns in "$ns1" "$ns2"; do
117 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
122 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
123 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
124 ip -net "$ns2" link set ns2eth$i up
127 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
128 ip -net "$ns2" route add default via dead:beef:$i::1 dev ns2eth$i metric 10$i
137 tc -n $ns2 qdisc add dev ns2eth$i root netem rate 20mbit delay 1
[all …]
Dsimult_flows.sh9 ns2="ns2-$rndh"
34 for netns in "$ns1" "$ns2" "$ns3";do
67 for i in "$ns1" "$ns2" "$ns3";do
74 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
75 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
76 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth1 netns "$ns3"
93 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
94 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
95 ip -net "$ns2" link set ns2eth1 up mtu 1500
97 ip -net "$ns2" addr add 10.0.2.2/24 dev ns2eth2
[all …]
Duserspace_pm.sh60 ns2="ns2-$rndh"
126 for netns in "$ns1" "$ns2" ;do
138 for i in "$ns1" "$ns2" ;do
148 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
157 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
158 ip -net "$ns2" addr add 10.0.2.2/24 dev ns2eth1
159 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
160 ip -net "$ns2" addr add dead:beef:2::2/64 dev ns2eth1 nodad
161 ip -net "$ns2" link set ns2eth1 up
206 ip netns exec "$ns2" ./pm_nl_ctl events >> "$client_evts" 2>&1 &
[all …]
Dmptcp_connect.sh127 ns2="ns2-$rndh"
142 for netns in "$ns1" "$ns2" "$ns3" "$ns4";do
166 for i in "$ns1" "$ns2" "$ns3" "$ns4";do
176 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
177 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth2 netns "$ns3"
187 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
188 ip -net "$ns2" addr add dead:beef:1::2/64 dev ns2eth1 nodad
189 ip -net "$ns2" link set ns2eth1 up
191 ip -net "$ns2" addr add 10.0.2.1/24 dev ns2eth3
192 ip -net "$ns2" addr add dead:beef:2::1/64 dev ns2eth3 nodad
[all …]
Dmptcp_sockopt.sh21 ns2="ns2-$rndh"
45 for netns in "$ns1" "$ns2" "$ns_sbox";do
55 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
60 ip -net "$ns2" addr add 10.0.$i.2/24 dev ns2eth$i
61 ip -net "$ns2" addr add dead:beef:$i::2/64 dev ns2eth$i nodad
62 ip -net "$ns2" link set ns2eth$i up
65 ip -net "$ns2" route add default via 10.0.$i.1 dev ns2eth$i metric 10$i
70 ip netns exec $ns2 ./pm_nl_ctl add 10.0.$i.2 flags signal
71 ip netns exec $ns2 ./pm_nl_ctl add dead:beef:$i::2 flags signal
75 ip netns exec $ns2 ./pm_nl_ctl limits 8 8
[all …]
/linux-6.6.21/tools/testing/selftests/net/
Dtest_vxlan_mdb.sh259 local ns2=$1; shift
264 ip netns add $ns2
268 ip link set dev veth1 netns $ns2 name veth0
271 setup_common_ns $ns2 $local_addr2
981 local ns2=$1; shift
995 run_cmd "tc -n $ns2 qdisc replace dev veth0 clsact"
996 run_cmd "tc -n $ns2 qdisc replace dev vx0 clsact"
997 run_cmd "ip -n $ns2 address replace $vtep1_ip/$plen dev lo"
998 run_cmd "ip -n $ns2 address replace $vtep2_ip/$plen dev lo"
1004 …run_cmd "tc -n $ns2 filter replace dev vx0 ingress pref 1 handle 101 proto all flower enc_dst_ip $…
[all …]
/linux-6.6.21/tools/testing/selftests/netfilter/
Drpath.sh37 ns2="ns2-$sfx"
38 trap "ip netns del $ns1; ip netns del $ns2" EXIT
43 ip netns add "$ns2"
44 ip netns exec "$ns2" sysctl -q net.ipv4.conf.all.rp_filter=0
45 ip netns exec "$ns2" sysctl -q net.ipv4.conf.default.rp_filter=0
46 ip netns exec "$ns2" sysctl -q net.ipv6.conf.all.keep_addr_on_down=1
49 ip -net "$ns1" link add v0 type veth peer name v0 netns "$ns2"
50 ip -net "$ns1" link set v0 up; ip -net "$ns2" link set v0 up
52 ip -net "$ns2" a a 192.168.23.1/24 dev v0
54 ip -net "$ns2" a a fec0:23::1/64 dev v0 nodad
[all …]
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
134 sleep 3 | ip netns exec ${ns2} nc -w 2 -l -p $port > /dev/null &
140 check_for_helper "$ns2" "ip $msg" $port $autoassign
[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_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_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_flowtable.sh19 ns2="ns2-$sfx"
46 ip netns add $ns2
51 ip netns del $ns2
67 ip link add veth1 netns $nsr2 type veth peer name eth0 netns $ns2
120 ip -net $ns2 link set eth0 mtu $rmtu
135 for ns in $ns1 $ns2;do
148 ip -net $ns2 addr add 10.0.2.99/24 dev eth0
150 ip -net $ns2 route add default via 10.0.2.1
152 ip -net $ns2 addr add dead:2::99/64 dev eth0
154 ip -net $ns2 route add default via dead:2::1
[all …]
Dnft_fib.sh11 ns2="ns2-$sfx"
20 ip netns del ${ns2}
54 ip netns add ${ns2}
131 load_ruleset ${ns2}
138 ip link add veth1 netns ${nsrouter} type veth peer name eth0 netns ${ns2}
152 ip -net ${ns2} link set lo up
153 ip -net ${ns2} link set eth0 up
160 ip -net ${ns2} addr add 10.0.2.99/24 dev eth0
161 ip -net ${ns2} addr add dead:2::99/64 dev eth0
162 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 …]
/linux-6.6.21/tools/testing/selftests/net/hsr/
Dhsr_ping.sh33 ns2="ns2-$rndh"
39 for netns in "$ns1" "$ns2" "$ns3" ;do
117 do_ping "$ns2" 100.64.0.1
122 do_ping "$ns2" 100.64.0.3
127 do_ping "$ns2" dead:beef:1::1
128 do_ping "$ns2" dead:beef:1::2
160 do_ping_long "$ns2" 100.64.0.1
161 do_ping_long "$ns2" dead:beef:1::1
162 do_ping_long "$ns2" 100.64.0.3
163 do_ping_long "$ns2" dead:beef:1::2
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_tc_tunnel.sh12 readonly ns2="${ns_prefix}2"
30 ip netns add "${ns2}"
33 peer name veth2 mtu 1500 netns "${ns2}"
38 ip -netns "${ns2}" link set veth2 up
41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2
43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad
57 ip netns del "${ns2}"
73 ip netns exec "${ns2}" nc "${netcat_opt}" -l "${port}" > "${outfile}" &
223 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
253 ip netns exec "${ns2}" ip link add name testtun0 type "${ttype}" \
[all …]
/linux-6.6.21/samples/bpf/
Dtc_l2_redirect.sh18 $IP netns add ns2
26 $IP link set dev vens2 netns ns2
35 $IP -n ns2 link set dev lo up
36 $IP -n ns2 link set dev vens2 up
37 $IP -n ns2 addr add 10.2.1.102/24 dev vens2
38 $IP -n ns2 addr add 2401:db02::66/64 dev vens2 nodad
39 $IP -n ns2 addr add 10.10.1.102 dev lo
40 $IP -n ns2 addr add 2401:face::66/64 dev lo nodad
41 $IP -n ns2 link add ipt2 type ipip local 10.2.1.102 remote 10.2.1.1
42 $IP -n ns2 link add ip6t2 type ip6tnl mode any local 2401:db02::66 remote 2401:db02::1
[all …]
/linux-6.6.21/arch/arm/boot/dts/marvell/
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";
/linux-6.6.21/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";
/linux-6.6.21/Documentation/devicetree/bindings/arm/bcm/
Dbrcm,ns2.yaml4 $id: http://devicetree.org/schemas/arm/bcm/brcm,ns2.yaml#
19 - brcm,ns2-svk
20 - brcm,ns2-xmc
21 - const: brcm,ns2

123