Home
last modified time | relevance | path

Searched refs:netns (Results 1 – 25 of 601) sorted by relevance

12345678910>>...25

/linux/tools/testing/selftests/net/mptcp/
A Dmptcp_join.sh49 for netns in "$ns1" "$ns2";do
50 ip netns add $netns || exit $ksft_skip
51 ip -net $netns link set lo up
52 ip netns exec $netns sysctl -q net.mptcp.enabled=1
53 ip netns exec $netns sysctl -q net.ipv4.conf.all.rp_filter=0
54 ip netns exec $netns sysctl -q net.ipv4.conf.default.rp_filter=0
56 ip netns exec $netns sysctl -q net.mptcp.checksum_enabled=1
67 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
94 ip netns del $netns
117 ip netns exec $netns sysctl -q net.ipv4.tcp_syncookies=2
[all …]
A Dpm_netlink.sh34 ip netns del $ns1
45 ip netns add $ns1 || exit $ksft_skip
75 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1
85 ip netns exec $ns1 ./pm_nl_ctl del 2
103 ip netns exec $ns1 ./pm_nl_ctl del 9
106 ip netns exec $ns1 ./pm_nl_ctl del $i
116 ip netns exec $ns1 ./pm_nl_ctl flush
119 ip netns exec $ns1 ./pm_nl_ctl limits 9 1
123 ip netns exec $ns1 ./pm_nl_ctl limits 1 9
131 ip netns exec $ns1 ./pm_nl_ctl flush
[all …]
A Dmptcp_sockopt.sh39 for netns in "$ns1" "$ns2";do
40 ip netns add $netns || exit $ksft_skip
41 ip -net $netns link set lo up
42 ip netns exec $netns sysctl -q net.mptcp.enabled=1
43 ip netns exec $netns sysctl -q net.ipv4.conf.all.rp_filter=0
44 ip netns exec $netns sysctl -q net.ipv4.conf.default.rp_filter=0
48 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
76 for netns in "$ns1" "$ns2"; do
77 ip netns del $netns
180 ip netns exec ${listener_ns} \
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_lwt_ip_encap.sh111 ip netns add "${NS1}"
112 ip netns add "${NS2}"
113 ip netns add "${NS3}"
131 ip link set veth1 netns ${NS1}
132 ip link set veth2 netns ${NS2}
133 ip link set veth3 netns ${NS2}
134 ip link set veth4 netns ${NS3}
135 ip link set veth5 netns ${NS1}
136 ip link set veth6 netns ${NS2}
137 ip link set veth7 netns ${NS2}
[all …]
A Dtest_lwt_seg6local.sh55 ip netns add ns1
56 ip netns add ns2
57 ip netns add ns3
58 ip netns add ns4
59 ip netns add ns5
60 ip netns add ns6
70 ip link set veth1 netns ns1
71 ip link set veth2 netns ns2
72 ip link set veth3 netns ns2
73 ip link set veth4 netns ns3
[all …]
A Dtest_xdp_vlan.sh59 ip netns del ns1 2> /dev/null
60 ip netns del ns2 2> /dev/null
129 ip netns del ns1 2> /dev/null
130 ip netns del ns2 2> /dev/null
147 ip netns add ns1
148 ip netns add ns2
157 ip link set veth1 netns ns1
158 ip link set veth2 netns ns2
177 ip netns exec ns1 ip link set veth1 up
188 ip netns exec ns1 ip link set lo up
[all …]
A Dtest_tc_tunnel.sh28 ip netns add "${ns1}"
29 ip netns add "${ns2}"
32 peer name veth2 mtu 1500 netns "${ns2}"
34 ip netns exec "${ns1}" ethtool -K veth1 tso off
36 ip -netns "${ns1}" link set veth1 up
37 ip -netns "${ns2}" link set veth2 up
45 ip -netns "${ns1}" -4 route flush table main
46 ip -netns "${ns1}" -6 route flush table main
56 ip netns del "${ns2}"
57 ip netns del "${ns1}"
[all …]
/linux/tools/testing/selftests/netfilter/
A Dipvs.sh69 ip netns add ns0
70 ip netns add ns1
71 ip netns add ns2
73 ip link add veth01 netns ns0 type veth peer name veth10 netns ns1
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
85 ip netns exec ns1 ip link set lo up
91 ip netns exec ns2 ip link set lo up
105 ip netns del ns$i > /dev/null 2>&1
174 ip netns exec ns1 modprobe ipip
[all …]
A Dnft_nat.sh18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done
33 ip netns add "$ns0"
41 ip netns add "$ns1"
47 ip netns add "$ns2"
53 ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1
58 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2"
184 ip netns exec "$ns0" nft -f /dev/stdin <<EOF
411 ip netns exec "$ns0" nft -f /dev/stdin <<EOF
512 ip netns exec "$ns0" nft -f /dev/stdin <<EOF
611 ip netns exec "$ns0" nft -f /dev/stdin <<EOF
[all …]
A Dnf_nat_edemux.sh17 ip netns del $ns1
18 ip netns del $ns2
39 ip netns add "$ns1"
47 ip netns add $ns2
51 ip link set netns $ns1 dev veth1
52 ip link set netns $ns2 dev veth2
54 ip netns exec $ns1 ip link set up dev lo
55 ip netns exec $ns1 ip link set up dev veth1
58 ip netns exec $ns2 ip link set up dev lo
59 ip netns exec $ns2 ip link set up dev veth2
[all …]
/linux/tools/testing/selftests/net/
A Dvrf_route_leaking.sh177 ip netns del $ns 2>/dev/null
217 ip netns add $ns
233 ip -netns h1 link set r1h1 netns r1 name eth0 up
236 ip -netns h2 link set r1h2 netns r1 name eth1 up
298 ip netns add $ns
314 ip -netns h1 link set r1h1 netns r1 name eth0 up
317 ip -netns h1 link set r2h1 netns r2 name eth0 up
320 ip -netns h2 link set r1h2 netns r1 name eth1 up
323 ip -netns h2 link set r2h2 netns r2 name eth1 up
329 ip -netns h1 link set br0 up
[all …]
A Dicmp_redirect.sh146 ip netns del $ns 2>/dev/null
162 ip -netns ${ns} ru del pref 0
176 ip netns add $ns
177 ip -netns $ns li set lo up
199 ip -netns h1 li set r1h1 netns r1 name eth0 up
202 ip -netns h1 li set r2h1 netns r2 name eth0 up
205 ip -netns h2 li set eth0 up
206 ip -netns h2 li set r2h2 netns r2 name eth2 up
209 ip -netns r1 li set eth1 up
210 ip -netns r1 li set r2r1 netns r2 name eth1 up
[all …]
A Damt.sh111 ip -netns "${ns}" link set dev lo up
118 ip link set l_gw netns "${LISTENER}" up
119 ip link set gw_l netns "${GATEWAY}" up
121 ip link set relay_gw netns "${RELAY}" up
122 ip link set relay_src netns "${RELAY}" up
170 ip netns exec "${RELAY}" smcrouted
179 REMOTE=$(ip netns exec "${GATEWAY}" \
191 ip netns exec "${SOURCE}" bash -c \
198 ip netns exec "${SOURCE}" bash -c \
238 ip netns exec "${SOURCE}" bash -c \
[all …]
A Dioam6.sh196 ip netns add ioam-tmp-node
213 ip netns del ioam-tmp-node || true
229 ip netns del ioam-tmp-node || true
234 ip netns del ioam-tmp-node || true
266 ip netns del ioam-node-alpha || true
267 ip netns del ioam-node-beta || true
268 ip netns del ioam-node-gamma || true
278 ip netns add ioam-node-alpha
279 ip netns add ioam-node-beta
280 ip netns add ioam-node-gamma
[all …]
A Dbareudp.sh127 ip netns delete "${ns}" 2>/dev/null || true
143 ip netns add "${NS0}" || exit_cleanup
144 ip netns add "${NS1}" || exit_cleanup "${NS0}"
176 ip -netns "${NS}" link set dev "${DEV}" up
192 ip -netns "${ns}" link set dev lo up
195 ip link add name veth01 netns "${NS0}" type veth peer name veth10 netns "${NS1}"
196 ip link add name veth12 netns "${NS1}" type veth peer name veth21 netns "${NS2}"
197 ip link add name veth23 netns "${NS2}" type veth peer name veth32 netns "${NS3}"
205 tc -netns "${NS1}" qdisc add dev veth10 ingress
492 ip -netns "${NS1}" link delete bareudp_ns1
[all …]
A Dtest_vxlan_under_vrf.sh69 ip netns add hv-$hv
76 ip -netns hv-$hv link set veth0 up
79 ip -netns hv-$hv link set br0 up
83 ip -netns hv-$hv link set vxlan0 up
97 ip netns add vm-$id
100 ip link set veth-tap netns hv-$id
106 ip link set veth-hv netns vm-$id
123 ip -netns hv-1 link set veth0 down
124 ip -netns hv-1 link set veth0 up
126 ip -netns hv-2 link set veth0 down
[all …]
A Dfib_nexthop_multiprefix.sh75 ip netns del ${ns} 2>/dev/null
77 ip netns add ${ns}
79 ip -netns ${ns} link set lo up
112 ip -netns h${i} li set eth0 up
113 ip -netns h${i} li set r1h${i} netns r1 name eth${i} up
137 ip -netns h0 li sh
138 ip -netns h0 ro sh
139 ip -netns h0 -6 ro sh
149 ip netns del ${n} 2>/dev/null
181 ip -netns h0 ro get ${dst}
[all …]
A Dtraceroute.sh49 out=$(eval ip netns exec ${ns} ${cmd} 2>&1)
72 ip netns add ${ns}
74 ip netns exec ${ns} ip link set lo up
76 ip netns exec ${ns} ip addr add dev lo ${addr}
105 ip netns exec ${ns1} ip li set ${ns1_dev} up
106 ip netns exec ${ns1} ip li set tmp netns ${ns2} name ${ns2_dev}
107 ip netns exec ${ns2} ip li set ${ns2_dev} up
167 ip netns del ${ns} 2>/dev/null
194 ip netns exec router-1 ip link set ${brdev} up
247 ip netns del ${ns} 2>/dev/null
[all …]
A Dl2tp.sh83 ip netns add ${ns}
85 ip -netns ${ns} link set lo up
116 ip -netns ${ns1} li set ${ns1_dev} up
117 ip -netns ${ns1} li set tmp netns ${ns2} name ${ns2_dev}
118 ip -netns ${ns2} li set ${ns2_dev} up
140 ip netns del ${ns} 2>/dev/null
250 ip -netns host-1 xfrm state add \
255 ip -netns host-1 xfrm state add \
260 ip -netns host-2 xfrm state add \
265 ip -netns host-2 xfrm state add \
[all …]
A Dsrv6_end_dt46_l3vpn_test.sh255 ip netns del ${ns} || true
265 ip netns add ${nsname}
266 ip link set veth-rt-${rt} netns ${nsname}
273 ip -netns ${nsname} link set veth0 up
274 ip -netns ${nsname} link set lo up
290 ip netns add ${hsname}
296 ip -netns ${hsname} link set ${rtveth} netns ${rtname}
299 ip -netns ${hsname} link set veth0 up
300 ip -netns ${hsname} link set lo up
314 ip -netns ${rtname} link set ${rtveth} up
[all …]
A Dip_defrag.sh14 ip netns add "${NETNS}"
15 ip -netns "${NETNS}" link set lo up
19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1
23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1
34 ip netns del "${NETNS}"
41 ip netns exec "${NETNS}" ./ip_defrag -4
44 ip netns exec "${NETNS}" ./ip_defrag -4o
47 ip netns exec "${NETNS}" ./ip_defrag -6
50 ip netns exec "${NETNS}" ./ip_defrag -6o
56 ip netns exec "${NETNS}" ./ip_defrag -6
[all …]
A Dunicast_extensions.sh124 ip netns add foo-ns
125 ip netns add bar-ns
126 ip link add foo netns foo-ns type veth peer name bar netns bar-ns
133 ip netns del foo-ns
134 ip netns del bar-ns
150 ip netns add foo-ns
151 ip netns add bar-ns
153 ip link add foo netns foo-ns type veth peer name foo1 netns router-ns
154 ip link add bar netns bar-ns type veth peer name bar1 netns router-ns
162 ip netns del foo-ns
[all …]
A Dsrv6_end_dt6_l3vpn_test.sh225 ip netns del ${ns} || true
235 ip netns add ${nsname}
236 ip link set veth-rt-${rt} netns ${nsname}
243 ip -netns ${nsname} link set veth0 up
244 ip -netns ${nsname} link set lo up
259 ip netns add ${hsname}
265 ip -netns ${hsname} link set ${rtveth} netns ${rtname}
267 ip -netns ${hsname} link set veth0 up
268 ip -netns ${hsname} link set lo up
281 ip -netns ${rtname} link set ${rtveth} up
[all …]
A Dveth.sh27 ip netns del $ns 2>/dev/null
37 ip netns add $ns
44 ip link set dev veth$ns netns $BASE$ns up
176 ip netns exec $NS_DST ./udpgso_bench_rx &
238 ip netns exec $NS_DST ethtool -K veth$DST gro on
252 ip netns exec $NS_DST ethtool -K veth$DST gro on
268 ip netns exec $NS_DST ethtool -L veth$DST tx 2
296 ip netns exec $NS_SRC ethtool -L veth$SRC rx 2
297 ip netns exec $NS_DST ethtool -L veth$DST rx 2
336 ip netns exec $NS_DST ethtool -L veth$DST tx 1
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector_reattach.c442 old_net = netns; in test_link_update_netns_gone()
443 netns = unshare_net(old_net); in test_link_update_netns_gone()
444 if (netns < 0) in test_link_update_netns_gone()
454 close(netns); in test_link_update_netns_gone()
482 old_net = netns; in test_link_get_info()
483 netns = unshare_net(old_net); in test_link_get_info()
484 if (netns < 0) in test_link_get_info()
544 close(netns); in test_link_get_info()
546 netns = -1; in test_link_get_info()
568 if (netns != -1) in test_link_get_info()
[all …]

Completed in 137 milliseconds

12345678910>>...25